mgetgroups: remove dependency on realloc-gnu
[gnulib.git] / ChangeLog
1 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
2
3         mgetgroups: remove dependency on realloc-gnu
4         The dependency violates the comment in realloc-gnu, which
5         says that tests can't depend on realloc-gnu; some tests depend
6         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
7         Problem reported by Daniel Richard G. in
8         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
9         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
10         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
11         not realloc-gnu.
12
13 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14
15         regex-tests: port to HP-UX 11.11
16         Problem reported by Daniel Richard G. in
17         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
18         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
19
20 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21
22         verify: document some 'assume' pitfalls
23         * doc/verify.texi (Compile-time Assertions):
24         Mention that 'assume (E)' can sometimes slow things down.
25         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
26
27 2013-10-10  Eric Blake  <eblake@redhat.com>
28
29         strtoumax: fix typo in previous commit.
30         * modules/strtoumax (Depends-on): Fix typo.
31         * modules/strtoimax (Depends-on): Likewise.
32
33 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34
35         strtoumax: port to Solaris 8
36         This problem was introduced in the recent HP-UX patch.
37         Reported by Tom G. Christensen in
38         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
39         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
40         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
41
42 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
43
44         strtoimax, strtoumax: port to HP-UX 11.11
45         Problem reported by Daniel Richard G. in
46         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
47         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
48         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
49         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
50         REPLACE_STRTOUMAX.
51         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
52         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
53         Replace the function if defined as a macro but not as a function.
54         * modules/inttypes-incomplete (inttypes.h): Substitute
55         REPLACE_STRTOUMAX.
56         * modules/strtoumax (configure.ac): Replace strtoumax if
57         REPLACE_STRTOUMAX.
58
59 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60
61         strtoimax: port to HP-UX 11.11
62         Problem reported by Daniel Richard G.
63         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
64         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
65         they might clash with inttypes.h.
66
67 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68
69         New module 'count-trailing-zeros'.
70         * MODULES.html.sh: Mention it.
71         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
72         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
73         * modules/count-trailing-zeros-tests:
74         * tests/test-count-trailing-zeros.c:
75         New files.
76
77         count-leading-zeros: port to MSC; support types wider than 64 bits
78         The ideas behind the MSC port are stolen from Emacs.
79         * lib/count-leading-zeros.h:
80         Don't include verify.h: it's no longer needed, as types wider than
81         64 bits are now supported.
82         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
83         performance with MSC.  All uses changed.  Do not assume that TYPE
84         has at most 64 bits.
85         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
86         All uses changed.  Fold the subtraction from 31 into the table.
87
88         count-one-bits: port to MSC; support types wider than 64 bits
89         The ideas behind the MSC port are stolen from Emacs.
90         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
91         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
92         Don't include verify.h: it's no longer needed, as types wider than
93         64 bits are now supported.
94         (COUNT_ONE_BITS_GENERIC): New macro.
95         (popcount_supported) [_MSC_VER]: New inline function.
96         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
97         performance with MSC.  All uses changed.  Do not assume that TYPE
98         has at most 64 bits.
99         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
100
101 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
102
103         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
104         * lib/mountlist.c (read_file_system_list): fix leak of directory
105         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
106
107 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108
109         tests: improve diagnostic when an assertion fails
110         * tests/macros.h (ASSERT): Report the assertion that failed.
111
112 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
113
114         verify: new macro 'assume'
115         This is taken from Emacs, and should be generally useful.
116         * doc/verify.texi (assume): Document it.
117         * lib/verify.h (assume): New macro.
118         (__has_builtin): Expand to 0 if not defined.
119
120 2013-09-26  Eric Blake  <eblake@redhat.com>
121
122         dup2, dup3: work around another cygwin crasher
123         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
124         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
125         * tests/test-dup2.c (main): Likewise.
126         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
127         * lib/dup3.c (dup3): Likewise.
128         * doc/posix-functions/dup2.texi (dup2): Document it.
129         * doc/glibc-functions/dup3.texi (dup3): Likewise.
130
131         getdtablesize: work around cygwin issue
132         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
133         * modules/getdtablesize (configure.ac): Build replacement.
134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
135         * modules/unistd (Makefile.am): Expose the witness.
136         * lib/unistd.in.h (getdtablesize): Declare replacement.
137         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
138         * tests/test-getdtablesize.c (main): Test it.
139         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
140
141 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
142
143         pmccabe2html: escaping of special characters
144         Escape all '<', '>', and '&' in HTML output.
145         * build-aux/pmccabe2html (html_fnc): Call gsub()
146         instead of sub() to capture all '<', '>', and '&'.
147         Neither of '<' and '>' is special in a regexp,
148         so first arguments to gsub() are corrected. Also,
149         in replacement strings, ampersand must be escaped.
150         Finally, '&' must be handled first, then '<' and '>'.
151
152 2013-09-24  Eric Blake  <eblake@redhat.com>
153
154         manywarnings: enable nicer gcc warning messages
155         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
156         some -f options for optimal warnings.
157
158 2013-09-21  Jim Meyering  <meyering@fb.com>
159
160         timespec: use the new TIMESPEC_RESOLUTION in a few more places
161         * lib/timespec-add.c (timespec_add): Also replace 999999999
162         with TIMESPEC_RESOLUTION - 1.
163         * lib/timespec-sub.c (timespec_sub): Likewise.
164
165 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
166
167         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
168         Problem reported by Dagobert Michelsen via Eric Blake in
169         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
170         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
171         not AC_COMPILE_IFELSE.
172
173 2013-09-23  Eric Blake  <eblake@redhat.com>
174
175         configmake: support new --runstatedir option
176         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
177         even if autoconf was too old to provide the command line option.
178         * modules/configmake (Makefile.am): Propagate it to .h file.
179
180 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
181
182         ctype, string: depend on extern-inline
183         This is needed to complete the recent OS X fixes.
184         Also, fix related documentation as suggested by Eric Blake.
185         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
186         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
187         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
188         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
189         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
190         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
191         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
192         * doc/posix-functions/toupper.texi:
193         List the 'ctype' gnulib module.
194         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
195         * doc/posix-functions/strncpy.texi:
196         List the 'string' gnulib module.
197         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
198         Add string.
199         * modules/ctype, modules/string (Depends-on): Add extern-inline.
200
201 2013-09-19  Pádraig Brady  <P@draigBrady.com>
202
203         userspec: support optional parameters to parse_user_spec()
204         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
205         then avoid group processing and treat the full spec as a user.
206         (parse_with_separator): Allow the USERNAME and GROUPNAME to
207         be optional params (NULL), in which case they're ignored.
208
209 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
210
211         timespec: new function make_timespec, and new constants
212         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
213         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
214         (make_timespec): New function.
215         * lib/dtotimespec.c (dtotimespec):
216         * lib/timespec-add.c (timespec_add):
217         * lib/timespec-sub.c (timespec_sub):
218         * lib/utimens.c (validate_timespec):
219         * lib/utimensat.c (rpl_utimensat):
220         Use these new constants and functions.
221
222         stdio: OS X port of putc_unlocked + extern inline
223         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
224         * doc/posix-functions/putc_unlocked.texi:
225         * doc/posix-functions/putchar_unlocked.texi:
226         Document this portability problem.
227
228         signal: OS X port of sigaddset etc. + extern inline
229         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
230         (sigismember): #undef on problematic Apple platforms.
231         * doc/posix-functions/sigaddset.texi:
232         * doc/posix-functions/sigdelset.texi:
233         * doc/posix-functions/sigemptyset.texi:
234         * doc/posix-functions/sigfillset.texi:
235         * doc/posix-functions/sigismember.texi:
236         Document this portability problem.
237
238         extern-inline: do not always suppress extern inline on OS X
239         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
240         extern inline on Apple only if the particular compile-time
241         configuration is known to have the problem.
242         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
243         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
244         other Gnulib modules.
245
246         extern-inline: document fixes for ctype and wctype macros
247         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
248         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
249         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
250         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
251         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
252         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
253         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
254         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
255         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
256         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
257         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
258         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
259         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
260         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
261         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
262         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
263         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
264         * doc/posix-functions/strncpy.texi:
265         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
266         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
267         Document that Gnulib fixes portability problems with these
268         functions on OS X 10.8 and earlier when called from plain inline
269         or extern inline functions.
270
271 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
272
273         fflush, freadahead, fseeko: Fix for Android
274         Suggested by Bruno Haible in:
275         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
276         * lib/stdio-impl.h: Use local __sfileext definition.
277
278 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
279
280         pmccabe2html: Portability to other awk versions.
281         The functions systime() and strftime() are available
282         in Gawk only.  Properly close two HTML-tags 'style'
283         and 'span'.
284         * build-aux/pmccabe2html (BEGIN): Store timing
285         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
286         systime() in HTML_COMMENT.
287         (html_header): Correctly close tag 'style'.
288         (END): Replace strftime() by CHRONOS_TIME.  Close
289         tag 'span' correctly, not as 'div'.
290
291 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
292
293         getgroups: statement without effect
294         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
295         Change equality conditional to expected assignment.
296
297 2013-09-09  Eric Blake  <eblake@redhat.com>
298
299         glob: fix compilation
300         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
301
302 2013-09-07  Eric Blake  <eblake@redhat.com>
303
304         glob: fix build for platforms without __THROW
305         * lib/glob.in.h (__THROW): Add definition again.
306
307 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
308
309         regex-quote: fix buffer access out of bounds
310         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
311         * lib/regex-quote.c (regex_quote_spec_pcre):
312         Fix typo that resulted in an out-of-bounds read.
313
314 2013-09-04  Eric Blake  <eblake@redhat.com>
315
316         glob: avoid -Wattribute warnings on glibc
317         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
318         __THROWNL, not __THROW, on static functions.
319         * lib/glob.in.h (__THROW): Adjust...
320         (__THROWNL): ...accordingly.
321
322 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
323
324         headers: check that _GL_INLINE_HEADER_BEGIN is defined
325         Suggested by Bruce Korb in:
326         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
327         * doc/extern-inline.texi (extern inline):
328         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
329         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
330         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
331         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
332         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
333         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
334         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
335         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
336         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
337         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
338         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
339         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
340         * lib/xtime.h:
341         Check that _GL_INLINE_HEADER_BEGIN is defined.
342
343 2013-08-29  Pádraig Brady  <P@draigBrady.com>
344
345         bootstrap: remove the --version requirement from ancillary tools
346         * build-aux/bootstrap (check_exists): A new refactored function to
347         determine if a command exists.
348         (find_tool): Use the new function which does not require the
349         --version option to be supported.
350         (check_versions): Use the new function.
351
352 2013-08-26  Simon Josefsson  <simon@josefsson.org>
353
354         gc: support HMAC-SHA256 and HMAC-SHA512.
355         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
356         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
357         functions.
358         (gc_hmac_md5): Use symbolic constant.
359         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
360         (gc_hmac_sha256, gc_hmac_sha512): New functions.
361         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
362         * m4/sha256.m4: Protect against empty expansion.
363         * m4/sha512.m4: Likewise.
364         * lib/hmac-sha256.c: New file.
365         * lib/hmac-sha512.c: Likewise.
366         * m4/gc-hmac-sha256.m4: Likewise.
367         * m4/gc-hmac-sha512.m4: Likewise.
368         * m4/gc-sha256.m4: Likewise.
369         * m4/gc-sha512.m4: Likewise.
370         * modules/crypto/gc-hmac-sha256: Likewise.
371         * modules/crypto/gc-hmac-sha256-tests: Likewise.
372         * modules/crypto/gc-hmac-sha512: Likewise.
373         * modules/crypto/gc-hmac-sha512-tests: Likewise.
374         * modules/crypto/hmac-sha256: Likewise.
375         * modules/crypto/hmac-sha256-tests: Likewise.
376         * modules/crypto/hmac-sha512: Likewise.
377         * modules/crypto/hmac-sha512-tests: Likewise.
378         * tests/test-gc-hmac-sha256.c: Likewise.
379         * tests/test-gc-hmac-sha512.c: Likewise
380         * tests/test-hmac-sha256.c: Likewise.
381         * tests/test-hmac-sha512.c: Likewise
382
383 2013-08-24  Daiki Ueno  <ueno@gnu.org>
384
385         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
386         of AC_CHECK_DECLS.
387
388 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
389
390         selinux-at: omit unnecessary include
391         * lib/selinux-at.c: Don't include dosname.h; not needed, since
392         this source file doesn't use its macros, and subsidiary files that
393         use the macros already include it.
394
395 2013-08-21  Eric Blake  <eblake@redhat.com>
396
397         d-ino: avoid false negative on symlink
398         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
399         Reported by Stephane Chazelas.
400
401 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
402
403         bootstrap: port to OpenBSD sed
404         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
405         does not interpret `-' as a file argument to mean stdin.
406
407 2013-08-15  Eric Blake  <eblake@redhat.com>
408
409         warnings: minor optimization
410         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
411
412         warnings: check -Wfoo rather than -Wno-foo
413         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
414         -Wno-, test if the compiler recognizes the positive form instead.
415
416 2013-08-15  Karl Berry  <karl@gnu.org>
417
418         * config/srclist-update: add option "doclicense" to placate
419         pulling *.texi files from Emacs.  Write terse usage
420         documentation at the top.
421
422 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
423
424         xvasprintf-tests: port to GCC with hardening flags
425         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
426         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
427         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
428
429 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
430
431         fpending: port to recent Cygwin change to stdio_ext.h
432         Reported by LRN in
433         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
434         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
435         just declare __fpending unless it's a macro.
436         A duplicate decl shouldn't hurt.
437         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
438         call compiles and links, instead of separately checking for
439         decl and lib function.
440         * modules/fpending (configure-ac):
441         Adjust to fpending.m4's renaming of shell variable.
442
443 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
444
445         sys_time: port to OpenBSD
446         * lib/sys_time.in.h: Simply delegate to the system's header
447         in the BSDish cases as well.  Problem reported by Mike Miller in
448         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
449         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
450         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
451         wider than time_t.
452
453 2013-08-09  Pádraig Brady <P@draigBrady.com>
454
455         bootstrap: support checksum utils having -c but not --status
456         * build-aux/bootstrap: Only look for sha1sum if updating po files.
457         Add sha1 to the list of supported checksum utils since it's now
458         supported through adjustments below.
459         (update_po_files): Remove the use of --status
460         in a way that will suppress all error messages, but since this is
461         only used to minimize updates, it shouldn't cause an issue.
462         Exit early if there is a problem updating the po file checksums.
463         (find_tool): Remove the check for --version support as this
464         is optional as per commit 86186b17.  Don't even check for the
465         presence of the command as if that is needed, it's supported
466         through configuring prerequisites in bootstrap.conf.
467         Prompt that when a tool isn't found, one can define an environment
468         variable to add to the hardcoded search list.
469
470 2013-08-05  Jim Meyering  <meyering@fb.com>
471
472         regex: port to non-glibc/lock-using systems
473         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
474         system with GNULIB_LOCK would fail due to absence of the
475         included "glthread/lock.h".  This would affect any package
476         for which the "lock" module is used only by the regex module,
477         and not explicitly used.
478         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
479         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
480         Add a dependency on the "lock" module.
481
482 2013-07-20  Daiki Ueno  <ueno@gnu.org>
483
484         localecharset: make locale_charset thread-safe on Mac OS X
485         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
486         instead of MB_CUR_MAX.
487
488 2013-07-20  Daiki Ueno  <ueno@gnu.org>
489
490         gettext: update to version 0.18.3
491         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
492         require AC_PROG_SED to allow user to specify custom sed command when
493         generating en@quot PO file.
494
495 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
496
497         bootstrap: use correct source when copying build-aux files
498         * build-aux/bootstrap (gnulib_extra_files): This variable is
499         relative to upstream gnulib layout, not downstream.
500
501 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
502
503         tmpdir: fix bug in VMS port
504         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
505         See Steven M. Schweda in
506         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
507
508 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
509
510         tmpdir: port to VMS, to // != /, and to long dirs
511         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
512         __secure_getenv, so that we're more like the glibc version.
513         All uses changed.
514         (path_search): Don't put slash after directory if __VMS.
515         Problem reported by Steven M. Schweda in
516         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
517         Simplify code to add slash; no need for a loop.
518         Do not remove trailing slash from "//".
519         Do not assume dlen <= INT_MAX.
520
521 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
522
523         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
524         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
525         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
526         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
527
528         accept4, dup3, pipe2: port to Cygwin
529         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
530         * lib/accept4.c (accept4) [O_BINARY]:
531         * lib/dup3.c (dup3) [O_BINARY]:
532         * lib/pipe2.c (pipe2) [O_BINARY]:
533         Use set_binary_mode, not setmode.
534         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
535         * modules/binary-io (Depends-on): Remove module indicator.
536         These last two bits undo the previous change to pipe2 and binary-io.
537
538 2013-07-09  Pádraig Brady  <P@draigBrady.com>
539
540         mountlist: add support for deallocating returned list entries
541         * lib/mountlist.c (free_mount_entry): A new exported function
542         to deallocate a mount list entry.
543         (read_file_system_list): Refactor to use the new deallocation function.
544         Suggested by Anton Ovchinnikov.
545
546 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
547
548         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
549         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
550         * lib/stdalign.in.h (_Alignas, _Alignof):
551         Port to FreeBSD 9.1, and to C11 and C++11.
552         (_Alignas): Also support ICC.
553         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
554         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
555
556 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
557
558         fnmatch: don't goto over declaration
559         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
560         undefined behavior for goto over a declaration.
561         Problem reported by Charlie Brown in
562         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
563
564         pipe2: decouple from binary-io a bit
565         This is for Emacs, which needs pipe2 but not binary-io.
566         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
567         * modules/binary-io (Depends-on): Add module indicator.
568
569 2013-07-03  Eric Blake  <eblake@redhat.com>
570
571         mgetgroups: relax license to LGPLv2+
572         * modules/getugroups (License): Change from GPLv3+.
573         * modules/mgetgroups (License): Likewise.
574         * modules/getgroups (License): Change from LGPLv3+.
575
576         xalloc-oversized: relax license to LGPLv2+
577         * modules/xalloc-oversized (License): Change from GPLv3+.
578
579         nproc: relax license to LGPLv2+
580         * modules/nproc (License): Change from LGPLv3+.
581
582         bootstrap: honor --no-git
583         * build-aux/bootstrap: Don't even try to use git when user is
584         pointing to a static checkout.
585
586 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
587
588         ignore-value: port to gcc -pedantic
589         * lib/ignore-value.h (ignore_value):
590         Port to gcc -pedantic, by using __extension__.
591         Reindent as per usual gnulib style nowadays.
592         Simplify GCC version check.
593
594 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
595
596         extern-inline: port to gcc -std=c89
597         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
598         Do not use __gnu_inline__ if pedantic and pre-C99.
599
600 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
601
602         doc: document extern-inline
603         * doc/extern-inline.texi: New file.
604         * doc/gnulib.texi (alloca-opt): Include it.
605         * m4/extern-inline.m4: Move some comments to documentation,
606         and others closer to what they describe.
607
608         doc: chatter less
609         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
610         (updated-stamp): Use it.  This causes 'make' to output just
611         one file name rather than zillions.
612
613         fflush, fseeko: port to musl cross-compiles
614         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
615         on some implementation that (1) is not known to be buggy,
616         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
617         cross-compiled to so we can't easily check for lack of
618         conformance.  This is for cross-compiling to musl.
619         Reported by Rich Felker in
620         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
621         * m4/fclose.m4 (gl_FUNC_FCLOSE):
622         * m4/fflush.m4 (gl_FUNC_FFLUSH):
623         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
624         Adjust to above change.
625         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
626         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
627         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
628         known not to work, or unknown.
629
630 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
631
632         msvc-inval: port to mingw-w64
633         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
634         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
635         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
636
637 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
638
639         getcwd-lgpl: port to Tru64
640         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
641         Problem reported by Steven M. Schweda in
642         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
643
644         tests: port large-fd POSIX spawn tests to OS X
645         Problem reported by Daiki Ueno in
646         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
647         * tests/test-posix_spawn_file_actions_addclose.c:
648         * tests/test-posix_spawn_file_actions_adddup2.c:
649         * tests/test-posix_spawn_file_actions_addopen.c:
650         Include <limits.h>, for OPEN_MAX, if available.
651         (big_fd): New static function.
652         (main): Use it.
653
654 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
655
656         tests/nap.h: use an adaptive delay to avoid ctime update issues
657         The recent change in nap.h (5191133e) decreased the probability of lost
658         races to about a third, however such problems could still be observed
659         in virtual machines and openSUSE's OBS.
660         Before, nap() detected the needed time once empirically and then used
661         that delay (together with a small correction multiplier) in further
662         calls.  This problem has been reported and discussed several times,
663         including guesses about possible kernel issues:
664         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
665         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
666         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
667         http://bugs.gnu.org/12820
668         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
669         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
670         Now, nap() avoids the race alltogether by verifying on a reference
671         file whether a timestamp difference has happened.
672         * tests/nap.h (nap_fd): Define file descriptor variable for the
673         witness file.
674         (nap_works): Change return value to bool.  Change passing
675         the old file's status by value instead of by reference as this function
676         does no longer update that timestamp; rename the function argument from
677         st to old_st.  Remove the local variables cdiff and mdiff because that
678         function now returns true/false instead of the precise delay.
679         (guess_delay): Remove function.
680         (clear_tmp_file): Add new function to close and unlink the witness file.
681         (nap): Instead of re-using the delay which has been calculated during
682         the first call, avoid the race by actually verifying that a timestamp
683         difference can be observed on the current file system.  Use an adaptive
684         approach for the delay to minimize execution time.  Assert that the
685         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
686         = 2^31 - 1 = 2.1s.
687         Use atexit to call clear_tmp_file when the process terminates.
688
689 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
690
691         sig2str: port to C++
692         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
693         Reported by Daniel J Sebald in
694         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
695
696 2013-05-30  Eric Blake  <eblake@redhat.com>
697
698         docs: mention cygwin shortcoming in <sys/un.h>
699         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
700
701         vasnprintf: silence mingw compiler warning
702         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
703
704 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
705
706         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
707         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
708         This fixes a porting bug I recently reintroduced in regex, and
709         some other instances that I discovered while testing the fix.
710         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
711         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
712         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
713         with an empty argument if this is a pedantic pre-C99 GCC.
714         * lib/verify.h: Do not use _Static_assert if this is a pedantic
715         pre-C11 GCC.
716
717         regex: adapt to locking regime instead of depending on pthread
718         Instead of depending on pthread, adapt to whatever thread
719         modules are in use.  Problem reported by Ludovic Courtès in
720         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
721         and by Mats Erik Andersson in
722         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
723         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
724         Support either the 'lock' module, or the 'pthread' module, or
725         no module.
726         (lock_lock, lock_unlock): New macros.
727         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
728         * modules/lock, modules/pthread (configure.ac): Add module indicator.
729         * modules/regex (Depends-on): Remove pthread.
730
731 2013-05-22  Eric Blake  <eblake@redhat.com>
732
733         getgroups: document portability issues
734         * doc/glibc-functions/initgroups.texi (initgroups): Mention
735         multithread safety.
736         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
737         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
738         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
739         getugroups.
740         * doc/posix-functions/getgroups.texi (getgroups): Mention
741         multithread safety and mgetgroups.
742
743 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
744
745         test-lchown, test-chown: also skip test if chown fails with EPERM
746         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
747         skip this test, to handle FAT file systems.
748         * tests/test-chown.h (test_chown): Likewise.
749
750 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
751
752         regex: fix dfa race in multithreaded uses
753         Problem reported by Ludovic Courtès in
754         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
755         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
756         New macros.  All uses of __libc_lock_define, __libc_lock_init
757         changed to use the first two of these.
758         (__libc_lock_lock, __libc_lock_unlock): New macros, for
759         non-glibc platforms.
760         (struct re_dfa_t): Define the lock unconditionally.
761         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
762         '#ifdef _LIBC"s.
763         * modules/regex (Depends-on): Add pthread, if we use the
764         included regex.
765
766         * lib/regcomp.c: Do actions that are not needed for glibc,
767         but may be needed elsewhere.
768         (regfree, re_compile_internal): Destroy the lock.
769         (re_compile_internal): Check for lock-initialization failure.
770
771         malloca: port to compilers that reject size-zero arrays
772         This fixes a bug introduced in my previous patch.
773         * lib/malloca.c (struct preliminary_header): Use an int
774         rather than a character array of size int; that's simpler.
775         (struct header): Remove, replacing with ...
776         (union header): New type.  This avoids the need for declaring a
777         character array of size zero, which is not allowed on some platforms.
778         All uses changed.
779
780 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
781
782         parse-datetime, tests: don't use "string" + int
783         Recent versions of 'clang' complain about C source code that
784         uses expressions of the form '"string literal" + integer',
785         I guess on the theory that it's confusing for readers who are
786         used to C++.  On those grounds I suppose it's OK to make this
787         minor style change.
788         * lib/parse-datetime.y (parse_datetime):
789         * tests/test-fchdir.c (main):
790         * tests/test-snprintf-posix.h (test_function):
791         * tests/test-snprintf.c (main):
792         * tests/test-vasnprintf-posix.c (test_function):
793         * tests/test-vasnprintf.c (test_function):
794         * tests/test-vsnprintf.c (main):
795         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
796         Rewrite '"str" + E' to '&"str"[E]'.
797
798 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
799
800         argmatch: port to C++
801         * lib/argmatch.h [__cplusplus]: Add extern "C".
802
803         argp: typo fix
804         * lib/argp-help.c: Typo in comment.
805
806 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
807
808         manywarnings: update for GCC 4.8.0
809         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
810         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
811         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
812         -Wmissing-noreturn, as they are duplicates of other warnings.
813         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
814         was documented to be flaky in earlier versions of GCC.
815
816         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
817         * tests/test-spawn.c (main):
818         * tests/test-sys_socket.c (main):
819         * tests/test-sys_wait.c (main):
820         Don't have a switch value that isn't covered by a case.
821
822         getaddrinfo-tests: port --enable-gcc-warnings to clang
823         * tests/test-getaddrinfo.c (simple):
824         Avoid casts from looser to stricter-aligned pointers.
825
826         thread: port --enable-gcc-warnings to clang
827         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
828         Include <signal.h>, to pacify a warning about pthread_sigmask.
829
830         stdio: use __REDIRECT for fwrite, fwrite_unlocked
831         * lib/stdio.in.h (fwrite):
832         When working around bug 11959, use __REDIRECT rather than '#define
833         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
834         fix the -Wunused-value issue with clang, and it works with GCC too.
835         Problem with targeting reported by Eric Blake in
836         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
837         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
838         debugging the fwrite issue.
839
840         stdio: port --enable-gcc-warnings to clang
841         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
842         since the GCC workaround for fwrite does not pacify clang.
843
844         sig2str: port --enable-gcc-warnings to clang
845         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
846
847         obstack: port --enable-gcc-warnings to clang
848         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
849         Avoid casts from looser to stricter-aligned pointers.
850
851         memchr2: port --enable-gcc-warnings to clang
852         * lib/memchr2.c (memchr2):
853         Avoid casts from looser to stricter-aligned pointers.
854
855         mbsstr: port --enable-gcc-warnings to clang
856         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
857         Avoid casts from looser to stricter-aligned pointers.
858
859         malloca: port --enable-gcc-warnings to clang
860         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
861         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
862
863         inttostr: port --enable-gcc-warnings to clang
864         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
865
866         warnings: port to clang
867         Problem reported by Daniel P. Berrange via Eric Blake in
868         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
869         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
870         (gl_WARN_ADD): Use it.
871
872 2013-05-11  Jim Meyering  <meyering@fb.com>
873
874         quotearg: do not read beyond end of buffer
875         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
876         end of an ARG for which no length was specified.  With an N-byte
877         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
878         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
879         via coreutils' misc/sort-debug-keys.sh test and detected by running
880         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
881         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
882         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
883         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
884         characters correctly."
885
886 2013-05-11  Daiki Ueno  <ueno@gnu.org>
887
888         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
889         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
890         compilation target is Mac OS X 10.6.
891         Problem reported by parafin and Andoni Morales in
892         <http://savannah.gnu.org/bugs/?37844> and
893         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
894
895 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
896
897         mkdir-p: remove assumptions about umask and mode
898         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
899         umask is 0, or that MODE is a subset of MODE_BITS.
900
901 2013-05-10  Eric Blake  <eblake@redhat.com>
902
903         maint.mk: catch more abuse of HAVE_DECL in syntax-check
904         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
905
906 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
907
908         deps: require Automake >= 1.9.6 in generated Makefile fragments
909
910         That is the same minimal version required in the DEPENDENCIES file.
911         Moreover, the old code generated a requirement of Automake >= 1.5,
912         and that is an insanely outdated version.
913
914         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
915         * tests/havelib/rpathlx/Makefile.am: Likewise.
916         * tests/havelib/rpathly/Makefile.am: Likewise.
917         * tests/havelib/rpathlyx/Makefile.am: Likewise.
918         * tests/havelib/rpathlz/Makefile.am: Likewise.
919         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
920         * tests/havelib/rpathx/Makefile.am: Likewise.
921         * tests/havelib/rpathy/Makefile.am: Likewise.
922         * tests/havelib/rpathz/Makefile.am: Likewise.
923
924 2013-05-08  Eric Blake  <eblake@redhat.com>
925
926         bootstrap: AC_INIT may have more than four parameters
927         * build-aux/bootstrap (extract_package_name): Correctly extract
928         non-empty tarname field.  Avoid range in regex.
929         Based on a report by Sami Kerola <kerolasa@iki.fi>.
930
931 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
932
933         qacl: port to MS-Windows port of GNU Emacs
934         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
935         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
936         port of GNU Emacs.  Problem reported by Eli Zaretskii in
937         <http://bugs.gnu.org/14295#14>.
938
939 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
940
941         acl: include quote.h
942         * lib/copy-acl.c: Include quote.h.
943         * lib/set-acl.c: Likewise.
944
945 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
946
947         fchownat, renameat, unlinkat: update statat dependencies
948         These modules use statat and lstatat, not fstatat; so depend on
949         the statat module, which was split out recently from fstatat.
950         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
951         * modules/renameat: Likewise.  Also delete fstat.
952         URL: http://bugs.gentoo.org/468790
953
954 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
955
956         Assume gnulib is checked out from Git, not CVS
957
958         In fact, access to the gnulib repository through CVS has been
959         disabled, or more precisely, got broken and was never restored; see:
960         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
961
962         Note that support for CVS is not removed completely and unthinkingly
963         by this change: only support for CVS checkouts of gnulib itself is
964         removed.  For example, the 'bootstrap' script still cater to .cvsingore
965         files and CVS directories, for the benefit of those poor gnulib clients
966         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
967
968         * gnulib-tool: Simplify accordingly.
969         * posix-modules: Likewise.
970         * MODULES.html.sh: Likewise.
971         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
972         repository.
973         * doc/gnulib-intro.texi: Likewise.
974         * doc/gnulib-readme.texi: Likewise.
975         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
976         sample '.gitignore' file rather than a sample '.cvsignore'.
977         * NEWS: Update.
978         * m4/extensions.m4: While at it, remove a comment mistakenly referring
979         to "CVS Autoconf" rather than "git Autoconf".
980
981 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
982
983         utimensat-tests, etc.: try to fix some races
984         Problem reported by Bernhard Voelker in
985         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
986         I don't know whether this patch fixes that race condition, but it
987         fixes *some* race conditions, so it should be a win.
988         * modules/chown-tests (Depends-on):
989         * modules/fchownat-tests (Depends-on):
990         * modules/fdutimensat-tests (Depends-on):
991         * modules/futimens-tests (Depends-on):
992         * modules/lchown-tests (Depends-on):
993         * modules/stat-time-tests (Depends-on):
994         * modules/utimens-tests (Depends-on):
995         * modules/utimensat-tests (Depends-on):
996         Depend on nanosleep, not usleep.
997         * modules/chown-tests (test_chown_LDADD):
998         * modules/lchown-tests (test_lchown_LDADD):
999         * modules/stat-time-tests (test_stat_time_LDADD):
1000         New macro.
1001         * modules/fchownat-tests (test_fchownat_LDADD):
1002         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1003         * modules/futimens-tests (test_futimens_LDADD):
1004         * modules/utimens-tests (test_utimens_LDADD):
1005         * modules/utimensat-tests (test_utimensat_LDADD):
1006         Add $(LIB_NANOSLEEP).
1007         * modules/stat-time-tests (Files): Add tests/nap.h.
1008         * tests/nap.h: Include <limits.h>, for INT_MAX.
1009         (lt_mtime): Remove.
1010         (diff_timespec): New function.
1011         (get_stat): Rename from get_mtime.  All callers changed.
1012         (nap_works): Determine the needed delay by inspecting the
1013         file system's timestamp jumps; this should be more reliable.
1014         Look at both mtime and ctime, and take the maximum of the two jumps.
1015         (nap_works, guess_delay):
1016         Return a nanosecond cound, not a microsecond count.
1017         All callers changed.
1018         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1019         failure.
1020         (nap): Multiply the guess by 1.125, to accommodate the case where
1021         the file system's clock is a bit slower than nanosleep's clock.
1022         * tests/test-stat-time.c (BASE): New macro.
1023         Include nap.h.
1024         (nap): Remove; nap.h now defines this.  This removes a duplicate
1025         implementation of 'nap'.
1026
1027         utimens, utimensat: work around Solaris UTIME_OMIT bug
1028         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1029         Linux kernel 2.6.32 does.  Work around it in the same way.
1030         * doc/posix-functions/futimens.texi (futimens):
1031         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1032         * lib/utimens.c (fdutimens, lutimens):
1033         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1034
1035         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1036         Formerly, it was your responsibility to do this for all Makefile.ams
1037         other than Gnulib's.  Now it's your responsibility to do it for
1038         Gnulib's Makefile.am, too.
1039         * NEWS: Document this.
1040         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1041
1042         acl: include errno.h to get errno
1043         Reported by Daiki Ueno in
1044         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1045         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1046
1047 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1048
1049         tests: don't assume getdtablesize () <= 10000000
1050         * modules/cloexec-tests:
1051         * modules/dup2-tests:
1052         * modules/dup3-tests:
1053         * modules/nonblocking-tests:
1054         * modules/posix_spawn_file_actions_addclose-tests:
1055         * modules/posix_spawn_file_actions_adddup2-tests:
1056         * modules/posix_spawn_file_actions_addopen-tests:
1057         * modules/unistd-safer-tests:
1058         Depend on the getdtablesize module.
1059         * tests/test-cloexec.c:
1060         * tests/test-dup-safer.c:
1061         * tests/test-dup2.c:
1062         * tests/test-dup3.c:
1063         * tests/test-fcntl.c:
1064         * tests/test-nonblocking.c:
1065         * tests/test-posix_spawn_file_actions_addclose.c:
1066         * tests/test-posix_spawn_file_actions_adddup2.c:
1067         * tests/test-posix_spawn_file_actions_addopen.c:
1068         Don't assume getdtablesize () <= 10000000.
1069
1070 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1071
1072         extern-inline: work around bug in Sun c99
1073         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1074         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1075
1076 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1077
1078         qacl: new module, broken out from the acl module
1079         This is for GNU Emacs, which wants the acl functions but does
1080         not want 'error' invoked when they fail.
1081         * lib/acl-internal.h: Do not include error.h, quote.h.
1082         (ENOSYS, ENOTSUP): Remove; no longer needed.
1083         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1084         * lib/acl.h: Include <stdbool.h>.
1085         (acl_errno_valid): New function.
1086         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1087         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1088         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1089         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1090         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1091         * lib/file-has-acl.c (file_has_acl):
1092         * lib/qcopy-acl.c (qcopy_acl):
1093         * lib/qset-acl.c (qset_acl):
1094         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1095         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1096         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1097         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1098         Add lib/set-acl.c.
1099         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1100         Add qacl.
1101         (configure.ac): Move gl_FUNC_ACL to qacl module.
1102         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1103         Rename set-mode-acl.c to set-acl.c.
1104         * lib/acl-errno-valid.c: New file.
1105         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1106         copy_acl function remains in copy-acl.c.
1107         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1108         (_): Remove; not needed.
1109         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1110         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1111         * modules/qacl: New file, moved from the old modules/acl.
1112         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1113         Remove set-mode-acl.c, copy-acl.c.
1114         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1115
1116         alignof, intprops, malloca: port better to IBM's C compiler
1117         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1118         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1119         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1120
1121 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1122
1123         wctype-h: fix gettext link error on mingw
1124         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1125         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1126         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1127         rpl_towupper and rpl_towupper.
1128
1129 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1130
1131         regex-tests, regex: allow glibc re_search behavior
1132         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1133         re_search input data to make the multi-character collating element
1134         in it clearly visible, and treat re_search return code 0 as valid.
1135         * m4/regex.m4 (gl_REGEX): Likewise.
1136
1137 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1138
1139         stdalign: doc fix
1140         * doc/posix-headers/stdalign.texi (stdalign.h):
1141         Gnulib doesn't support '_Alignof expr'.
1142
1143 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1144
1145         stdalign: port to stricter ISO C11
1146         ISO C11 says that _Alignof's operand must be a parenthesized type.
1147         Problem reported by Eli Zaretskii in
1148         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1149         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1150         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1151
1152 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1153
1154         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1155         Problem reported by Marco Atzeri in
1156         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1157         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1158         Simply delegate to the system <sys/select.h> in this case too.
1159         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1160         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1161         be needed on Solaris either.
1162         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1163         Simply delegate to the system <sys/time.h> in this case.
1164
1165 2013-03-19  Karl Berry  <karl@gnu.org>
1166
1167         * build-aux/gnupload: check for erroneous (with gnupload) use of
1168         ftp-upload.gnu.org, tweak help.
1169
1170 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1171
1172         copy-file, rpmatch: fix problems found by cppcheck
1173         Reported by Arno Onken in
1174         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1175         * lib/rpmatch.c (try): Fix memory leak.
1176         * lib/copy-file.c: Include "ignore-value.h".
1177         (qcopy_file_preserving): Ignore chown value.
1178         * modules/copy-file (Depends-on): Add ignore-value.
1179
1180 2013-01-27  Jim Meyering  <jim@meyering.net>
1181
1182         prefix-gnulib-mk: give better diagnostics
1183         * build-aux/prefix-gnulib-mk: Don't just "die".
1184         Give better diagnostics upon failure.
1185
1186 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1187
1188         putenv: port to Solaris 10
1189         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1190         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1191         is not what is wanted here.
1192         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1193         declaration, not for its existence.
1194
1195 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1196
1197         mktime: fix configure typo
1198         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1199
1200 2013-03-12  Eric Blake  <eblake@redhat.com>
1201
1202         regex-tests: skip UTF-8 test on mingw
1203         * modules/regex-tests (Depends-on): Add localcharset.
1204         * tests/test-regex.c (main): Use it to skip test on mingw.
1205
1206 2013-03-11  Eric Blake  <eblake@redhat.com>
1207
1208         tests: make it easier to bypass alarm time in debugger
1209         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1210         * tests/test-memmem.c (main): Likewise.
1211         * tests/test-passfd.c (main): Likewise.
1212         * tests/test-ptsname.c (main): Likewise.
1213         * tests/test-ptsname_r.c (main): Likewise.
1214         * tests/test-strcasestr.c (main): Likewise.
1215         * tests/test-strstr.c (main): Likewise.
1216
1217         regex: port to mingw's recent addition of undeclared alarm
1218         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1219         exists but still doesn't work in newer mingw.
1220         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1221         not existence.  Ensure SIGALRM is not trapped.
1222         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1223         * m4/regex.m4 (gl_REGEX): Likewise.
1224         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1225         * tests/test-regex.c (main): Use correct probe for alarm.
1226
1227         putenv: avoid compilation warning on mingw
1228         * lib/putenv.c (_unsetenv): Protect variable declaration.
1229         (putenv): Fix indentation.
1230
1231 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1232
1233         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1234         * lib/unistd.in.h: be careful not to include un-needed system
1235         stdlib.h from here, because that prevents gnulib stdlib.h from
1236         defining rpl_strtod correctly.
1237
1238 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1239
1240         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1241         changesets, but for the 'precision 0' test.
1242         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1243         round-to-even, since POSIX says rounding is implementation-defined
1244         and OS X 10.8.2 rounds 1.51 to 1 here.
1245
1246         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1247         changeset.
1248         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1249         round-to-even, since POSIX says rounding is implementation-defined
1250         and OS X 10.8.2 rounds 1.5 to 1 here.
1251
1252 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1253
1254         vasnprintf-posix-tests: allow rounding 1.5 to 1
1255         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1256         round-to-even, since POSIX says rounding is implementation-defined
1257         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1258         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1259
1260         bootstrap: port to FreeBSD
1261         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1262         that treat '--' differently.  Reported by Mats Erik Andersson in
1263         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1264
1265 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1266
1267         regex: rename remaining __attribute calls to __attribute__.
1268         2012-02-25 changed definition of __attribute, but left some uses
1269         unchanged, preventing compilation of regex module on most non-gcc
1270         environments.
1271         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1272         (lookup_collation_sequence_value, build_range_exp)
1273         (build_collating_symbol): Set attributes with newly renamed
1274         __attribute__ decorator.
1275         * lib/regex_internal.c (re_string_peek_byte_case)
1276         (re_node_set_compare, re_node_set_contains): Likewise.
1277         * lib/regexec.c (acquire_init_state_context): Likewise.
1278
1279 2013-03-06  Bruno Haible  <bruno@clisp.org>
1280
1281         execute: Revert last change, but use a different condition.
1282         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1283         on Windows.
1284
1285 2013-03-05  Eric Blake  <eblake@redhat.com>
1286
1287         execute: drop dead code
1288         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1289
1290 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1291
1292         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1293         * m4/non-recursive-gnulib-prefix-hack.m4
1294         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1295         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1296         <http://bugs.gnu.org/10305#237>.
1297
1298 2013-03-04  Eric Blake  <eblake@redhat.com>
1299
1300         test-getsockopt: avoid compiler warning
1301         * tests/test-getsockopt.c (includes): Ensure close is declared.
1302
1303 2013-03-02  Bruno Haible  <bruno@clisp.org>
1304
1305         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1306         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1307
1308 2013-03-02  Bruno Haible  <bruno@clisp.org>
1309
1310         gettext: Update to version 0.18.2.
1311         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1312         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1313                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1314
1315 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1316
1317         regex: merge patches from libc
1318
1319         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1320         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1321         All uses changed.
1322         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1323         (re_string_wchar_at, re_string_elem_size_at):
1324         Mark function as possibly unused.
1325
1326         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1327         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1328         elements compare against the byte sequence of it, not its name.
1329
1330 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1331
1332         putenv: port better to native Windows
1333         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1334         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1335         (_unsetenv): Use _putenv if available.
1336         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1337         a bit less likely to cause damage.
1338         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1339         Fix the wrong value with SetEnvironmentVariable.
1340         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1341         code better.
1342
1343 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1344
1345         regex: ignore old-style-definition warnings
1346         * lib/regex.c: Add pragma to ignore these warnings.
1347         Problem reported for GNU tar by Pavel Raiskup.
1348
1349 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1350
1351         getcwd: support coreutils better
1352         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1353         but this might not be correct in coreutils, which disables
1354         the raw decl checks.  Problem reported by Nagendra in
1355         <http://bugs.gnu.org/10305#192>.
1356         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1357         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1358         Test the getcwd function, not any macro, since getcwd.c wants the
1359         function.
1360         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1361         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1362         compile, as might happen if there's a macro but no function.
1363
1364         strtod: support coreutils better
1365         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1366         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1367         disables the raw decl checks.  This assumes there is an underlying
1368         strtod, but that's a safe assumption these days.
1369         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1370
1371         mountlist: port to HP NonStop
1372         Reported by Joachim Schmitz in
1373         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1374         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1375         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1376
1377 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1378
1379         extern-inline: avoid compilation error with HP-UX cc
1380         Reported by Richard Lloyd in
1381         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1382         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1383         Suppress extern inline with HP-UX cc.  This should be safe,
1384         though it may hurt performance.  Perhaps someone with some HP-UX
1385         experience can come up with a higher-performance fix.
1386
1387 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1388
1389         putenv: fix heap corruption with mixed putenv/_putenv
1390         Problem reported by Michael Goffioul in
1391         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1392         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1393         Rely on _putenv to allocate the new environment.
1394         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1395         * modules/putenv (configure.ac): Use it.
1396
1397 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1398
1399         unsetenv etc.: port to Solaris 11 + GNU Emacs
1400         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1401         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1402         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1403         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1404         idea but is too painful to fix right now), and without this gnulib
1405         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1406         compiling unsetenv.c on Solaris 11.  Fix the problem for
1407         unsetenv.c, and fix other similar occurrences.
1408
1409 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1410
1411         secure_getenv: fix C++ declaration typo
1412         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1413         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1414         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1415
1416 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1417
1418         careadlinkat: stop exporting careadlinkatcwd
1419         Only Emacs used it directly, and Emacs no longer needs it.
1420         * NEWS: Document this simplification.
1421         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1422         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1423         for readlink.
1424         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1425         Don't include stdlib.h; no longer needed.
1426         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1427         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1428         * modules/areadlink (Depends-on): Add readlink.
1429         (Maintainer): Add self.
1430         * modules/careadlinkat (Depends-on): Remove readlink.
1431
1432         extensions: port better to HP-UX
1433         This is merged from git Autoconf.
1434         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1435         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1436         so that it's compatible with the value used when compiling.
1437
1438         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1439         Problem reported by Mats Erik Andersson in
1440         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1441         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1442         openpty function exists, not merely when we intend to replace it.
1443         This corrects the 2013-01-31 patch, which mistakenly defined
1444         HAVE_OPENPTY even on hosts that lacked it.
1445
1446 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1447
1448         secure_getenv: fix include typo
1449         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1450
1451         secure_getenv: port better to FreeBSD and Solaris
1452         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1453         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1454         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1455         This works better on BSDish platforms.
1456         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1457         Test for issetugid if __secure_getenv is missing.
1458
1459 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1460
1461         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1462         Some of these changes are merged in from git Autoconf.
1463         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1464         When deciding whether to define _XOPEN_SOURCE, inspect the
1465         preprocessor macro __hpux instead of the more-heavyweight
1466         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1467         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1468         as the key for __EXTENSIONS__.
1469
1470         unistd: avoid namespace pollution on non-glibc systems
1471         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1472         This avoids namespace pollution on non-glibc systems, by causing
1473         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1474         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1475         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1476
1477 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1478
1479         tmpdir: use secure_getenv
1480         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1481         Define to secure_getenv, not getenv.
1482         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1483         as that's now secure_getenv's job.
1484         * modules/tmpdir (Depends-on): Add secure_getenv.
1485
1486         tempname: use secure_getenv
1487         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1488         Define to secure_getenv, not getenv.
1489         * modules/tempname (Depends-on):
1490         Add secure_getenv.
1491
1492         secure_getenv: new module
1493         * MODULES.html.sh (Extra functions based on ANSI C 89):
1494         Add secure_getenv.
1495         * doc/glibc-functions/secure_getenv.texi: New file.
1496         * doc/gnulib.texi: Include it.
1497         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1498         New files.
1499         * lib/stdlib.in.h (secure_getenv): New decl.
1500         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1501         * modules/stdlib (stdlib.h):
1502         Add secure_getenv checks.
1503
1504 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1505
1506         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1507         Reported for OS X 10.8.2 by Assaf Gordon in
1508         <http://bugs.gnu.org/13516>.
1509         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1510         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1511         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1512         so that they can be kept in sync more easily.  Avoid PATH_MAX
1513         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1514         mkdir or chdir failure.
1515         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1516         lib/getcwd.c.
1517         (test_abort_bug): Do not test for the deep directory bug unless we
1518         have openat support.  Avoid PATH_MAX test on the Hurd.
1519
1520         regex-tests, regex: fix bug: memset undeclared
1521         * tests/test-regex.c: Don't include regex.h twice.  Include
1522         string.h, to declare memset.  Christensen's report also mentioned
1523         this issue.
1524         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1525         test-regex.c, to avoid future problems like this.  Remove
1526         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1527         twice.
1528
1529         regex-tests: fix link errors on older Solaris
1530         These need to link with @LIBINTL@ to get libintl_gettext.
1531         Problem reported by Tom G. Christensen in
1532         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1533         * modules/regex-tests (test_regex_LDADD): New macro.
1534
1535 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1536
1537         regex-tests: new module
1538         * modules/regex-tests, tests/test-regex.c: New files.
1539
1540         regex: fix off-by-one error in configure test
1541         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1542
1543 2013-01-31  Eric Blake  <eblake@redhat.com>
1544
1545         regex: avoid infinite configure test
1546         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1547
1548 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1549
1550         openpty: fix bug where HAVE_OPENPTY wasn't defined
1551         See the thread starting at:
1552         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1553         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1554         openpty function exists, not merely when we intend to replace it.
1555
1556 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1557
1558         sys_time: port to Solaris 2.6
1559         There is a circularity problem on Solaris 2.6, where <time.h> includes
1560         <sys/time.h> for struct timespec.  The include nesting is gnulib
1561         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1562         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1563         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1564         <sys/siginfo.h>; the last, innermost file needs struct
1565         timestruc_t, which is defined in <sys/time.h>, which has not been
1566         fully parsed.  Problem reported by Tom G. Christensen in
1567         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1568         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1569         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1570         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1571         uses split double-inclusion guards.
1572
1573 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1574
1575         regex: test for buffer overrun
1576         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1577         for the just-fixed regex bug.
1578
1579 2013-01-29  Andreas Schwab  <schwab@suse.de>
1580
1581         regex: fix buffer overrun in regexp matcher [BZ #15078]
1582         * lib/regexec.c (extend_buffers): Add parameter min_len.
1583         (check_matching): Pass minimum needed length.
1584         (clean_state_log_if_needed): Likewise.
1585         (get_subexp): Likewise.
1586
1587 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1588
1589         mountlist: don't consider "devtmpfs" as dummy
1590         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1591         as there is storage associcated with it.
1592
1593 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1594
1595         futimens-tests, utimens-tests: Depend on gettext.
1596         This works around a problem introduced in my 2013-01-12 patch,
1597         which added @LIBINTL@ to these modules.
1598         * modules/futimens-tests (Depends-on):
1599         * modules/utimens-tests (Depends-on): Add gettext.
1600
1601 2013-01-26  Eric Blake  <eblake@redhat.com>
1602
1603         test-getpeername: fix typo
1604         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1605
1606 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1607
1608         bootstrap: remove the need for a sorted .gitignore file
1609         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1610         rename to insert_if_absent(), so that we don't need or generate
1611         a sorted .gitignore file.  We do require a .gitignore with no
1612         existing duplicate entries and enforce that.
1613         (sort_patterns): Remove this function as we now use the simpler
1614         technigue of inserting blacklist entries at the top of the file,
1615         assuming gnulib won't be inserting !whitelist entries.
1616
1617 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1618
1619         readlinkat: don't depend on gl_FUNC_OPENAT
1620         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1621         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1622         renameat.m4, symlinkat.m4; but one thing at a time.
1623
1624         statat: new module, split out from fstatat
1625         GNU Emacs needs the POSIX-specified fstatat, but not the
1626         gnulib-specified statat and lstat.  Split the latter two into a
1627         new module 'statat'.
1628         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1629         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1630         Rename from FSTATAT_INLINE. All uses changed.
1631         * modules/fstatat (Files): Remove lib/statat.c.
1632         (gl_MODULE_INDICATOR([fstatat])): Remove.
1633         (lib_SOURCES): Remove.
1634         (Maintainer): Add self.
1635         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1636         * tests/test-fstatat.c (BASE): Don't define if already defined.
1637         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1638
1639 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1640
1641         tests: don't assume fd 99 is closed
1642         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1643         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1644         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1645         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1646         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1647         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1648         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1649         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1650         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1651         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1652         * tests/test-fwrite.c, tests/test-getpeername.c:
1653         * tests/test-getsockname.c, tests/test-getsockopt.c:
1654         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1655         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1656         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1657         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1658         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1659         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1660         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1661         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1662         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1663         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1664         Close file descriptor 99, instead of assuming it's already closed.
1665
1666 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1667
1668         stpncpy: port to OS X 10.8
1669         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1670         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1671
1672 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1673
1674         unistd: port to recent mingw
1675         * lib/unistd.in.h: Remove special invocation convention for mingw,
1676         which breaks for the latest mingw version.  See John W. Eaton in
1677         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1678
1679         largefile: port better to Mac OS X 10.5
1680         This patch is backported from Autoconf git.
1681         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1682         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1683         with ino_t size being different for configuration time versus
1684         build/run time.  Problem reported by PHO in
1685         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1686
1687 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1688
1689         doc: clarify -Werror
1690         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1691         clarify that it's intended for developers, not for ordinary builds,
1692         and mention --enable-gcc-warnings as one possible use.
1693
1694 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1695
1696         stdint: fix build with Android's Bionic fox x86
1697         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1698         was already included as _SSIZE_T_DEFINED_ might also be defined
1699         in include/machine/_types.h, which is included by stdio.h
1700
1701 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1702
1703         net_if-tests: port to Solaris 7 + GCC 3.4.6
1704         Problem reported by Tom G. Christensen in
1705         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1706         * tests/test-net_if.c (ni): Move to next the code that uses it,
1707         so that it's declared only if needed.
1708
1709 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1710
1711         net_if-tests: port to older Solaris
1712         Problem reported by Tom G. Christensen in
1713         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1714         * modules/net_if-tests (NET_IF_LIB): New substitution.
1715         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1716         (HAVE_IF_NAMEINDEX): New C macro.
1717         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1718
1719         system-quote-tests: port to older Solaris
1720         Problem reported by Tom G. Christensen in
1721         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1722         * tests/test-system-quote-child.c (fopen, fread): Undef.
1723
1724         c-xvasprintf etc.: fix link errors on older Solaris
1725         These need to link with @LIBINTL@ to get libintl_gettext.
1726         Problem reported by Tom G. Christensen in
1727         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1728         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1729         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1730         * modules/futimens-tests (test_futimens_LDADD):
1731         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1732
1733 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1734
1735         locale: port to Solaris 2.6 and 7 + GNU gettext
1736         * lib/locale.in.h: Just include_next <locale.h> when
1737         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1738         when combining the localename module with GNU gettext 0.18.2.
1739         Problem reported by Tom G. Christensen in
1740         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1741
1742 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1743
1744         stdlib: port to Solaris 2.6
1745         Also, the code worked on Solaris 7 through 9 only by accident.
1746         Problem reported by Tom G. Christensen in
1747         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1748         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1749         simply include the system stdlib.h.
1750         * lib/getopt.in.h (__need_system_stdlib_h):
1751         * lib/pthread.in.h (__need_system_stdlib_h):
1752         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1753         Define when including <stdlib.h>, to avoid problems at least for
1754         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1755         with the system stdlib.h.
1756
1757 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1758
1759         doc: update main copyright year
1760         * doc/gnulib.texi: Update copyright date.
1761
1762         doc: improve ISO 8601 discussion
1763         * doc/parse-datetime.texi (Combined date and time of day items):
1764         Specify more carefully what formats are supported and what is
1765         done with excess precision.
1766
1767 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1768
1769         doc: avoid small caps
1770         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1771         they're more trouble than they're worth.  Suggested by Karl Berry
1772         in <http://bugs.gnu.org/13360>.
1773
1774         regex: conform to strict C
1775         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1776         From Aharon Robbins.
1777
1778         gnulib-tool: fix incompatibility with autopoint 0.18.2
1779         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1780         Problem reported by Tom G. Christensen in
1781         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1782
1783 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1784
1785         fprintftime: bring back and reword fwrite comment
1786         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1787
1788         stdio: remove now-unnecessary stdio.c
1789         Since stdio.in.h no longer uses inline functions, we no longer
1790         need to compile the extern versions.
1791         * lib/stdio.c: Remove.
1792         * modules/stdio (Files): Remove lib/stdio.c.
1793         (lib_SOURCES): Remove.
1794
1795         unicodeio: depend on stdio, not ignore-value
1796         * lib/unicodeio.c: Do not include ignore-value.h.
1797         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
1798         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
1799
1800         fprintftime: depend on stdio, not ignore-value
1801         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
1802         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
1803         since the stdio module arranges to silence that warning now.
1804         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
1805
1806 2012-10-04  Simon Josefsson  <simon@josefsson.org>
1807
1808         stdint-tests: Fix expanded-before-required-warning.
1809         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
1810
1811 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1812
1813         fwrite: silence __wur only for older glibc versions
1814         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
1815         This will help us remove this workaround some time in the far future.
1816
1817 2013-01-03  Eric Blake  <eblake@redhat.com>
1818
1819         fwrite: silence __wur without using inline
1820         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
1821         just gcc, and in a way that avoids inline issues.
1822         * modules/stdio (Depends-on): Drop extern-inline.
1823
1824 2013-01-03  Jim Meyering  <jim@meyering.net>
1825
1826         update-copyright: avoid copyright notice date corruption
1827         Given a sequence of copyright year numbers in which the final
1828         one was a two-digit number that happened to be a substring of
1829         a preceding four-digit year number, we would mistakenly update
1830         the substring (from two- to four-digit) rather than the two-digit
1831         number at the end, which, combined with the addition of the current
1832         4-digit year number would yield two 5-digit year numbers, e.g.,
1833         here, it would convert the first "99" to "1999, 2013" rather than
1834         the final one:
1835           1991, 99
1836           11999, 20131, 1999
1837         * build-aux/update-copyright: Tighten a regexp.
1838         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
1839         Reported by Joseph Myers in
1840         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
1841
1842 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1843
1844         regex: omit needless signed-pointer casts
1845         * lib/regcomp.c (build_charclass, build_charclass_op):
1846         Use char *, not unsigned char *, for class name and extra.
1847         The char values are always nonnegative so there's no need to
1848         insist on unsigned char * here, and using char * removes the need
1849         for casts.  Reported by Aharon Robbins in
1850         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1851
1852         regex: support Gawk, which never uses alloca
1853         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1854         Do not include in this case.  Gawk doesn't supply a substitute
1855         alloca.h and doesn't need one.
1856
1857         regex: port __libc_lock_define usage to C89
1858         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1859         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1860         does not conform to C89, as it has an empty macro argument.
1861         Reported by Aharon Robbins in
1862         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1863
1864 2013-01-01  Eric Blake  <eblake@redhat.com>
1865
1866         maint: update all copyright year number ranges
1867         Run "make update-copyright".
1868
1869         version-etc: bump copyright year reported in --version
1870         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1871
1872 2012-12-31  Eric Blake  <eblake@redhat.com>
1873
1874         sigprocmask-tests: skip test if pid is unexpectedly large
1875         * tests/test-sigprocmask.c (main): Add range check.
1876
1877         git-version-gen: avoid test -z portability glitch
1878         * build-aux/git-version-gen: Prefer portable test spelling, since
1879         git-version-gen is run on more than just developer machines.
1880
1881 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1882
1883         git-version-gen: add --fallback option to use if git is not present
1884         * build-aux/git-version-gen: Add support for the new option --fallback,
1885         which comes into play when there is no $tarball_version_file and
1886         git is not working.
1887         (scriptversion): Update.
1888
1889         maint.mk: handle missing git with more grace
1890         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1891         Quietly proceed if git is not present.
1892
1893 2012-12-31  Eric Blake  <eblake@redhat.com>
1894
1895         dup2: work around cygwin bug
1896         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1897         * lib/dup2.c (rpl_dup2): Work around it.
1898         * doc/posix-functions/dup2.texi (dup2): Document it.
1899
1900 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1901
1902         regex: remove unnecessary dependency on localcharset.h
1903         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1904         hasn't been needed for years.
1905         * modules/regex (Depends-on): Remove localcharset.
1906
1907         regex: revert single-byte change
1908         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1909         to this function.  This was alredy fixed in a different way, at
1910         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1911         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1912         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1913
1914         regex: simplify based on Gawk version
1915         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1916         Reported by Aharon Robbins in
1917         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1918
1919 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1920
1921         regex: check that pattern char is single-byte
1922         Reported by Aharon Robbins in
1923         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1924         * lib/regexec.c (check_node_accept_bytes):
1925         Return 0 if the pattern string has a multibyte character here.
1926
1927         regex: implement rational ranges
1928         Reported by Aharon Robbins in
1929         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1930         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1931         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1932         Implement rational ranges.
1933
1934         regex: avoid redefining __wctype
1935         Reported by Aharon Robbins in
1936         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1937         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1938         #undef before defining.
1939
1940         regex: port to hosts where malloc (0) == NULL
1941         Reported by Aharon Robbins in
1942         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1943         * lib/regex_internal.c (re_node_set_alloc):
1944         Don't assume that malloc (0) yields nonnull.
1945         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1946         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1947         * modules/regex (Files): Add m4/eealloc.m4.
1948
1949         regex: port to C89
1950         Reported by Aharon Robbins in
1951         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1952         * lib/regcomp.c (init_word_char): Declaration before statement.
1953
1954         regex: merge glibc changes
1955         Also, copy the license wording from glibc.  This simplifies
1956         merging changes.  gnulib-tool will change the wording to GPL as
1957         appropriate, when importing it to other packages.  The only
1958         glibc change made since the last merge, which needs merging, is:
1959         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1960         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1961
1962         * users.txt: Add Emacs.
1963
1964         doc: omit mention of version when not needed
1965         * doc/gnulib-intro.texi (Portability and Application Code):
1966         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1967         Don't mention particular dates or versions when not necessary, so
1968         that the documentation won't go out of date so quickly.
1969
1970         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1971
1972 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1973
1974         bootstrap: pass --force to autoreconf.
1975         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1976         Add "--force" so that Automake's ylwrap and other such tools
1977         be updated at each bootstrap invocation.
1978         Use it.
1979
1980 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1981
1982         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1983         The earlier patch forgot to update one of the #if conditions, causing
1984         a problem on Debian testing i386 reported by Mats Erik Andersson
1985         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1986         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1987         (__argp_fmtstream_puts, argp_fmtstream_puts)
1988         (__argp_fmtstream_write, argp_fmtstream_write)
1989         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1990
1991         * doc/gnulib-readme.texi: Minor fixups.
1992         (Portability guidelines): Modernize URLs.  Remove some repetition.
1993         (Indent with spaces not TABs): Reword to avoid too-long lines.
1994         Remove some '@ifset standalone' stuff that isn't used.
1995
1996         * doc/gnulib-readme.texi (Portability guidelines):
1997         ctype.h, not ctime.h.
1998
1999         Correct name of POSIX.1-2001.
2000         * doc/posix-functions/fgetc.texi (fgetc):
2001         * doc/posix-functions/fgets.texi (fgets):
2002         * doc/posix-functions/fread.texi (fread):
2003         * doc/posix-functions/fscanf.texi (fscanf):
2004         * doc/posix-functions/getc.texi (getc):
2005         * doc/posix-functions/getchar.texi (getchar):
2006         * doc/posix-functions/scanf.texi (scanf):
2007         POSIX.1-2001, not POSIX-2001.
2008
2009         doc: move README into manual
2010         * README: Move contents to new file doc/gnulib-readme.texi.
2011         Replace with a one-line summary.
2012         * doc/gnulib.texi (Brief Overview): New section,
2013         with old intro preface.  Include gnulib-readme.texi for contents.
2014         (Philosophy): Rename from "Introduction", since this
2015         section no longer introduces the rest.  Write a new preface.
2016         * doc/gnulib-readme.texi: New file, with the old contents of
2017         README texinfo-ized.  This way, the README info appears
2018         in the online and printed manual.
2019
2020 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2021
2022         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2023         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2024         c_vasprintf() prototype.
2025
2026 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2027
2028         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2029         * lib/c-vasprintf.h: Remove stray semicolon.
2030
2031 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2032
2033         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2034         It is obsolete and is planned to be removed from Automake 1.14; see
2035         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2036         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2037         (installdirs-data, installdirs-data-yes):
2038         Use $(MKDIR_P), not $(mkdir_p).
2039         * m4/intl.m4 (AM_INTL_SUBDIR):
2040         * m4/po.m4 (AM_PO_SUBDIRS):
2041         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2042
2043 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2044
2045         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2046         On this platform, we are not optimizing but we are using
2047         the substitute for extern inlines, so compile as if
2048         C99-style extern inline, or a substitute, is available.
2049         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2050         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2051         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2052         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2053         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2054         Declare as ARGP_FS_EI, not as extern.
2055         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2056         (__option_is_short, _option_is_end, __option_is_end)
2057         [!_LIBC && __USE_EXTERN_INLINES]:
2058         Declare as ARGP_EI, not as extern.
2059
2060 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2061
2062         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2063         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2064         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2065         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2066         ...), as the latter is fatal with older Autoconfs.
2067         Problem reported and fix suggested by Eric Blake in thread starting at
2068         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2069
2070 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2071
2072         AC_PROG_MKDIR_P: don't workaround if not buggy
2073         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2074         Define only for Autoconf versions before 2.62.
2075         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2076         undocumented m4_PACKAGE_VERSION, for consistency with the
2077         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2078         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2079         was introduced in 2.62.
2080
2081 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2082
2083         New 'c-*printf' modules for formatted output in C locale.
2084
2085         New module 'c-vasnprintf'.
2086         * modules/c-vasnprintf: New file.
2087         * lib/c-vasnprintf.c: New file.
2088         * lib/c-vasnprintf.h: New file.
2089
2090         New module 'c-snprintf'.
2091         * modules/c-snprintf: New file.
2092         * modules/c-snprintf-tests: New file.
2093         * lib/c-snprintf.c: New file.
2094         * lib/c-snprintf.h: New file.
2095         * tests/test-c-snprintf.c: New file.
2096         * tests/test-c-snprintf.sh: New file.
2097
2098         New module 'c-vsnprintf'.
2099         * modules/c-vsnprintf: New file.
2100         * modules/c-vsnprintf-tests: New file.
2101         * lib/c-vsnprintf.c: New file.
2102         * lib/c-vsnprintf.h: New file.
2103         * tests/test-c-vsnprintf.c: New file.
2104         * tests/test-c-vsnprintf.sh: New file.
2105
2106         New module 'c-vasprintf'.
2107         * modules/c-vasprintf: New file.
2108         * modules/c-vasprintf-tests: New file.
2109         * lib/c-asprintf.c: New file.
2110         * lib/c-vasprintf.c: New file.
2111         * lib/c-vasprintf.h: New file.
2112         * tests/test-c-vasprintf.c  +: New file.
2113         * tests/test-c-vasprintf.sh: New file.
2114
2115         New module 'c-xvasprintf'.
2116         * modules/c-xvasprintf: New file.
2117         * modules/c-xvasprintf-tests: New file.
2118         * lib/c-xasprintf.c: New file.
2119         * lib/c-xvasprintf.c: New file.
2120         * lib/c-xvasprintf.h: New file.
2121         * tests/test-c-xvasprintf.c: New file.
2122         * tests/test-c-xvasprintf.sh: New file.
2123
2124 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2125
2126         argp: better 'inline'
2127         Use extern-inline module to declare extern inline functions.
2128         This avoids some bogus warning diagnostics.  Problem discovered
2129         when modifying GNU tar to use the manywarnings module.
2130         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2131         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2132         Define based on extern-inline.
2133         * modules/argp (Depends-on): Add extern-inline.
2134
2135 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2136
2137         filemode, sys_stat: Handle MPX files a la AIX.
2138         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2139         * lib/sys_stat.in.h (S_ISMPX): New macro.
2140         * tests/test-sys_stat.c: Add tests for MPX files.
2141
2142 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2143
2144         x-to-1: honor $PERL
2145         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2146         a chance to use his preferred version of Perl.  This is typically
2147         required by Darwin users whose default /usr/bin/perl does not have all
2148         the libraries required by help2man, and who need to use their MacPorts
2149         installation of Perl instead.
2150
2151 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2152
2153         gnu-web-doc-update: add all the new files, even in new directories
2154         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2155         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2156         Use it.
2157         (main): Don't use cvsutils to get the list of unknown files,
2158         just add all the existing files and directories.
2159
2160 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2161
2162         gnu-web-doc-update: improve --help
2163         * build-aux/gnu-web-doc-update: Move comments into --help.
2164
2165 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2166
2167         mountlist: recognize more "dummy" file systems
2168         * lib/mountlist.c (ME_DUMMY_0):
2169         Add these dummy FS names to the list:
2170         - "debugfs" virtual filesystem for kernel debugging
2171         - "devpts" PTY slave filesystem
2172         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2173         - "fusectl" control filesystem for FUSE
2174         - "mqueue" enumerates POSIX message queues
2175         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2176         - "sysfs" is for exporting kernel objects
2177         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2178
2179 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2180
2181         extern-inline: avoid incompatibility with Darwin Libc
2182         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2183         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2184         Problem reported by Akim Demaille in
2185         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2186
2187 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2188
2189         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2190         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2191         let it handle password prompting.
2192
2193 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2194
2195         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2196         * lib/canonicalize.c (canonicalize_filename_mode):
2197         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2198         fetching the current directory.  Don't overrun the beginning of
2199         rpath if there's no slashes after the MS-Windows drive letter.
2200
2201 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2202
2203         maint.mk: avoid extra forks
2204         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2205         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2206         So use that instead of "$(shell test -f FILE && echo FILE)".
2207
2208 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2209
2210         vasnprintf: fix ASCII_ONLY typo
2211         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2212         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2213         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2214         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2215         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2216
2217 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2218
2219         list, oset, xlist, xoset: fix extern inline issue with C99
2220         This was introduced by my recent changes for 'inline'.
2221         Problem reported for gettext by Daiki Ueno in
2222         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2223         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2224         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2225         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2226         (gl_list_previous_node, gl_list_get_at)
2227         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2228         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2229         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2230         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2231         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2232         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2233         (gl_list_iterator_free, gl_sortedlist_search)
2234         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2235         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2236         (gl_sortedlist_remove):
2237         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2238         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2239         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2240         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2241         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2242         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2243         (gl_list_add_at, gl_sortedlist_add):
2244         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2245         Wrap these extern decls inside "#if 0", because they are implemented
2246         as inline functions, and extern inline is not what's wanted here.
2247         It would simplify these .h files to remove the extern decls entirely,
2248         although a downside would be less-clear separation between
2249         specification and implementation.
2250
2251 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2252
2253         sys_stat: no 'static inline'
2254         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2255         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2256
2257         extern-inline: no 'static inline'
2258         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2259         Do not require AC_C_INLINE.
2260         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2261         'static inline', for older compilers.
2262
2263         snippet/warn-on-use: no 'static inline'
2264         * build-aux/snippet/warn-on-use.h:
2265         Remove unnecessary 'inline' in comment.
2266
2267         rbtree-list, rbtreehash-list: no 'static inline'
2268         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2269         * lib/gl_anytree_list2.h (node_at):
2270         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2271         (gl_oset_first, add_nodes_to_buckets):
2272         Now static, not static inline.
2273
2274         regex: no 'static inline'
2275         * lib/regex_internal.c (calc_state_hash):
2276         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2277         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2278         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2279         Now static, not static inline.
2280         (inline) [__GNUC__ < 3 && _LIBC]:
2281         Remove macro; no longer needed.
2282
2283         xvasprintf: no 'static inline'
2284         * lib/xvasprintf.c (xstrcat):
2285         Now static, not static inline.
2286         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2287         Do not require AC_C_INLINE.
2288
2289         parse-datetime, parse-duration: no 'static inline'
2290         * lib/parse-datetime.y (to_uchar):
2291         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2292         (scale_n_add):
2293         Now static, not static inline.
2294         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2295         * modules/parse-duration (configure.ac):
2296         Do not require AC_C_INLINE.
2297
2298         getaddrinfo: no 'static inline'
2299         * lib/getaddrinfo.c (validate_family):
2300         Now static, not static inline.
2301         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2302         Do not require AC_C_INLINE.
2303
2304         ftruncate, fts, lstat, openat, raise: no 'static inline'
2305         * lib/ftruncate.c (chsize_nothrow):
2306         * lib/fts.c (opendirat, diropen):
2307         * lib/lstat.c (orig_lstat):
2308         * lib/openat.c (orig_openat):
2309         * lib/raise.c (raise_nothrow):
2310         Now static, not static inline.
2311         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2312         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2313         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2314         * m4/openat.m4 (gl_PREREQ_OPENAT):
2315         * m4/raise.m4 (gl_PREREQ_RAISE):
2316         Do not require AC_C_INLINE.
2317
2318         fflush, stat: no 'static inline'
2319         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2320         (clear_ungetc_buffer, disable_seek_optimization)
2321         (restore_seek_optimization, update_fpos_cache):
2322         * lib/stat.c (orig_stat):
2323         Now static, not static inline.
2324         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2325         (update_fpos_cache):
2326         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2327         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2328         * m4/stat.m4 (gl_PREREQ_STAT):
2329         Do not require AC_C_INLINE.
2330
2331         error, filevercmp: no 'static inline'
2332         * lib/error.c (is_open, flush_stdout):
2333         * lib/filevercmp.c (order):
2334         Now static, not static inline.
2335         * m4/error.m4 (gl_PREREQ_ERROR):
2336         * modules/filevercmp (configure.ac):
2337         Do not require AC_C_INLINE.
2338
2339         dup, execute, fatal-signal, etc.: no 'static inline'
2340         * lib/dup.c (dup_nothrow):
2341         * lib/execute.c (nonintr_close, nonintr_open):
2342         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2343         * lib/fopen.c (orig_fopen):
2344         * lib/freadseek.c (freadptrinc):
2345         * lib/freopen.c (orig_freopen):
2346         * lib/fstat.c (orig_fstat, fstat_nothrow):
2347         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2348         (get_rusage_as_via_iterator):
2349         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2350         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2351         * lib/isatty.c (_isatty_nothrow):
2352         * lib/open.c (orig_open):
2353         * lib/read.c (read_nothrow):
2354         * lib/sigprocmask.c (signal_nothrow):
2355         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2356         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2357         * lib/wait-process.c (unregister_slave_subprocess):
2358         * lib/write.c (write_nothrow):
2359         Now static, not static inline.
2360         * lib/spawn-pipe.c (nonintr_open): Define only if
2361         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2362         * m4/dup.m4 (gl_PREREQ_DUP):
2363         * m4/execute.m4 (gl_EXECUTE):
2364         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2365         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2366         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2367         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2368         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2369         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2370         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2371         * m4/open.m4 (gl_PREREQ_OPEN):
2372         * m4/read.m4 (gl_PREREQ_READ):
2373         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2374         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2375         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2376         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2377         * m4/write.m4 (gl_PREREQ_WRITE):
2378         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2379         Do not require AC_C_INLINE.
2380
2381         c-strtod, memcoll, readutmp: no 'static inline'
2382         * lib/c-strtod.c (c_locale):
2383         * lib/memcoll.c (strcoll_loop):
2384         * lib/readutmp.c (desirable_utmp_entry):
2385         Now static, not static inline.
2386         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2387         * m4/memcoll.m4 (gl_MEMCOLL):
2388         * m4/readutmp.m4 (gl_READUTMP):
2389         Do not require AC_C_INLINE.
2390
2391         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2392         * lib/arctwo.c (to_uchar):
2393         * lib/md4.c (set_uint32):
2394         * lib/md5.c (set_uint32):
2395         * lib/sha1.c (set_uint32):
2396         * lib/sha256.c (set_uint32):
2397         * lib/sha512.c (set_uint64):
2398         Now static, not static inline.  This is a bit simpler, and doesn't
2399         affect performance with GCC and default optimization.
2400         * m4/arctwo.m4 (gl_ARCTWO):
2401         * m4/md4.m4 (gl_MD4):
2402         * m4/md5.m4 (gl_MD5):
2403         * m4/sha1.m4 (gl_SHA1):
2404         * m4/sha256.m4 (gl_SHA256):
2405         * m4/sha512.m4 (gl_SHA512):
2406         Do not require AC_C_INLINE.
2407
2408         cond, lock, thread: better 'inline'
2409         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2410         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2411         New macros.  Use them instead of static inline, for header functions.
2412         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2413         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2414         * lib/glthread/lock.c (gl_waitqueue_init)
2415         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2416         * lib/glthread/thread.c (get_current_thread_handle):
2417         Change 'static inline' to 'inline'.
2418         * lib/glthread/cond.h, lib/glthread/thread.h:
2419         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2420         * m4/cond.m4 (gl_COND):
2421         * m4/lock.m4 (gl_PREREQ_LOCK):
2422         * m4/thread.m4 (gl_THREAD):
2423         Do not require AC_C_INLINE.
2424         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2425
2426         chdir-long, cycle-check, savewd: better 'inline'
2427         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2428         (find_non_slash):
2429         * lib/cycle-check.c (is_zero_or_power_of_two):
2430         * lib/savewd.c (savewd_delegating):
2431         Change 'static inline' to 'inline'.
2432         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2433         Replace all remaining uses of 'static inline' with it.
2434         * lib/savewd.h:
2435         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2436         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2437         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2438         * m4/savewd.m4 (gl_SAVEWD):
2439         Do not require AC_C_INLINE.
2440         * modules/savewd (Depends-on): Add extern-inline.
2441
2442         base32, base64: no need for 'inline'
2443         * lib/base32.c (to_uchar, get_8, decode_8):
2444         * lib/base64.c (to_uchar, get_4, decode_4):
2445         Change 'static inline' to 'inline'.
2446         * m4/base32.m4 (gl_PREREQ_BASE32):
2447         * m4/base64.m4 (gl_PREREQ_BASE64):
2448         Do not require AC_C_INLINE.
2449
2450         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2451         * lib/gl_array_oset.c (gl_array_nx_add_at):
2452         (gl_array_remove_at):
2453         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2454         (add_to_bucket, remove_from_bucket):
2455         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2456         Change 'static inline' to 'static', as it's simpler to omit
2457         'inline' unless there's a significant performance advantage.
2458
2459         list, oset, xlist, xoset, xsublist: simplify via extern inline
2460         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2461         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2462         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2463         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2464         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2465         New macro.  Replace all uses of 'static inline' with it.
2466         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2467         instead of as macros FOO that are defined to static inline
2468         functions FOO_inline.
2469         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2470         * lib/gl_xsublist.c:
2471         Reimplement from scratch, by defining the corresponding *_INLINE
2472         macro and including the corresponding .h file.  This is simpler.
2473         * modules/list, modules/oset, modules/xlist, modules/xoset:
2474         (Files): Remove m4/gl_list.m4.
2475         (configure.ac): Remove gl_LIST.
2476         * m4/gl_list.m4: Remove.
2477         * modules/list, modules/oset, modules/xlist, modules/xoset:
2478         * modules/xsublist:
2479         (Depends-on): Depend on extern-inline, not inline.
2480
2481         xalloc: better 'inline'
2482         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2483         New macro.  Replace all uses of 'static inline' with it.
2484         (static_inline): Remove.
2485         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2486         Let 'extern inline' do the work automatically, instead of doing
2487         it by hand.
2488         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2489         Remove.  All uses removed.
2490         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2491
2492         gethrxtime: better 'inline'
2493         * lib/xtime.c: New file.
2494         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2495         * lib/xtime.h (XTIME_INCLUDE):
2496         New macros.  Replace all uses of 'static inline' with them.
2497         * lib/gethrxtime.c (gethrxtime): Define only if
2498         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2499         this source file is now always compiled, because of the extern inline.
2500         * lib/gethrxtime.h, lib/xtime.h:
2501         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2502         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2503         if gethrtime works, as they're not needed in that case.
2504         (gl_XTIME): Do not require AC_C_INLINE.
2505         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2506         compiled now.  Move the check into gl_GETHRXTIME.
2507         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2508         (Depends-on): Add extern-inline.
2509         (configure.ac): gethrxtime is always compiled now.
2510         (lib_SOURCES): Add gethrxtime.c.
2511
2512         wctype-h: better 'inline'
2513         * lib/wctype-h.c: New file.
2514         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2515         New macro.  Replace all uses of 'static inline' with it.
2516         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2517         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2518         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2519         (Depends-on): Add extern-inline.
2520
2521         unistd: better 'inline'
2522         * lib/unistd.c: New file.
2523         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2524         New macro.  Replace all uses of 'static inline' with it.
2525         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2526         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2527         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2528         (Depends-on): Add extern-inline.
2529
2530         sys_socket: better 'inline'
2531         * lib/sys_socket.c: New file.
2532         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2533         New macro.  Replace all uses of 'static inline' with it.
2534         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2535         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2536         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2537         (Depends-on): Add extern-inline.
2538
2539         stdio: better 'inline'
2540         * lib/stdio.c: New file.
2541         * lib/stdio.in.h (_GL_STDIO_INLINE):
2542         New macro.  Replace all uses of 'static inline' with it.
2543         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2544         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2545         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2546         (Depends-on): Add extern-inline.
2547
2548         sigaction: better 'inline'
2549         * lib/sig-handler.c: New file.
2550         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2551         New macro.  Replace all uses of 'static inline' with it.
2552         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2553         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2554         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2555         (Depends-on): Add extern-inline.
2556
2557         selinux-h: better 'inline'
2558         * lib/se-context.c, lib/se-selinux.c: New files.
2559         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2560         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2561         New macro.  Replace all uses of 'static inline' with it.
2562         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2563         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2564         New macro.  Replace all uses of 'static inline' with it.
2565         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2566         * modules/selinux-h (Files, lib_SOURCES):
2567         Add lib/se-context.c, lib/se-selinux.c.
2568         (Depends-on): Add extern-inline.
2569         (configure.ac): Do not require AC_C_INLINE.
2570
2571         pthread: better 'inline'
2572         * lib/pthread.c: New file.
2573         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2574         New macro.  Replace all uses of 'static inline' with it.
2575         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2576         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2577         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2578         * modules/pthread (Files): Add lib/pthread.c.
2579         (Depends-on): Add extern-inline.
2580
2581         math: better 'inline'
2582         * lib/math.c: New file.
2583         * lib/math.in.h (_GL_MATH_INLINE):
2584         New macro.  Replace all uses of 'static inline' with it.
2585         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2586         * m4/math_h.m4 (gl_MATH_H):
2587         Do not require AC_C_INLINE.
2588         * modules/math (Files, lib_SOURCES):
2589         Add lib/math.c.
2590         (Depends-on): Add extern-inline.
2591
2592         count-one-bits: better 'inline'
2593         * lib/count-one-bits.c: New file.
2594         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2595         New macro.  Replace all uses of 'static inline' with it.
2596         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2597         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2598         Do not require AC_C_INLINE.
2599         * modules/count-one-bits (Files, lib_SOURCES):
2600         Add lib/count-one-bits.c.
2601         (Depends-on): Add extern-inline.
2602
2603         count-leading-zeros: better 'inline'
2604         * lib/count-leading-zeros.c: New file.
2605         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2606         New macro.  Replace all uses of 'static inline' with it.
2607         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2608         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2609         Do not require AC_C_INLINE.
2610         * modules/count-leading-zeros (Files, lib_SOURCES):
2611         Add lib/count-leading-zeros.c.
2612         (Depends-on): Add extern-inline.
2613
2614         bitrotate: better 'inline'
2615         * lib/bitrotate.c: New file.
2616         * lib/bitrotate.h (BITROTATE_INLINE):
2617         New macros.
2618         Replace all uses of 'static inline' with them.
2619         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2620         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2621         (Depends-on): Add extern-inline.
2622         (configure.ac): Do not require AC_C_INLINE.
2623
2624 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2625
2626         maint.mk: avoid gratuitous failure
2627         Reported by Stefano Lattarini in
2628         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2629         * top/maint.mk (public-submodule-commit): Quote more safely.
2630
2631 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2632
2633         canonicalize, canonicalize-lgpl: support MS-Windows file names
2634         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2635         for test cases, which it'd be nice to add at some point.
2636         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2637         * lib/canonicalize.c (canonicalize_filename_mode):
2638         * lib/canonicalize-lgpl.c (__realpath):
2639         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2640         slash is at the beginning of the file name.  Use ISSLASH, instead
2641         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2642         the first character with '/'.  Test for
2643         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2644         with a drive letter.
2645         * lib/canonicalize.c (SLASHES): New macro.
2646         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2647
2648 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2649
2650         fts: introduce FTS_VERBATIM
2651         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2652         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2653         * lib/fts.c (fts_open): Honor it.
2654
2655 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2656
2657         getlogin-tests: allow errno == ENXIO
2658         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2659         with errno == ENXIO (No controlling tty).
2660         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2661         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2662         with errno == ENOENT.  This was reported to happen in various
2663         situations on GNU/Linux.
2664
2665 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2666
2667         getlogin-tests: allow errno == ENOENT
2668         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2669         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2670         when running a test in an Emacs shell buffer.
2671
2672 2012-11-08  Jim Meyering  <jim@meyering.net>
2673
2674         tests/nap.h: avoid warning about unused variable
2675         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2676
2677         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2678         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2679         white space before each of the special-cased file names, to avoid
2680         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2681         in http://bugs.gnu.org/12830.
2682
2683 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2684
2685         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2686         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2687         fails with errno == EBADF when fd is opened with O_PATH.
2688         Reported by Jim Meyering in
2689         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2690         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2691         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2692
2693 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2694
2695         test-utimens: speed up by taking shorter naps
2696         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2697         New functions.
2698         (nap): Use them, to do a better job of guessing the delay.
2699         On Fedora 17 with ext4 atop md atop hard disks, this made
2700         test-utimens run 10x faster, because the test napped for
2701         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2702         <http://bugs.gnu.org/12820#11>.
2703
2704 2012-11-07  Jim Meyering  <jim@meyering.net>
2705
2706         mountlist.c: fix a compilation failure
2707         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2708         I introduced while transforming commit v0.0-7683-g613bcb6
2709
2710 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2711
2712         errno: port to LynxOS 178 2.2.2
2713         Problem reported by Joel Brobecker in
2714         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2715         * doc/posix-headers/errno.texi (errno.h): Document this.
2716         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2717         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2718         Supply a string for EILSEQ.
2719         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2720
2721 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2722
2723         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2724         Linux kernel 2.6.39 introduced O_PATH (see
2725         <http://lwn.net/Articles/433854/>) and this is a better fallback
2726         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2727         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2728         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2729         * lib/fcntl.in.h (O_ACCMODE):
2730         * tests/test-fcntl-h.c (main):
2731         Do not reject O_ACCMODE merely because it has more than the
2732         minimal number of bits, as POSIX allows extensions here.
2733
2734 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2735
2736         mountlist: do not classify a bind-mounted dir entry as "dummy"
2737         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2738         the "none"-testing clause.
2739         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2740         exception for bind-mounted directories.
2741
2742 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2743
2744         quote: provide a means to escape strings with nul characters
2745         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2746         (quote, quote_n): Rename formal arguments for consistency with
2747         quotearg.
2748
2749 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2750
2751         test-raise: don't assume 199 is an invalid signal
2752         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2753
2754         sh-quote-tests: port to Solaris 9
2755         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2756         Problem reported by Dagobert Michelsen in
2757         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2758
2759 2012-10-28  Jim Meyering  <jim@meyering.net>
2760
2761         maint.mk: rename a new configurable variable
2762         * top/maint.mk (_gl_translatable_string_re): Rename from
2763         translation-markers: _gl_ prefix to insulate from user Makefile code,
2764         and the _re suffix to inform that it's a regular expression.
2765
2766 2012-10-26  Eric Blake  <eblake@redhat.com>
2767
2768         maint.mk: let packages tweak sc_po_check pattern
2769         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2770         finding files with other translation markers.
2771
2772 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2773
2774         euidaccess: speed up 'configure' on GNU hosts
2775         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2776         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2777         it's needed only in this case.  Use AC_CHECK_DECLS, not
2778         AC_CHECK_DECLS_ONCE.
2779         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2780         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2781
2782         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2783
2784 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2785
2786         fchmodat, fchownat, fstatat: port to non-inlining compilers
2787         Problem reported for FreeBSD 9 by Jim Meyering in
2788         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2789         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2790         New files, which define FCHMODAT_INLINE etc.
2791         * lib/fchmodat.c (FCHMODAT_INLINE):
2792         * lib/fchownat.c (FCHOWNAT_INLINE):
2793         * lib/fstatat.c (FSTATAT_INLINE):
2794         Remove, as chmodat.c etc. now do this.
2795         * modules/fchmodat (Files): Add lib/chmodat.c.
2796         * modules/fchownat (Files): Add lib/chownat.c.
2797         * modules/fstatat (Files): Add lib/statat.c.
2798
2799 2012-10-15  Jim Meyering  <jim@meyering.net>
2800
2801         fchmodat.c, fchownat.c: compile-impeding typos
2802         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
2803         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
2804         Introduced in commit v0.0-7636-gd202279.
2805
2806 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2807
2808         fcntl-h: support GNU flags like O_IGNORE_CTTY
2809         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
2810         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
2811         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
2812         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
2813         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
2814         Define to 0 if not already defined.
2815         * tests/test-fcntl-h.c: Test these new flags.
2816
2817 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2818
2819         faccessat, etc.: support AT_FDCWD-only use
2820         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
2821         this function only if its first argument is AT_FDCWD.
2822         Emacs wants faccessat for AT_EACCESS but not for any first-arg
2823         values other than AT_FDCWD, so it doesn't want all the openat
2824         machinery with fchdir etc.
2825         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
2826         * modules/fstatat, modules/mkdirat, modules/openat (Files):
2827         * modules/unlinkat (Files):
2828         Remove lib/openat-priv.h, as at-internal supplies this file.
2829         Removing this file here allows us to support programs like Emacs
2830         that avoid at-internal.
2831
2832         faccessat: speed up 'configure' on mainstream hosts
2833         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
2834         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
2835         since it's only on unusual platforms that we need to check for
2836         'access', and it's better not to slow 'configure' down on all
2837         platforms.
2838
2839         faccessat: port to Solaris 10
2840         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
2841         Needed on Solaris 10, which doesn't have AT_EACCESS,
2842         so we need the Gnulib fcntl.h, which defines it.
2843
2844 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2845         canonicalize: fix C89 compilation
2846         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2847         declarations so C89 is supported.  Also remove the comment
2848         referencing memorty allocation as the suggested feature could
2849         not be implemented as suggested.
2850         Reported by Michael Goffioul.
2851
2852 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2853
2854         group-member: omit unnecessary dependencies
2855         This is for Emacs, which has its own allocator and where we
2856         don't want to use xalloc.
2857         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2858         since we no longer use xmalloc.  Do not include stdbool.h, since
2859         the changes below happen to remove the only use of bool.
2860         (GROUPBUF_SIZE): New constant.
2861         (struct group_info): Remove n_groups member.  Add groupbuf member.
2862         This lets us get the groups without using malloc, usually.
2863         (free_group_info, get_group_info): Adjust to this.
2864         (get_group_info): Return the number of groups found, or -1 on error.
2865         Use plain malloc not xmalloc, and treat its failure as if there
2866         are no groups, as the user already loses in case of error.
2867         (group_member): Simplify, based on changes to get_group_info.
2868         * modules/group-member (Depends-on): Remove dependencies on
2869         xalloc and stdbool.  Add dependency on xalloc-oversized.
2870
2871 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2872
2873         gethrxtime: port to C++
2874         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2875
2876 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2877
2878         ptsname: fix macro-name typo
2879         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2880
2881 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2882
2883         inttostr: Relax license.
2884         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2885
2886 2012-10-03  Eric Blake  <eblake@redhat.com>
2887
2888         ptsname_r: support ptys returned by FreeBSD posix_openpt
2889         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2890         lives in /dev/pts/.
2891
2892 2012-10-02  Eric Blake  <eblake@redhat.com>
2893
2894         pselect: reject invalid file descriptors
2895         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2896         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2897         * modules/pselect (Depends-on): Add dup2.
2898         * doc/posix-functions/pselect.texi (pselect): Document this.
2899
2900         select: reject invalid file descriptors
2901         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2902         * lib/select.c (rpl_select) [!win32]: Work around it.
2903         * modules/select (Depends-on): Add dup2.
2904         * doc/posix-functions/select.texi (select): Document this.
2905
2906         select: enhance test
2907         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2908         New functions.
2909         (test_function): Enhance test.
2910         (do_select_bad_fd): Avoid any stale errno values.
2911
2912         ptsname: reject invalid file descriptors
2913         http://www.austingroupbugs.net/view.php?id=503
2914         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2916         * modules/stdlib (Makefile.am): Replace witness.
2917         * lib/stdlib.in.h (ptsname): Allow for replacement.
2918         * modules/ptsname (configure.ac): Trigger replacement.
2919         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2920
2921 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2922
2923         hash-pjw-bare: new module
2924         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2925         * lib/hash-pjw-bare.h: Likewise.
2926         * modules/hash-pjw-bare: New file.
2927         * MODULES.html.sh (Misc): Add it.
2928
2929 2012-10-02  Eric Blake  <eblake@redhat.com>
2930
2931         manywarnings: cater to more gcc infelicities
2932         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2933         -Wuninitialized without -O.
2934
2935 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2936
2937         select, poll tests: Make setsockopt invocation effective.
2938         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2939         the bind() call.
2940         * tests/test-select.h (open_server_socket): Likewise.
2941
2942 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2943
2944         sockets, sys_stat: restore AC_C_INLINE
2945         This undoes the 2012-09-22 patch.
2946         * m4/sockets.m4 (gl_SOCKETS):
2947         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2948         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2949         and does not support plain 'inline'.  Reported by Bruno Haible in
2950         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2951
2952 2012-09-30  Bruno Haible  <bruno@clisp.org>
2953
2954         localeconv tests: Avoid test failure on OpenIndiana.
2955         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2956         skip the 'grouping' and 'mon_grouping' tests.
2957         Reported by Jim Meyering.
2958
2959 2012-09-30  Bruno Haible  <bruno@clisp.org>
2960
2961         havelib: Follow libtool developments.
2962         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2963         Suggested by Simon Josefsson.
2964
2965 2012-09-29  Jim Meyering  <meyering@redhat.com>
2966
2967         fstatat.c: fix a compile-impeding typo
2968         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2969         Introduced in commit v0.0-7636-gd202279.
2970         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2971
2972 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2973
2974         extern-inline: provide a -Wundef safe config.h
2975         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2976         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2977         to produce a -Wundef warning free config.h.
2978
2979 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2980
2981         hash-pjw: relax license to LGPLv2+
2982         * modules/hash-pjw (License): Relax, with consent of author.
2983
2984 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2985
2986         maint.mk: fix strict vs. lazy variable issues with RELEASE
2987         * top/maint.mk (_equal): New function.
2988         (member_check): Strip the result to avoid spurious spaces.
2989         (url_dir_list): Do not use ifeq, which is strict, as it will
2990         require RELEASE_TYPE to be defined.
2991         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2992         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2993         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2994         (announcement_Cc_beta,announcement_mail_headers_beta)
2995         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2996         (release): Do not depend on $(release-type), as it forces its
2997         evaluation.  Bounce to it.
2998
2999 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3000
3001         maint.mk: formatting changes
3002         * top/maint.mk: Indent bodies of if's.
3003
3004 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3005
3006         maint.mk: factor the validation of RELEASE_TYPE
3007         With help from Jim Meyering.
3008         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3009         * top/maint.mk (_empty, _sp): Move their definition earlier.
3010         (member-check, release-type): New.
3011         Use the latter instead of $(RELEASE_TYPE).
3012         Remove now useless local checks.
3013
3014 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3015
3016         maint.mk: provide "make upload" to ease uploading
3017         See
3018         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3019         Do not depend simply on the current $(VERSION), as there may have been
3020         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3021         as "make release-commit" already does.
3022
3023         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3024         "make TYPE".
3025
3026         * top/maint.mk (upload_command, upload, release): New.
3027         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3028         (VERSION): first word of $(RELEASE) is always right.
3029         (emit_upload_commands): Adjust.
3030         * top/README-release: Update.
3031
3032 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3033
3034         maint.mk: silent rules
3035         With help from Stefano Lattarini.
3036         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3037         (announcement): Use $(AM_V_at).
3038
3039 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3040
3041         localename: port gl_locale_name_thread_unsafe to FreeBSD
3042         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3043         and use the simpler FreeBSD implementation on Mac OS X as well.
3044         Original idea suggested by Ed Maste in
3045         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3046
3047 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3048
3049         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3050         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3051         * lib/mbuiter.c, lib/xsize.c: New files.
3052         * lib/binary-io.h (BINARY_IO_INLINE):
3053         * lib/eealloc.h (EEALLOC_INLINE):
3054         * lib/mbfile.h (MBFILE_INLINE):
3055         * lib/mbiter.h (MBITER_INLINE):
3056         * lib/mbuiter.h (MBUITER_INLINE):
3057         * lib/xsize.h (XSIZE_INLINE):
3058         New macros.
3059         Replace all uses of 'static inline' with them.
3060         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3061         * m4/eealloc.m4 (gl_EEALLOC):
3062         * m4/mbfile.m4 (gl_MBFILE):
3063         * m4/mbiter.m4 (gl_MBITER):
3064         * m4/xsize.m4 (gl_XSIZE):
3065         Do not require AC_C_INLINE.
3066         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3067         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3068         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3069         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3070         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3071         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3072         * modules/binary-io, modules/eealloc, modules/mbfile:
3073         * modules/mbiter, modules/mbuiter:
3074         (Depends-on): Add extern-inline.
3075
3076         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3077         * lib/pipe-filter-aux.c: New file.
3078         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3079         Replace all uses of 'static inline' with it.
3080         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3081         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3082         (filter_retcode): No real need for inline here.
3083         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3084         (Files): Add lib/pipe-filter-aux.c.
3085         (Depends-on): Add extern-inline.
3086         (configure.ac): Do not require AC_C_INLINE.
3087         (lib_SOURCES): Add pipe-filter-aux.c.
3088
3089         fdutimensat: omit unnecessary AC_C_INLINE
3090         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3091
3092         fchmodat, fchownat, fstatat: use extern-inline
3093         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3094         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3095         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3096         New macros.
3097         * lib/openat.h:
3098         Replace all uses of 'static inline' with them.
3099         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3100         * modules/fchmodat, modules/fchownat, modules/fstatat:
3101         * modules/openat-h:
3102         (Depends-on):
3103         Add extern-inline.
3104         (configure.ac): Remove AC_C_INLINE.
3105
3106         acl, mbchar, priv-set: use extern-inline
3107         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3108         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3109         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3110         New macros.
3111         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3112         Replace all uses of 'static inline' with it.
3113         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3114         * m4/acl.m4 (gl_FUNC_ACL):
3115         * m4/mbchar.m4 (gl_MBCHAR):
3116         * m4/priv-set.m4 (gl_PRIV_SET):
3117         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3118         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3119         Add extern-inline.
3120
3121         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3122         * m4/sockets.m4 (gl_SOCKETS):
3123         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3124         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3125         environments where it's already guaranteed to work, so we needn't
3126         check for it at 'configure'-time.
3127
3128         tls-tests: omit unnecessary 'inline'
3129         * tests/test-tls.c (perhaps_yield): No longer inline.
3130         Simplicity and portability trump efficiency in test cases.
3131
3132         utimens-tests: avoid unnecessary 'inline'
3133         * modules/fdutimensat-tests (configure.ac):
3134         * modules/futimens-tests (configure.ac):
3135         * modules/utimens-tests (configure.ac):
3136         * modules/utimensat-tests (configure.ac):
3137         Remove AC_C_INLINE.
3138         * tests/test-utimens-common.h (ctime_compare):
3139         No longer inline.  Simplicity and portability trump efficiency here.
3140
3141         misc: don't limit commentary to inline functions
3142         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3143         * lib/xalloc-oversized.h, lib/xsize.h:
3144         Contrast macros to functions in general, not just to inline functions,
3145         when the commentary does not apply only to inline functions.
3146
3147 2012-09-20  Jim Meyering  <meyering@redhat.com>
3148
3149         non-recursive-gnulib-prefix-hack: new module
3150         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3151         the file that originated in Bison.
3152         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3153         largely copied from a snippet that resided in bison's configure.ac.
3154         * modules/non-recursive-gnulib-prefix-hack: New file.
3155         * MODULES.html.sh (Support for maintaining and releasing projects):
3156         Add it.
3157
3158 2012-09-18  Jim Meyering  <meyering@redhat.com>
3159
3160         maint.mk: generalize _gl_tight_scope for non-recursive make
3161         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3162         that *.h would describe additional .h files in the directory
3163         specified by $(_gl_TS_dir).  I.e., add this...
3164         (_gl_TS_other_headers): New variable.
3165
3166         maint.mk: exempt trailing blanks found in "binary" files
3167         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3168         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3169         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3170
3171 2012-09-17  Jim Meyering  <meyering@redhat.com>
3172
3173         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3174         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3175         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3176         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3177
3178 2012-09-17  Jim Meyering  <meyering@redhat.com>
3179
3180         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3181         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3182         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3183         It is not in the same category as "exit (0)" or "exit (1)", and
3184         besides, I know of no symbolic name for that 77.  Reported by
3185         Richard W.M. Jones in
3186         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3187
3188 2012-09-17  Jim Meyering  <meyering@redhat.com>
3189
3190         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3191         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3192         all uses of #define, not just those that start in column 1.
3193         Richard W.M. Jones reported a false positive in
3194         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3195
3196 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3197
3198         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3199         * lib/localcharset.c (locale_charset) [DARWIN7]:
3200         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3201         as these two values are incompatible.  Problem reported by Max Horn.
3202         For more discussion, please see
3203         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3204
3205         doc: document sticky-EOF issue
3206         * doc/posix-functions/fgetc.texi (fgetc):
3207         * doc/posix-functions/fgets.texi (fgets):
3208         * doc/posix-functions/fread.texi (fread):
3209         * doc/posix-functions/fscanf.texi (fscanf):
3210         * doc/posix-functions/getc.texi (getc):
3211         * doc/posix-functions/getchar.texi (getchar):
3212         * doc/posix-functions/scanf.texi (scanf):
3213         Mention that glibc and default Solaris do not conform to
3214         C99 and POSIX-2001 or later, with respect to how getchar
3215         etc. behave when feof reports nonzero.
3216
3217 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3218
3219         poll: fix poll(0, NULL, msec)
3220         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3221         but nfd is 0.  In that case poll should behave like select.
3222
3223 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3224             Paolo Bonzini <bonzini@gnu.org>
3225
3226         poll: fix for systems that can't recv() on a non-socket
3227         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3228         is readable.  In this case POLLHUP will not be supported.
3229         * doc/posix-functions/poll.texi: Document this.
3230
3231 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3232
3233         poll/select: document portability problems not fixed by Gnulib.
3234         * doc/posix-functions/poll.texi: poll does not work well on
3235         pipes under Windows.  It has the same limitations as select on
3236         BeOS.
3237         * doc/posix-functions/select.texi: select does not work well
3238         on pipes under Windows.
3239
3240 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3241
3242         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3243         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3244         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3245         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3246
3247 2012-09-06  Eric Blake  <eblake@redhat.com>
3248
3249         net_if: give more details about the bug being fixed
3250         * doc/posix-headers/net_if.texi: Add clarification.
3251
3252 2012-09-05  Eric Blake  <eblake@redhat.com>
3253
3254         net_if: new module
3255         * modules/net_if: New module, borrowing ideas from netinet_in.
3256         * m4/net_if_h.m4: New file.
3257         * lib/net_if.in.h: Likewise.
3258         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3259         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3260         * tests/test-net_if.c: Make function checks conditional.
3261         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3262
3263 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3264
3265         readutmp: fix non-portable UT_PID use
3266         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3267         Use `UT_PID (u) > 0' as absolute condition.
3268
3269 2012-09-04  Jim Meyering  <meyering@redhat.com>
3270
3271         fts: reduce two or more trailing spaces to just one, usually
3272         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3273         or more slashes, trim all but the final one.  But if a name consists
3274         solely of two slashes, don't modify it.  If it consists solely of
3275         three or more slashes, strip all but one.
3276
3277         This is part of the solution to a minor problem with rm:
3278         it would print a bogus ELOOP diagnostic when failing to remove
3279         the slash-decorated name of a symlink-to-directory:
3280
3281             $ mkdir d && ln -s d s && env rm -r s/
3282             rm: cannot remove 's': Too many levels of symbolic links
3283
3284         With the change below and a trivial don't-trim-trailing-slashes
3285         adjustment to remove.c, it does this:
3286
3287             $ env rm -r s/
3288             rm: cannot remove 's/': Not a directory
3289
3290         Improved by: Eric Blake
3291
3292         fts: when there is no risk of overlap, use memcpy, not memmove
3293         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3294
3295 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3296
3297         stdbool: be more compatible with mixed C/C++ compiles
3298         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3299         Define to bool, true, false, respectively, as GCC's builtin
3300         stdbool.h does.  Problem reported by Michael Goffioul in
3301         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3302
3303 2012-08-28  Jim Meyering  <meyering@redhat.com>
3304
3305         revert last change: it was not needed
3306         * tests/test-vc-list-files-git.sh: There's already a test for
3307         a working git, just below.
3308
3309 2012-08-28  Jim Meyering  <meyering@redhat.com>
3310
3311         tests: test-vc-list-files-git.sh: skip if git is not available
3312         * tests/test-vc-list-files-git.sh: Skip this test when git is
3313         not available.
3314
3315 2012-08-26  Bruno Haible  <bruno@clisp.org>
3316
3317         gnulib-tool: Remove no-op option --no-changelog.
3318         * gnulib-tool (func_usage): Don't mention --no-changelog.
3319         (do_changelog): Remove variable.
3320         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3321
3322 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3323
3324         doc: remove fdl-1.2.texi
3325         It is no longer used or maintained, and its use of @acronym
3326         is problematic.  See the thread containing
3327         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3328         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3329         * doc/old-licenses/fdl-1.2.texi: Remove.
3330
3331         execinfo: port to FreeBSD
3332         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3333         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3334         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3335         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3336
3337 2012-08-23  Jim Meyering  <meyering@redhat.com>
3338
3339         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3340         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3341         to placate gcc's -Wold-style-declaration.
3342
3343 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3344
3345         doc: do not use @acronym
3346         * doc/inet_ntoa.texi (inet_ntoa):
3347         * doc/parse-datetime.texi (Seconds since the Epoch)
3348         (Specifying time zone rules):
3349         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3350         Don't use @acronym.  Problem reported by John Darlington in
3351         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3352
3353 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3354
3355         stdnoreturn: port to newer GCCs
3356         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3357         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3358         Problem reported by Jim Meyering in
3359         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3360         Also, rename the 'test' function to a void a clash with the
3361         already-supplied 'main' function; this fixes a bug that incorrectly
3362         rejected GCC 4.7.1's <stdnoreturn.h>.
3363         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3364         Document GCC problem.
3365
3366 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3367
3368         pipe-filter: fix comment typo
3369         * lib/pipe-filter.h: Mention correct function.
3370
3371 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3372
3373         execinfo: new module
3374         This is for Emacs.  Currently, it provides a no-effect stub
3375         on all platforms where it does not already work.
3376         It already works on glibc-based systems, and on Solaris 11.
3377         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3378         New files.
3379         * doc/glibc-headers/execinfo.texi (execinfo.h):
3380         * MODULES.html.sh (Misc): Document it.
3381
3382 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3383
3384         extern-inline: support old GCC 'inline'
3385         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3386         if available.  This applies to GCC versions 2.7 through 4.2, or
3387         when newer GCC is using -fgnu89-inline.  The goal is to address
3388         some of the performance issues mentioned by Bruno Haible in
3389         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3390
3391 2012-08-20  Eric Blake  <eblake@redhat.com>
3392
3393         maint.mk: avoid redundant file name in message
3394         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3395         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3396         (sc_makefile_path_separator_check): Remove bogus $(ME).
3397
3398 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3399
3400         timer-time: fix link order when static linking on glibc
3401         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3402         _after_ -lrt so that it's significant.
3403
3404 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3405
3406         timespec: omit unnecessary AC_C_INLINE
3407         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3408
3409         stat-time: omit unnecessary AC_C_INLINE
3410         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3411         Do not require AC_C_INLINE.
3412
3413         ignore-value: omit unnecessary AC_C_INLINE
3414         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3415
3416         sys_select: avoid 'static inline'
3417         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3418
3419         mktime: avoid 'static inline'
3420         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3421         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3422
3423 2012-08-19  Bruno Haible  <bruno@clisp.org>
3424
3425         gnulib-tool: Improve coding style.
3426         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3427         func_emit_lib_Makefile_am.
3428         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3429
3430 2012-08-19  Bruno Haible  <bruno@clisp.org>
3431
3432         gnulib-tool: Fix indentation.
3433         * gnulib-tool (func_import): Fix indentation.
3434
3435 2012-08-19  Bruno Haible  <bruno@clisp.org>
3436
3437         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3438         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3439         on the list of removed files.
3440
3441 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3442
3443         test-parse-datetime: avoid glibc leap-second glitch
3444         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3445         with the 2012 rules.  Problem reported by Bruce Dubbs in
3446         <http://bugs.gnu.org/12206>.
3447
3448 2012-08-14  Bruno Haible  <bruno@clisp.org>
3449
3450         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3451         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3452         from argument.
3453         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3454
3455 2012-08-14  Eric Blake  <eblake@redhat.com>
3456
3457         ldexp: relax license
3458         * modules/ldexp (License): Trivial relax, since the module only
3459         provides a permissively licensed m4 file.
3460
3461 2012-08-13  Bruno Haible  <bruno@clisp.org>
3462
3463         gnulib-tool: Fix persistence of --witness-c-macro option.
3464         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3465         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3466
3467 2012-08-11  Eric Blake  <eblake@redhat.com>
3468
3469         count-leading-zeros: use a lookup table on non-gcc compilers
3470         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3471         alternate implementation, suggested by Jim Meyering.
3472
3473 2012-08-10  Eric Blake  <eblake@redhat.com>
3474
3475         count-leading-zeros: new module
3476         * modules/count-leading-zeros: New module.
3477         * m4/count-leading-zeros.m4: New file.
3478         * lib/count-leading-zeros.h: Likewise.
3479         * modules/count-leading-zeros-tests: New test.
3480         * tests/test-count-leading-zeros.c: New file.
3481         * MODULES.html.sh (Integer arithmetic functions): Document it.
3482
3483 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3484             Jim Meyering  <meyering@redhat.com>
3485
3486         maintainer-makefile: Fix syntax error with dash.
3487         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3488         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3489
3490 2012-08-05  Jim Meyering  <meyering@redhat.com>
3491
3492         extern-inline: also ignore -Wmissing-declarations
3493         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3494         required with gcc-4.8.0-to-be.
3495
3496         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3497         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3498         for /error ?([^,]*)/.  This avoids false-positives for strings like
3499         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3500
3501 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3502
3503         gnumakefile: better interaction with Automake-NG
3504         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3505         Automake-NG always contain a definition of VPATH, even in non-VPATH
3506         builds (its value being simply '.' in that case).  So, in the
3507         'clean-GNUmakefile' rule, to determine whether running under a
3508         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3509         '$(VPATH)' expands to the empty string.
3510
3511 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3512
3513         base64: Use extern C scope in header file, for C++.
3514         * lib/base64.h: Add C++ namespace protection.
3515
3516 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3517
3518         stat-time, timespec, u64: support naive out-of-dir builds
3519         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3520         Use '#include "foo.h"', not '#include <foo.h>', when including
3521         one's own interface.  This works better when configuring with
3522         out-of-directory builds, since packages need not add an
3523         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3524
3525 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3526
3527         utimens: use extern-inline
3528         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3529         * lib/utimens.h: Add copyright notice, since this is now large enough
3530         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3531         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3532         * modules/utimens (Depends-on): Add extern-inline.
3533
3534         u64: use extern-inline
3535         * lib/u64.c: New file.
3536         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3537         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3538         * modules/u64 (Files): Add lib/u64.c.
3539         (Depends-on): Add extern-inline.
3540         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3541         does that now.
3542         (lib_SOURCES): Add u64.c.
3543
3544         timespec: use extern-inline
3545         * lib/timespec.c: New file.
3546         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3547         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3548         * modules/timespec (Files): Add lib/timespec.c.
3549         (Depends-on): Add extern-inline.
3550         (lib_SOURCES): Add timespec.c.
3551
3552         stat-time: use extern-inline
3553         * lib/stat-time.c: New file.
3554         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3555         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3556         * modules/stat-time (Files): Add lib/stat-time.c.
3557         (Depends-on): Add extern-inline.
3558         (lib_SOURCES): Add stat-time.c.
3559
3560         extern-inline: new module
3561         * modules/extern-inline, m4/extern-inline.m4: New files.
3562         This is for better support of 'extern inline' a la ISO C99,
3563         with a portable alternative on compilers that do not support
3564         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3565         of the Emacs executable, when compiled with debugging disabled,
3566         which is a typical way that Emacs is built while developing.
3567
3568 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3569
3570         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3571         * build-aux/do-release-commit-and-tag: Move variable definitions
3572         together.
3573         ($branch): Instead of defaulting to "master", default to the current
3574         branch (as gnu-web-doc-update does).
3575         (help): Display the current values of the option arguments.
3576         * top/maint.mk (release-commit): New.
3577         * top/README-release: Simplify the corresponding step.
3578
3579 2012-07-30  Eric Blake  <eblake@redhat.com>
3580
3581         passfd: fix comment on recvfd
3582         * lib/passfd.c (recvfd): Fix comment.
3583         Reported by Jann Horn <jannhorn@googlemail.com>.
3584
3585 2012-07-30  Jim Meyering  <meyering@redhat.com>
3586
3587         maint.mk: avoid a sub-shell
3588         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3589
3590 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3591
3592         maint.mk: use silent-rules support from Automake
3593         * top/maint.mk (news-check, vc-diff-check, announcement)
3594         (no-submodule-changes, alpha beta stable, release-prep)
3595         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3596
3597 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3598
3599         maint.mk: provide a web-manual-update target
3600         * top/maint.mk: here.
3601         * top/README-release: Use it to simplify the web manual update step.
3602
3603 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3604
3605         README-release: shorten the circuit to post a news
3606         * top/README-release: Point directly to the news submission form.
3607
3608 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3609
3610         gnu-web-doc-update: fix --help
3611         * build-aux/gnu-web-doc-update: The information "top level" was written
3612         twice.
3613
3614 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3615
3616         maint.mk: absolute VPATH issue
3617         * top/maint.mk (release-prep): Help Git find .git/.
3618         From Jim Meyering.
3619
3620 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3621
3622         gitlog-to-changelog: fix previous change
3623         * build-aux/gitlog-to-changelog: Fix condition.
3624         Add missing ";".
3625
3626 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3627
3628         gitlog-to-changelog: don't expect .git to be in $srcdir
3629         Reported by Bruno Haible.
3630         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3631         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3632         Use it.
3633
3634 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3635
3636         maint.mk: absolute VPATH build fix
3637         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3638         $(srcdir) is not a parent of $(builddir).
3639
3640 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3641
3642         clean-temp: Fix memory leak.
3643         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3644         'files' members of tmpdir.
3645
3646 2012-07-27  Jim Meyering  <meyering@redhat.com>
3647
3648         maint.mk: new rule: refresh-gnulib-patches
3649         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3650         Use this rule to refresh them.
3651         * top/maint.mk (refresh-gnulib-patches): New rule.
3652
3653 2012-07-24  Bruno Haible  <bruno@clisp.org>
3654
3655         gnulib-tool: Fix handling of inctests variable.
3656         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3657         Reported by Nick Bowler <nbowler@elliptictech.com>.
3658
3659 2012-07-22  Bruno Haible  <bruno@clisp.org>
3660
3661         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3662         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3663         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3664         Remove exemption for getpass.h.
3665         Suggested by Eric Blake.
3666
3667 2012-07-20  Eric Blake  <eblake@redhat.com>
3668
3669         verify: document conflict with -Wnested-externs
3670         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3671
3672         maint.mk: forbid exit(-1)
3673         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3674
3675 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3676
3677         fsusage: port back to Solaris
3678         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3679         error (fsd not declared) on Solaris 10.  Reported privately by
3680         Andrew Borodin.
3681
3682 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3683
3684         gnu-web-doc-update: fix error messages
3685         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3686
3687         gnu-web-doc-update: check the requirements.
3688         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3689         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3690         * build-aux/bootstrap (find_tool): Comment change.
3691
3692 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3693
3694         maint.mk: minor simplication.
3695         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3696         for default values.
3697
3698 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3699
3700         gitlog-to-changelog: VPATH build issues
3701         If builddir is not a subdirectory of srcdir, running git from it will
3702         fail.
3703         * build-aux/gitlog-to-changelog (--srcdir): New option.
3704
3705 2012-07-15  Bruno Haible  <bruno@clisp.org>
3706
3707         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3708         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3709         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3710         Remove exemption for fpending.h.
3711         Suggested by Eric Blake.
3712
3713 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3714
3715         pthread_sigmask: fix bug on FreeBSD 9
3716         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3717         Include string.h.
3718         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3719         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3720         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3721         but pthread_sigmask (1729, NULL, NULL) returns zero.
3722         See <http://bugs.gnu.org/11884>.
3723         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3724         by inspecting whether the main call changed the old mask.
3725
3726 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3727
3728         README-release: make it more legible
3729         * top/README-release: Improve typography slightly.
3730
3731 2012-07-15  Jim Meyering  <meyering@redhat.com>
3732
3733         maint: require that each sc_... command start with "@"
3734         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3735         "make sc_maint" helps us avoid this nit.
3736
3737 2012-07-15  Jim Meyering  <meyering@redhat.com>
3738
3739         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3740         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3741
3742 2012-07-13  Eric Blake  <eblake@redhat.com>
3743
3744         maint.mk: new syntax check for HAVE_DECL checks
3745         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3746         * cfg.mk
3747         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3748         Exempt some false positives.
3749         Based on a report by Karel Zak.
3750
3751         argp: make HAVE_DECL usage consistent
3752         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3753         macros, not whether they are defined.
3754         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3755         convention with other declaration checks.
3756         Reported by Karel Zak, with suggestions from Paul Eggert.
3757
3758         stat-time: relax license to LGPLv2+
3759         * modules/stat-time (License): Relax, with consent of all authors.
3760
3761         strndup: fix m4 usage error
3762         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3763         defined, to either 0 or 1.
3764         Reported by Karel Zak.
3765
3766 2012-07-11  Jim Meyering  <meyering@redhat.com>
3767
3768         maint: enable the sc_avoid_if_before_free syntax-check rule
3769         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3770         (if_before_free_offenders_): Define.
3771         (if_before_free_basename_re_): Define.
3772         Exempt current files with useless if-before-free.
3773
3774 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3775
3776         gettext: do not assume '#define ... defined ...' behavior
3777         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3778         Do not use '#define FOO ... defined BAR ...', as the C standard says
3779         it's not portable to expect that this works after macro expansion.
3780         Problem reported for gzip by Steven M. Schweda in
3781         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3782
3783 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3784
3785         getloadavg: clean out old Emacs and Autoconf cruft
3786         See Glenn Morris in <http://bugs.gnu.org/11905>.
3787         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3788         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3789         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3790         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3791
3792 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3793
3794         bootstrap: let warn be like tests/init.sh's warn_
3795         Reported by Jim Meyering.
3796         * build-aux/bootstrap (warn): Remove, replaced by...
3797         (warnf_, warn_): these.
3798         Adjust callers.
3799         Shorten messages that no longer fit in 80 columns.
3800
3801 2012-07-09  Bruno Haible  <bruno@clisp.org>
3802
3803         getopt: Simplify after Emacs changed.
3804         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
3805         (gl_GETOPT_IFELSE): Remove macro.
3806
3807 2012-07-09  Jim Meyering  <meyering@redhat.com>
3808
3809         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
3810         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
3811
3812         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
3813         Bugs in both of those conspired to make the
3814         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
3815         _sc_search_regexp's handling of non-empty $in_files would filter
3816         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
3817         choice of in_files value meant there would be no match in most
3818         projects, due to the presence of two or more Makefile.in files.
3819         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
3820         Fix a bug in how a non-empty $$in_files was processed:
3821         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
3822         in spite of the name, it's a regexp, not a list of file names.
3823
3824 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3825
3826         getloadavg, getopt: fix commentary re configure.in
3827         Autoconf is deprecating the name 'configure.in', so change it to
3828         to the new name 'configure.ac' in a couple of places.
3829         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
3830         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
3831         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
3832         Emacs has renamed it to configure.ac, and it no longer refers
3833         to these macros anyway.
3834
3835         timespec: mark functions with const attributes
3836         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
3837         Mark with _GL_ATTRIBUTE_CONST.
3838
3839 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3840
3841         canonicalize[-lgpl]: handle "guessing" values when cross-building
3842         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3843         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3844         matches "*yes" instead of just "yes".  Regression introduced in commit
3845         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3846
3847 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3848             Bruno Haible  <bruno@clisp.org>
3849
3850         canonicalize: make the right guess when cross-compiling to GNU
3851         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3852         determine whether cross-compiling to glibc systems, so as to
3853         include GNU/Hurd.
3854
3855 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3856
3857         timespec-sub: avoid duplicate include
3858         * lib/timespec-sub.c: Do not include <config.h> twice.
3859         Reported by Juanma Barranquero.
3860
3861 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3862
3863         bootstrap: use a more consistent error reporting scheme
3864         * build-aux/bootstrap (warn, die): New.
3865         Use them.
3866
3867 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3868
3869         sys_time: allow too-wide tv_sec
3870         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3871         timeval even if tv_sec is wider than time_t.  This allows
3872         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3873         as without this patch gnulib replaces struct timeval
3874         and OpenBSD futimes therefore has a type mismatch.
3875         * doc/posix-headers/sys_time.texi: Mention this.
3876
3877         pthread: check for both pthread_create and pthread_join
3878         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3879         alter the check so that it tests for both pthread_create and
3880         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3881         Suggested by Bruno Haible and Richard Yao in
3882         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3883
3884         parse-datetime: doc tuneup
3885         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3886         spacing issues.
3887
3888 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3889
3890         do-release-commit-and-tag: fix the previous commit
3891         * build-aux/do-release-commit-and-tag: Actually the test was right,
3892         but the comment and the error message were misleading.
3893         Fix comment, and improve error message.
3894         Perform check first, so that NEWS is not modified uselessly.
3895
3896         do-release-commit-and-tag: fix typo
3897         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3898         _not_ start with a stub.
3899
3900 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3901
3902         pthread: check for pthread_create, not pthread_join
3903         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3904         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3905         pthread_join in libc.  I hope this removes the need for all the
3906         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3907         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3908
3909 2012-07-04  Jim Meyering  <meyering@redhat.com>
3910
3911         parse-datetime: fix failure to diagnose invalid input
3912         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3913         rather than diagnosing the invalid input.  Now it reports this:
3914         date: invalid date '\260'
3915         * lib/parse-datetime.y (to_uchar): Define.
3916         (yylex): Don't sign-extend "other" bytes.
3917         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3918         Thanks to Bruno Haible for the patch to this file.
3919         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3920         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3921
3922 2012-07-03  Jim Meyering  <meyering@redhat.com>
3923
3924         bootstrap: do not require now-removed build-aux/missing
3925         Now that build-aux/missing is, er, missing, bootstrap would
3926         silently fail.
3927         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3928         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3929         no longer part of gnulib.
3930         Diagnose the failure.
3931
3932 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3933
3934         alloca: add support for HP NonStop TNS/E native
3935         * lib/alloca.in.h (alloca): Support the new host.
3936         From a suggestion by Joachim Schmitz in
3937         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3938
3939 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3940
3941         fsusage: remove code not needed on non GNU/Linux systems.
3942
3943         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3944         Don't include headers no longer needed in this case.
3945         * lib/fsusage.c [STAT_STATVFS &&
3946         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3947         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3948
3949 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3950
3951         fsusage: include files needed for glibc 2.6 fallback
3952         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3953         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3954         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3955         Problem reported by Ludovic Courtès in
3956         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3957
3958         fsusage: avoid needless check on GNU/Linux
3959         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3960         on GNU/Linux systems, since it can't possibly work.
3961
3962 2012-07-01  Bruno Haible  <bruno@clisp.org>
3963
3964         log: Fix an autoconf >= 2.64 warning.
3965         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3966         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3967
3968 2012-06-28  Bruno Haible  <bruno@clisp.org>
3969
3970         log10f: Fix possible configuration problem.
3971         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3972         $LOGF_LIBM.
3973         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3974
3975 2012-06-28  Bruno Haible  <bruno@clisp.org>
3976
3977         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3978         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3979         not gl_cv_func_unlink_works.
3980         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3981
3982 2012-06-27  Eric Blake  <eblake@redhat.com>
3983
3984         config: drop scripts that automake says are not independent
3985         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3986         * build-aux/elisp-comp: Delete.
3987         * build-aux/missing: Likewise.
3988         * build-aux/ylwrap: Likewise.
3989         * modules/elisp-comp: Likewise.
3990         * MODULES.html.sh: Drop mention of elisp-comp.
3991         * NEWS: Mention this.
3992
3993 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3994
3995         root-uid: new module
3996         This is for portability to Tandem's NonStop Kernel.
3997         * lib/root-uid.h, modules/root-uid: New files.
3998         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3999         * lib/write-any-file.c, tests/test-sethostname2.c:
4000         Include "root-uid.h".
4001         * lib/euidaccess.c (euidaccess):
4002         * lib/pt_chown.c (main):
4003         * lib/unlinkdir.c (cannot_unlink_dir):
4004         * lib/write-any-file.c (can_write_any_file):
4005         * m4/mknod.m4 (gl_FUNC_MKNOD):
4006         * tests/test-sethostname2.c (geteuid, main):
4007         Don't assume ROOT_UID == 0.
4008         * modules/euidaccess (Depends-on):
4009         * modules/pt_chown (Depends-on):
4010         * modules/sethostname-tests (Depends-on):
4011         * modules/unlinkdir (Depends-on):
4012         * modules/write-any-file (Depends-on):
4013         Add root-uid.
4014
4015         regex: use locale-independent comparison for codeset name
4016         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4017         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4018         for codeset name.
4019         * lib/regex_internal.h: Do not include <strings.h>, since we
4020         no longer use strcasecmp.
4021         * modules/regex (Depends-on): Remove strcase.
4022
4023 2012-06-23  Bruno Haible  <bruno@clisp.org>
4024
4025         getopt-posix: No longer guarantee that option processing is resettable.
4026         * doc/posix-functions/getopt.texi: Drop description of problem with
4027         internal state. Fix info about mingw and msvc9.
4028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4029         option processing by getopt(). Run three test programs instead of one.
4030         Simplify cross-compilation guess.
4031         * NEWS: Mention the change.
4032         Reported by Rich Felker <dalias@aerifal.cx>.
4033
4034 2012-06-26  Bruno Haible  <bruno@clisp.org>
4035
4036         argp, regex: Ensure strcasecmp gets declared.
4037         * lib/argp-help.c: Include <strings.h>.
4038         * lib/regex_internal.h: Likewise.
4039         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4040
4041 2012-06-24  Bruno Haible  <bruno@clisp.org>
4042
4043         ptsname_r: Make it consistent with ptsname on AIX.
4044         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4045         implementation as for OSF/1.
4046         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4047         a pty master.
4048
4049         ptsname_r: Make it consistent with ptsname on OSF/1.
4050         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4051         OSF/1.
4052
4053 2012-06-24  Bruno Haible  <bruno@clisp.org>
4054
4055         ttyname_r: Fix result on OSF/1, Solaris.
4056         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4057
4058 2012-06-24  Bruno Haible  <bruno@clisp.org>
4059
4060         ptsname_r: Add support for Solaris.
4061         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4062         Solaris.
4063
4064         ptsname_r: Fix test failure on native Windows.
4065         * modules/ptsname_r (Depends-on): Add isatty.
4066
4067         ptsname_r: Fix test failures on IRIX, Solaris.
4068         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4069         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4070         accordingly.
4071         * lib/ptsname_r.c: Include <fcntl.h>.
4072         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4073         set errno if fd is invalid.
4074         * tests/test-isatty.c (main): Update comments.
4075
4076 2012-06-24  Bruno Haible  <bruno@clisp.org>
4077
4078         ptsname test: Extend test.
4079         * tests/test-ptsname.c: Include <errno.h>.
4080         (main): Test behaviour with invalid file descriptor.
4081
4082 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4083
4084         time: fix obsolete comment
4085         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4086         reference to HAVE_STRUCT_TIMESPEC in comment.
4087
4088 2012-06-23  Bruno Haible  <bruno@clisp.org>
4089
4090         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4091         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4092         does not handle abbreviated long options with equivalent
4093         disambiguations, set gl_replace_getopt to yes.
4094         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4095
4096 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4097
4098         time_r: fix typo that always overrode localtime_r decl
4099         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4100         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4101         not in a standard include.
4102
4103 2012-06-22  Bruno Haible  <bruno@clisp.org>
4104
4105         Write "Mac OS X" instead of "MacOS X".
4106         * README: Write "Mac OS X" instead of "MacOS X".
4107         * build-aux/bootstrap: Likewise.
4108         * build-aux/install-reloc: Likewise.
4109         * lib/acl-internal.h: Likewise.
4110         * lib/acl_entries.c: Likewise.
4111         * lib/argp-ba.c: Likewise.
4112         * lib/argp-pv.c: Likewise.
4113         * lib/config.charset: Likewise.
4114         * lib/copy-acl.c: Likewise.
4115         * lib/csharpexec.c: Likewise.
4116         * lib/euidaccess.c: Likewise.
4117         * lib/fbufmode.c: Likewise.
4118         * lib/fflush.c: Likewise.
4119         * lib/file-has-acl.c: Likewise.
4120         * lib/filemode.h: Likewise.
4121         * lib/fpurge.c: Likewise.
4122         * lib/freadable.c: Likewise.
4123         * lib/freadahead.c: Likewise.
4124         * lib/freading.c: Likewise.
4125         * lib/freadptr.c: Likewise.
4126         * lib/freadseek.c: Likewise.
4127         * lib/fseeko.c: Likewise.
4128         * lib/fseterr.c: Likewise.
4129         * lib/fsusage.c: Likewise.
4130         * lib/fwritable.c: Likewise.
4131         * lib/fwriting.c: Likewise.
4132         * lib/get-rusage-as.c: Likewise.
4133         * lib/get-rusage-data.c: Likewise.
4134         * lib/getdomainname.c: Likewise.
4135         * lib/idpriv-drop.c: Likewise.
4136         * lib/idpriv-droptemp.c: Likewise.
4137         * lib/localcharset.c: Likewise.
4138         * lib/locale.in.h: Likewise.
4139         * lib/localename.c: Likewise.
4140         * lib/mbsrtowcs-state.c: Likewise.
4141         * lib/nproc.c: Likewise.
4142         * lib/passfd.c: Likewise.
4143         * lib/posix_openpt.c: Likewise.
4144         * lib/printf-parse.c: Likewise.
4145         * lib/progreloc.c: Likewise.
4146         * lib/safe-read.h: Likewise.
4147         * lib/safe-write.h: Likewise.
4148         * lib/sched.in.h: Likewise.
4149         * lib/set-mode-acl.c: Likewise.
4150         * lib/signal.in.h: Likewise.
4151         * lib/stdint.in.h: Likewise.
4152         * lib/stdio-impl.h: Likewise.
4153         * lib/stdlib.in.h: Likewise.
4154         * lib/strtod.c: Likewise.
4155         * lib/sys_select.in.h: Likewise.
4156         * lib/tcgetsid.c: Likewise.
4157         * lib/unistd.in.h: Likewise.
4158         * lib/unlockpt.c: Likewise.
4159         * lib/vasnprintf.c: Likewise.
4160         * lib/vma-iter.c: Likewise.
4161         * lib/wcsrtombs-state.c: Likewise.
4162         * m4/acl.m4: Likewise.
4163         * m4/acosl.m4: Likewise.
4164         * m4/asinl.m4: Likewise.
4165         * m4/atanl.m4: Likewise.
4166         * m4/c-stack.m4: Likewise.
4167         * m4/cosl.m4: Likewise.
4168         * m4/expl.m4: Likewise.
4169         * m4/extensions.m4: Likewise.
4170         * m4/fdatasync.m4: Likewise.
4171         * m4/fmal.m4: Likewise.
4172         * m4/frexp.m4: Likewise.
4173         * m4/frexpf.m4: Likewise.
4174         * m4/frexpl.m4: Likewise.
4175         * m4/fsusage.m4: Likewise.
4176         * m4/getdomainname.m4: Likewise.
4177         * m4/getloadavg.m4: Likewise.
4178         * m4/getopt.m4: Likewise.
4179         * m4/gettext.m4: Likewise.
4180         * m4/gnulib-common.m4: Likewise.
4181         * m4/intdiv0.m4: Likewise.
4182         * m4/intlmacosx.m4: Likewise.
4183         * m4/largefile.m4: Likewise.
4184         * m4/ldexpl.m4: Likewise.
4185         * m4/link-follow.m4: Likewise.
4186         * m4/locale-ar.m4: Likewise.
4187         * m4/locale-fr.m4: Likewise.
4188         * m4/locale-ja.m4: Likewise.
4189         * m4/locale-tr.m4: Likewise.
4190         * m4/locale-zh.m4: Likewise.
4191         * m4/locale_h.m4: Likewise.
4192         * m4/lock.m4: Likewise.
4193         * m4/logl.m4: Likewise.
4194         * m4/mathfunc.m4: Likewise.
4195         * m4/minus-zero.m4: Likewise.
4196         * m4/mktime.m4: Likewise.
4197         * m4/mmap-anon.m4: Likewise.
4198         * m4/multiarch.m4: Likewise.
4199         * m4/nanosleep.m4: Likewise.
4200         * m4/nocrash.m4: Likewise.
4201         * m4/poll.m4: Likewise.
4202         * m4/printf-frexpl.m4: Likewise.
4203         * m4/printf.m4: Likewise.
4204         * m4/signbit.m4: Likewise.
4205         * m4/sinl.m4: Likewise.
4206         * m4/sqrtl.m4: Likewise.
4207         * m4/strerror_r.m4: Likewise.
4208         * m4/tanl.m4: Likewise.
4209         * m4/threadlib.m4: Likewise.
4210         * m4/ttyname_r.m4: Likewise.
4211         * m4/unlink.m4: Likewise.
4212         * m4/visibility.m4: Likewise.
4213         * m4/wcwidth.m4: Likewise.
4214         * tests/minus-zero.h: Likewise.
4215         * tests/test-alloca-opt.c: Likewise.
4216         * tests/test-copy-acl.sh: Likewise.
4217         * tests/test-copy-file.sh: Likewise.
4218         * tests/test-fdatasync.c: Likewise.
4219         * tests/test-file-has-acl.sh: Likewise.
4220         * tests/test-flock.c: Likewise.
4221         * tests/test-fsync.c: Likewise.
4222         * tests/test-localename.c: Likewise.
4223         * tests/test-malloca.c: Likewise.
4224         * tests/test-nonblocking-pipe.h: Likewise.
4225         * tests/test-nonblocking-socket.h: Likewise.
4226         * tests/test-openpty.c: Likewise.
4227         * tests/test-posix_openpt.c: Likewise.
4228         * tests/test-ptsname.c: Likewise.
4229         * tests/test-ptsname_r.c: Likewise.
4230         * tests/test-sameacls.c: Likewise.
4231         * tests/test-select.h: Likewise.
4232         * tests/test-set-mode-acl.sh: Likewise.
4233         * tests/test-snprintf-posix.h: Likewise.
4234         * tests/test-sprintf-posix.h: Likewise.
4235         * tests/test-strtod.c: Likewise.
4236         * tests/test-time.c: Likewise.
4237         * tests/test-vasnprintf-posix.c: Likewise.
4238         * tests/test-vasprintf-posix.c: Likewise.
4239         * doc/acl-resources.txt: Likewise.
4240         * doc/**/*.texi: Likewise.
4241         Reported by Max Horn <max@quendi.de>.
4242
4243 2012-06-22  Bruno Haible  <bruno@clisp.org>
4244
4245         grantpt: Relax requirement regarding invalid file descriptors.
4246         * lib/grantpt.c: Don't include <fcntl.h>.
4247         (grantpt): Don't verify the validity of the file descriptor.
4248         * modules/grantpt (Depends-on): Remove fcntl-h.
4249         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4250         file descriptors.
4251         * doc/posix-functions/grantpt.texi: Document more platforms on which
4252         grantpt succeeds for invalid file descriptors.
4253         Reported by Rich Felker <dalias@aerifal.cx>.
4254
4255 2012-06-22  Bruno Haible  <bruno@clisp.org>
4256
4257         fbufmode test: Don't test unportable behaviour.
4258         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4259         (main): Invoke it three times.
4260         Reported by Szabolcs Nagy <nsz@port70.net>
4261         and Rich Felker <dalias@aerifal.cx>.
4262
4263 2012-06-21  Bruno Haible  <bruno@clisp.org>
4264
4265         gnulib-tool: Refactor inctests variable.
4266         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4267         (func_modules_transitive_closure,
4268         func_modules_transitive_closure_separately,
4269         func_import, func_create_testdir): Update.
4270
4271         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4272         * gnulib-tool: Accept option --without-tests.
4273         (func_usage): Document --without-tests option. Rearrange.
4274         (inctests): Normalize according to the mode.
4275         * NEWS: Mention the change.
4276         Suggested by Simon Josefsson.
4277
4278 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4279
4280         parse-duration test: Avoid spurious output.
4281         * tests/test-parse-duration.sh: Reindent with leading tabs.
4282
4283 2012-06-21  Jim Meyering  <meyering@redhat.com>
4284
4285         maint: disable the strncpy prohibition
4286         * cfg.mk: Do not prohibit strncpy here.
4287
4288 2012-06-21  Bruno Haible  <bruno@clisp.org>
4289
4290         nonblocking: Avoid compilation error on mingw64.
4291         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4292         fscanf.
4293         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4294         * modules/vfscanf (configure.ac): Likewise.
4295         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4296         definition only if stdio.h has prepared it.
4297         Reported by Daniel P. Berrange <berrange@redhat.com>.
4298
4299 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4300
4301         gnulib-tool: Use readlink if it is available.
4302         * gnulib-tool (func_readlink): Choose function more appropriately.
4303
4304 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4305
4306         posixtm-tests: port to buggy compiler
4307         Problem reported by Simon Josefsson in
4308         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4309         * modules/posixtm-tests (Depends-on): Add stdint.
4310         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4311         Now of type int_least64_t, not int64_t, both because that's
4312         what INT64_C returns and because int_least64_t works even
4313         on 72-bit hosts.
4314         (T): Use INT64_C on constants outside the traditional int range,
4315         to work around compiler bug noted by Simon.
4316
4317         mktime: fix integer overflow in 'configure'-time test
4318         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4319         after integer overflow.  Problem reported by Rich Felker in
4320         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4321         Also, don't look for further instances of a bug if we've already
4322         found one instance; this helps 'configure' run faster.
4323
4324 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4325
4326         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4327         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4328         GetVersionEx correctly.
4329         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4330
4331 2012-06-20  Bruno Haible  <bruno@clisp.org>
4332
4333         fdopen: Allow implementations that don't reject invalid fd arguments.
4334         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4335         succeeds.
4336         Reported by Rich Felker <dalias@aerifal.cx>.
4337
4338 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4339
4340         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4341         bring in LIBINTL.
4342
4343 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4344
4345         init.sh: do not rely on autoupated PWD
4346         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4347         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4348         Although Nelson's bug was not necessarily fixed by this patch,
4349         it seems wise to make the change for safety.
4350         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4351         automagically after 'cd'; this is not reliable on older shells.
4352         (setup_): Fail if we cannot cd to temporary directory.
4353
4354 2012-06-19  Bruno Haible  <bruno@clisp.org>
4355
4356         stat, fstat: Avoid warnings on mingw64.
4357         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4358         redefining.
4359         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4360         Reported by Daniel P. Berrange <berrange@redhat.com>.
4361
4362 2012-06-19  Bruno Haible  <bruno@clisp.org>
4363
4364         stdioext: Add support for musl libc.
4365
4366         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4367         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4368
4369         * m4/fseterr.m4: New file.
4370         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4371         function exists.
4372         * modules/fseterr (Files): Add m4/fseterr.m4.
4373         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4374         __fseterr does not exist.
4375         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4376
4377         * lib/freadable.h: Update comment.
4378
4379         * lib/fwritable.h: Update comment.
4380
4381         * lib/freading.h: Update comment.
4382
4383         * lib/fwriting.h: Update comment.
4384
4385         * m4/freadahead.m4: New file.
4386         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4387         that function exists.
4388         * modules/freadahead (Files): Add m4/freadahead.m4.
4389         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4390         __freadahead does not exist.
4391         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4392
4393         * m4/freadptr.m4: New file.
4394         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4395         function exists.
4396         * modules/freadptr (Files): Add m4/freadptr.m4.
4397         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4398         __freadptr does not exist.
4399         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4400
4401         * m4/freadseek.m4: New file.
4402         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4403         exists.
4404         * modules/freadseek (Files): Add m4/freadseek.m4.
4405         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4406
4407         * lib/fpurge.c (fpurge): Update comment.
4408
4409         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4410
4411 2012-06-19  Bruno Haible  <bruno@clisp.org>
4412
4413         *printf-posix: Put more info into config.log.
4414         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4415         exit code into config.log.
4416
4417 2012-06-19  Bruno Haible  <bruno@clisp.org>
4418
4419         getopt-gnu: Fix exit code overflow in autoconf test.
4420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4421         to keep them below < 128.
4422
4423 2012-06-17  Jim Meyering  <meyering@redhat.com>
4424
4425         maint.mk: fix typo in code to derive GPG key at release time
4426         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4427
4428 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4429
4430         regex: avoid warning when pointers are not long
4431         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4432         and uintptr_t, not long, for portability to hosts where pointers and
4433         long have different sizes.  Issue noted by Daniel P. Berrange in
4434         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4435         and fix suggested by Bruno Haible in
4436         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4437
4438 2012-06-17  Bruno Haible  <bruno@clisp.org>
4439
4440         dummy: Relicense into the public domain.
4441         * modules/dummy (License): Set to "public domain".
4442         Suggested by Reuben Thomas.
4443
4444 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4445
4446         announce-gen: VPATH issues
4447         * build-aux/announce-gen (--srcdir): New option, used to trim the
4448         $srcdir part of the path from $builddir to NEWS.
4449         * top/maint.mk (announcement): Adjust.
4450
4451 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4452
4453         gnu-web-doc-update: VPATH builds
4454         * build-aux/gnu-web-doc-update (--builddir): New option.
4455         Revamp the handling of options.
4456         Prefer $(...) to `...`.
4457         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4458         the template, and it is GNU mktemp specific.
4459         Prefer set -e to long series of &&.
4460         Restore the initial git branch, not "master".
4461         Properly initialize submodules (don't rely only on bootstrap).
4462         Do not reconfigure blindly, use config.status.
4463         * top/README-release: Update instructions for gnu-web-doc-update.
4464
4465 2012-06-11  Jim Meyering  <meyering@redhat.com>
4466
4467         maint.mk: revert most of the previous change re "all these"
4468         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4469         For rationale, see the discussion at
4470         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4471
4472 2012-06-10  Karl Berry  <karl@gnu.org>
4473
4474         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4475
4476         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4477
4478 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4479
4480         parse-duration: Relicense under LGPLv2+.
4481         * modules/parse-duration (License): Change to LGPLv2+.
4482
4483 2012-06-10  Jim Meyering  <meyering@redhat.com>
4484
4485         maint.mk: prohibit common grammar error: "all these"
4486         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4487         the list of prohibited word sequences.  It should be "all of these".
4488         * lib/tempname.c (__gen_tempname): Fix one of them.
4489
4490 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4491
4492         do-release-commit-and-tag: support VPATH builds
4493         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4494         (noteworthy): Defined earlier to factor its value.
4495         (noteworthy_stub): New.
4496         Use it to factor.
4497         (help_version): Split into...
4498         (help, version): these.
4499         Adjust the option processing part.
4500         Support "--option=value" in addition to "--option value".
4501         (builddir): New.
4502         (--builddir): New option.
4503         * top/README-release: Document this.
4504         Reword slightly so that the reader cannot understand that he
4505         has to do these steps before calling do-release-commit-and-tag.
4506
4507 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4508
4509         readme-release: also require announce-gen and maintainer-makefile
4510         * modules/readme-release (Depends-on): here.
4511         * modules/announce-gen, modules/do-release-commit-and-tag,
4512         modules/gnu-web-doc-update, modules/maintainer-makefile
4513         (Description): Point to readme-release.
4514
4515 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4516
4517         maint.mk: fix VPATH issues.
4518         * top/maint.mk (news-check): GNU Make understand $< very well.
4519         (release-prep): NEWS is in $(srcdir).
4520
4521 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4522
4523         readme-release: require the promoted modules.
4524         * modules/readme-release (Depends-on): Add
4525         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4526         in this text.
4527
4528 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4529             Bruno Haible  <bruno@clisp.org>
4530
4531         error, strerror-override: Support mingw64 from Fedora 17.
4532         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4533         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4534         EINPROGRESS.
4535         * lib/strerror-override.h (strerror_override): Test it.
4536         * lib/strerror-override.c (strerror_override): Likewise.
4537         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4538
4539 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4540             Bruno Haible  <bruno@clisp.org>
4541
4542         error, strerror-override: Support mingw64 from Fedora 17.
4543         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4544         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4545         * lib/strerror-override.h (strerror_override): Test it.
4546         * lib/strerror-override.c (strerror_override): Likewise.
4547
4548 2012-06-03  Bruno Haible  <bruno@clisp.org>
4549
4550         error, strerror-override: Support new errno values from POSIX:2008.
4551         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4552         ENOTRECOVERABLE.
4553         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4554         platforms.
4555         * lib/strerror-override.c (strerror_override): Conditionalize the
4556         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4557         * lib/strerror-override.h (strerror_override): Declare also if
4558         GNULIB_defined_EOWNERDEAD is defined.
4559         * tests/test-errno.c (e130, e131): New variables.
4560         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4561         ENOTRECOVERABLE.
4562         Reported by Paolo Bonzini.
4563
4564 2012-05-31  Jim Meyering  <meyering@redhat.com>
4565
4566         savewd: add missing dependency on sys_wait module
4567         * modules/savewd (Depends-on): Add sys_wait, needed at least
4568         for MSVC.  Report and suggested change by Michael Goffioul.
4569
4570 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4571
4572         system-quote-tests: port to CentOS 5
4573         Problem reported by Tom G. Christensen in
4574         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4575         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4576
4577 2012-05-29  Jim Meyering  <meyering@redhat.com>
4578
4579         maint: fix typos in comments and ChangeLog
4580         Culprits identified and fixed mostly automatically using these commands:
4581         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4582         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4583         using http://github.com/lyda/misspell-check
4584         * ChangeLog: Fix typos.
4585         * doc/solaris-versions: Likewise.
4586         * lib/regexec.c (re_search_stub): Likewise.
4587         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4588
4589 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4590
4591         manywarnings: remove duplicate -Wmultichar entry
4592         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4593         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4594         so keep the entry marked as documented.
4595
4596 2012-05-27  Karl Berry  <karl@gnu.org>
4597
4598         * config/srclist.txt (mktime.c): remove last libc sync,
4599         perhaps just temporarily.
4600
4601 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4602
4603         regex: don't assume uint64_t or uint32_t
4604         * lib/regcomp.c (init_word_char): Don't assume that the types
4605         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4606         them, and on some 32-bit compilers there is no uint64_t.
4607         Problem reported by Gianluigi Tiesi in
4608         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4609
4610 2012-05-25  Jim Meyering  <meyering@redhat.com>
4611
4612         maint.mk: add strncpy-prohibiting syntax-check rule
4613         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4614
4615 2012-05-24  Jim Meyering  <meyering@redhat.com>
4616
4617         maint.mk: compute $(gpg_key_ID) more portably
4618         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4619         That use of sed is not portable to some fringe systems.
4620         Reported by Paul Eggert in
4621         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4622
4623 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4624
4625         mktime: sync from glibc
4626         * config/srclist.txt: Uncomment mktime.c.
4627         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4628         First, indent with tabs, since glibc uses tabs and doesn't want to
4629         change and we'd rather be identical to glibc.  Also, two small
4630         coding changes:
4631         (isdst_differ): Use &&, not &, as && is the usual style.
4632         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4633         for clarity.
4634
4635 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4636
4637         announce-gen: du -h is more portable than du --human
4638         * build-aux/announce-gen (sizes): Invoke du with -h instead
4639         of --human.  Accept leading white space in its output.
4640
4641 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4642
4643         announce-gen: Improve diagnostics.
4644         * build-aux/announce-gen: When parsing command line options,
4645         prefer "announce-gen: option --release-type requires an argument"
4646         to "Option release-type requires an argument".
4647
4648 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4649
4650         maint.mk: gpg_key_ID: use sed more portably
4651         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4652         the closing brace.
4653         (refresh-po): Fuse two sed invocations into one.
4654
4655 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4656
4657         gitlog-to-changelog: support the log message format used in Bison.
4658         * build-aux/gitlog-to-changelog: Support --strip-tab and
4659         --strip-cherry-picked.
4660
4661 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4662
4663         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4664         the rest of the current time slice to another thread in the current
4665         process. So if the thread that feeds the file decscriptor we're
4666         polling is not in the current process, we get busy-waiting.
4667         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4668         Patch from Theodore Leblond.
4669         * lib/select.c: Split polling out of the loop that sets the output
4670         fd_sets.  Check for zero result and loop if the wait timeout is
4671         infinite.
4672
4673 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4674
4675         select: Fix build error on IRIX 6.5.
4676         * lib/select.c: Include stddef.h for NULL.
4677
4678 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4679
4680         gc: fix libgcrypt detection on older machines.
4681         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4682         copyright years because the file has been distributed every year
4683         since it was created.
4684
4685 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4686
4687         crypto: fix bug in large buffer handling
4688         Problem reported by Serge Belyshev for glibc in
4689         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4690         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4691         * lib/md4.c (md4_process_block):
4692         * lib/md5.c (md5_process_block):
4693         * lib/sha1.c (sha1_process_block):
4694         * lib/sha256.c (sha256_process_block):
4695         Don't assume the buffer length is less than 2**32.
4696         * lib/sha512.c (sha512_process_block): Likewise.
4697         Here, the bug is present only in the rare case where the host does
4698         not support uint64_t or where size_t is wider than 64 bits.
4699         Use u64size to work around the problems.
4700         * lib/u64.h (u64size): New macro.
4701
4702 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4703
4704         fsusage: fix block size returned on older Linux 2.6
4705
4706         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4707         which is available since Linux 2.6.
4708         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4709         when the member is available so it can be used as a fallback.
4710         * doc/posix-functions/statvfs.texi: Mention the hang issue
4711         on Linux < 2.6.36.
4712
4713 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4714
4715         bootstrap: suppress stderr chatter
4716         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4717         Omit unnecessary chatter to stderr.  The main program chatter
4718         was there only inadvertantly.
4719
4720         bootstrap: .gitignore files created by autopoint, libtool
4721         I ran into this problem when bootstrapping the latest diffutils.
4722         After './bootstrap', 'git status' reported lots of untracked files
4723         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4724         autopoint and do not need to be version-controlled.
4725         * build-aux/bootstrap: Put into .gitignore the files that
4726         autopoint and libtool create, by keeping track of files that exist
4727         after but not before these programs are run.
4728         (version_controlled_file): Move up.  2nd arg is now full file
4729         name, not base name; this is more convenient.  Put CVS at the end,
4730         as it's now somewhat deprecated.
4731
4732 2012-05-14  Jim Meyering  <meyering@redhat.com>
4733
4734         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4735         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4736         definition.  Reported by Bruno Haible.
4737
4738 2012-05-13  Bruno Haible  <bruno@clisp.org>
4739             Paul Eggert  <eggert@cs.ucla.edu>
4740
4741         binary-io: Define set_binary_mode function.
4742         * lib/binary-io.h (set_binary_mode): New function.
4743         (SET_BINARY): Define in terms of set_binary_mode.
4744         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4745         * tests/test-binary-io.c (main): Accept an argument, and test either
4746         set_binary_mode or SET_BINARY depending on the argument.
4747         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4748         argument. Clean up also t-bin-out0.tmp.
4749
4750 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4751
4752         bootstrap: take advantage of POSIX shell features
4753
4754         The 'bootstrap' script offered by Gnulib script already uses POSIX
4755         shell features (like $((...)) arithmetic expansions) that are not
4756         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4757         means that bootstrap must already be run using a proper POSIX shell,
4758         which will thus provide more features, like ${var#pattern} parameter
4759         expansion or inversion of a command exit status with '!'.  We can
4760         thus use these features to improve the clarity and the performances
4761         of the bootstrap script.
4762
4763         Suggested by Eric Blake.
4764
4765         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4766         of sed/expr plus command substitutions, to save some forks.  While
4767         we are at it, prefer the POSIX $(...) form of command substitution,
4768         rather than the legacy form `...` (since the former is visually
4769         clearer and interacts better with quoting), and prefer the idiom:
4770           "if ! CMD; then ACTION ..."
4771         over the idiom:
4772           "if CMD; then :; else ACTION ..."
4773         which was required by legacy Bourne shells not supporting '!'.
4774
4775 2012-05-12  Bruno Haible  <bruno@clisp.org>
4776
4777         system-quote: Add more comments.
4778         * lib/system-quote.h: Add more comments about wilcards and limitations.
4779         Suggested by Eli Zaretskii <eliz@gnu.org>.
4780
4781         sh-quote, system-quote: Add comments about wildcards.
4782         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4783         * lib/system-quote.h: Likewise.
4784         Reported by Eli Zaretskii <eliz@gnu.org>.
4785
4786 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4787
4788         fsusage: check for GNU/Linux statvfs problem dynamically
4789         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4790         Define STAT_STATFS2_BSIZE too, since in this case the code now
4791         checks dynamically whether statvfs is reliable, falling back on
4792         Linux-style statfs otherwise.
4793         (statvfs_works): New function, for dynamically testing statvfs.
4794         (get_fs_usage) [STAT_STATVFS]: Use it.
4795         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
4796         statvfs on GNU/Linux hosts, since it's now done dynamically.
4797
4798 2012-05-10  Bruno Haible  <bruno@clisp.org>
4799
4800         system-quote, execute, spawn-pipe: Escape '?' on Windows.
4801         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
4802         '?' character.
4803         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
4804         * tests/test-system-quote-main.c (check_all): Check also strings like
4805         "??????????".
4806         Reported by Eli Zaretskii <eliz@gnu.org>.
4807
4808 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4809
4810         _Noreturn: port config.h to gcc -Wundef
4811         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
4812         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
4813         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
4814
4815 2012-05-10  Bruno Haible  <bruno@clisp.org>
4816
4817         system-quote: Refactor.
4818         * lib/system-quote.h (system_quote_copy): Fix comment.
4819         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
4820         New functions, extracted from system_quote_copy.
4821         (system_quote_length, system_quote_copy): Use these functions.
4822         Reported by Paul Eggert.
4823
4824 2012-05-08  Bruno Haible  <bruno@clisp.org>
4825
4826         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4827         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
4828
4829 2012-05-08  Bruno Haible  <bruno@clisp.org>
4830
4831         Tests for module 'system-quote'.
4832         * modules/system-quote-tests: New file.
4833         * tests/test-system-quote.sh: New file.
4834         * tests/test-system-quote-main.c: New file.
4835         * tests/test-system-quote-child.c: New file.
4836
4837         New module 'system-quote'.
4838         * lib/system-quote.h: New file.
4839         * lib/system-quote.c: New file.
4840         * modules/system-quote: New file.
4841
4842 2012-05-08  Bruno Haible  <bruno@clisp.org>
4843
4844         sh-quote: Make C++ safe and allow multiple inclusion.
4845         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4846         declarations in extern "C".
4847
4848 2012-05-08  Bruno Haible  <bruno@clisp.org>
4849
4850         sh-quote tests: Make tests stricter.
4851         * tests/test-sh-quote.c (check_one): Check the return value of
4852         shell_quote_copy.
4853         (main): Check a string with a CR character. Check a string that
4854         contains UCHAR_MAX.
4855
4856 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4857
4858         warnings.m4: provide a means to specify the program to compile.
4859         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4860         (gl_WARN_ADD): here.
4861         Use gl_AS_VAR_APPEND.
4862         Support an argument to specify the program to compile.
4863         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4864         AC_SUBST the WARN_CFLAGS when they are used.
4865         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4866         leave this to gl_WARN_ADD.
4867
4868 2012-05-08  Eric Blake  <eblake@redhat.com>
4869
4870         doc: recommendations on gettext version
4871         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4872         choice between versions.
4873         * DEPENDENCIES (gettext): Cover both approaches.
4874
4875 2012-05-08  Jim Meyering  <meyering@redhat.com>
4876
4877         init.sh: explain why EXEEXT support uses aliases rather than functions
4878         * tests/init.sh: Add a comment.
4879
4880         init.sh: don't let bash aliases interfere with tests
4881         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4882         is bash.  This avoids problems for those who alias standard commands to
4883         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4884         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4885
4886 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4887
4888         stdint: be more consistent with glibc, SunOS libc
4889         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4890         (gl_int_fast16_t, gl_uint_fast16_t)
4891         (gl_int_fast32_t, gl_uint_fast32_t)
4892         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4893         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4894         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4895         Be consistent with glibc by default, and with SunOS 5.10 and later
4896         if __sun is defined.  This lessens the likelihood of clashes if
4897         code compiled for older hosts is combined with code compiled for
4898         newer ones.  Problem reported by Niels Möller in
4899         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4900
4901 2012-05-07  Eric Blake  <eblake@redhat.com>
4902
4903         isatty: relax license to LGPLv2+
4904         * modules/isatty (License): Relax license.
4905
4906 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4907
4908         stat-size: comment fix
4909         * lib/stat-size.h: Remove obsolete comment about indenting.
4910
4911 2012-05-06  Bruno Haible  <bruno@clisp.org>
4912
4913         Tests for module 'sh-quote'.
4914         * modules/sh-quote-tests: New file.
4915         * tests/test-sh-quote.c: New file.
4916
4917 2012-05-06  Bruno Haible  <bruno@clisp.org>
4918
4919         sh-quote: Improve shell_quote_argv's signature.
4920         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4921         * lib/sh-quote.c (shell_quote_argv): Likewise.
4922
4923 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4924
4925         stdint: document issues with int_fast8_t etc.
4926         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4927         stdint.h substitutes may define these types differently.  See
4928         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4929
4930 2012-05-05  Bruno Haible  <bruno@clisp.org>
4931
4932         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4934         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4935         or 'guessing no (mishandles large arguments)'.
4936
4937 2012-05-05  Bruno Haible  <bruno@clisp.org>
4938
4939         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4940         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4941         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4942         set gl_cv_func_link_follows_symlink to "guessing no".
4943
4944 2012-05-05  Bruno Haible  <bruno@clisp.org>
4945
4946         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4947         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4948         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4949         "guessing no".
4950         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4951
4952 2012-05-05  Bruno Haible  <bruno@clisp.org>
4953
4954         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4955         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4956         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4957         set gl_cv_struct_dirent_d_ino to "guessing yes".
4958
4959 2012-05-05  Bruno Haible  <bruno@clisp.org>
4960
4961         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4962         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4963         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4964         "guessing yes".
4965
4966 2012-05-05  Bruno Haible  <bruno@clisp.org>
4967
4968         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4969         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4970         compiling to a glibc system, set gl_cv_func_signbit and
4971         gl_cv_func_signbit_gcc to "guessing yes".
4972
4973 2012-05-05  Bruno Haible  <bruno@clisp.org>
4974
4975         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4976         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4977         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4978         to "guessing yes".
4979         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4980         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4981
4982 2012-05-05  Bruno Haible  <bruno@clisp.org>
4983
4984         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4985         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4986         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4987         gl_cv_func_realpath_works to "guessing yes".
4988
4989 2012-05-05  Bruno Haible  <bruno@clisp.org>
4990
4991         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4992         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4993         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4994
4995 2012-05-04  Bruno Haible  <bruno@clisp.org>
4996
4997         Tweak last commit.
4998         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4999         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5000
5001 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5002
5003         unistd_h: make it easier to avoid sys_types_h
5004         This is useful for Emacs, which has its own method of porting to
5005         Windows, and which therefore does not need the sys_types_h module.
5006         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5007         code moved here from gl_SYS_TYPES_H.
5008         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5009         using the code directly.
5010         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5011         gl_SYS_TYPES_H.
5012         * modules/sys_types (Files):
5013         * modules/unistd (Files): Add m4/off_t.m4.
5014
5015 2012-05-03  Bruno Haible  <bruno@clisp.org>
5016
5017         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5018         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5019         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5020         "guessing yes" or "guessing no".
5021         (gl_FUNC_LSTAT): Update.
5022         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5023         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5024         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5025
5026 2012-05-03  Bruno Haible  <bruno@clisp.org>
5027
5028         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5029         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5030         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5031         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5032         cross-compiling, choose the first alternative on glibc systems.
5033         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5034
5035 2012-05-03  Bruno Haible  <bruno@clisp.org>
5036
5037         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5038         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5039         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5040
5041 2012-05-03  Bruno Haible  <bruno@clisp.org>
5042
5043         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5044         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5045
5046 2012-05-03  Bruno Haible  <bruno@clisp.org>
5047
5048         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5049         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5050         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5051         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5052         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5053         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5054         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5055         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5056         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5057         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5058         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5059         gl_cv_func_chown_ctime_works to "guessing yes".
5060         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5061         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5062         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5063         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5064         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5065         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5066         compiling to glibc systems, set gl_cv_func_open_directory_works to
5067         "guessing yes".
5068         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5069         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5070         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5071         "guessing yes".
5072         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5073         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5074         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5075         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5076         "guessing yes".
5077         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5078         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5079         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5080         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5081         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5082         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5083         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5084         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5085         "guessing yes".
5086         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5087         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5088         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5089         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5090         "guessing yes".
5091         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5092         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5093         "guessing yes".
5094         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5095         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5096         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5097         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5098         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5099         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5100         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5101         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5102         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5103         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5104         "guessing yes".
5105         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5106         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5107         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5108         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5109         "guessing yes".
5110         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5111         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5112         "guessing yes".
5113         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5114         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5115         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5116         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5117         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5118         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5119         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5120         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5121         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5122         "guessing yes".
5123         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5124         compiling to glibc systems, set gl_cv_func_mknod_works to
5125         "guessing yes".
5126         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5127         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5128         "guessing yes".
5129         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5130         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5131         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5132         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5133         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5134         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5135         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5136         compiling to glibc systems, set gl_cv_func_svid_putenv to
5137         "guessing yes".
5138         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5139         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5140         "guessing yes".
5141         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5142         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5143         "guessing yes".
5144         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5145         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5146         to "guessing yes".
5147         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5148         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5149         to "guessing yes".
5150         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5151         compiling to glibc systems, set gl_cv_func_rmdir_works to
5152         "guessing yes".
5153         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5154         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5155         gl_cv_func_unlink_parent_fails to "guessing yes".
5156         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5157         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5158         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5159         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5160         gl_cv_func_rename_dest_works to "guessing yes".
5161         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5162         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5163         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5164         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5165         "guessing yes".
5166         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5167         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5168         "guessing yes".
5169         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5170         compiling to glibc systems, set gl_cv_func_setenv_works to
5171         "guessing yes".
5172         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5173         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5174         "guessing yes".
5175         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5176         compiling to glibc systems, set gl_cv_func_sleep_works to
5177         "guessing yes".
5178         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5179         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5180         "guessing yes".
5181         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5182         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5183         "guessing yes".
5184         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5185         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5186         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5187         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5188         "guessing yes".
5189         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5190         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5191         "guessing yes".
5192         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5193         compiling to glibc systems, set gl_cv_func_usleep_works to
5194         "guessing yes".
5195         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5196         compiling to glibc systems, set gl_cv_func_futimesat_works to
5197         "guessing yes".
5198
5199 2012-05-03  Bruno Haible  <bruno@clisp.org>
5200
5201         Say "guessing yes" or "guessing no" when cross-compiling.
5202         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5203         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5204         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5205         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5206         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5207         am_cv_func_working_getline to "guessing yes" or "guessing no".
5208         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5209         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5210         (gl_FUNC_MEMMEM): When cross-compiling, set
5211         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5212         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5213         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5215         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5216         "guessing no".
5217         (gl_FUNC_STRCASESTR): When cross-compiling, set
5218         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5219         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5220         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5221         (gl_FUNC_STRSTR): When cross-compiling, set
5222         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5223         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5224         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5225         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5226         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5227
5228 2012-05-01  Bruno Haible  <bruno@clisp.org>
5229
5230         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5231         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5232         * build-aux/reloc-ldflags: Likewise.
5233         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5234
5235 2012-05-01  Bruno Haible  <bruno@clisp.org>
5236
5237         gnulib-tool: Remove transitional code.
5238         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5239         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5240
5241 2012-05-01  Bruno Haible  <bruno@clisp.org>
5242
5243         getcwd: Fix misindentation.
5244         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5245
5246 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5247
5248         exclude: process exclude and include directives in order
5249         This restores the pre-2009 behavior, and is part of a fix of a
5250         grep bug reported by Quentin Arce in
5251         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5252         * lib/exclude.c (struct exclude): Remove 'tail' member.
5253         (new_exclude_segment): Prepend the new segment instead of appending.
5254         Return void, since that's now more convenient.
5255         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5256         (file_name_matches): Renamed from excluded_file_name_p.
5257         (file_pattern_matches, file_name_matches):
5258         Return true if the pattern matches, not if it excludes.
5259         All callers changed.
5260         (excluded_file_name): Process the list in reverse order;
5261         since the list is now reversed this restores the pre-2009 behavior.
5262         (add_exclude): Adjust to new reversed-order list.  Use local var
5263         rather than macro, for clarity.
5264         * tests/test-exclude7.sh: Adjust to corrected behavior.
5265
5266         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5267         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5268         it's not possible here.  Handle the case of \ at end of pattern
5269         without dumping core.
5270         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5271
5272         _Noreturn: future-proof non-GNU and non-MSVC compilers
5273         * build-aux/snippet/_Noreturn.h (_Noreturn):
5274         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5275         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5276         C11 or later.  This is more likely to work with random future C
5277         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5278         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5279
5280         exclude: handle wildcards with FNM_EXTMATCH
5281         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5282         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5283         comment that "has wildcards" really means "has or may have
5284         wildcards".  Simplify by avoiding the need to call strcspn.
5285
5286 2012-04-29  Bruno Haible  <bruno@clisp.org>
5287
5288         gnulib-tool: Fix list of authors.
5289         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5290
5291 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5292
5293         bootstrap: support Automake-NG in $buildreq
5294         * bootstrap (check_versions): Handle automake and aclocal from
5295         Automake-NG specially.  They can be specified as respectively
5296         the "automake-ng" and "aclocal-ng" requirements.
5297
5298 2012-04-25  Eric Blake  <eblake@redhat.com>
5299
5300         bootstrap: only force latest Makefile.in.in for gettext module
5301         * build-aux/bootstrap (with_gettext): Only install latest
5302         Makefile.in.in for projects requesting bleeding edge gettext.
5303
5304 2012-04-22  Bruno Haible  <bruno@clisp.org>
5305
5306         doc: Mention reason for replacement on glibc/Linux systems.
5307         * doc/posix-functions/dprintf.texi: Mention the problem with special
5308         'long double' values.
5309         * doc/posix-functions/fprintf.texi: Likewise.
5310         * doc/posix-functions/printf.texi: Likewise.
5311         * doc/posix-functions/snprintf.texi: Likewise.
5312         * doc/posix-functions/sprintf.texi: Likewise.
5313         * doc/posix-functions/vdprintf.texi: Likewise.
5314         * doc/posix-functions/vfprintf.texi: Likewise.
5315         * doc/posix-functions/vprintf.texi: Likewise.
5316         * doc/posix-functions/vsnprintf.texi: Likewise.
5317         * doc/posix-functions/vsprintf.texi: Likewise.
5318         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5319         platforms with F_DUPFD_CLOEXEC problems.
5320         * doc/posix-functions/glob.texi: Mention which platforms are affected
5321         by the problem with symbolic links.
5322         * doc/posix-functions/linkat.texi: Mention the problem with
5323         AT_SYMLINK_FOLLOW on Linux.
5324
5325 2012-04-22  Bruno Haible  <bruno@clisp.org>
5326
5327         pwrite: Don't replace on all platforms.
5328         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5329
5330 2012-04-22  Bruno Haible  <bruno@clisp.org>
5331
5332         rint* tests: Avoid gcc warnings.
5333         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5334         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5335         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5336
5337 2012-04-21  Bruno Haible  <bruno@clisp.org>
5338
5339         users.txt: Update.
5340         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5341         switched from CVS to git, bzr, or svn.
5342
5343 2012-04-21  Bruno Haible  <bruno@clisp.org>
5344
5345         Large File Support for native Windows platforms.
5346
5347         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5348         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5349
5350         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5351         type.
5352         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5353         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5354         * doc/posix-headers/sys_types.texi: Mention the effect of the
5355         'largefile' module.
5356
5357         * lib/fcntl.in.h: Add comments about off_t.
5358         * modules/fcntl-h (Depends-on): Add sys_types.
5359
5360         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5361         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5362         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5363         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5364         * modules/unistd (Depends-on): Add sys_types.
5365         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5366
5367         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5368         instead of lseek.
5369         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5370         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5371         * modules/lseek (Depends-on): Add sys_types.
5372
5373         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5374         msvc-nothrow.h.
5375         (SetFileSize): New function.
5376         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5377         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5378         if Large File Support is requested.
5379         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5380         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5381
5382         * lib/stdio.in.h: Add comments about off_t.
5383         * modules/stdio (Depends-on): Add sys_types.
5384
5385         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5386         instead of ftello.
5387         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5388         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5389         (gl_PREREQ_FTELLO): New macro.
5390         * modules/ftello (Depends-on): Add sys_types.
5391         (configure.ac): Incoke gl_PREREQ_FTELLO.
5392
5393         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5394         instead of fseeko.
5395         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5396         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5397         (gl_PREREQ_FSEEKO): New macro.
5398         * modules/fseeko (Depends-on): Add sys_types.
5399         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5400
5401         * lib/sys_stat.in.h: Add comments about off_t.
5402         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5403         64-bit integer for st_size in 'struct stat'.
5404         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5405         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5406         * modules/sys_stat (Depends-on): Add sys_types.
5407         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5408
5409         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5410         instead of stat or _stat.
5411
5412         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5413         'struct _stati64' instead of fstat and 'struct stat'.
5414         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5415         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5416
5417         Reported by Ray Satiro <raysatiro@yahoo.com>.
5418
5419 2012-04-19  Eric Blake  <eblake@redhat.com>
5420
5421         bootstrap: accommodate older libtool
5422         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5423         Reported by Daniel P. Berrange.
5424
5425 2012-04-19  Jim Meyering  <meyering@redhat.com>
5426
5427         announce-gen: avoid failure due to lack of Digest::SHA1
5428         Even with the preferred Digest::SHA available, this script
5429         would fail when the backup module, Digest::SHA1, was not installed.
5430         * build-aux/announce-gen: Quote the conditional use of "use".
5431         Reported by Reuben Thomas in:
5432         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5433
5434         bootstrap: don't let a user's CDPATH setting affect this script
5435         When CDPATH is set, cd will sometimes generate output.
5436         When "cd" is run in a subshell whose output matters, that
5437         surprising-to-some output can cause malfunction.
5438         Unsetting CDPATH turns off this shell "feature."
5439         * build-aux/bootstrap (CDPATH): Unset.
5440         Reported by Reuben Thomas in:
5441         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5442         and inspired by his patch here:
5443         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5444
5445 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5446         and Jim Meyering  <meyering@redhat.com>
5447
5448         maint.mk: catch "see @xref{}" and similar
5449         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5450         prohibit "See also @xref{", "Also see @pxref{", and similar.
5451
5452 2012-04-16  Jim Meyering  <meyering@redhat.com>
5453
5454         bootstrap: really use gnulib's po/Makefile.in.in
5455         * build-aux/bootstrap: Correct the source file name in previous change.
5456         Reported by Akim Demaille.
5457
5458         configmake: correct minor inconsistency in Makefile rule
5459         * modules/configmake (Makefile.am): All other rules like this one
5460         run the final "mv -f ..." in the same backslash-continued command
5461         as the one that does everything else.  This one put the mv -f ...
5462         command on a separate, non-backslash-continued line.
5463         Make it like the others.
5464
5465         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5466         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5467         the one from gettext.  Reported by Akim Demaille.
5468
5469 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5470
5471         Fix recursion of install-* into po directories.
5472         Bison's install-pdf bug reported by Hans Aberg at
5473         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5474         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5475         (install-info, install-pdf, install-ps): New targets.
5476
5477 2012-04-16  Jim Meyering  <meyering@redhat.com>
5478
5479         maint: avoid spurious "make sc_maint" failure
5480         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5481         exempt all *.class file names, for lib/javaversion.class.
5482
5483 2012-04-15  Bruno Haible  <bruno@clisp.org>
5484
5485         lseek: Make configure test independent of environment.
5486         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5487         Windows, we know that lseek() on pipes is broken; skip the runtime
5488         test.
5489
5490 2012-04-14  Bruno Haible  <bruno@clisp.org>
5491
5492         stat: Bypass buggy override in mingw64.
5493         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5494         * lib/stat.c (stat) [mingw64]: Define to _stat.
5495         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5496
5497 2012-04-14  Bruno Haible  <bruno@clisp.org>
5498
5499         pathmax: Fix compilation error on MSVC 9.
5500         * modules/pathmax (Depends-on): Add unistd.
5501
5502 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5503
5504         README: document pointer comparison assumption
5505         * README (Portability guidelines): Document assumption about
5506         pointer comparisons, in response to a recent bug-gnulib comment by
5507         Jeffrey Kegler.
5508
5509 2012-04-12  Bruno Haible  <bruno@clisp.org>
5510
5511         Tests for module 'getrusage'.
5512         * modules/getrusage-tests: New file.
5513         * tests/test-getrusage.c: New file.
5514
5515         New module 'getrusage'.
5516         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5517         warn-on-use.h.
5518         (getrusage): New declaration.
5519         * lib/getrusage.c: New file.
5520         * m4/getrusage.m4: New file.
5521         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5522         is declared.
5523         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5524         HAVE_GETRUSAGE.
5525         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5526         snippet/c++defs, snippet/warn-on-use.
5527         (Makefile.am): Update generation of sys/resource.h. Substitute
5528         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5529         * modules/getrusage: New file.
5530         * doc/posix-functions/getrusage.texi: Mention the new module.
5531
5532 2012-04-12  Bruno Haible  <bruno@clisp.org>
5533
5534         Tests for module 'sys_resource'.
5535         * modules/sys_resource-tests: New file.
5536         * tests/test-sys_resource.c: New file.
5537
5538         New module 'sys_resource'.
5539         * lib/sys_resource.in.h: New file.
5540         * m4/sys_resource_h.m4: New file.
5541         * modules/sys_resource: New file.
5542         * doc/posix-headers/sys_resource.texi: Mention the new module.
5543
5544 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5545
5546         ioctl: Fix compilation error on mingw.
5547         * lib/ioctl.c: Include <windows.h>.
5548         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5549
5550 2012-04-04  Jim Meyering  <meyering@redhat.com>
5551
5552         regex: correct #pragma guard expression
5553         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5554         not 4.3.  Correct its cpp guard expression.
5555
5556 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5557
5558         regex: remove unnecessary type punning
5559         Problem reported by Vladimir Serbinenko in
5560         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5561         * lib/regex.h (struct re_pattern_buffer): Change the type of
5562         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5563         Fix comment to match code.
5564         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5565         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5566         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5567         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5568         (set_regs):
5569         Omit no-longer-necessary casts.
5570
5571 2012-04-03  Bruno Haible  <bruno@clisp.org>
5572
5573         Tests for module 'ilogbl'.
5574         * modules/ilogbl-tests: New file.
5575         * tests/test-ilogbl.c: New file.
5576
5577         New module 'ilogbl'.
5578         * lib/math.in.h (ilogbl): New declaration.
5579         * lib/ilogbl.c: New file.
5580         * m4/ilogbl.m4: New file.
5581         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5583         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5584         Split sed invocation, to avoid the limit of 100 substitutions of
5585         HP-UX 'sed'.
5586         * modules/ilogbl: New file.
5587         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5588         * doc/posix-functions/ilogbl.texi: Mention the new module.
5589
5590 2012-04-03  Bruno Haible  <bruno@clisp.org>
5591
5592         Tests for module 'ilogbf'.
5593         * modules/ilogbf-tests: New file.
5594         * tests/test-ilogbf.c: New file.
5595
5596         New module 'ilogbf'.
5597         * lib/math.in.h (ilogbf): New declaration.
5598         * lib/ilogbf.c: New file.
5599         * m4/ilogbf.m4: New file.
5600         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5602         REPLACE_ILOGBF.
5603         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5604         REPLACE_ILOGBF.
5605         * modules/ilogbf: New file.
5606         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5607         * doc/posix-functions/ilogbf.texi: Mention the new module.
5608
5609 2012-04-03  Bruno Haible  <bruno@clisp.org>
5610
5611         Tests for module 'ilogb'.
5612         * modules/ilogb-tests: New file.
5613         * tests/test-ilogb.c: New file.
5614         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5615         tests/test-logb-ieee.h.
5616
5617         New module 'ilogb'.
5618         * lib/math.in.h (ilogb): New declaration.
5619         * lib/ilogb.c: New file.
5620         * m4/ilogb.m4: New file.
5621         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5623         REPLACE_ILOGB.
5624         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5625         REPLACE_ILOGB.
5626         * modules/ilogb: New file.
5627         * tests/test-math-c++.cc: Check the declaration of ilogb.
5628         * doc/posix-functions/ilogb.texi: Mention the new module.
5629
5630 2012-04-03  Bruno Haible  <bruno@clisp.org>
5631
5632         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5633         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5634         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5635         (main): Check their values.
5636         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5637         problem.
5638
5639 2012-04-03  Bruno Haible  <bruno@clisp.org>
5640
5641         Tests for module 'logbl-ieee'.
5642         * modules/logbl-ieee-tests: New file.
5643         * tests/test-logbl-ieee.c: New file.
5644
5645         New module 'logbl-ieee'.
5646         * modules/logbl-ieee: New file.
5647
5648         Tests for module 'logb-ieee'.
5649         * modules/logb-ieee-tests: New file.
5650         * tests/test-logb-ieee.c: New file.
5651
5652         New module 'logb-ieee'.
5653         * modules/logb-ieee: New file.
5654
5655         Tests for module 'logbf-ieee'.
5656         * modules/logbf-ieee-tests: New file.
5657         * tests/test-logbf-ieee.c: New file.
5658         * tests/test-logb-ieee.h: New file.
5659
5660         New module 'logbf-ieee'.
5661         * modules/logbf-ieee: New file.
5662
5663 2012-04-03  Bruno Haible  <bruno@clisp.org>
5664
5665         Tests for module 'logbl'.
5666         * modules/logbl-tests: New file.
5667         * tests/test-logbl.c: New file.
5668
5669         New module 'logbl'.
5670         * lib/math.in.h (logbl): New declaration.
5671         * lib/logbl.c: New file.
5672         * m4/logbl.m4: New file.
5673         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5675         REPLACE_LOGBL.
5676         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5677         REPLACE_LOGBL.
5678         * modules/logbl: New file.
5679         * tests/test-math-c++.cc: Check the declaration of logbl.
5680         * doc/posix-functions/logbl.texi: Mention the new module.
5681
5682 2012-04-02  Bruno Haible  <bruno@clisp.org>
5683
5684         Tests for module 'logbf'.
5685         * modules/logbf-tests: New file.
5686         * tests/test-logbf.c: New file.
5687
5688         New module 'logbf'.
5689         * lib/math.in.h (logbf): New declaration.
5690         * lib/logbf.c: New file.
5691         * m4/logbf.m4: New file.
5692         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5694         REPLACE_LOGBF.
5695         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5696         REPLACE_LOGBF.
5697         * modules/logbf: New file.
5698         * tests/test-math-c++.cc: Check the declaration of logbf.
5699         * doc/posix-functions/logbf.texi: Mention the new module.
5700
5701 2012-04-02  Bruno Haible  <bruno@clisp.org>
5702
5703         logb tests: More tests.
5704         * tests/test-logb.h: New file, based on tests/test-logb.c and
5705         tests/test-frexp.h.
5706         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5707         (main): Just invoke test_function.
5708         * modules/logb-tests (Files): Add tests/test-logb.h,
5709         tests/minus-zero.h, tests/randomd.c.
5710         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5711
5712         logb: Provide replacement and workarounds.
5713         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5714         is 1.
5715         * lib/logb.c: New file.
5716         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5717         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5719         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5720         * modules/logb (Files): Add lib/logb.c.
5721         (Depends-on): Add isfinite, frexp, isnand.
5722         (configure.ac): Compile the replacement code logb.c if needed.
5723         * tests/test-math-c++.cc: Check the declaration of logb.
5724         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5725         with subnormal numbers.
5726
5727 2012-04-02  Bruno Haible  <bruno@clisp.org>
5728
5729         log10* tests: Speed up.
5730         * tests/test-log10.h (test_function): Reduce amount of random numbers
5731         to test.
5732
5733 2012-04-01  Bruno Haible  <bruno@clisp.org>
5734
5735         logf-ieee: Fix test whether logf works.
5736         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5737
5738 2012-04-01  Bruno Haible  <bruno@clisp.org>
5739
5740         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5741         * lib/log10l.c: Include <float.h>
5742         (log10l): On IRIX, normalize the +Infinity value.
5743         * modules/log10l (Depends-on): Add 'float'.
5744         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5745         +Infinity.
5746
5747         log10f-ieee: Work around test failure on NetBSD 5.1.
5748         * m4/log10f-ieee.m4: New file.
5749         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5750         test whether log10f works with a negative argument. Replace it if not.
5751         * lib/log10f.c (log10f): For negative arguments, return NaN.
5752         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5753         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5754         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5755
5756         log10f-ieee: Work around test failure on Solaris 9.
5757         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5758         (configure.ac): Require gl_FUNC_LOG10F.
5759
5760         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5761         * m4/log10-ieee.m4: New file.
5762         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5763         whether log10 works with a negative argument. Replace it if not.
5764         * lib/log10.c (log10): For negative arguments, return NaN.
5765         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5766         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5767         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5768
5769         Tests for module 'log10l-ieee'.
5770         * modules/log10l-ieee-tests: New file.
5771         * tests/test-log10l-ieee.c: New file.
5772
5773         New module 'log10l-ieee'.
5774         * modules/log10l-ieee: New file.
5775
5776         Tests for module 'log10-ieee'.
5777         * modules/log10-ieee-tests: New file.
5778         * tests/test-log10-ieee.c: New file.
5779
5780         New module 'log10-ieee'.
5781         * modules/log10-ieee: New file.
5782
5783         Tests for module 'log10f-ieee'.
5784         * modules/log10f-ieee-tests: New file.
5785         * tests/test-log10f-ieee.c: New file.
5786         * tests/test-log10-ieee.h: New file.
5787
5788         New module 'log10f-ieee'.
5789         * modules/log10f-ieee: New file.
5790
5791 2012-04-01  Bruno Haible  <bruno@clisp.org>
5792
5793         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5794         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5795         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
5796         workaround.
5797         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
5798         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
5799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
5800         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
5801         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
5802         (Depends-on): Update conditions.
5803         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
5804         IRIX 6.5, OSF/1 5.1 problems.
5805
5806 2012-04-01  Bruno Haible  <bruno@clisp.org>
5807
5808         log10f: Work around OSF/1 5.1 bug.
5809         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
5810         * lib/log10f.c (log10f): If logf exists, use it and provide just the
5811         workaround.
5812         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
5813         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
5814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
5815         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
5816         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
5817         (Depends-on): Update conditions.
5818         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
5819
5820 2012-04-01  Bruno Haible  <bruno@clisp.org>
5821
5822         log10: Work around OSF/1 5.1 bug.
5823         * lib/math.in.h (log10): New declaration.
5824         * lib/log10.c: New file.
5825         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
5826         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
5827         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
5828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
5829         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
5830         * modules/log10 (Files): Add lib/log10.c.
5831         (Depends-on): Add math.
5832         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
5833         * tests/test-math-c++.cc: Check the declaration of log10.
5834         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
5835
5836 2012-03-31  Bruno Haible  <bruno@clisp.org>
5837
5838         log10l tests: More tests.
5839         * modules/log10l-tests (Files): Add tests/test-log10l.h,
5840         tests/minus-zero.h, tests/randoml.c.
5841         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
5842         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
5843         (main): Invoke test_function.
5844
5845         log10f tests: More tests.
5846         * modules/log10f-tests (Files): Add tests/test-log10.h,
5847         tests/minus-zero.h, tests/randomf.c.
5848         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5849         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5850         (main): Invoke test_function.
5851
5852         log10 tests: More tests.
5853         * tests/test-log10.h: New file.
5854         * modules/log10-tests (Files): Add tests/test-log10.h,
5855         tests/minus-zero.h, tests/randomd.c.
5856         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5857         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5858         (main): Invoke test_function.
5859
5860 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5861
5862         fflush: Fix syntax error.
5863         * lib/fflush.c: Include unused-parameter.h, needed for
5864         _GL_UNUSED_PARAMETER.
5865         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5866
5867 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5868
5869         regex: pacify GCC when compiling GRUB
5870         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5871         a diagnostic.  Reported by Vladimir Serbinenko in
5872         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5873
5874 2012-03-29  Eric Blake  <eblake@redhat.com>
5875
5876         stdio: don't assume gets any more
5877         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5878         support.
5879         * modules/stdio (Makefile.am): Likewise.
5880         * lib/stdio-read.c (gets): Likewise.
5881         * tests/test-stdio-c++.cc: Likewise.
5882         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5883         * lib/stdio.in.h (gets): Make warning occur in more places.
5884         * doc/posix-functions/gets.texi (gets): Update documentation.
5885         Reported by Christer Solskogen.
5886
5887         maint.mk: fix syntax checks without exclusions
5888         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5889         Reported by Daniel P. Berrange.
5890
5891         strerror_r: avoid compiler warning
5892         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5893         level.
5894
5895         fflush: avoid compiler warning
5896         * lib/fflush.c (update_fpos_cache): Mark variables that are
5897         potentially unused.
5898
5899 2012-03-25  Bruno Haible  <bruno@clisp.org>
5900
5901         Tests for module 'localeconv'.
5902         * modules/localeconv-tests: New file.
5903         * tests/test-localeconv.c: New file.
5904
5905         New module 'localeconv'.
5906         * lib/locale.in.h (localeconv): New declaration.
5907         * lib/localeconv.c: New file.
5908         * m4/localeconv.m4: New file.
5909         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5910         REPLACE_LOCALECONV.
5911         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5912         REPLACE_LOCALECONV.
5913         * modules/localeconv: New file.
5914         * modules/nl_langinfo (Depends-on): Add localeconv.
5915         * modules/human (Depends-on): Likewise.
5916         * doc/posix-functions/localeconv.texi: Mention the new module.
5917
5918 2012-03-25  Bruno Haible  <bruno@clisp.org>
5919
5920         locale: Provide a complete 'struct lconv'.
5921         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5922         'struct lconv' does not contain int_p_cs_precedes.
5923         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5924         * doc/posix-headers/locale.texi: Update.
5925
5926         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5927         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5928         * doc/posix-headers/locale.texi: Update.
5929
5930         locale: Provide a working 'struct lconv'.
5931         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5932         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5933         'struct lconv' does not even contain decimal_point.
5934         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5935         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5936         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5937         * doc/posix-headers/locale.texi: Mention the problems with
5938         'struct lconv'.
5939         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5940
5941 2012-03-24  Bruno Haible  <bruno@clisp.org>
5942
5943         Enable common subexpression optimization in GCC.
5944         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5945         macros.
5946         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5947         GCC attribute 'const'.
5948         (uc_locale_language): Declare with GCC attribute 'pure'.
5949         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5950         with GCC attribute 'const'.
5951         * lib/unictype.in.h (uc_is_general_category_withtable,
5952         uc_combining_class, uc_combining_class_name,
5953         uc_combining_class_long_name, uc_bidi_class_name,
5954         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5955         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5956         uc_decimal_value, uc_digit_value, uc_numeric_value,
5957         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5958         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5959         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5960         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5961         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5962         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5963         Declare with GCC attribute 'const'.
5964         (uc_general_category_name, uc_general_category_long_name,
5965         uc_general_category_byname, uc_general_category,
5966         uc_is_general_category, uc_combining_class_byname,
5967         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5968         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5969         Declare with GCC attribute 'pure'.
5970         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5971         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5972         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5973         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5974         with GCC attribute 'pure'.
5975         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5976         'const'.
5977         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5978         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5979         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5980         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5981         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5982         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5983         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5984         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5985         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5986         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5987         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5988         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5989         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5990         GCC attribute 'pure'.
5991         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5992         'const'.
5993         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5994         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5995         u32_strwidth): Declare with GCC attribute 'pure'.
5996
5997         Enable common subexpression optimization in GCC.
5998         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5999         (alphasort): Declare with GCC attribute 'pure'.
6000         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6001         (atoll): Declare with GCC attribute 'pure'.
6002         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6003         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6004         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6005         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6006         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6007         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6008         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6009
6010 2012-03-24  Bruno Haible  <bruno@clisp.org>
6011
6012         gnulib-tool: Avoid unintended error output from 'cmp'.
6013         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6014         "cmp -s", not "cmp > /dev/null".
6015
6016 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6017
6018         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6019
6020         It's not just Automake versions < 1.9b that creates an empty
6021         pkgdatadir at installation time if pkgdata_DATA is specified
6022         to empty; modern automake versions do this as well, at least
6023         until automake 1.11.4 (not yet released at the moment of writing,
6024         but soon to appear).  That behaviour was generally considered a
6025         feature rather than a bug, at least until this discussion:
6026         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6027
6028         See also automake bugs #10997 and #11030.
6029
6030         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6031         reference to relevant automake bug numbers.
6032         (func_emit_tests_Makefile_am): Likewise.
6033
6034 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6035
6036         announce-gen: use Digest::SHA when possible
6037         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6038         back to Digest::SHA1 if necessary.
6039
6040 2012-03-20  Jim Meyering  <meyering@redhat.com>
6041
6042         tests: avoid gcc warnings about argv vs. const initializers
6043         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6044         warnings about discarding 'const' qualifier from pointer target type.
6045         * tests/test-posix_spawn2.c (main): Likewise.
6046
6047 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6048
6049         README-release: simplify slightly
6050         * top/README-release: Run "git checkout master" only once.
6051
6052 2012-03-15  Mark Wielaard  <mark@klomp.org>
6053
6054         git-merge-changelog: add specific example on how to use with hg.
6055         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6056
6057 2012-03-18  Mark Wielaard  <mark@klomp.org>
6058
6059         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6060
6061 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6062
6063         git-version-gen: don't let "prefix" envvar cause trouble
6064         * build-aux/git-version-gen (prefix): Initialize properly,
6065         so as not to use a value specified via the environment.
6066         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6067
6068 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6069
6070         regex: diagnose too-large repeat counts in EREs
6071         Previously, the code did not diagnose the too-large repeat count
6072         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6073         as if it were 'b\{1000000000}', which is unexpected.
6074         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6075         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6076         is a reasonable one for this problem.  Another option would be to
6077         create a new REG_OVERFLOW error for repeat counts that are too large.
6078         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6079         count is too large, so that the caller can distinguish the two cases.
6080         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6081         "Too large" return code, and that repeat counts are one example of this.
6082
6083 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6084
6085         doc: some glibc x32 integer width issues
6086         * doc/posix-headers/sys_types.texi (sys/types.h):
6087         * doc/posix-headers/time.texi (time.h):
6088         Mention that glibc x32 does not conform to POSIX in a couple of
6089         areas related to integer widths.
6090
6091 2012-03-15  Bruno Haible  <bruno@clisp.org>
6092
6093         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6094         * lib/fma.c (VOLATILE): New macro.
6095         (FUNC): Use it to work around a GCC compiler bug.
6096
6097 2012-03-13  Bruno Haible  <bruno@clisp.org>
6098
6099         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6100         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6101         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6102         REPLACE_HYPOTL to 1.
6103         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6104
6105 2012-03-13  Bruno Haible  <bruno@clisp.org>
6106
6107         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6108         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6109         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6110         REPLACE_REMAINDERL to 1.
6111         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6112         bug.
6113
6114 2012-03-13  Bruno Haible  <bruno@clisp.org>
6115
6116         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6117         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6118         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6119         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6120         too big rounding errors.
6121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6122         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6123         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6124         (Depends-on): Update conditions.
6125         * tests/test-sqrtl.c (my_ldexpl): New function.
6126         (main): Add test of a particular value.
6127         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6128
6129 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6130
6131         doc: Update timer_* platform portability notes.
6132         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6133         that always return ENOSYS.
6134         * doc/posix-functions/timer_delete.texi: Likewise.
6135         * doc/posix-functions/timer_gettime.texi: Likewise.
6136         * doc/posix-functions/timer_settime.texi: Likewise.
6137
6138 2012-03-13  Bruno Haible  <bruno@clisp.org>
6139
6140         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6141         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6142         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6143         REPLACE_CBRTL to 1.
6144         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6145
6146 2012-03-13  Bruno Haible  <bruno@clisp.org>
6147
6148         remainderl: Avoid compilation error on AIX >= 5.2.
6149         * lib/math.in.h (remainderl): Undefine macro from the system header.
6150
6151 2012-03-13  Bruno Haible  <bruno@clisp.org>
6152
6153         Avoid compilation errors with MSVC option -fp:strict.
6154         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6155         * lib/cbrtf.c: Likewise.
6156         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6157
6158 2012-03-12  Bruno Haible  <bruno@clisp.org>
6159
6160         uninorm: Don't crash in out-of-memory conditions.
6161         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6162         gracefully.
6163         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6164         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6165
6166 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6167
6168         quote: fix syntax-check
6169         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6170         also exports quote_quoting_options.
6171
6172 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6173
6174         Collapse list of copyright years to ranges.  See
6175         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6176         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6177         build-aux/csharpexec.sh.in, build-aux/gnupload,
6178         build-aux/install-reloc, build-aux/javacomp.sh.in,
6179         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6180         build-aux/move-if-change, build-aux/reloc-ldflags,
6181         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6182
6183 2012-03-11  Bruno Haible  <bruno@clisp.org>
6184
6185         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6186         * m4/log2f-ieee.m4: New file.
6187         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6188         whether log2f works with a minus zero argument. Replace it if not.
6189         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6190         (Depends-on): Add log2-ieee.
6191         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6192         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6193
6194         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6195         * m4/log2-ieee.m4: New file.
6196         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6197         whether log2 works with a minus zero argument. Replace it if not.
6198         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6199         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6200         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6201
6202         Tests for module 'log2l-ieee'.
6203         * modules/log2l-ieee-tests: New file.
6204         * tests/test-log2l-ieee.c: New file.
6205
6206         New module 'log2l-ieee'.
6207         * modules/log2l-ieee: New file.
6208
6209         Tests for module 'log2-ieee'.
6210         * modules/log2-ieee-tests: New file.
6211         * tests/test-log2-ieee.c: New file.
6212
6213         New module 'log2-ieee'.
6214         * modules/log2-ieee: New file.
6215
6216         Tests for module 'log2f-ieee'.
6217         * modules/log2f-ieee-tests: New file.
6218         * tests/test-log2f-ieee.c: New file.
6219         * tests/test-log2-ieee.h: New file.
6220
6221         New module 'log2f-ieee'.
6222         * modules/log2f-ieee: New file.
6223
6224 2012-03-11  Bruno Haible  <bruno@clisp.org>
6225
6226         Tests for module 'log2l'.
6227         * modules/log2l-tests: New file.
6228         * tests/test-log2l.c: New file.
6229
6230         New module 'log2l'.
6231         * lib/math.in.h (log2l): New declaration.
6232         * lib/log2l.c: New file.
6233         * m4/log2l.m4: New file.
6234         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6236         REPLACE_LOG2L.
6237         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6238         REPLACE_LOG2L.
6239         * modules/log2l: New file.
6240         * tests/test-math-c++.cc: Check the declaration of log2l.
6241         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6242         and OSF/1 problems.
6243
6244 2012-03-11  Bruno Haible  <bruno@clisp.org>
6245
6246         Tests for module 'log2f'.
6247         * modules/log2f-tests: New file.
6248         * tests/test-log2f.c: New file.
6249
6250         New module 'log2f'.
6251         * lib/math.in.h (log2f): New declaration.
6252         * lib/log2f.c: New file.
6253         * m4/log2f.m4: New file.
6254         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6256         REPLACE_LOG2F.
6257         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6258         REPLACE_LOG2F.
6259         * modules/log2f: New file.
6260         * tests/test-math-c++.cc: Check the declaration of log2f.
6261         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6262         and OSF/1 and Cygwin problems.
6263
6264 2012-03-11  Bruno Haible  <bruno@clisp.org>
6265
6266         Tests for module 'log2'.
6267         * modules/log2-tests: New file.
6268         * tests/test-log2.c: New file.
6269         * tests/test-log2.h: New file.
6270
6271         New module 'log2'.
6272         * lib/math.in.h (log2): New declaration.
6273         * lib/log2.c: New file.
6274         * m4/log2.m4: New file.
6275         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6277         REPLACE_LOG2.
6278         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6279         REPLACE_LOG2.
6280         * modules/log2: New file.
6281         * tests/test-math-c++.cc: Check the declaration of log2.
6282         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6283         and OSF/1 and Cygwin problems.
6284
6285 2012-03-11  Bruno Haible  <bruno@clisp.org>
6286
6287         exp2* tests: More tests.
6288         * tests/test-exp2.h (test_function): Test all integral arguments that
6289         don't need to overflow or denormalized numbers.
6290         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6291         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6292         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6293
6294 2012-03-10  Bruno Haible  <bruno@clisp.org>
6295
6296         log1pl-ieee: Work around test failure on AIX 7.1.
6297         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6298
6299         log1pl-ieee: Work around test failure on IRIX 6.5.
6300         * m4/log1pl-ieee.m4: New file.
6301         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6302         test whether log1pl works with a minus zero argument. Replace it if
6303         not.
6304         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6306         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6307         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6308         (Depends-on): Update conditions.
6309         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6310         m4/signbit.m4.
6311         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6312         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6313
6314         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6315         * m4/log1pf-ieee.m4: New file.
6316         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6317         test whether log1pf works with a minus zero argument. Replace it if
6318         not.
6319         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6320         m4/signbit.m4.
6321         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6322         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6323
6324         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6325         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6326         (configure.ac): Require gl_FUNC_LOG1PF.
6327
6328         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6329         * m4/log1p-ieee.m4: New file.
6330         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6331         whether log1p works with a minus zero argument. Replace it if not.
6332         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6334         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6335         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6336         (Depends-on): Update conditions.
6337         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6338         m4/signbit.m4.
6339         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6340         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6341
6342         Tests for module 'log1pl-ieee'.
6343         * modules/log1pl-ieee-tests: New file.
6344         * tests/test-log1pl-ieee.c: New file.
6345
6346         New module 'log1pl-ieee'.
6347         * modules/log1pl-ieee: New file.
6348
6349         Tests for module 'log1p-ieee'.
6350         * modules/log1p-ieee-tests: New file.
6351         * tests/test-log1p-ieee.c: New file.
6352
6353         New module 'log1p-ieee'.
6354         * modules/log1p-ieee: New file.
6355
6356         Tests for module 'log1pf-ieee'.
6357         * modules/log1pf-ieee-tests: New file.
6358         * tests/test-log1pf-ieee.c: New file.
6359         * tests/test-log1p-ieee.h: New file.
6360
6361         New module 'log1pf-ieee'.
6362         * modules/log1pf-ieee: New file.
6363
6364 2012-03-10  Bruno Haible  <bruno@clisp.org>
6365
6366         Tests for module 'log1pl'.
6367         * modules/log1pl-tests: New file.
6368         * tests/test-log1pl.c: New file.
6369
6370         New module 'log1pl'.
6371         * lib/math.in.h (log1pl): New declaration.
6372         * lib/log1pl.c: New file.
6373         * m4/log1pl.m4: New file.
6374         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6376         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6377         * modules/log1pl: New file.
6378         * tests/test-math-c++.cc: Check the declaration of log1pl.
6379         * doc/posix-functions/log1pl.texi: Mention the new module.
6380
6381 2012-03-10  Bruno Haible  <bruno@clisp.org>
6382
6383         Tests for module 'log1pf'.
6384         * modules/log1pf-tests: New file.
6385         * tests/test-log1pf.c: New file.
6386
6387         New module 'log1pf'.
6388         * lib/math.in.h (log1pf): New declaration.
6389         * lib/log1pf.c: New file.
6390         * m4/log1pf.m4: New file.
6391         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6392         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6393         REPLACE_LOG1PF.
6394         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6395         REPLACE_LOG1PF.
6396         * modules/log1pf: New file.
6397         * tests/test-math-c++.cc: Check the declaration of log1pf.
6398         * doc/posix-functions/log1pf.texi: Mention the new module.
6399
6400 2012-03-10  Bruno Haible  <bruno@clisp.org>
6401
6402         log1p tests: More tests.
6403         * tests/test-log1p.h: New file.
6404         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6405         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6406         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6407         (main): Invoke test_function.
6408
6409         log1p: Provide replacement for Minix and MSVC.
6410         * lib/math.in.h (log1p): New declaration.
6411         * lib/log1p.c: New file.
6412         * m4/log1p.m4: New file.
6413         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6414         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6415         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6416         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6417         (Depends-on): Add math, isnand, log, round.
6418         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6419         HAVE_LOG1P is 0.
6420         * tests/test-math-c++.cc: Check the declaration of log1p.
6421         * doc/posix-functions/log1p.texi: Mention the replacement.
6422
6423 2012-03-10  Bruno Haible  <bruno@clisp.org>
6424
6425         math tests: Small simplification.
6426         * tests/test-exp.h (test_function): Use the same err_bound for
6427         'double' on platforms with sizeof (long double) == sizeof (double)
6428         than on platforms with sizeof (long double) > sizeof (double).
6429         * tests/test-exp2.h (test_function): Likewise.
6430         * tests/test-expm1.h (test_function): Likewise.
6431         * tests/test-log.h (test_function): Likewise.
6432
6433 2012-03-10  Bruno Haible  <bruno@clisp.org>
6434
6435         Fix some comments.
6436         * lib/expl.c: Fix an ambiguous comment.
6437         * lib/expm1.c: Likewise.
6438         * lib/expm1l.c: Likewise.
6439         * lib/exp2.c: Likewise.
6440         * lib/exp2l.c: Likewise.
6441
6442 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6443
6444         regex: allow inclusion of <regex.h> before <limits.h>
6445         Without this patch, portable programs had to include <limits.h> before
6446         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6447         I ran into this problem with a test version of GNU grep on Solaris 8.
6448         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6449         This is done conditionally so that this change can be merged
6450         back to glibc.
6451         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6452         using the included regex.
6453
6454         fts: depend on fdopendir
6455         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6456         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6457         problem was introduced when fdopendir was split out.
6458
6459 2012-03-10  Bruno Haible  <bruno@clisp.org>
6460
6461         Remove unused variables.
6462         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6463         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6464
6465 2012-03-10  Bruno Haible  <bruno@clisp.org>
6466
6467         isnanf-nolibm: Fix last commit.
6468         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6469
6470         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6471         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6472
6473 2012-03-10  Bruno Haible  <bruno@clisp.org>
6474
6475         logf-ieee: Work around test failure on NetBSD 5.1.
6476         * m4/logf-ieee.m4: New file.
6477         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6478         whether logf works with a negative argument. Replace it if not.
6479         * lib/logf.c (logf): For negative arguments, return NaN.
6480         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6481         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6482         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6483
6484         logf-ieee: Work around test failure on Solaris 9.
6485         * modules/logf-ieee (Depends-on): Add log-ieee.
6486         (configure.ac): Require gl_FUNC_LOGF.
6487
6488         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6489         * m4/log-ieee.m4: New file.
6490         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6491         log works with a negative argument. Replace it if not.
6492         * lib/log.c (log): For negative arguments, return NaN.
6493         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6494         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6495         * doc/posix-functions/log.texi: Mention the log-ieee module.
6496
6497         Tests for module 'logl-ieee'.
6498         * modules/logl-ieee-tests: New file.
6499         * tests/test-logl-ieee.c: New file.
6500
6501         New module 'logl-ieee'.
6502         * modules/logl-ieee: New file.
6503
6504         Tests for module 'log-ieee'.
6505         * modules/log-ieee-tests: New file.
6506         * tests/test-log-ieee.c: New file.
6507
6508         New module 'log-ieee'.
6509         * modules/log-ieee: New file.
6510
6511         Tests for module 'logf-ieee'.
6512         * modules/logf-ieee-tests: New file.
6513         * tests/test-logf-ieee.c: New file.
6514         * tests/test-log-ieee.h: New file.
6515
6516         New module 'logf-ieee'.
6517         * modules/logf-ieee: New file.
6518
6519 2012-03-10  Bruno Haible  <bruno@clisp.org>
6520
6521         log: Fix bug introduced on 2012-03-09.
6522         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6523
6524 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6525
6526         timer-time: link explicitly with pthreads on glibc
6527         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6528         to support static linking, when newer glibc is
6529         detected, as that contains pthread emulation of
6530         POSIX timer functions where required.
6531         * modules/timer-time: Depend on threadlib to
6532         pull in the appropriate library to link.
6533
6534 2012-03-10  Bruno Haible  <bruno@clisp.org>
6535
6536         log* tests: More tests.
6537         * tests/test-log.h: New file.
6538         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6539         (main): Invoke test_function.
6540         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6541         (main): Invoke test_function.
6542         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6543         (main): Invoke test_function.
6544         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6545         tests/randomd.c.
6546         (Makefile.am): Add randomd.c to test_log_SOURCES.
6547         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6548         tests/randomf.c.
6549         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6550         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6551         tests/randoml.c.
6552         (Depends-on): Add 'float'.
6553         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6554
6555 2012-03-09  Bruno Haible  <bruno@clisp.org>
6556
6557         logl: Work around OSF/1 5.1 bug.
6558         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6559         * lib/logl.c (logl): If logl exists, use it and provide just the
6560         workaround.
6561         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6562         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6564         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6565         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6566         (Depends-on): Update conditions.
6567         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6568
6569 2012-03-09  Bruno Haible  <bruno@clisp.org>
6570
6571         logf: Work around OSF/1 5.1 bug.
6572         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6573         * lib/logf.c (logf): If logf exists, use it and provide just the
6574         workaround.
6575         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6576         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6578         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6579         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6580         (Depends-on): Update conditions.
6581         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6582
6583 2012-03-09  Bruno Haible  <bruno@clisp.org>
6584
6585         log: Work around OSF/1 5.1 bug.
6586         * lib/math.in.h (log): New declaration.
6587         * lib/log.c: New file.
6588         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6589         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6590         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6592         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6593         * modules/log (Files): Add lib/log.c.
6594         (Depends-on): Add math.
6595         (configure.ac): If REPLACE_LOG is 1, compile an override.
6596         * tests/test-math-c++.cc: Check the declaration of log.
6597         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6598
6599 2012-03-09  Jim Meyering  <meyering@redhat.com>
6600
6601         readtokens.c: adjust wording in a comment
6602         * lib/readtokens.c: Insert omitted "that" in a comment.
6603
6604 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6605
6606         modechange: add notations +40, 00440, etc.
6607         * lib/modechange.c (mode_compile): Support new notations
6608         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6609
6610 2012-03-08  Bruno Haible  <bruno@clisp.org>
6611
6612         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6613         * m4/exp2l-ieee.m4: New file.
6614         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6615         test whether exp2l works with a NaN argument and with a negative
6616         infinity argument. Replace it if not.
6617         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6619         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6620         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6621         (Depends-on): Update conditions.
6622         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6623         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6624         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6625
6626         Tests for module 'exp2l-ieee'.
6627         * modules/exp2l-ieee-tests: New file.
6628         * tests/test-exp2l-ieee.c: New file.
6629
6630         New module 'exp2l-ieee'.
6631         * modules/exp2l-ieee: New file.
6632
6633         Tests for module 'exp2-ieee'.
6634         * modules/exp2-ieee-tests: New file.
6635         * tests/test-exp2-ieee.c: New file.
6636
6637         New module 'exp2-ieee'.
6638         * modules/exp2-ieee: New file.
6639
6640         Tests for module 'exp2f-ieee'.
6641         * modules/exp2f-ieee-tests: New file.
6642         * tests/test-exp2f-ieee.c: New file.
6643         * tests/test-exp2-ieee.h: New file.
6644
6645         New module 'exp2f-ieee'.
6646         * modules/exp2f-ieee: New file.
6647
6648 2012-03-08  Bruno Haible  <bruno@clisp.org>
6649
6650         Tests for module 'exp2l'.
6651         * modules/exp2l-tests: New file.
6652         * tests/test-exp2l.c: New file.
6653
6654         New module 'exp2l'.
6655         * lib/math.in.h (exp2l): New declaration.
6656         * lib/exp2l.c: New file.
6657         * lib/expl-table.c: New file, extracted from lib/expl.c.
6658         * lib/expl.c (gl_expl_table): New declaration.
6659         (expl): Remove expl_table. Update reference.
6660         * m4/exp2l.m4: New file.
6661         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6663         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6664         * modules/exp2l: New file.
6665         * modules/expl (Files): Add lib/expl-table.c.
6666         (configure.ac): Compile also expl-table.c.
6667         * tests/test-math-c++.cc: Check the declaration of exp2l.
6668         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6669         problem.
6670
6671 2012-03-08  Bruno Haible  <bruno@clisp.org>
6672
6673         Tests for module 'exp2f'.
6674         * modules/exp2f-tests: New file.
6675         * tests/test-exp2f.c: New file.
6676
6677         New module 'exp2f'.
6678         * lib/math.in.h (exp2f): New declaration.
6679         * lib/exp2f.c: New file.
6680         * m4/exp2f.m4: New file.
6681         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6682         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6683         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6684         * modules/exp2f: New file.
6685         * tests/test-math-c++.cc: Check the declaration of exp2f.
6686         * doc/posix-functions/exp2f.texi: Mention the new module and the
6687         IRIX problem.
6688
6689 2012-03-08  Bruno Haible  <bruno@clisp.org>
6690
6691         Tests for module 'exp2'.
6692         * modules/exp2-tests: New file.
6693         * tests/test-exp2.c: New file.
6694         * tests/test-exp2.h: New file.
6695
6696         New module 'exp2'.
6697         * lib/math.in.h (exp2): New declaration.
6698         * lib/exp2.c: New file.
6699         * m4/exp2.m4: New file.
6700         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6702         REPLACE_EXP2.
6703         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6704         REPLACE_EXP2.
6705         * modules/exp2: New file.
6706         * tests/test-math-c++.cc: Check the declaration of exp2.
6707         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6708         and OpenBSD problems.
6709
6710 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6711
6712         savedir: fix comment typo
6713         * lib/savedir.c (savedirstream): Fix typo in comment.
6714
6715 2012-03-08  Bruno Haible  <bruno@clisp.org>
6716
6717         test-readtokens.c: use const; remove unwarranted cast
6718         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6719
6720 2012-03-08  Bruno Haible  <bruno@clisp.org>
6721
6722         fmal: Avoid compilation error on AIX.
6723         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6724         AIX 5.2..7.1.
6725
6726 2012-03-08  Bruno Haible  <bruno@clisp.org>
6727
6728         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6729         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6730         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6731         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6732         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6733         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6734         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6735
6736 2012-03-08  Bruno Haible  <bruno@clisp.org>
6737
6738         remainderf: Override buggy system function on IRIX 6.5.
6739         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6740         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6741         when it exists.
6742         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6743
6744 2012-03-08  Jim Meyering  <meyering@redhat.com>
6745
6746         test-readtokens.c: avoid const-related compilation warnings
6747         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6748
6749 2012-03-07  Jim Meyering  <meyering@redhat.com>
6750             Bruno Haible  <bruno@clisp.org>
6751
6752         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6753         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6754         tests/randomd.c.
6755         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6756         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6757         tests/randoml.c.
6758         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6759
6760 2012-03-07  Bruno Haible  <bruno@clisp.org>
6761
6762         expm1l: Avoid compilation error on AIX.
6763         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6764         AIX 5.2..7.1.
6765
6766 2012-03-07  Bruno Haible  <bruno@clisp.org>
6767
6768         expm1l: Don't override undeclared system function on IRIX 6.5.
6769         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6770         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6771         it exists. Set HAVE_DECL_EXPM1L.
6772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6773         HAVE_EXPM1L.
6774         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6775         HAVE_EXPM1L.
6776         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6777
6778 2012-03-07  Bruno Haible  <bruno@clisp.org>
6779
6780         remainderl: Don't override undeclared system function on IRIX 6.5.
6781         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6782         HAVE_REMAINDERL.
6783         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6784         declared when it exists. Set HAVE_DECL_REMAINDERL.
6785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6786         not HAVE_REMAINDERL.
6787         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6788         HAVE_REMAINDERL.
6789         * doc/posix-functions/remainderl.texi: Mention missing declaration
6790         problem.
6791
6792 2012-03-07  Bruno Haible  <bruno@clisp.org>
6793
6794         rintf: Don't override undeclared system function on IRIX 6.5.
6795         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
6796         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
6797         exists. Set HAVE_DECL_RINTF.
6798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
6799         HAVE_RINTF.
6800         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
6801         HAVE_RINTF.
6802         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
6803
6804 2012-03-07  Bruno Haible  <bruno@clisp.org>
6805
6806         roundl: Avoid compilation error on AIX.
6807         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
6808         AIX 5.2..7.1.
6809
6810 2012-03-07  Bruno Haible  <bruno@clisp.org>
6811
6812         roundl: Don't override undeclared system function on IRIX 6.5.
6813         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
6814         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
6815         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6816         * modules/roundl (configure.ac): For replacement code, test
6817         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6818         (Depends-on): Update conditions.
6819         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
6820
6821 2012-03-07  Bruno Haible  <bruno@clisp.org>
6822
6823         roundf: Don't override undeclared system function on IRIX 6.5.
6824         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
6825         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
6826         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6827         * modules/roundf (configure.ac): For replacement code, test
6828         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6829         (Depends-on): Update conditions.
6830         * modules/roundf-ieee (Depends-on): Update conditions.
6831         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
6832
6833 2012-03-07  Bruno Haible  <bruno@clisp.org>
6834
6835         round: Don't override undeclared system function on IRIX 6.5.
6836         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
6837         argument.
6838         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
6839         also when it is not declared. Set HAVE_ROUND. For replacement code,
6840         test HAVE_ROUND, not HAVE_DECL_ROUND.
6841         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
6842         not HAVE_DECL_ROUND.
6843         (Depends-on): Update conditions.
6844         * modules/round-ieee (Depends-on): Update conditions.
6845         * doc/posix-functions/round.texi: Mention the IRIX problem.
6846
6847 2012-03-07  Bruno Haible  <bruno@clisp.org>
6848
6849         copysignf: Don't override undeclared system function on IRIX 6.5.
6850         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6851         HAVE_COPYSIGNF.
6852         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6853         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6855         not HAVE_COPYSIGNF.
6856         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6857         HAVE_COPYSIGNF.
6858         * doc/posix-functions/copysignf.texi: Mention missing declaration
6859         problem.
6860
6861 2012-03-07  Jim Meyering  <meyering@redhat.com>
6862
6863         readtokens: add tests
6864         * modules/readtokens-tests: New file.
6865         * tests/test-readtokens.c: New file.
6866
6867 2012-03-07  Jim Meyering  <meyering@redhat.com>
6868
6869         quotearg: the module must now include quote.h
6870         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6871         So must the module.
6872         * modules/quotearg (Files): Add quote.h.
6873
6874 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6875
6876         readtokens: avoid core dumps with unusual calling patterns
6877         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6878         * lib/readtokens.c: Include limits.h.
6879         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6880         (readtoken): Don't cache the delimiters; the cache code was buggy
6881         if !delim && saved_delim, or if the new n_delim differs from the old.
6882         Also, it wasn't thread-safe.
6883
6884 2012-03-07  Bruno Haible  <bruno@clisp.org>
6885
6886         quote: Adhere to common module description layout.
6887         * modules/quote (Makefile.am): Add back empty section.
6888
6889 2012-03-06  Akim Demaille  <demaille@gostai.com>
6890
6891         quote: fuse into quotearg
6892         This patch is made for the benefit of Bison.
6893         quote does not leave the choice of the quoting style to the user.
6894         quoting_style provides poor customizability, yet quoting_options,
6895         which is very rich, is hidden inside quotearg.c.  So in order to
6896         allow quote customization, move its implementation to quotearg.c.
6897         * lib/quote.c: Remove.
6898         * modules/quote: Adjust.
6899         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6900         warning: provide all the members of literal structs.
6901         (quote_quoting_options): New.
6902         (quote, quote_n): Import implementation from quote.c.
6903         * lib/quote.h: Import the comments from quote.c.
6904         (quote_quoting_options): New.
6905
6906 2012-03-06  Bruno Haible  <bruno@clisp.org>
6907
6908         Tests for module 'expm1l-ieee'.
6909         * modules/expm1l-ieee-tests: New file.
6910         * tests/test-expm1l-ieee.c: New file.
6911
6912         New module 'expm1l-ieee'.
6913         * modules/expm1l-ieee: New file.
6914
6915         Tests for module 'expm1f-ieee'.
6916         * modules/expm1f-ieee-tests: New file.
6917         * tests/test-expm1f-ieee.c: New file.
6918
6919         New module 'expm1f-ieee'.
6920         * modules/expm1f-ieee: New file.
6921
6922         Tests for module 'expm1-ieee'.
6923         * modules/expm1-ieee-tests: New file.
6924         * tests/test-expm1-ieee.c: New file.
6925         * tests/test-expm1-ieee.h: New file.
6926
6927         New module 'expm1-ieee'.
6928         * modules/expm1-ieee: New file.
6929         * m4/expm1-ieee.m4: New file.
6930         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6931         whether expm1 works with a minus zero argument. Replace it if not.
6932         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6934         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6935         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6936         (Depends-on): Update conditions.
6937         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6938         AIX problem.
6939
6940 2012-03-06  Bruno Haible  <bruno@clisp.org>
6941
6942         Work around expm1f bug on IRIX 6.5.
6943         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6944         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6945         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6946         not work.
6947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6948         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6949         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6950         (Depends-on): Update conditions.
6951         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6952
6953 2012-03-06  Bruno Haible  <bruno@clisp.org>
6954
6955         Tests for module 'expm1l'.
6956         * modules/expm1l-tests: New file.
6957         * tests/test-expm1l.c: New file.
6958
6959         New module 'expm1l'.
6960         * lib/math.in.h (expm1l): New declaration.
6961         * lib/expm1l.c: New file.
6962         * m4/expm1l.m4: New file.
6963         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6965         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6966         * modules/expm1l: New file.
6967         * tests/test-math-c++.cc: Check the declaration of expm1l.
6968         * doc/posix-functions/expm1l.texi: Mention the new module.
6969
6970 2012-03-06  Bruno Haible  <bruno@clisp.org>
6971
6972         Tests for module 'expm1f'.
6973         * modules/expm1f-tests: New file.
6974         * tests/test-expm1f.c: New file.
6975
6976         New module 'expm1f'.
6977         * lib/math.in.h (expm1f): New declaration.
6978         * lib/expm1f.c: New file.
6979         * m4/expm1f.m4: New file.
6980         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6981         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6982         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6983         * modules/expm1f: New file.
6984         * tests/test-math-c++.cc: Check the declaration of expm1f.
6985         * doc/posix-functions/expm1f.texi: Mention the new module.
6986
6987 2012-03-06  Bruno Haible  <bruno@clisp.org>
6988
6989         Tests for module 'expm1'.
6990         * modules/expm1-tests: New file.
6991         * tests/test-expm1.c: New file.
6992         * tests/test-expm1.h: New file.
6993
6994         New module 'expm1'.
6995         * lib/math.in.h (expm1): New declaration.
6996         * lib/expm1.c: New file.
6997         * m4/expm1.m4: New file.
6998         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7000         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7001         * modules/expm1: New file.
7002         * tests/test-math-c++.cc: Check the declaration of expm1.
7003         * doc/posix-functions/expm1.texi: Mention the new module.
7004
7005 2012-03-06  Bruno Haible  <bruno@clisp.org>
7006
7007         math: Ensure declarations of math functions.
7008         * modules/acosf (Depends-on): Add 'extensions'.
7009         * modules/asinf (Depends-on): Likewise.
7010         * modules/atan2f (Depends-on): Likewise.
7011         * modules/atanf (Depends-on): Likewise.
7012         * modules/cbrt (Depends-on): Likewise.
7013         * modules/cbrtf (Depends-on): Likewise.
7014         * modules/cbrtl (Depends-on): Likewise.
7015         * modules/copysignf (Depends-on): Likewise.
7016         * modules/copysignl (Depends-on): Likewise.
7017         * modules/cosf (Depends-on): Likewise.
7018         * modules/coshf (Depends-on): Likewise.
7019         * modules/expf (Depends-on): Likewise.
7020         * modules/fabsf (Depends-on): Likewise.
7021         * modules/fabsl (Depends-on): Likewise.
7022         * modules/fmaf (Depends-on): Likewise.
7023         * modules/fmal (Depends-on): Likewise.
7024         * modules/fmodf (Depends-on): Likewise.
7025         * modules/fmodl (Depends-on): Likewise.
7026         * modules/frexpf (Depends-on): Likewise.
7027         * modules/frexpl (Depends-on): Likewise.
7028         * modules/hypot (Depends-on): Likewise.
7029         * modules/hypotf (Depends-on): Likewise.
7030         * modules/hypotl (Depends-on): Likewise.
7031         * modules/ldexpf (Depends-on): Likewise.
7032         * modules/ldexpl (Depends-on): Likewise.
7033         * modules/log10f (Depends-on): Likewise.
7034         * modules/log10l (Depends-on): Likewise.
7035         * modules/log1p (Depends-on): Likewise.
7036         * modules/logb (Depends-on): Likewise.
7037         * modules/logf (Depends-on): Likewise.
7038         * modules/modff (Depends-on): Likewise.
7039         * modules/modfl (Depends-on): Likewise.
7040         * modules/powf (Depends-on): Likewise.
7041         * modules/remainderf (Depends-on): Likewise.
7042         * modules/remainderl (Depends-on): Likewise.
7043         * modules/rintf (Depends-on): Likewise.
7044         * modules/rintl (Depends-on): Likewise.
7045         * modules/sinf (Depends-on): Likewise.
7046         * modules/sinhf (Depends-on): Likewise.
7047         * modules/sqrtf (Depends-on): Likewise.
7048         * modules/tanf (Depends-on): Likewise.
7049         * modules/tanhf (Depends-on): Likewise.
7050         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7051         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7052         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7053         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7054         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7055         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7056         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7057         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7058         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7059         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7060         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7061         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7062         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7063         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7064         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7065         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7066         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7067         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7068         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7069         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7070         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7071         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7072         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7073         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7074         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7075         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7076         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7077         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7078         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7079         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7080         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7081         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7082         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7083         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7084         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7085         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7086         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7087         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7088         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7089         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7090         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7091
7092 2012-03-06  Bruno Haible  <bruno@clisp.org>
7093
7094         math: Update module names in warnings.
7095         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7096         tanl): Use specific module name in warn-on-use warning.
7097
7098 2012-03-06  Bruno Haible  <bruno@clisp.org>
7099
7100         expl: Simplify computation.
7101         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7102
7103 2012-03-05  Bruno Haible  <bruno@clisp.org>
7104
7105         exp* tests: More tests.
7106         * tests/test-exp.h: New file.
7107         * tests/test-exp.c: Include <float.h> and test-exp.h.
7108         (main): Invoke test_function.
7109         * tests/test-expf.c: Include <float.h> and test-exp.h.
7110         (main): Invoke test_function.
7111         * tests/test-expl.c: Include <float.h> and test-exp.h.
7112         (main): Invoke test_function.
7113         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7114         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7115         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7116         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7117         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7118         (Depends-on): Add 'float'.
7119         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7120
7121         expl: Fix precision of computed result.
7122         * lib/expl.c: Completely rewritten.
7123         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7124         (Maintainer): Add me.
7125         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7126
7127 2012-03-05  Bruno Haible  <bruno@clisp.org>
7128
7129         cbrt* tests: More tests.
7130         * tests/test-cbrt.h: New file.
7131         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7132         (main): Invoke test_function.
7133         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7134         (main): Invoke test_function.
7135         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7136         (main): Invoke test_function.
7137         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7138         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7139         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7140         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7141         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7142         (Depends-on): Add 'float'.
7143         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7144
7145 2012-03-05  Bruno Haible  <bruno@clisp.org>
7146
7147         hypot* tests: More tests.
7148         * tests/test-hypot.h: New file, partially extracted from
7149         tests/test-hypotl.c.
7150         * tests/test-hypot.c: Include test-hypot.h.
7151         (main): Invoke test_function.
7152         * tests/test-hypotf.c: Include test-hypot.h.
7153         (main): Invoke test_function.
7154         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7155         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7156         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7157         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7158         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7159         tests/randomf.c.
7160         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7161         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7162         tests/randoml.c.
7163         (Depends-on): Add 'fpucw', 'float'.
7164         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7165
7166 2012-03-05  Bruno Haible  <bruno@clisp.org>
7167
7168         fpucw: Doc about FreeBSD.
7169         * lib/fpucw.h: Mention FreeBSD in comments.
7170
7171 2012-03-04  Bruno Haible  <bruno@clisp.org>
7172
7173         sqrt* tests: More tests.
7174         * tests/test-sqrt.h: New file.
7175         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7176         (main): Invoke test_function.
7177         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7178         (main): Invoke test_function.
7179         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7180         (main): Invoke test_function.
7181         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7182         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7183         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7184         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7185         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7186         (Depends-on): Add 'float'.
7187         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7188
7189 2012-03-04  Bruno Haible  <bruno@clisp.org>
7190
7191         remainder* tests: More tests.
7192         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7193         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7194         (main): Invoke test_function.
7195         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7196         (main): Invoke test_function.
7197         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7198         (main): Invoke test_function.
7199         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7200         tests/randomd.c.
7201         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7202         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7203         tests/randomf.c.
7204         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7205         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7206         tests/randoml.c.
7207         (Depends-on): Add 'float'.
7208         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7209
7210 2012-03-04  Bruno Haible  <bruno@clisp.org>
7211
7212         remainder, remainderf, remainderl: Fix computation for large quotients.
7213         * lib/remainder.c: Completely rewritten.
7214         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7215         USE_FLOAT.
7216         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7217         USE_LONG_DOUBLE.
7218         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7219         isnand, isinf. Remove round, fma.
7220         * modules/remainderf (Files): Add lib/remainder.c.
7221         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7222         Remove roundf, fmaf.
7223         * modules/remainderl (Files): Add lib/remainder.c.
7224         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7225         isinf. Remove roundl, fmal.
7226         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7227         REMAINDER_LIBM.
7228         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7229         REMAINDERF_LIBM.
7230         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7231         REMAINDERL_LIBM.
7232
7233 2012-03-04  Bruno Haible  <bruno@clisp.org>
7234
7235         fmod* tests: More tests.
7236         * tests/test-fmod.h (my_ldexp): New function.
7237         (test_function): Reduce amount of random numbers to test. Add tests
7238         of very large quotients x / y.
7239         * tests/test-fmod.c (MAX_EXP): New macro.
7240         * tests/test-fmodf.c (MAX_EXP): Likewise.
7241         * tests/test-fmodl.c (MAX_EXP): Likewise.
7242
7243 2012-03-04  Bruno Haible  <bruno@clisp.org>
7244
7245         fmod, fmodl: Fix computation for large quotients x / y.
7246         * lib/fmod.c: Completely rewritten.
7247         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7248         USE_LONG_DOUBLE.
7249         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7250         isnand. Remove fma.
7251         * modules/fmodl (Files): Add lib/fmod.c.
7252         (Depends-on): Add float, isfinite, signbit, fabsl,
7253         frexpl, ldexpl, isnanl. Remove fma.
7254         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7255         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7256
7257 2012-03-03  Bruno Haible  <bruno@clisp.org>
7258
7259         fmod* tests: More tests.
7260         * tests/test-fmod.h: New file.
7261         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7262         (main): Invoke test_function.
7263         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7264         (main): Invoke test_function.
7265         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7266         (main): Invoke test_function.
7267         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7268         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7269         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7270         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7271         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7272         (Depends-on): Add 'float'.
7273         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7274
7275 2012-03-03  Bruno Haible  <bruno@clisp.org>
7276
7277         rint* tests: More tests.
7278         * tests/test-rint.h: New file, partially extracted from
7279         tests/test-rintl.c.
7280         * tests/test-rint.c: Include test-rint.h.
7281         (main): Invoke test_function.
7282         * tests/test-rintf.c: Include test-rint.h.
7283         (main): Invoke test_function.
7284         * tests/test-rintl.c: Include test-rint.h.
7285         (main): Invoke test_function.
7286         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7287         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7288         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7289         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7290         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7291         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7292
7293 2012-03-03  Bruno Haible  <bruno@clisp.org>
7294
7295         modf* tests: More tests.
7296         * tests/test-modf.h: New file.
7297         * tests/test-modf.c: Include <float.h> and test-modf.h.
7298         (main): Invoke test_function.
7299         * tests/test-modff.c: Include <float.h> and test-modf.h.
7300         (main): Invoke test_function.
7301         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7302         (main): Invoke test_function.
7303         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7304         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7305         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7306         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7307         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7308         (Depends-on): Add 'float'.
7309         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7310
7311 2012-03-03  Bruno Haible  <bruno@clisp.org>
7312
7313         fabs* tests: More tests.
7314         * tests/test-fabs.h: New file, partially extracted from
7315         tests/test-fabsl.c.
7316         * tests/test-fabs.c (RANDOM): New macro.
7317         * tests/test-fabsf.c (RANDOM): New macro.
7318         * tests/test-fabsl.c (RANDOM): New macro.
7319         * modules/fabs-tests (Files): Add tests/randomd.c.
7320         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7321         * modules/fabsf-tests (Files): Add tests/randomf.c.
7322         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7323         * modules/fabsl-tests (Files): Add tests/randoml.c.
7324         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7325
7326 2012-03-03  Bruno Haible  <bruno@clisp.org>
7327
7328         ldexp* tests: More tests.
7329         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7330         * tests/test-ldexp.c (RANDOM): New macro.
7331         * tests/test-ldexpf.c (RANDOM): New macro.
7332         * tests/test-ldexpl.c (RANDOM): New macro.
7333         * modules/ldexp-tests (Files): Add tests/randomd.c.
7334         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7335         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7336         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7337         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7338         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7339
7340 2012-03-03  Bruno Haible  <bruno@clisp.org>
7341
7342         frexp* tests: More tests.
7343         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7344         * tests/test-frexp.c (RANDOM): New macro.
7345         * tests/test-frexpf.c (RANDOM): New macro.
7346         * tests/test-frexpl.c (RANDOM): New macro.
7347         * modules/frexp-tests (Files): Add tests/randomd.c.
7348         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7349         * modules/frexpf-tests (Files): Add tests/randomf.c.
7350         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7351         * modules/frexpl-tests (Files): Add tests/randoml.c.
7352         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7353
7354 2012-03-03  Bruno Haible  <bruno@clisp.org>
7355
7356         Support for pseudo-random numbers in tests.
7357         * tests/randomf.c: New file.
7358         * tests/randomd.c: New file.
7359         * tests/randoml.c: New file.
7360         * tests/macros.h (randomf, randomd, randoml): New declarations.
7361
7362 2012-03-03  Bruno Haible  <bruno@clisp.org>
7363
7364         frexp* tests: Refactor.
7365         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7366         * tests/test-frexp.c: Include and use it.
7367         * tests/test-frexpf.c: Likewise.
7368         * tests/test-frexpl.c: Likewise.
7369         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7370         * modules/frexpf-tests (Files): Likewise.
7371         * modules/frexpl-tests (Files): Likewise.
7372
7373 2012-03-02  Jim Meyering  <meyering@redhat.com>
7374
7375         maint: don't specify XZ_OPT=-9ev in dist-related rule
7376         Using xz's -9 option is warranted only if you have a very large
7377         tarball (see xz's documentation for the sizes vs. presets), and
7378         requires 64MiB of memory at decompression time.
7379         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7380         Automake's default of just "-e" is fine.  Override on a
7381         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7382
7383 2012-03-01  Eric Blake  <eblake@redhat.com>
7384
7385         maint.mk: allow announcement for non-gnulib project
7386         * maint.mk (announcement): Skip gnulib version if not used.
7387
7388 2012-03-01  Jim Meyering  <meyering@redhat.com>
7389
7390         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7391         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7392         envvar settings cannot interfere.  Otherwise, setting envvars like
7393         prohibit=foo require=bar, etc. would cause spurious test failures.
7394
7395 2012-03-01  Eric Blake  <eblake@redhat.com>
7396
7397         maint.mk: add per-line exclusions to prohibitions
7398         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7399         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7400         (sc_const_long_option): Use it.
7401
7402 2012-03-01  Bruno Haible  <bruno@clisp.org>
7403
7404         Tests for module 'expl-ieee'.
7405         * modules/expl-ieee-tests: New file.
7406         * tests/test-expl-ieee.c: New file.
7407
7408         New module 'expl-ieee'.
7409         * modules/expl-ieee: New file.
7410
7411         Tests for module 'exp-ieee'.
7412         * modules/exp-ieee-tests: New file.
7413         * tests/test-exp-ieee.c: New file.
7414
7415         New module 'exp-ieee'.
7416         * modules/exp-ieee: New file.
7417
7418         Tests for module 'expf-ieee'.
7419         * modules/expf-ieee-tests: New file.
7420         * tests/test-expf-ieee.c: New file.
7421         * tests/test-exp-ieee.h: New file.
7422
7423         New module 'expf-ieee'.
7424         * modules/expf-ieee: New file.
7425
7426 2012-02-29  Bruno Haible  <bruno@clisp.org>
7427
7428         cbrtl-ieee: Work around test failure on IRIX 6.5.
7429         * m4/cbrtl-ieee.m4: New file.
7430         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7431         test whether cbrtl works with a minus zero argument. Replace it if not.
7432         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7434         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7435         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7436         (Depends-on): Update conditions.
7437         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7438         m4/signbit.m4.
7439         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7440         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7441         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7442
7443         Tests for module 'cbrtl-ieee'.
7444         * modules/cbrtl-ieee-tests: New file.
7445         * tests/test-cbrtl-ieee.c: New file.
7446
7447         New module 'cbrtl-ieee'.
7448         * modules/cbrtl-ieee: New file.
7449
7450         Tests for module 'cbrt-ieee'.
7451         * modules/cbrt-ieee-tests: New file.
7452         * tests/test-cbrt-ieee.c: New file.
7453
7454         New module 'cbrt-ieee'.
7455         * modules/cbrt-ieee: New file.
7456
7457         Tests for module 'cbrtf-ieee'.
7458         * modules/cbrtf-ieee-tests: New file.
7459         * tests/test-cbrtf-ieee.c: New file.
7460         * tests/test-cbrt-ieee.h: New file.
7461
7462         New module 'cbrtf-ieee'.
7463         * modules/cbrtf-ieee: New file.
7464
7465 2012-02-29  Bruno Haible  <bruno@clisp.org>
7466
7467         cbrtf: Work around bug in IRIX 6.5 system function.
7468         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7469         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7470         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7471         work.
7472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7473         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7474         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7475         (Depends-on): Update conditions.
7476         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7477
7478 2012-02-29  Bruno Haible  <bruno@clisp.org>
7479
7480         Tests for module 'cbrtl'.
7481         * modules/cbrtl-tests: New file.
7482         * tests/test-cbrtl.c: New file.
7483
7484         New module 'cbrtl'.
7485         * lib/math.in.h (cbrtl): New declaration.
7486         * lib/cbrtl.c: New file.
7487         * m4/cbrtl.m4: New file.
7488         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7490         HAVE_DECL_CBRTL.
7491         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7492         HAVE_DECL_CBRTL.
7493         * modules/cbrtl: New file.
7494         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7495         * doc/posix-functions/cbrtl.texi: Mention the new module.
7496
7497 2012-02-29  Bruno Haible  <bruno@clisp.org>
7498
7499         Tests for module 'cbrtf'.
7500         * modules/cbrtf-tests: New file.
7501         * tests/test-cbrtf.c: New file.
7502
7503         New module 'cbrtf'.
7504         * lib/math.in.h (cbrtf): New declaration.
7505         * lib/cbrtf.c: New file.
7506         * m4/cbrtf.m4: New file.
7507         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7509         HAVE_DECL_CBRTF.
7510         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7511         HAVE_DECL_CBRTF.
7512         * modules/cbrtf: New file.
7513         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7514         * doc/posix-functions/cbrtf.texi: Mention the new module.
7515
7516 2012-02-29  Bruno Haible  <bruno@clisp.org>
7517
7518         cbrt: Provide replacement on MSVC and Minix.
7519         * lib/math.in.h (cbrt): New declaration.
7520         * lib/cbrt.c: New file.
7521         * m4/cbrt.m4: New file.
7522         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7524         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7525         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7526         (Depends-on): Add dependencies.
7527         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7528         * tests/test-math-c++.cc: Check the declaration of cbrt.
7529         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7530         replacement.
7531
7532 2012-02-29  Bruno Haible  <bruno@clisp.org>
7533
7534         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7535         * m4/hypotl-ieee.m4: New file.
7536         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7537         test whether hypotl works with mixed NaN and Infinity arguments.
7538         Replace it if not.
7539         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7541         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7542         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7543         (Depends-on): Update conditions.
7544         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7545         (Depends-on): Add hypot-ieee.
7546         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7547         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7548
7549         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7550         * m4/hypotf-ieee.m4: New file.
7551         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7552         test whether hypotf works with mixed NaN and Infinity arguments.
7553         Replace it if not.
7554         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7555         (Depends-on): Add hypot-ieee.
7556         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7557         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7558
7559         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7560         * lib/math.in.h (hypot): New declaration.
7561         * lib/hypot.c: New file.
7562         * m4/hypot-ieee.m4: New file.
7563         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7564         whether hypot works with mixed NaN and Infinity arguments. Replace it
7565         if not.
7566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7567         REPLACE_HYPOT.
7568         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7569         * modules/hypot (Files): Add lib/hypot.c.
7570         (Depends-on): Add dependencies.
7571         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7572         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7573         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7574         * tests/test-math-c++.cc: Check the declaration of hypot.
7575         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7576
7577         Tests for module 'hypotl-ieee'.
7578         * modules/hypotl-ieee-tests: New file.
7579         * tests/test-hypotl-ieee.c: New file.
7580
7581         New module 'hypotl-ieee'.
7582         * modules/hypotl-ieee: New file.
7583
7584         Tests for module 'hypot-ieee'.
7585         * modules/hypot-ieee-tests: New file.
7586         * tests/test-hypot-ieee.c: New file.
7587
7588         New module 'hypot-ieee'.
7589         * modules/hypot-ieee: New file.
7590
7591         Tests for module 'hypotf-ieee'.
7592         * modules/hypotf-ieee-tests: New file.
7593         * tests/test-hypotf-ieee.c: New file.
7594         * tests/test-hypot-ieee.h: New file.
7595
7596         New module 'hypotf-ieee'.
7597         * modules/hypotf-ieee: New file.
7598
7599 2012-02-29  Bruno Haible  <bruno@clisp.org>
7600
7601         Remove unused variables.
7602         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7603         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7604         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7605         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7606
7607 2012-02-29  Eric Blake  <eblake@redhat.com>
7608
7609         termios: fix pid_t always, not just for tcgetsid
7610         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7611         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7612         just when building tcgetsid.
7613
7614 2012-02-29  Bruno Haible  <bruno@clisp.org>
7615
7616         Tests for module 'hypotl'.
7617         * modules/hypotl-tests: New file.
7618         * tests/test-hypotl.c: New file.
7619
7620         New module 'hypotl'.
7621         * lib/math.in.h (hypotl): New declaration.
7622         * lib/hypotl.c: New file.
7623         * m4/hypotl.m4: New file.
7624         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7626         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7627         * modules/hypotl: New file.
7628         * tests/test-math-c++.cc: Check the hypotl declaration.
7629         * doc/posix-functions/hypotl.texi: Mention the new module.
7630
7631 2012-02-29  Eric Blake  <eblake@redhat.com>
7632
7633         tcgetsid: fix cygwin header bug
7634         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7635
7636         docs: update cygwin progress
7637         * doc/posix-functions/llround.texi (llround): Added in cygwin
7638         1.7.8.
7639         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7640         * doc/glibc-functions/program_invocation_name.texi
7641         (program_invocation_name): Likewise.
7642         * doc/glibc-functions/program_invocation_short_name.texi
7643         (program_invocation_short_name): Likewise.
7644         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7645         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7646         Likewise.
7647         * doc/posix-functions/pthread_spin_destroy.texi
7648         (pthread_spin_destroy): Added in cygwin 1.7.10.
7649         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7650         Likewise.
7651         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7652         Likewise.
7653         * doc/posix-functions/pthread_spin_trylock.texi
7654         (pthread_spin_trylock): Likewise.
7655         * doc/posix-functions/pthread_spin_unlock.texi
7656         (pthread_spin_unlock): Likewise.
7657         * doc/posix-functions/pthread_setschedprio.texi
7658         (pthread_setschedprio): Likewise.
7659         * doc/posix-functions/pthread_attr_getstack.texi
7660         (pthread_attr_getstack): Likewise.
7661         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7662         (pthread_attr_getstackaddr): Likewise.
7663         * doc/glibc-functions/pthread_getattr_np.texi
7664         (pthread_getattr_np): Likewise.
7665         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7666         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7667         * doc/posix-functions/clock_settime.texi (clock_settime):
7668         Likewise.
7669         * doc/posix-functions/pthread_attr_getguardsize.texi
7670         (pthread_attr_getguardsize): Likewise.
7671         * doc/posix-functions/pthread_attr_setguardsize.texi
7672         (pthread_attr_setguardsize): Likewise.
7673         * doc/posix-functions/pthread_attr_setstack.texi
7674         (pthread_attr_setstack): Likewise.
7675         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7676         (pthread_attr_setstackaddr): Likewise.
7677         * doc/posix-functions/clock_getcpuclockid.texi
7678         (clock_getcpuclockid): Likewise.
7679         * doc/posix-functions/pthread_getcpuclockid.texi
7680         (pthread_getcpuclockid): Likewise.
7681         * doc/glibc-functions/error.texi (error): Likewise.
7682         * doc/glibc-functions/error_at_line.texi (error_at_line):
7683         Likewise.
7684         * doc/glibc-functions/error_message_count.texi
7685         (error_message_count): Likewise.
7686         * doc/glibc-functions/error_one_per_line.texi
7687         (error_one_per_line): Likewise.
7688         * doc/glibc-functions/error_print_progname.texi
7689         (error_print_progname): Likewise.
7690         * doc/posix-functions/pthread_condattr_getclock.texi
7691         (pthread_condattr_getclock): Likewise.
7692         * doc/posix-functions/pthread_condattr_setclock.texi
7693         (pthread_condattr_setclock): Likewise.
7694         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7695         Likewise.
7696         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7697         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7698         * doc/glibc-functions/get_current_dir_name.texi
7699         (get_current_dir_name): Likewise.
7700         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7701         Likewise.
7702         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7703         wrong return type.
7704         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7705         1.7.11.
7706
7707 2012-02-29  Bruno Haible  <bruno@clisp.org>
7708
7709         Tests for module 'hypotf'.
7710         * modules/hypotf-tests: New file.
7711         * tests/test-hypotf.c: New file.
7712
7713         New module 'hypotf'.
7714         * lib/math.in.h (hypotf): New declaration.
7715         * lib/hypotf.c: New file.
7716         * m4/hypotf.m4: New file.
7717         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7719         REPLACE_HYPOTF.
7720         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7721         REPLACE_HYPOTF.
7722         * modules/hypotf: New file.
7723         * tests/test-math-c++.cc: Check the hypotf declaration.
7724         * doc/posix-functions/hypotf.texi: Mention the new module.
7725
7726         hypot: Prepare for hypotf module.
7727         * m4/hypot.m4: New file.
7728         * modules/hypot (Files): Add m4/hypot.m4.
7729         (configure.ac): Invoke gl_FUNC_HYPOT.
7730
7731 2012-02-29  Bruno Haible  <bruno@clisp.org>
7732
7733         hypot tests: More tests.
7734         * tests/test-hypot.c: Include <float.h>.
7735         (main): Add tests about overflow and underflow.
7736
7737 2012-02-29  Bruno Haible  <bruno@clisp.org>
7738
7739         math code: Add comments.
7740         * lib/acosl.c: Add comment about related glibc source files.
7741         * lib/asinl.c: Likewise.
7742         * lib/atanl.c: Likewise.
7743         * lib/expl.c: Likewise.
7744         * lib/logl.c: Likewise.
7745         * lib/sincosl.c: Likewise.
7746         * lib/sinl.c: Likewise.
7747         * lib/tanl.c: Likewise.
7748         * lib/trigl.c: Likewise.
7749         * lib/cosl.c: Likewise. Fix comments.
7750
7751 2012-02-28  Bruno Haible  <bruno@clisp.org>
7752
7753         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7754         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7755         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7756         HUGE_VALL are defined.
7757         (numeric_equald): Renamed from numeric_equal.
7758         (numeric_equalf, numeric_equall): New functions.
7759         (main): Check also HUGE_VALF, HUGE_VALL.
7760         * modules/math-tests (Files): Add tests/macros.h.
7761         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7762         HUGE_VALL.
7763
7764 2012-02-28  Bruno Haible  <bruno@clisp.org>
7765
7766         doc: Move ISO C11 feature notes into POSIX chapters.
7767         * doc/posix-functions/aligned_alloc.texi: Renamed from
7768         doc/glibc-functions/aligned_alloc.texi.
7769         * doc/posix-functions/quick_exit.texi: Renamed from
7770         doc/glibc-functions/quick_exit.texi.
7771         * doc/posix-headers/uchar.texi: Renamed from
7772         doc/glibc-headers/uchar.texi.
7773         * doc/posix-functions/c16rtomb.texi: Renamed from
7774         doc/glibc-functions/c16rtomb.texi.
7775         * doc/posix-functions/c32rtomb.texi: Renamed from
7776         doc/glibc-functions/c32rtomb.texi.
7777         * doc/posix-functions/mbrtoc16.texi: Renamed from
7778         doc/glibc-functions/mbrtoc16.texi.
7779         * doc/posix-functions/mbrtoc32.texi: Renamed from
7780         doc/glibc-functions/mbrtoc32.texi.
7781         * doc/gnulib.texi: Update.
7782         (Glibc uchar.h): Remove section.
7783         Suggested by Eric Blake.
7784
7785 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7786
7787         stdnoreturn: port to MSVC better
7788         MSVC standard headers use __declspec(noreturn), so #define noreturn
7789         to empty on that platform.  Reported by Bruno Haible in
7790         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7791         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7792         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7793
7794 2012-02-28  Bruno Haible  <bruno@clisp.org>
7795
7796         doc: Mention new glibc headers and functions.
7797         * doc/glibc-headers/uchar.texi: New file.
7798         * doc/glibc-functions/aligned_alloc.texi: New file.
7799         * doc/glibc-functions/c16rtomb.texi: New file.
7800         * doc/glibc-functions/c32rtomb.texi: New file.
7801         * doc/glibc-functions/clock_adjtime.texi: New file.
7802         * doc/glibc-functions/fanotify_init.texi: New file.
7803         * doc/glibc-functions/fanotify_mark.texi: New file.
7804         * doc/glibc-functions/inet6_opt_append.texi: New file.
7805         * doc/glibc-functions/inet6_opt_find.texi: New file.
7806         * doc/glibc-functions/inet6_opt_finish.texi: New file.
7807         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
7808         * doc/glibc-functions/inet6_opt_init.texi: New file.
7809         * doc/glibc-functions/inet6_opt_next.texi: New file.
7810         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
7811         * doc/glibc-functions/inet6_rth_add.texi: New file.
7812         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
7813         * doc/glibc-functions/inet6_rth_init.texi: New file.
7814         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
7815         * doc/glibc-functions/inet6_rth_segments.texi: New file.
7816         * doc/glibc-functions/inet6_rth_space.texi: New file.
7817         * doc/glibc-functions/login.texi: New file.
7818         * doc/glibc-functions/mbrtoc16.texi: New file.
7819         * doc/glibc-functions/mbrtoc32.texi: New file.
7820         * doc/glibc-functions/name_to_handle_at.texi: New file.
7821         * doc/glibc-functions/ntp_gettimex.texi: New file.
7822         * doc/glibc-functions/open_by_handle_at.texi: New file.
7823         * doc/glibc-functions/prlimit.texi: New file.
7824         * doc/glibc-functions/process_vm_readv.texi: New file.
7825         * doc/glibc-functions/process_vm_writev.texi: New file.
7826         * doc/glibc-functions/recvmmsg.texi: New file.
7827         * doc/glibc-functions/scandirat.texi: New file.
7828         * doc/glibc-functions/sendmmsg.texi: New file.
7829         * doc/glibc-functions/setns.texi: New file.
7830         * doc/glibc-functions/timespec_get.texi: New file.
7831         * doc/gnulib.texi: Include them.
7832         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
7833         sections.
7834         Reported by Eric Blake.
7835
7836 2012-02-28  Bruno Haible  <bruno@clisp.org>
7837
7838         Avoid compilation errors with MSVC option -fp:strict.
7839         * lib/floor.c: Use MSVC specific pragma fenv_access.
7840         * lib/ceil.c: Likewise.
7841         * lib/trunc.c: Likewise.
7842         * lib/round.c: Likewise.
7843         * lib/rint.c: Likewise.
7844         * lib/fma.c: Likewise.
7845         * lib/integer_length.c: Likewise.
7846         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7847         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7848         * tests/test-floor2.c: Likewise.
7849         * tests/test-floorf2.c: Likewise.
7850         * tests/test-ceil2.c: Likewise.
7851         * tests/test-ceilf2.c: Likewise.
7852         * tests/test-trunc2.c: Likewise.
7853         * tests/test-truncf2.c: Likewise.
7854         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7855
7856 2012-02-27  Bruno Haible  <bruno@clisp.org>
7857
7858         Tests for module 'sqrtl-ieee'.
7859         * modules/sqrtl-ieee-tests: New file.
7860         * tests/test-sqrtl-ieee.c: New file.
7861
7862         New module 'sqrtl-ieee'.
7863         * modules/sqrtl-ieee: New file.
7864
7865         Tests for module 'sqrt-ieee'.
7866         * modules/sqrt-ieee-tests: New file.
7867         * tests/test-sqrt-ieee.c: New file.
7868
7869         New module 'sqrt-ieee'.
7870         * modules/sqrt-ieee: New file.
7871
7872         Tests for module 'sqrtf-ieee'.
7873         * modules/sqrtf-ieee-tests: New file.
7874         * tests/test-sqrtf-ieee.c: New file.
7875         * tests/test-sqrt-ieee.h: New file.
7876
7877         New module 'sqrtf-ieee'.
7878         * modules/sqrtf-ieee: New file.
7879
7880 2012-02-27  Bruno Haible  <bruno@clisp.org>
7881
7882         remainderl-ieee: Work around test failure on OSF/1.
7883         * m4/remainderl-ieee.m4: New file.
7884         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7885         present, test whether remainderl works with a zero second argument.
7886         Replace it if not.
7887         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7889         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7890         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7891         (Depends-on): Update conditions.
7892         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7893         (Depends-on): Add remainder-ieee.
7894         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7895         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7896         module.
7897
7898         remainderf-ieee: Work around test failure on OSF/1.
7899         * m4/remainderf-ieee.m4: New file.
7900         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7901         present, test whether remainderf works with a zero second argument.
7902         Replace it if not.
7903         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7905         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7906         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7907         (Depends-on): Update conditions.
7908         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7909         (Depends-on): Add remainder-ieee.
7910         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7911         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7912         module.
7913
7914         remainder-ieee: Work around test failure on OSF/1.
7915         * m4/remainder-ieee.m4: New file.
7916         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7917         present, test whether remainder works with a zero second argument.
7918         Replace it if not.
7919         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7921         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7922         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7923         (Depends-on): Update dependencies.
7924         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7925         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7926         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7927
7928         Tests for module 'remainderl-ieee'.
7929         * modules/remainderl-ieee-tests: New file.
7930         * tests/test-remainderl-ieee.c: New file.
7931
7932         New module 'remainderl-ieee'.
7933         * modules/remainderl-ieee: New file.
7934
7935         Tests for module 'remainder-ieee'.
7936         * modules/remainder-ieee-tests: New file.
7937         * tests/test-remainder-ieee.c: New file.
7938
7939         New module 'remainder-ieee'.
7940         * modules/remainder-ieee: New file.
7941
7942         Tests for module 'remainderf-ieee'.
7943         * modules/remainderf-ieee-tests: New file.
7944         * tests/test-remainderf-ieee.c: New file.
7945         * tests/test-remainder-ieee.h: New file.
7946
7947         New module 'remainderf-ieee'.
7948         * modules/remainderf-ieee: New file.
7949
7950 2012-02-27  Bruno Haible  <bruno@clisp.org>
7951
7952         modff, modfl: Fix configure syntax error.
7953         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7954         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7955
7956 2012-02-27  Bruno Haible  <bruno@clisp.org>
7957
7958         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7959         * m4/fmodl-ieee.m4: New file.
7960         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7961         whether fmodl works with zero arguments. Replace it if not.
7962         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7963         (Depends-on): Add fmod-ieee.
7964         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7965         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7966
7967         fmodf-ieee: Work around test failure on OSF/1.
7968         * m4/fmodf-ieee.m4: New file.
7969         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7970         whether fmodf works with zero arguments. Replace it if not.
7971         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7973         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7974         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7975         (Depends-on): Update dependencies.
7976         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7977         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7978         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7979
7980         fmodf-ieee: Work around test failure on MSVC 9.
7981         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7982         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7983
7984         fmod-ieee: Work around test failures on OSF/1, mingw.
7985         * m4/fmod-ieee.m4: New file.
7986         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7987         whether fmod works with zero arguments. Replace it if not.
7988         * lib/math.in.h (fmod): New declaration.
7989         * lib/fmod.c: New file.
7990         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7992         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7993         * modules/fmod (Files): Add lib/fmod.c.
7994         (Depends-on): Add math, isinf, trunc, fma.
7995         (configure.ac): Arrange to compile lib/fmod.c if needed.
7996         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7997         m4/signbit.m4.
7998         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7999         * tests/test-math-c++.cc: Check the declaration of fmod.
8000         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8001
8002         fmodl-ieee: Fix test failures.
8003         * lib/fmodl.c (fmodl): Treat Inf specially.
8004         * modules/fmodl (Depends-on): Add isinf.
8005
8006         Tests for module 'fmodl-ieee'.
8007         * modules/fmodl-ieee-tests: New file.
8008         * tests/test-fmodl-ieee.c: New file.
8009
8010         New module 'fmodl-ieee'.
8011         * modules/fmodl-ieee: New file.
8012
8013         Tests for module 'fmod-ieee'.
8014         * modules/fmod-ieee-tests: New file.
8015         * tests/test-fmod-ieee.c: New file.
8016
8017         New module 'fmod-ieee'.
8018         * modules/fmod-ieee: New file.
8019
8020         Tests for module 'fmodf-ieee'.
8021         * modules/fmodf-ieee-tests: New file.
8022         * tests/test-fmodf-ieee.c: New file.
8023         * tests/test-fmod-ieee.h: New file.
8024
8025         New module 'fmodf-ieee'.
8026         * modules/fmodf-ieee: New file.
8027
8028 2012-02-27  Bruno Haible  <bruno@clisp.org>
8029
8030         Tests for module 'rintl-ieee'.
8031         * modules/rintl-ieee-tests: New file.
8032         * tests/test-rintl-ieee.c: New file.
8033
8034         New module 'rintl-ieee'.
8035         * modules/rintl-ieee: New file.
8036
8037         Tests for module 'rint-ieee'.
8038         * modules/rint-ieee-tests: New file.
8039         * tests/test-rint-ieee.c: New file.
8040
8041         New module 'rint-ieee'.
8042         * modules/rint-ieee: New file.
8043
8044         Tests for module 'rintf-ieee'.
8045         * modules/rintf-ieee-tests: New file.
8046         * tests/test-rintf-ieee.c: New file.
8047         * tests/test-rint-ieee.h: New file.
8048
8049         New module 'rintf-ieee'.
8050         * modules/rintf-ieee: New file.
8051
8052 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8053
8054         regex: re_search etc. should return -2 when memory exhausted
8055         This bug was uncovered when testing 'grep'.  Without the fix,
8056         re_search and friends return -1 when memory is exhausted, but -1
8057         means no match, and this causes grep to falsely report no-match
8058         instead of memory-exhaustion.  See
8059         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8060         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8061         trouble; this can occur if re_search_internal ran out of memory.
8062
8063 2012-02-26  Bruno Haible  <bruno@clisp.org>
8064
8065         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8066         * m4/modfl-ieee.m4: New file.
8067         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8068         whether modfl works with Inf. Replace it if not.
8069         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8071         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8072         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8073         (Depends-on): Update dependencies.
8074         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8075         m4/signbit.m4.
8076         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8077         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8078
8079         modfl-ieee: Fix dependencies.
8080         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8081
8082         modfl-ieee: Fix test failures.
8083         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8084         * modules/modfl (Depends-on): Add isfinite, isinf.
8085
8086         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8087         * m4/modff-ieee.m4: New file.
8088         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8089         whether modff works with NaN and Inf. Replace it if not.
8090         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8092         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8093         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8094         (Depends-on): Update dependencies.
8095         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8096         m4/signbit.m4.
8097         (Depends-on): Add modf-ieee.
8098         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8099         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8100
8101         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8102         * m4/modf-ieee.m4: New file.
8103         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8104         whether modf works with NaN and Inf. Replace it if not.
8105         * lib/math.in.h (modf): New declaration.
8106         * lib/modf.c: New file.
8107         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8109         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8110         * modules/modf (Files): Add lib/modf.c.
8111         (Depends-on): Add math, isfinite, trunc, isinf.
8112         (configure.ac): Addrange to compile lib/modf.c if needed.
8113         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8114         m4/signbit.m4.
8115         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8116         * tests/test-math-c++.cc: Check the declaration of modf.
8117         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8118
8119         Tests for module 'modfl-ieee'.
8120         * modules/modfl-ieee-tests: New file.
8121         * tests/test-modfl-ieee.c: New file.
8122
8123         New module 'modfl-ieee'.
8124         * modules/modfl-ieee: New file.
8125
8126         Tests for module 'modf-ieee'.
8127         * modules/modf-ieee-tests: New file.
8128         * tests/test-modf-ieee.c: New file.
8129
8130         New module 'modf-ieee'.
8131         * modules/modf-ieee: New file.
8132
8133         Tests for module 'modff-ieee'.
8134         * modules/modff-ieee-tests: New file.
8135         * tests/test-modff-ieee.c: New file.
8136         * tests/test-modf-ieee.h: New file.
8137
8138         New module 'modff-ieee'.
8139         * modules/modff-ieee: New file.
8140
8141 2012-02-26  Bruno Haible  <bruno@clisp.org>
8142
8143         Tests for module 'fabsl-ieee'.
8144         * modules/fabsl-ieee-tests: New file.
8145         * tests/test-fabsl-ieee.c: New file.
8146
8147         New module 'fabsl-ieee'.
8148         * modules/fabsl-ieee: New file.
8149
8150         Tests for module 'fabs-ieee'.
8151         * modules/fabs-ieee-tests: New file.
8152         * tests/test-fabs-ieee.c: New file.
8153
8154         New module 'fabs-ieee'.
8155         * modules/fabs-ieee: New file.
8156
8157         Tests for module 'fabsf-ieee'.
8158         * modules/fabsf-ieee-tests: New file.
8159         * tests/test-fabsf-ieee.c: New file.
8160         * tests/test-fabs-ieee.h: New file.
8161
8162         New module 'fabsf-ieee'.
8163         * modules/fabsf-ieee: New file.
8164
8165 2012-02-26  Bruno Haible  <bruno@clisp.org>
8166
8167         Tests for module 'fmal-ieee'.
8168         * modules/fmal-ieee-tests: New file.
8169         * tests/test-fmal-ieee.c: New file.
8170
8171         New module 'fmal-ieee'.
8172         * modules/fmal-ieee: New file.
8173
8174         Tests for module 'fma-ieee'.
8175         * modules/fma-ieee-tests: New file.
8176         * tests/test-fma-ieee.c: New file.
8177
8178         New module 'fma-ieee'.
8179         * modules/fma-ieee: New file.
8180
8181         Tests for module 'fmaf-ieee'.
8182         * modules/fmaf-ieee-tests: New file.
8183         * tests/test-fmaf-ieee.c: New file.
8184         * tests/test-fma-ieee.h: New file.
8185
8186         New module 'fmaf-ieee'.
8187         * modules/fmaf-ieee: New file.
8188
8189 2012-02-26  Bruno Haible  <bruno@clisp.org>
8190
8191         Tests for module 'ldexpl-ieee'.
8192         * modules/ldexpl-ieee-tests: New file.
8193         * tests/test-ldexpl-ieee.c: New file.
8194
8195         New module 'ldexpl-ieee'.
8196         * modules/ldexpl-ieee: New file.
8197
8198         Tests for module 'ldexp-ieee'.
8199         * modules/ldexp-ieee-tests: New file.
8200         * tests/test-ldexp-ieee.c: New file.
8201
8202         New module 'ldexp-ieee'.
8203         * modules/ldexp-ieee: New file.
8204
8205         Tests for module 'ldexpf-ieee'.
8206         * modules/ldexpf-ieee-tests: New file.
8207         * tests/test-ldexpf-ieee.c: New file.
8208         * tests/test-ldexp-ieee.h: New file.
8209
8210         New module 'ldexpf-ieee'.
8211         * modules/ldexpf-ieee: New file.
8212
8213 2012-02-26  Bruno Haible  <bruno@clisp.org>
8214
8215         Refactor frexp*-ieee tests.
8216         * tests/test-frexp-ieee.h: New file.
8217         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8218         (main): Just call test_function.
8219         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8220         (main): Just call test_function.
8221         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8222         (main): Just call test_function.
8223         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8224         * modules/frexp-ieee-tests (Files): Likewise.
8225         * modules/frexpl-ieee-tests (Files): Likewise.
8226
8227         Tests for module 'frexpl-ieee'.
8228         * modules/frexpl-ieee-tests: New file.
8229         * tests/test-frexpl-ieee.c: New file.
8230
8231         New module 'frexpl-ieee'.
8232         * modules/frexpl-ieee: New file.
8233
8234         Tests for module 'frexp-ieee'.
8235         * modules/frexp-ieee-tests: New file.
8236         * tests/test-frexp-ieee.c: New file.
8237
8238         New module 'frexp-ieee'.
8239         * modules/frexp-ieee: New file.
8240
8241         Tests for module 'frexpf-ieee'.
8242         * modules/frexpf-ieee-tests: New file.
8243         * tests/test-frexpf-ieee.c: New file.
8244
8245         New module 'frexpf-ieee'.
8246         * modules/frexpf-ieee: New file.
8247
8248 2012-02-26  Bruno Haible  <bruno@clisp.org>
8249
8250         roundl-ieee tests: More tests.
8251         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8252         (main): Add tests for [MX] shaded specification in POSIX.
8253         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8254         (Depends-on): Add isnanl-nolibm.
8255
8256         round-ieee tests: More tests.
8257         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8258         (main): Add tests for [MX] shaded specification in POSIX.
8259         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8260         (Depends-on): Add isnand-nolibm.
8261
8262         roundf-ieee tests: More tests.
8263         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8264         (main): Add tests for [MX] shaded specification in POSIX.
8265         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8266         (Depends-on): Add isnanf-nolibm.
8267
8268         truncl-ieee tests: More tests.
8269         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8270         (main): Add tests for [MX] shaded specification in POSIX.
8271         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8272         (Depends-on): Add isnanl-nolibm.
8273
8274         trunc-ieee tests: More tests.
8275         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8276         (main): Add tests for [MX] shaded specification in POSIX.
8277         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8278         (Depends-on): Add isnand-nolibm.
8279
8280         truncf-ieee tests: More tests.
8281         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8282         (main): Add tests for [MX] shaded specification in POSIX.
8283         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8284         (Depends-on): Add isnanf-nolibm.
8285
8286         ceill-ieee tests: More tests.
8287         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8288         (main): Add tests for [MX] shaded specification in POSIX.
8289         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8290         (Depends-on): Add isnanl-nolibm.
8291
8292         ceil-ieee tests: More tests.
8293         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8294         (main): Add tests for [MX] shaded specification in POSIX.
8295         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8296         (Depends-on): Add isnand-nolibm.
8297
8298         ceilf-ieee tests: More tests.
8299         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8300         (main): Add tests for [MX] shaded specification in POSIX.
8301         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8302         (Depends-on): Add isnanf-nolibm.
8303
8304         floorl-ieee tests: More tests.
8305         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8306         (main): Add tests for [MX] shaded specification in POSIX.
8307         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8308         (Depends-on): Add isnanl-nolibm.
8309
8310         floor-ieee tests: More tests.
8311         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8312         (main): Add tests for [MX] shaded specification in POSIX.
8313         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8314         (Depends-on): Add isnand-nolibm.
8315
8316         floorf-ieee tests: More tests.
8317         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8318         (main): Add tests for [MX] shaded specification in POSIX.
8319         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8320         (Depends-on): Add isnanf-nolibm.
8321
8322 2012-02-26  Bruno Haible  <bruno@clisp.org>
8323
8324         fpieee: More comments.
8325         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8326
8327 2012-02-25  Bruno Haible  <bruno@clisp.org>
8328
8329         Tests for module 'log10l'.
8330         * modules/log10l-tests: New file.
8331         * tests/test-log10l.c: New file.
8332         * tests/test-math-c++.cc: Check the declaration of log10l.
8333
8334         New module 'log10l'.
8335         * lib/math.in.h (log10l): New declaration.
8336         * lib/log10l.c: New file.
8337         * m4/log10l.m4: New file.
8338         * modules/log10l: New file.
8339         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8341         HAVE_DECL_LOG10L.
8342         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8343         HAVE_DECL_LOG10L.
8344         * doc/posix-functions/log10l.texi: Mention the new module.
8345
8346 2012-02-25  Bruno Haible  <bruno@clisp.org>
8347
8348         fmodl, remainder*: Avoid wrong results due to rounding errors.
8349         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8350         expected bounds.
8351         * lib/remainderf.c (remainderf): Likewise.
8352         * lib/remainder.c (remainder): Likewise.
8353         * lib/remainderl.c (remainderl): Likewise.
8354
8355 2012-02-25  Bruno Haible  <bruno@clisp.org>
8356
8357         Tests for module 'remainderl'.
8358         * modules/remainderl-tests: New file.
8359         * tests/test-remainderl.c: New file.
8360         * tests/test-math-c++.cc: Check the declaration of remainderl.
8361
8362         New module 'remainderl'.
8363         * lib/math.in.h (remainderl): New declaration.
8364         * lib/remainderl.c: New file.
8365         * m4/remainderl.m4: New file.
8366         * modules/remainderl: New file.
8367         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8369         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8370         HAVE_REMAINDERL.
8371         * doc/posix-functions/remainderl.texi: Mention the new module.
8372
8373 2012-02-25  Bruno Haible  <bruno@clisp.org>
8374
8375         Tests for module 'remainderf'.
8376         * modules/remainderf-tests: New file.
8377         * tests/test-remainderf.c: New file.
8378         * tests/test-math-c++.cc: Check the declaration of remainderf.
8379
8380         New module 'remainderf'.
8381         * lib/math.in.h (remainderf): New declaration.
8382         * lib/remainderf.c: New file.
8383         * m4/remainderf.m4: New file.
8384         * modules/remainderf: New file.
8385         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8387         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8388         HAVE_REMAINDERF.
8389         * doc/posix-functions/remainderf.texi: Mention the new module.
8390
8391 2012-02-25  Bruno Haible  <bruno@clisp.org>
8392
8393         remainder: Support for MSVC.
8394         * lib/math.in.h (remainder): New declaration.
8395         * lib/remainder.c: New file.
8396         * m4/remainder.m4: New file.
8397         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8398         (Depends-on): Add math, round, fma.
8399         (configure.ac): Use results of gl_FUNC_REMAINDER.
8400         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8402         HAVE_DECL_REMAINDER.
8403         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8404         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8405         * tests/test-math-c++.cc: Check the declaration of remainder.
8406         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8407         problems are fixed.
8408
8409 2012-02-25  Bruno Haible  <bruno@clisp.org>
8410
8411         Tests for module 'fmodl'.
8412         * modules/fmodl-tests: New file.
8413         * tests/test-fmodl.c: New file.
8414         * tests/test-math-c++.cc: Check the declaration of fmodl.
8415
8416         New module 'fmodl'.
8417         * lib/math.in.h (fmodl): New declaration.
8418         * lib/fmodl.c: New file.
8419         * m4/fmodl.m4: New file.
8420         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8422         REPLACE_FMODL.
8423         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8424         REPLACE_FMODL.
8425         * modules/fmodl: New file.
8426         * doc/posix-functions/fmodl.texi: Mention the new module.
8427
8428 2012-02-25  Bruno Haible  <bruno@clisp.org>
8429
8430         Tests for module 'modfl'.
8431         * modules/modfl-tests: New file.
8432         * tests/test-modfl.c: New file.
8433         * tests/test-math-c++.cc: Check the declaration of modfl.
8434
8435         New module 'modfl'.
8436         * lib/math.in.h (modfl): New declaration.
8437         * lib/modfl.c: New file.
8438         * m4/modfl.m4: New file.
8439         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8441         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8442         * modules/modfl: New file.
8443         * doc/posix-functions/modfl.texi: Mention the new module.
8444
8445 2012-02-25  Bruno Haible  <bruno@clisp.org>
8446
8447         Tests for module 'fabsl'.
8448         * modules/fabsl-tests: New file.
8449         * tests/test-fabsl.c: New file.
8450         * tests/test-math-c++.cc: Check the declaration of fabsl.
8451
8452         New module 'fabsl'.
8453         * lib/math.in.h (fabsl): New declaration.
8454         * lib/fabsl.c: New file.
8455         * m4/fabsl.m4: New file.
8456         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8458         REPLACE_FABSL.
8459         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8460         REPLACE_FABSL.
8461         * modules/fabsl: New file.
8462         * doc/posix-functions/fabsl.texi: Mention the new module.
8463
8464 2012-02-25  Bruno Haible  <bruno@clisp.org>
8465
8466         fabs tests: More tests.
8467         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8468         (zero): New variable.
8469         (main): Add tests for signed zero.
8470         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8471
8472         fabsf tests: More tests.
8473         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8474         (zero): New variable.
8475         (main): Add tests for signed zero.
8476         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8477
8478 2012-02-24  Bruno Haible  <bruno@clisp.org>
8479
8480         atanl: Provide function definition on MSVC.
8481         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8482         function pointer.
8483         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8484
8485 2012-02-24  Bruno Haible  <bruno@clisp.org>
8486
8487         acosl: Provide function definition on MSVC.
8488         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8489         function pointer.
8490         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8491
8492 2012-02-24  Bruno Haible  <bruno@clisp.org>
8493
8494         asinl: Provide function definition on MSVC.
8495         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8496         function pointer.
8497         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8498
8499 2012-02-24  Bruno Haible  <bruno@clisp.org>
8500
8501         tanl: Provide function definition on MSVC.
8502         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8503         function pointer.
8504         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8505
8506 2012-02-24  Bruno Haible  <bruno@clisp.org>
8507
8508         cosl: Provide function definition on MSVC.
8509         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8510         function pointer.
8511         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8512
8513 2012-02-24  Bruno Haible  <bruno@clisp.org>
8514
8515         sinl: Provide function definition on MSVC.
8516         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8517         function pointer.
8518         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8519
8520 2012-02-24  Bruno Haible  <bruno@clisp.org>
8521
8522         logl: Provide function definition on MSVC.
8523         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8524         function pointer.
8525         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8526
8527 2012-02-24  Bruno Haible  <bruno@clisp.org>
8528
8529         expl: Provide function definition on MSVC.
8530         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8531         function pointer.
8532         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8533
8534 2012-02-24  Bruno Haible  <bruno@clisp.org>
8535
8536         sqrtl: Provide function definition on MSVC.
8537         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8538         a function pointer.
8539         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8540
8541 2012-02-24  Bruno Haible  <bruno@clisp.org>
8542
8543         ceill: Provide function definition on MSVC.
8544         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8545         used as a function pointer.
8546         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8547
8548 2012-02-24  Bruno Haible  <bruno@clisp.org>
8549
8550         floorl: Provide function definition on MSVC.
8551         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8552         used as a function pointer.
8553         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8554
8555 2012-02-24  Bruno Haible  <bruno@clisp.org>
8556
8557         ceilf: Provide function definition on MSVC.
8558         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8559         used as a function pointer.
8560         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8561
8562 2012-02-24  Bruno Haible  <bruno@clisp.org>
8563
8564         floorf: Provide function definition on MSVC.
8565         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8566         used as a function pointer.
8567         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8568
8569 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8570
8571         stdnoreturn: new module
8572         This implements a replacement for C11's <stdnoreturn.h>.
8573         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8574         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8575         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8576         * tests/test-stdnoreturn.c: New files.
8577
8578 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8579
8580         regex: fix false multibyte matches in some regular expressions
8581         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8582         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8583         * lib/regex_internal.c (re_string_skip_chars):
8584         Fix miscomputation of remain_len that may cause incomplete
8585         multi-byte character and false match.
8586
8587 2012-02-24  Jim Meyering  <meyering@redhat.com>
8588
8589         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8590         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8591         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8592         Remove now-unnecessary str''cmp obfuscation.
8593         Suggested by Akim Demaille.
8594
8595 2012-02-24  Bruno Haible  <bruno@clisp.org>
8596
8597         streq: Rename macro.
8598         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8599         * NEWS: Mention the change.
8600         * lib/mbrtowc.c (mbrtowc): Update.
8601         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8602         * lib/wcwidth.c (wcwidth): Update.
8603         Suggested by Akim Demaille and Jim Meyering.
8604
8605 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8606
8607         regex: fix typo in definition of MIN
8608         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8609         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8610
8611 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8612             Bruno Haible  <bruno@clisp.org>
8613
8614         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8615         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8616         entries into a stack-allocated buffer directly.
8617         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8618
8619 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8620             Bruno Haible  <bruno@clisp.org>
8621
8622         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8623
8624          - There were several instances of this pattern:
8625
8626              for (;;) {
8627                n = acl (f, GETACLCNT, 0, NULL);
8628                [ allocate an array A of size N ]
8629                if (acl (f, GETACL, n, a) == n)
8630                  break;
8631              }
8632
8633            This loop might never terminate if some other process is constantly
8634            manipulating the file's ACL.  The loop should be rewritten to
8635            terminate.
8636
8637          - The acl (... GETACLNT ...) call is merely an optimization; its value
8638            is merely a hint as to how big to make the array.  A better
8639            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8640            and just guess a reasonably-big size, growing the size and trying
8641            again if it's not large enough.  This guarantees termination, and
8642            saves a system call.
8643
8644         * lib/acl-internal.h: Include <limits.h>.
8645         (MIN, SIZE_MAX): New macros.
8646         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8647         a stack-allocated buffer, and use malloc if it does not fit. Don't
8648         use GETACLCNT.
8649         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8650
8651 2012-02-19  Bruno Haible  <bruno@clisp.org>
8652
8653         acl: Fix endless loop on Solaris with vxfs.
8654         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8655         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8656         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8657         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8658         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8659         Reported by Bill Jones in
8660         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8661
8662 2012-02-19  Bruno Haible  <bruno@clisp.org>
8663
8664         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8665         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8666         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8667         that this function returns 0 in some more cases.
8668
8669 2012-02-19  Bruno Haible  <bruno@clisp.org>
8670
8671         acl: Update doc references.
8672         * doc/acl-resources.txt: Update links to Solaris documentation.
8673
8674 2012-02-19  Bruno Haible  <bruno@clisp.org>
8675
8676         Fix test failure in many locales on Solaris 11.
8677         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8678         'tr' arguments.
8679         * tests/test-pipe-filter-ii1.c (main): Likewise.
8680         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8681         expressions in the C locale.
8682         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8683         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8684
8685 2012-02-19  Bruno Haible  <bruno@clisp.org>
8686
8687         gnulib-tool: Improve usage message.
8688         * gnulib-tool (func_usage): Move doc of --help and --version to the
8689         section "Operation modes".
8690
8691 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8692
8693         README-release: make it easier to execute commands
8694         * top/README-release: break commands out on to separate lines.
8695
8696 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8697
8698         GNUmakefile: simplify detection of unconfigured trees
8699         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8700         whether the tree make is being run from is already configured or
8701         not.  Related simplifications.
8702
8703 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8704
8705         * gnulib-tool (func_usage): Document --help and --version.
8706
8707 2012-02-11  Jim Meyering  <meyering@redhat.com>
8708
8709         bootstrap: don't exit 0 upon gnulib-tool failure
8710         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8711         its exit status, not 0.
8712
8713 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8714
8715         README-release: various improvements
8716         * top/README-release: Give a command to push changes for the
8717         release.  Add "distcheck" to list of other pre-release checks.
8718         Fix instance of "make stable" which should be "make TYPE".
8719
8720 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8721
8722         maint: replace FSF snail-mail addresses with URLs
8723         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8724         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8725         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8726         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8727         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8728         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8729         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8730         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8731         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8732         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8733         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8734         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8735         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8736         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8737         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8738         * lib/glthread/thread.c, lib/glthread/thread.h:
8739         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8740         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8741         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8742         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8743         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8744         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8745         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8746         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8747         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8748         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8749         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8750         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8751         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8752         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8753         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8754         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8755         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8756         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8757         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8758         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8759         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8760         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8761         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8762         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8763         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8764         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8765         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8766         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8767         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8768         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8769         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8770         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8771         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8772         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8773         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8774         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8775         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8776         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8777         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8778         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8779         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8780         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8781         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8782         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8783         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8784         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8785         * tests/test-poll.c, tests/test-quotearg-simple.c:
8786         * tests/test-quotearg.c, tests/test-quotearg.h:
8787         * tests/test-round-ieee.c, tests/test-round1.c:
8788         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8789         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8790         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8791         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8792         * tests/test-strerror.c, tests/test-strerror_r.c:
8793         * tests/test-strsignal.c, tests/test-strverscmp.c:
8794         * tests/test-xmemdup0.c:
8795         Replace FSF snail mail addresses with URLs, as per GNU coding
8796         standards.  See glibc bug
8797         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
8798
8799 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8800
8801         README-release: capitalize a word and split a line
8802         * top/README-release: Fix punctuation and spacing.
8803
8804 2012-02-08  Akim Demaille  <demaille@gostai.com>
8805
8806         fatal-signal: use C prototypes (with explicit void).
8807         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8808         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
8809
8810 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8811
8812         regex: spelling fix
8813         * lib/regexec.c: spelling fix
8814
8815         regex: rely on stdint.h for SIZE_MAX
8816         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
8817
8818 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8819
8820         regex: merge glibc changes
8821
8822         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
8823         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
8824         (init_word_char): Work even if bitset words are not exactly 32 or
8825         64 bits wide.  Don't assume there are no padding bits.
8826         * lib/regex.c [_LIBC]: Do not include <config.h>.
8827         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
8828         and -Wtype-limits.
8829         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
8830         needless disagreement with glibc.  All uses changed.  Define it to
8831         1 only if _GNU_SOURCE, to match glibc.
8832         (_REG_RM_NAME): Remove; no longer needed, since the names in
8833         question are now all protected by __USE_GNU.
8834         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
8835         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
8836         * lib/regex_internal.h (MIN): New macro.
8837
8838         2012-01-03 Ulrich Drepper <drepper@gmail.com>
8839         * lib/regcomp.c (init_word_char): Optimize regex a bit.
8840
8841         2011-12-30 Jakub Jelinek <jakub@redhat.com>
8842         * lib/regex_internal.c (re_string_fetch_byte_case):
8843         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8844         is miscompiled, and it turns out it is because of an incorrect
8845         attribute on re_string_fetch_byte_case.  Unlike
8846         re_string_peek_byte_case, this one is really not pure, it modifies
8847         memory (increments pstr->cur_idx), and with the pure attribute GCC
8848         assumed it doesn't and it cached the presumed value of
8849         regexp->cur_idx in a variable across the
8850          for (;; ++i)
8851            {
8852              if (i >= BRACKET_NAME_BUF_SIZE)
8853                return REG_EBRACK;
8854              if (token->type == OP_OPEN_CHAR_CLASS)
8855                ch = re_string_fetch_byte_case (regexp);
8856              else
8857                ch = re_string_fetch_byte (regexp);
8858              if (re_string_eoi(regexp))
8859                return REG_EBRACK;
8860              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8861                break;
8862              elem->opr.name[i] = ch;
8863            }
8864
8865         2011-11-29 Andreas Schwab <schwab@redhat.com>
8866         * lib/regcomp.c (build_equiv_class):
8867         Fix access after end of search string in regex matcher.
8868
8869         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8870         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8871
8872         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8873         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8874
8875         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8876         * lib/regcomp.c (parse_branch, parse_sub_exp):
8877         More regex memory leak fixes and tests.
8878         (parse_sub_exp, parse_bracket_exp):
8879         Fix memory leak for some invalid regular expressions.
8880
8881         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8882         * lib/regex_internal.c, lib/regexec.c:
8883         Fix unnecessary overallocation due to incomplete character.  When
8884         incomplete characters are found at the end of a string the code
8885         ran amok and allocated lots of memory.  Stricter limits are now in
8886         place.
8887
8888         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8889         * lib/regex.h: Update documentation.
8890
8891         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8892         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8893
8894         2010-05-05 Andreas Schwab <schwab@redhat.com>
8895         * lib/regexec.c (find_collation_sequence_value):
8896         Fix lookup of collation sequence value during regexp matching.
8897
8898         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8899         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8900
8901         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8902         * lib/regex.h: Cleanup namespace.
8903
8904         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8905         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8906
8907         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8908         * lib/regex_internal.h: Prevent some declarations and definitions
8909         to be seen when used in tests.
8910
8911         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8912         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8913         __libc_lock_* macros if not _LIBC.
8914         (struct re_dfa_t): Add lock.
8915
8916 2012-02-07  Eric Blake  <eblake@redhat.com>
8917
8918         maint.mk: also prohibit lower-case @var@
8919         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8920         lower case, like @top_srcdir@.
8921
8922 2012-02-04  Eric Blake  <eblake@redhat.com>
8923
8924         canonicalize: avoid uninitialized memory use
8925         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8926         random '/' left in dest.
8927         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8928
8929 2012-02-04  Bruno Haible  <bruno@clisp.org>
8930
8931         isatty: Fix test failure of ptsname_r on native Windows.
8932         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8933         and don't set errno.
8934         (isatty): Test first whether fd is valid. Set errno when returning 0.
8935
8936 2012-02-04  Bruno Haible  <bruno@clisp.org>
8937
8938         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8939         * tests/test-spawn-pipe-main.c: Include progname.h.
8940         (main): Invoke set_program_name.
8941         * modules/spawn-pipe-tests (Depends-on): Add progname.
8942
8943         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8944         * tests/test-nonblocking-socket-main.c: Include progname.h.
8945         (main): Invoke set_program_name.
8946         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8947
8948         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8949         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8950         (main): Invoke set_program_name.
8951         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8952
8953 2012-02-04  Eric Blake  <eblake@redhat.com>
8954
8955         canonicalize-lgpl: fix // handling
8956         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8957
8958         canonicalize: fix // handling
8959         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8960         /// to //, since only // is special.
8961
8962 2012-02-04  Bruno Haible  <bruno@clisp.org>
8963
8964         ioctl: Fix test failure on native Windows.
8965         * lib/ioctl.c: Include msvc-nothrow.h.
8966         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8967
8968 2012-02-04  Bruno Haible  <bruno@clisp.org>
8969
8970         fsync: Avoid test failure on native Windows.
8971         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8972         read-only.
8973
8974 2012-02-04  Bruno Haible  <bruno@clisp.org>
8975
8976         sys_select: Avoid syntax error on OpenBSD 5.0.
8977         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8978         currently being included, just include the system's <sys/select.h>.
8979
8980 2012-02-04  Bruno Haible  <bruno@clisp.org>
8981
8982         sys_select: Avoid syntax error on OpenBSD 5.0.
8983         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8984         <sys/select.h>, not before.
8985         Reported by Jiri B <jirib@devio.us>.
8986
8987 2012-02-04  Bruno Haible  <bruno@clisp.org>
8988
8989         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8990         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8991         global variables.
8992         * tests/test-get-rusage-data.c (main): Likewise.
8993         Reported by Jim Meyering.
8994
8995 2012-02-04  Bruno Haible  <bruno@clisp.org>
8996
8997         stdioext: Fix last commit.
8998         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8999
9000 2012-02-03  Bruno Haible  <bruno@clisp.org>
9001
9002         stdioext: Add tentative support for Plan9.
9003         * lib/stdio-impl.h: Include <errno.h>.
9004         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9005         * lib/freadable.c (freadable): Likewise.
9006         * lib/fwritable.c (fwritable): Likewise.
9007         * lib/fbufmode.c (fbufmode): Likewise.
9008         * lib/freading.c (freading): Likewise.
9009         * lib/fwriting.c (fwriting): Likewise.
9010         * lib/freadptr.c (freadptr): Likewise.
9011         * lib/freadseek.c (freadptrinc): Likewise.
9012         * lib/freadahead.c (freadahead): Likewise.
9013         * lib/fpurge.c (fpurge): Likewise.
9014         * lib/fseeko.c (rpl_fseeko): Likewise.
9015         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9016         Reported by Jens Staal <staal1978@gmail.com>.
9017
9018 2012-02-02  Jim Meyering  <meyering@redhat.com>
9019
9020         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9021         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9022         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9023         not even to try to add the attribute.  Instead, add a pragma to suppress
9024         the suggestion/warning.
9025
9026 2012-01-31  Karl Berry  <karl@gnu.org>
9027
9028         setstate doc: typo.
9029         * doc/posix-functions/setstate.texi (setstate): { not (.
9030
9031 2012-01-31  Bruno Haible  <bruno@clisp.org>
9032
9033         popen: Make more robust on Windows.
9034         * lib/popen.c: On native Windows, use the _popen based code even if
9035         HAVE_POPEN is set.
9036         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9037         environment variable on native Windows.
9038
9039 2012-01-30  Bruno Haible  <bruno@clisp.org>
9040
9041         pclose: Fix typo.
9042         * lib/stdio.in.h (pclose): Fix typo in warning message.
9043
9044 2012-01-30  Bruno Haible  <bruno@clisp.org>
9045
9046         doc about getlogin_r, setstate.
9047         * doc/posix-functions/getlogin_r.texi: List the incompatible
9048         declaration problem under "not fixed by gnulib".
9049         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9050         problem on Solaris 11 and other platforms.
9051
9052 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9053             Bruno Haible  <bruno@clisp.org>
9054
9055         poll tests: Make test more robust.
9056         * tests/test-poll.c: Include macros.h.
9057         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9058         return value of various I/O operations.
9059         * modules/poll-tests (Files): Add tests/macros.h.
9060
9061 2012-01-30  Bruno Haible  <bruno@clisp.org>
9062
9063         sys_stat: Fix support for mingw64 and MSVC.
9064         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9065         header files already do it.
9066         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9067         stat itself.
9068         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9069
9070 2012-01-30  Bruno Haible  <bruno@clisp.org>
9071
9072         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9073         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9074         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9075
9076 2012-01-29  Bruno Haible  <bruno@clisp.org>
9077
9078         quotearg: Fix test failure on MacOS X 10.5.
9079         * tests/test-quotearg-simple.c: Include localcharset.h.
9080         (main): If the locale encoding is not ASCII, bypass the tests of
9081         locale_quoting_style and clocale_quoting_style.
9082         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9083
9084 2012-01-29  Jim Meyering  <meyering@redhat.com>
9085
9086         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9087         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9088         detect uses of canonicalize_file_name.
9089
9090 2012-01-28  Bruno Haible  <bruno@clisp.org>
9091
9092         test-framework-sh: Fix test failure with AIX 7.1 diff.
9093         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9094         in column 1, like 'diff -c' does.
9095         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9096         whether 'diff -u' is used. Instead, test whether the output contains
9097         some '@' character.
9098
9099 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9100
9101         strtoimax: eliminate need for stdint.h, inttypes.h checks
9102         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9103         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9104         the prerequisites for a recently-introduced strtoimax test.
9105         I guess this might cause strtoimax to be replaced when not
9106         strictly necessary on older hosts, but this shouldn't introduce
9107         any bugs and it should make Emacs 'configure' faster on typical
9108         modern hosts.  Problem discovered when importing the latest gnulib
9109         to an Emacs test version.
9110         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9111
9112 2012-01-28  Bruno Haible  <bruno@clisp.org>
9113
9114         sys_time: Override 'struct timeval' on some native Windows platforms.
9115         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9116         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9117         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9118         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9119         needs to be overridden.
9120         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9121         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9122         * tests/test-sys_select.c: Check that the tv_sec member has the same
9123         size as a 'time_t'.
9124         * tests/test-sys_time.c: Likewise.
9125         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9126         is set, set also REPLACE_GETTIMEOFDAY.
9127         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9128         convert the resulting 'struct timeval' before returning.
9129         * lib/select.c: Include <sys/time.h>.
9130         (select, timeval): Undefine at the right place.
9131         * modules/select (Depends-on): Add sys_time.
9132         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9133         some Windows platforms.
9134         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9135
9136 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9137
9138         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9139         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9140         an integer.
9141         * lib/fcntl.c (dupfd): Likewise.
9142         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9143
9144 2012-01-28  Bruno Haible  <bruno@clisp.org>
9145
9146         fcntl: Avoid compilation error on native Windows.
9147         * modules/fcntl (Depends-on): Add 'close'.
9148
9149 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9150
9151         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9152         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9153         pointer to an integer.
9154         * lib/poll.c (IsConsoleHandle): Likewise.
9155         * lib/isatty.c (IsConsoleHandle): Likewise.
9156
9157 2012-01-28  Jim Meyering  <meyering@redhat.com>
9158
9159         doc: clarify README-release
9160         * top/README-release: Clarify: you should make a point to have
9161         the latest stable versions of build tools in your PATH, and the
9162         reference to buildreq is solely for its list of tool names, not
9163         for its minimal-functional version numbers.
9164         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9165
9166         maint.mk: use more readable (yet functionally equivalent) quoting
9167         It is common to quote a single quote in a single quoted string like
9168         this:  '...'\''...'.  Unless you know the idiom, that looks like
9169         gibberish, so prefer to double-quote the string when possible.
9170         Then you can use a more readable, lone single quote: "...'..."
9171         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9172         "don't" is more readable than the equivalent 'don'\''t'.
9173         (sc_cast_of_x_alloc_return_value): Likewise.
9174         (sc_cast_of_alloca_return_value): Likewise.
9175         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9176         rather than '\'':'\''.
9177
9178 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9179
9180         stdalign: relax _Alignof and tighten _Alignas test
9181         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9182         as it was too strict: alignof must divide offsetof, but it need
9183         not equal offsetof.  Inspired by Joseph S. Myers's comment
9184         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9185         Conversely, tighten the _Alignas test a bit, as the resulting
9186         alignment must be exactly 8.
9187
9188 2012-01-27  Bruno Haible  <bruno@clisp.org>
9189
9190         stdalign: Document the last change.
9191         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9192
9193 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9194
9195         stdalign: check that alignof and offsetof are consistent
9196         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9197         Problem reported for gnulib by Richard W.M. Jones in
9198         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9199
9200 2012-01-27  Jim Meyering  <meyering@redhat.com>
9201
9202         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9203         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9204         convert a sequence with gaps to the minimal containing range.
9205         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9206         * tests/test-update-copyright.sh: Test for this.
9207         The FSF confirmed it is ok to do this, assuming there is at
9208         least one significant change per year in the affected range:
9209         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9210
9211 2012-01-26  Bruno Haible  <bruno@clisp.org>
9212
9213         pipe2: refine doc about thread-safety
9214         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9215         multithread-safety problem.
9216         * doc/glibc-functions/accept4.texi: Likewise.
9217
9218 2012-01-26  Bruno Haible  <bruno@clisp.org>
9219
9220         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9221         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9222         In the test program, include <fcntl.h>, for O_RDONLY.
9223
9224 2012-01-26  Eric Blake  <eblake@redhat.com>
9225
9226         pipe2: document lack of thread-safety in replacement
9227         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9228         issue in replacement.
9229         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9230         Based on a report by Eric Wong.
9231
9232 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9233             Bruno Haible  <bruno@clisp.org>
9234
9235         malloca: Avoid warnings on x86_64 mingw64.
9236         * lib/malloca.c: Include <stdint.h>.
9237         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9238         * modules/malloca (Depends-on): Add stdint.
9239         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9240
9241 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9242
9243         obstack: remove __STDC__ conditionals
9244         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9245         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9246         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9247         m4/include_next.m4 as the only gnulib-maintained places that still
9248         refer to __STDC__.
9249
9250 2012-01-24  Bruno Haible  <bruno@clisp.org>
9251
9252         havelib: Modern quoting.
9253         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9254         the recent change to the GNU coding standards.
9255
9256 2012-01-24  Bruno Haible  <bruno@clisp.org>
9257
9258         stdint: Improve support for Android.
9259         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9260         Reported by Simon Josefsson <simon@josefsson.org>.
9261
9262 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9263
9264         doc: omit trailing empty lines from INSTALL etc.
9265         * doc/Makefile (INSTALL): Omit trailing empty lines.
9266         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9267         omit trailing empty lines.  This simplifies the build procedure.
9268
9269 2012-01-23  Jim Meyering  <meyering@redhat.com>
9270
9271         tests: avoid spurious warnings about gl_sockets_startup
9272         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9273         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9274         reporting a "statement with no effect".
9275         * tests/test-accept.c (main): Mark as "(void)".
9276         * tests/test-accept4.c (main): Likewise.
9277         * tests/test-bind.c (main): Likewise.
9278         * tests/test-connect.c (main): Likewise.
9279         * tests/test-getpeername.c (main): Likewise.
9280         * tests/test-getsockname.c (main): Likewise.
9281         * tests/test-getsockopt.c (main): Likewise.
9282         * tests/test-listen.c (main): Likewise.
9283         * tests/test-recv.c (main): Likewise.
9284         * tests/test-recvfrom.c (main): Likewise.
9285         * tests/test-send.c (main): Likewise.
9286         * tests/test-sendto.c (main): Likewise.
9287         * tests/test-setsockopt.c (main): Likewise.
9288         * tests/test-shutdown.c (main): Likewise.
9289
9290 2012-01-21  Bruno Haible  <bruno@clisp.org>
9291
9292         locale-fr.m4: Fix for Android.
9293         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9294         failure of the test program on Bionic libc.
9295
9296 2012-01-21  Jim Meyering  <meyering@redhat.com>
9297
9298         bootstrap: fail when bootstrap_post_import_hook fails
9299         Otherwise, it's far too easy to miss diagnostics emitted
9300         between gnulib-tool's output and that of running configure.
9301         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9302
9303 2012-01-17  Jim Meyering  <meyering@redhat.com>
9304
9305         maint: enable sc_trailing_blank
9306         * build-aux/pmccabe.css: Remove trailing blanks.
9307         * doc/acl-cygwin.txt: Likewise.
9308         * doc/gnu-oids.texi: Likewise
9309         * cfg.mk: Enable sc_trailing_blank.
9310         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9311
9312 2012-01-17  Jim Meyering  <meyering@redhat.com>
9313
9314         maint: enable sc_prohibit_openat_without_use
9315         * cfg.mk: Enable sc_prohibit_openat_without_use.
9316         Exempt lib/selinux-at.c.
9317
9318 2012-01-17  Jim Meyering  <meyering@redhat.com>
9319
9320         maint: enable sc_prohibit_cloexec_without_use
9321         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9322         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9323
9324 2012-01-17  Jim Meyering  <meyering@redhat.com>
9325
9326         maint: enable sc_prohibit_intprops_without_use
9327         * cfg.mk: Enable sc_prohibit_intprops_without_use
9328         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9329
9330 2012-01-17  Jim Meyering  <meyering@redhat.com>
9331
9332         maint: enable sc_prohibit_hash_pjw_without_use
9333         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9334         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9335         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9336         following " (".
9337
9338 2012-01-17  Jim Meyering  <meyering@redhat.com>
9339
9340         maint: enable double-word-prohibiting rule
9341         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9342         Exempt three files.
9343
9344 2012-01-17  Jim Meyering  <meyering@redhat.com>
9345
9346         maint: remove empty lines at EOF, but excluding modules/*
9347         Apply syntax rules at home as well as abroad.  Most changes
9348         were induced by running this:
9349           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9350             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9351             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9352         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9353         Exempt modules/* and two binary files.
9354         Also exempt doc/INSTALL*, per request from Bruno Haible.
9355         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9356         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9357         * doc/Copyright/request-assign.future: Likewise.
9358         * doc/Copyright/request-disclaim.changes: Likewise.
9359         * doc/INSTALL: Likewise.
9360         * doc/INSTALL.ISO: Likewise.
9361         * doc/INSTALL.UTF-8: Likewise.
9362         * doc/acl-cygwin.txt: Likewise.
9363         * doc/acl-resources.txt: Likewise.
9364         * doc/fdl-1.2.texi: Likewise.
9365         * doc/fdl-1.3.texi: Likewise.
9366         * doc/fdl.texi: Likewise.
9367         * lib/argp-pin.c: Likewise.
9368         * lib/round.c: Likewise.
9369         * lib/unicase/u16-totitle.c: Likewise.
9370         * lib/unictype/block_test.c: Likewise.
9371         * lib/uninorm/canonical-decomposition.c: Likewise.
9372         * m4/README: Likewise.
9373         * m4/relocatable-lib.m4: Likewise.
9374         * tests/test-isnand-nolibm.c: Likewise.
9375         * tests/test-isnand.c: Likewise.
9376         * tests/uninorm/NormalizationTest.txt: Likewise.
9377
9378 2012-01-17  Jim Meyering  <meyering@redhat.com>
9379
9380         maint: add framework to run syntax-check rules against gnulib sources
9381         * cfg.mk: New file, to disable all currently-failing tests.
9382         We'll enable them one by one, as they are made to pass.
9383         * Makefile (sc_maint): New rule.
9384
9385 2012-01-21  Bruno Haible  <bruno@clisp.org>
9386
9387         stdint: Add support for Android.
9388         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9389         include the system's <stdint.h>.
9390         Reported by Simon Josefsson <simon@josefsson.org>.
9391
9392 2012-01-19  Jim Meyering  <meyering@redhat.com>
9393
9394         bootstrap: add bootstrap_post_import_hook
9395         Bison does still need something like the gnulib_mk_hook whose
9396         invocation I had to remove along with slurp in commit 767ccd40.
9397         Technically, we could get along without it, but doing so would
9398         have required living with a warning and a mandatory post-bootstrap
9399         automake rerun.
9400         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9401         (bootstrap_post_import_hook): New function.
9402         Invoke it after gnulib-tool --import and before autoreconf.
9403
9404 2012-01-18  Jim Meyering  <meyering@redhat.com>
9405
9406         gitlog-to-changelog: don't use "no_"-prefixed variable name
9407         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9408         to enable both --cluster and --no-cluster.  Change variable name,
9409         s/\$no_cluster/$cluster/, and reverse usage to match.
9410
9411         gitlog-to-changelog: use "||", not "or" in expressions
9412         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9413         expressions.
9414
9415 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9416
9417         gitlog-to-changelog: new option --no-cluster
9418         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9419         clustering of adjacent commit messages.
9420
9421 2012-01-17  Jim Meyering  <meyering@redhat.com>
9422
9423         maint: spell file systems with two words, not one
9424         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9425         two words, not one.
9426
9427 2012-01-16  Jim Meyering  <meyering@redhat.com>
9428
9429         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9430         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9431
9432 2012-01-16  Eric Blake  <eblake@redhat.com>
9433
9434         bootstrap: cater to autoconf 2.59
9435         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9436         is not available.
9437
9438         bootstrap: properly check for libtool
9439         * build-aux/bootstrap (libtoolize): Also run libtool when older
9440         usage is detected.
9441
9442 2012-01-15  Bruno Haible  <bruno@clisp.org>
9443
9444         Improve support for MSVC 9.
9445         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9446         clashes on MSVC.
9447         * lib/fcntl.in.h: Likewise.
9448         * lib/stdlib.in.h: Likewise.
9449         * lib/sys_stat.in.h: Likewise.
9450
9451 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9452
9453         gnupload: we hold the master copy of this script now
9454         For motivation and more information, see:
9455         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9456         * build-aux/gnupload: Make it clear in the heading comments that the
9457         master copy of this file is maintained by gnulib.  Since we are at
9458         it, bump its copyright year and ...
9459         ($scriptversion): ... the date in its version.
9460         ($usage): Patches and bug reports should be sent to the gnulib list,
9461         not the automake one.
9462         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9463         anymore.
9464
9465 2012-01-15  Bruno Haible  <bruno@clisp.org>
9466
9467         Fix module 'random'.
9468         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9469         initstate, setstate are declared.
9470
9471 2012-01-14  Bruno Haible  <bruno@clisp.org>
9472
9473         Tests for module 'random'.
9474         * modules/random-tests: New file.
9475         * tests/test-random.c: New file, based on tests/test-random_r.c.
9476
9477         New module 'random'.
9478         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9479         declarations.
9480         * lib/random.c: New file, based on glibc/stdlib/random.c.
9481         * m4/random.m4: New file.
9482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9483         HAVE_RANDOM.
9484         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9485         * modules/random: New file.
9486         * config/srclist.txt: Add an entry for random.c.
9487         * doc/posix-functions/random.texi: Mention the 'random' module.
9488         * doc/posix-functions/initstate.texi: Likewise.
9489         * doc/posix-functions/setstate.texi: Likewise.
9490         * doc/posix-functions/srandom.texi: Likewise.
9491
9492 2012-01-12  Bruno Haible  <bruno@clisp.org>
9493
9494         random_r: Use common idioms.
9495         * lib/random_r.c: Include <stdlib.h> first.
9496
9497         random_r: Override incompatible API on AIX, OSF/1.
9498         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9499         Override the system function if REPLACE_RANDOM_R is 1.
9500         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9501         and OSF/1, set REPLACE_RANDOM_R.
9502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9503         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9504         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9505         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9506         * doc/glibc-functions/random_r.texi: Likewise.
9507         * doc/glibc-functions/setstate_r.texi: Likewise.
9508
9509         random_r: Support for MSVC 9.
9510         * lib/random_r.c: Include stdint.h, not inttypes.h.
9511
9512 2012-01-12  Eric Blake  <eblake@redhat.com>
9513
9514         inet_ntop: guard extra work by IF_LINT
9515         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9516         better code generation when not checking for warnings.
9517         Suggested by Paul Eggert and Jim Meyering.
9518
9519         strptime: fix regression on mingw
9520         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9521         Fix regression.  Reported by Bruno Haible.
9522
9523 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9524             Bruno Haible  <bruno@clisp.org>
9525
9526         copy-file: add error-code-returning variant.
9527         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9528         (qcopy_file_preserving): New declaration.
9529         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9530         copy_file_preserving. Change return type to 'int'. Don't emit an error
9531         message here.
9532         (copy_file_preserving): New function.
9533         * tests/test-copy-file.c: Include <stdlib.h>.
9534         (main): Test qcopy_file_preserving if the environment variable
9535         NO_STDERR_OUTPUT is set.
9536         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9537         with NO_STDERR_OUTPUT
9538         * tests/test-copy-file-2.sh: Likewise.
9539
9540 2012-01-10  Bruno Haible  <bruno@clisp.org>
9541
9542         copy-file: Use 'quote' module consistently.
9543         * lib/copy-file.c (copy_file_preserving): Use quote().
9544
9545         copy-file: Refactor.
9546         * lib/copy-file.c: Include quote.h.
9547         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9548         message here.
9549         * modules/copy-file (Depends-on): Add quote.
9550
9551         acl: Export qcopy_acl.
9552         * lib/acl.h (qcopy_acl): New declaration.
9553         * lib/copy-acl.c (qcopy_acl): Make non-static.
9554
9555         acl: Rename a local variable.
9556         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9557
9558         acl: Align return values of copy_acl and qcopy_acl.
9559         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9560         maybe < -1.
9561
9562 2012-01-11  Eric Blake  <eblake@redhat.com>
9563
9564         strptime: silence gcc warnings
9565         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9566         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9567         Reported by Daniel P. Berrange.
9568
9569         inet_ntop: silence gcc warning
9570         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9571         Reported by Daniel P. Berrange.
9572
9573 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9574
9575         getloadavg test: skip the test on GNU/Linux without /proc mounted
9576         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9577         file.  When /proc is not mounted, it always fails with ENOENT.
9578         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9579         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9580
9581 2012-01-10  Bruno Haible  <bruno@clisp.org>
9582
9583         regex: Avoid link error on MSVC 9.
9584         * modules/regex (Depends-on): Add wctype.
9585
9586 2012-01-10  Bruno Haible  <bruno@clisp.org>
9587
9588         doc: Mention --with-tests option.
9589         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9590         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9591         --with-tests.
9592         Reported by Reuben Thomas.
9593
9594 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9595
9596         users.txt: order package names lexicographically.
9597         * users.txt: Order package names lexicographically.
9598
9599 2012-01-10  Jim Meyering  <meyering@redhat.com>
9600
9601         maint.mk: fix description in comment
9602         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9603
9604         ignore-value: remove deprecated ignore_ptr function
9605         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9606         * NEWS: Note this.
9607
9608 2012-01-09  Jim Meyering  <meyering@redhat.com>
9609
9610         test-init.sh: avoid a subshell
9611         * tests/test-init.sh: Remove protective subshell.
9612         Suggested by Bernhard Voelker.  While a subshell is normally
9613         required to protect against older shells (Solaris, FreeBSD) that
9614         warn about a missing program before performing redirection, the
9615         shell-selection tests performed by init.sh probably exclude any
9616         offending shell.
9617
9618 2012-01-08  Bruno Haible  <bruno@clisp.org>
9619
9620         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9621         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9622         variable.
9623
9624 2012-01-08  Bruno Haible  <bruno@clisp.org>
9625
9626         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9627         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9628         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9629         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9630         macro.
9631         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9632         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9633         * lib/spawn_faction_addopen.c: Add workaround implementation if
9634         HAVE_WORKING_POSIX_SPAWN.
9635         * modules/spawn (Makefile): Substitute
9636         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9637         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9638         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9639         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9640         (Depends-on): Update conditions.
9641         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9642         the Solaris 11 bug.
9643
9644 2012-01-08  Bruno Haible  <bruno@clisp.org>
9645
9646         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9647         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9648         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9649         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9650         macro.
9651         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9652         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9653         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9654         HAVE_WORKING_POSIX_SPAWN.
9655         * modules/spawn (Makefile): Substitute
9656         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9657         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9658         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9659         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9660         (Depends-on): Update conditions.
9661         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9662         the Solaris 11 bug.
9663
9664 2012-01-08  Bruno Haible  <bruno@clisp.org>
9665
9666         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9667         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9668         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9669         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9670         HAVE_WORKING_POSIX_SPAWN.
9671         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9672         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9673         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9674         * lib/spawn_faction_addclose.c: Add workaround implementation if
9675         HAVE_WORKING_POSIX_SPAWN.
9676         * modules/spawn (Makefile): Substitute
9677         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9678         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9679         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9680         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9681         (Depends-on): Update conditions.
9682         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9683         the Solaris 11 bug.
9684
9685 2012-01-08  Bruno Haible  <bruno@clisp.org>
9686
9687         doc: Update for Solaris 11 2011-11.
9688         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9689         * m4/printf.m4: Update comments.
9690
9691 2012-01-08  Bruno Haible  <bruno@clisp.org>
9692
9693         mktime: Avoid compilation error on Solaris 11.
9694         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9695
9696 2012-01-08  Bruno Haible  <bruno@clisp.org>
9697
9698         doc: Small fix.
9699         * doc/posix-headers/nl_types.texi: Correct platforms list.
9700
9701 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9702
9703         Add lgpl-3.0 module.
9704         * MODULES.html.sh (Support for building documentation): Add
9705         lgpl-3.0.
9706         * modules/lgpl-3.0: New file.
9707
9708 2012-01-08  Jim Meyering  <meyering@redhat.com>
9709
9710         select.c: indent with spaces, not TABs
9711         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9712
9713 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9714
9715         quotearg: do not use grave accent for left quote
9716         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9717         locale_quoting_style.
9718         (quotearg_buffer_restyled): Fix example.
9719         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9720
9721 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9722
9723         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9724         Most programs do not have translation catalogs for English and much
9725         less separate catalogs for British and American English.  Drop the
9726         suggestion to translators about these two, and provide it
9727         automatically for Unicode locales.  Like most programs, even those
9728         using American English, we use single quotation marks.  This conflicts
9729         with the American typographic convention, but works better when you
9730         cite the entire error message within double quotes.  It also tries not
9731         to clash with established practice and with what non-gnulib programs
9732         will usually do.
9733         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9734         using an UTF-8 or GB-18030 locale.  The list of other locales with
9735         quotes was provided by Bruno Haible.
9736         (quotearg_buffer_restyled): Adjust instructions to translators.
9737         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9738         text, since this would be wrong when using Unicode.
9739         * modules/quotearg: Depend on c-strcaseeq.
9740
9741 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9742
9743         quotearg: fix Wikipedia link
9744         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9745
9746 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9747
9748         Fix for mingw with MSVC9.
9749         * m4/ld-version-script.m4: Check that compiler rejects version
9750         scripts with syntax errors.  Reported by Bruno Haible
9751         <bruno@clisp.org>.
9752
9753 2012-01-06  Bruno Haible  <bruno@clisp.org>
9754
9755         Talk about "native Windows API", not "Woe32".
9756         * lib/accept4.c: Update comments to mention native Windows.
9757         * lib/execute.c: Likewise.
9758         * lib/fatal-signal.c: Likewise.
9759         * lib/localcharset.c: Likewise.
9760         * lib/nanosleep.c: Likewise.
9761         * lib/nl_langinfo.c: Likewise.
9762         * lib/pclose.c: Likewise.
9763         * lib/pipe-filter-gi.c: Likewise.
9764         * lib/pipe-filter-ii.c: Likewise.
9765         * lib/pipe.c: Likewise.
9766         * lib/pipe2.c: Likewise.
9767         * lib/popen.c: Likewise.
9768         * lib/progreloc.c: Likewise.
9769         * lib/relocatable.c: Likewise.
9770         * lib/sigaction.c: Likewise.
9771         * lib/sigprocmask.c: Likewise.
9772         * lib/spawn-pipe.h: Likewise.
9773         * lib/spawn-pipe.c: Likewise.
9774         * lib/spawni.c: Likewise.
9775         * lib/stat-time.h: Likewise.
9776         * lib/w32spawn.h: Likewise.
9777         * tests/test-isatty.c: Likewise.
9778         * lib/config.charset: More comments.
9779         * doc/gnulib-intro.texi: Mention native Windows.
9780         * doc/posix-functions/_Exit_C99.texi: Likewise.
9781         * doc/posix-headers/fcntl.texi: Likewise.
9782
9783 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9784
9785         argp: Avoid crash if translator uses % characters in a translation.
9786         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9787         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9788
9789 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9790
9791         doc: C11 and C++11 are now official
9792         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9793         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9794         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9795         * modules/stdalign:
9796         Replace references to draft C1X to C11, and to draft C++0X to C++11.
9797
9798 2012-01-06  Bruno Haible  <bruno@clisp.org>
9799
9800         uc-is-grapheme-break tests: Tweak.
9801         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
9802         message.
9803
9804 2012-01-06  Bruno Haible  <bruno@clisp.org>
9805
9806         test-init.sh: correct the test for diff -u
9807         * tests/test-init.sh: Also redirect stdout to /dev/null.
9808
9809 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9810
9811         Use ', not `, for quoting output.
9812         * build-aux/announce-gen (usage, sizes, print_news_deltas)
9813         (print_changelog_deltas, get_tool_versions, main program):
9814         * build-aux/git-version-gen:
9815         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
9816         * build-aux/move-if-change (help):
9817         * build-aux/useless-if-before-free (usage, main program):
9818         * check-module (parse_module_file, usage)
9819         (find_included_lib_files, check_module):
9820         * lib/argmatch.c (main) [TEST]:
9821         * lib/argp-help.c (_help):
9822         * lib/getopt1.c (main) [TEST]:
9823         * lib/git-merge-changelog.c (usage):
9824         * lib/xstrtol-error.c (xstrtol_error):
9825         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
9826         * m4/argz.m4 (gl_FUNC_ARGZ):
9827         * m4/bison.m4 (gl_BISON):
9828         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
9829         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9830         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9831         * m4/fpending.m4 (gl_PREREQ_FPENDING):
9832         * m4/gc-random.m4 (gl_GC_RANDOM):
9833         * m4/intl.m4 (gt_CHECK_DECL):
9834         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
9835         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
9836         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
9837         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
9838         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9839         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
9840         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
9841         * tests/test-dirname.c (main):
9842         * tests/test-getpass.c (main):
9843         * tests/test-iconvme.c (main):
9844         * tests/test-parse-datetime.c (LOG):
9845         * tests/test-xstrtoimax.sh:
9846         * tests/test-xstrtol.sh:
9847         * tests/test-xstrtoll.sh:
9848         * tests/test-xstrtoumax.sh:
9849         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9850         * top/GNUmakefile (abort-due-to-no-makefile):
9851         Quote 'like this', not `like this', as per the recent change to
9852         the GNU coding standards.
9853
9854 2012-01-05  Bruno Haible  <bruno@clisp.org>
9855
9856         strtoimax: Don't force a replacement on systems where intmax_t is int.
9857         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9858         'intmax_t' is not larger than 'int'.
9859         Reported by Pádraig Brady <P@draigBrady.com>.
9860
9861 2012-01-05  Bruno Haible  <bruno@clisp.org>
9862
9863         doc: Mention NetBSD bugs.
9864         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9865         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9866
9867 2012-01-05  Bruno Haible  <bruno@clisp.org>
9868
9869         strtoumax tests: Enhance tests.
9870         * tests/test-strtoumax.c (main): Add tests for large values.
9871
9872 2012-01-05  Bruno Haible  <bruno@clisp.org>
9873
9874         strtoimax: Work around AIX 5.1 bug.
9875         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9876         definition.
9877         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9878         Set HAVE_STRTOIMAX.
9879         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9880         REPLACE_STRTOIMAX.
9881         * modules/inttypes-incomplete (Makefile.am): Substitute
9882         REPLACE_STRTOIMAX.
9883         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9884         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9885         (Depends-on): Update conditions.
9886         * tests/test-strtoimax.c (main): Add tests for large values.
9887         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9888
9889 2012-01-05  Bruno Haible  <bruno@clisp.org>
9890
9891         inttypes: Modernize.
9892         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9893         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9894         (Makefile.am): Update inttypes.h rule.
9895
9896 2012-01-05  Jim Meyering  <meyering@redhat.com>
9897
9898         init.sh: don't waste a subshell just to redirect stderr
9899         * tests/init.sh: In testing for diff -u and diff -c, use a
9900         stderr-redirecting exec inside `...` rather than a subshell.
9901
9902         test-init.sh: avoid failure on HP-UX 11.00
9903         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9904         resolves to diff -c or cmp.  Reported by Bruno Haible.
9905
9906 2012-01-05  Bruno Haible  <bruno@clisp.org>
9907
9908         Tests for module 'strtoull'.
9909         * modules/strtoull-tests: New file.
9910         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9911
9912 2012-01-05  Bruno Haible  <bruno@clisp.org>
9913
9914         Tests for module 'strtoll'.
9915         * modules/strtoll-tests: New file.
9916         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9917
9918 2012-01-05  Bruno Haible  <bruno@clisp.org>
9919
9920         Tests for module 'strtoul'.
9921         * modules/strtoul-tests: New file.
9922         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9923
9924 2012-01-05  Bruno Haible  <bruno@clisp.org>
9925
9926         Tests for module 'strtol'.
9927         * modules/strtol-tests: New file.
9928         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9929
9930 2012-01-04  Jim Meyering  <meyering@redhat.com>
9931
9932         test-init.sh: accommodate Solaris 5.10's different diff -u output
9933         * tests/test-init.sh: Also exempt @@ lines from the comparison
9934         of diff output, since Solaris 5.10 and GNU diff formats differ.
9935         Reported by Stefano Lattarini.
9936
9937 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9938
9939         test-posixtm: don't assume signed integer wraparound
9940         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9941         after signed integer overflow.  Inspired by (though it may not
9942         fix) Bruno Haible's bug report in
9943         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9944
9945         Spell out "Windows 9x" and "Windows XP".
9946         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9947         "Windows 9x" and "WinXP" with "Windows XP".
9948
9949 2012-01-04  Jim Meyering  <meyering@redhat.com>
9950
9951         test-vc-list-files-cvs.sh: remove obsolete comment
9952         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9953         double exit.  Now that's all encapsulated via skip_ and Exit.
9954
9955 2012-01-04  Bruno Haible  <bruno@clisp.org>
9956
9957         Talk about "native Windows API", not "Win32".
9958         * lib/classpath.c: Update comments to mention native Windows.
9959         * lib/csharpexec.c: Likewise.
9960         * lib/dup2.c: Likewise.
9961         * lib/error.c: Likewise.
9962         * lib/fcntl.c: Likewise.
9963         * lib/filename.h: Likewise.
9964         * lib/findprog.c: Likewise.
9965         * lib/get-rusage-as.c: Likewise.
9966         * lib/get-rusage-data.c: Likewise.
9967         * lib/getpagesize.c: Likewise.
9968         * lib/javaexec.c: Likewise.
9969         * lib/msvc-inval.c: Likewise.
9970         * lib/msvc-nothrow.c: Likewise.
9971         * lib/nanosleep.c: Likewise.
9972         * lib/nonblocking.c: Likewise.
9973         * lib/printf-parse.c: Likewise.
9974         * lib/setlocale.c: Likewise.
9975         * lib/sigaction.c: Likewise.
9976         * lib/strerror_r.c: Likewise.
9977         * lib/tmpdir.c: Likewise.
9978         * lib/vasnprintf.c: Likewise.
9979         * lib/w32spawn.h: Likewise.
9980         * lib/waitpid.c: Likewise.
9981         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9982         * m4/locale-ar.m4: Likewise.
9983         * m4/locale-fr.m4: Likewise.
9984         * m4/locale-ja.m4: Likewise.
9985         * m4/locale-tr.m4: Likewise.
9986         * m4/locale-zh.m4: Likewise.
9987         * m4/printf.m4: Likewise.
9988         * tests/test-cloexec.c: Likewise.
9989         * tests/test-copy-acl.sh: Likewise.
9990         * tests/test-copy-file.sh: Likewise.
9991         * tests/test-file-has-acl.sh: Likewise.
9992         * tests/test-set-mode-acl.sh: Likewise.
9993         * tests/test-dup-safer.c: Likewise.
9994         * tests/test-dup2.c: Likewise.
9995         * tests/test-dup3.c: Likewise.
9996         * tests/test-fcntl.c: Likewise.
9997         * tests/test-nonblocking-pipe.h: Likewise.
9998         * tests/test-nonblocking-socket.h: Likewise.
9999         * tests/test-pipe.c: Likewise.
10000         * tests/test-pipe2.c: Likewise.
10001         * tests/test-spawn-pipe-child.c: Likewise.
10002         * doc/acl-resources.txt: Likewise.
10003         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10004         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10005         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10006         * lib/localcharset.c: Update comments to mention native Windows.
10007         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10008         * lib/localename.c: Likewise.
10009         * lib/progreloc.c: Likewise.
10010         * lib/relocatable.c: Likewise.
10011         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10012         (windows_compute_revents): Renamed from win32_compute_revents.
10013         (windows_compute_revents_socket): Renamed from
10014         win32_compute_revents_socket.
10015         * lib/select.c: Update comments to mention native Windows.
10016         (windows_poll_handle): Renamed from win32_poll_handle.
10017         * m4/threadlib.m4: Update comments to mention native Windows.
10018         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10019         --enable-threads=windows instead of --enable-threads=win32. Set
10020         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10021         * lib/glthread/lock.h: Update comments to mention native Windows.
10022         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10023         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10024         USE_WIN32_THREADS.
10025         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10026         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10027         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10028         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10029         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10030         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10031         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10032         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10033         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10034         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10035         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10036         * tests/test-tls.c: Likewise.
10037         Rationale:
10038         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10039         on both 32-bit and 64-bit Windows systems.
10040         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10041         line of distinction is between "native Windows" on one side and Unix/
10042         POSIX systems on the other side. More details in
10043         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10044         Suggested by Paul Eggert.
10045
10046 2012-01-03  Bruno Haible  <bruno@clisp.org>
10047
10048         isatty: Support for MSVC 9.
10049         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10050         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10051         (_isatty_nothrow): New function.
10052         (isatty): Use it instead of _isatty.
10053         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10054         * lib/poll.c (IsConsoleHandle): Likewise.
10055         * lib/select.c (IsConsoleHandle): Likewise.
10056         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10057         (gl_PREREQ_ISATTY): New macro.
10058         * modules/isatty (Depends-on): Add msvc-inval.
10059         (configure.ac): Invoke gl_PREREQ_ISATTY.
10060
10061 2012-01-03  Jim Meyering  <meyering@redhat.com>
10062
10063         maint.mk: remove temporary transition aid from over 1.5 years ago
10064         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10065         purpose was to aid in the transition (avoiding silent malfunction)
10066         from that old name to the new _sc_search_regexp.  This shim was
10067         added by commit 219c504b.
10068
10069         init.sh: do not try to accommodate compare arguments starting with "-"
10070         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10071         compare arguments that start with "-".  Besides, we do not worry
10072         about this when invoking diff or cmp; why start now with sed?
10073         Using "--" to separate options from argument would trigger sed
10074         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10075         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10076
10077 2012-01-02  Bruno Haible  <bruno@clisp.org>
10078
10079         Enhance tests for module 'isatty'.
10080         * modules/isatty-tests (Depends-on): Add pipe-posix.
10081         * tests/test-isatty.c: Include <fcntl.h>.
10082         (DEV_NULL): New macro.
10083         (main): Test the resut of isatty() also on regular files, pipes, and
10084         /dev/null.
10085
10086         New module 'isatty'.
10087         * lib/unistd.in.h (isatty): New declaration.
10088         * lib/isatty.c: New file, based on an idea of
10089         Bastien Roucariès <roucaries.bastien@gmail.com>.
10090         * m4/isatty.m4: New file.
10091         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10092         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10093         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10094         REPLACE_ISATTY.
10095         * modules/isatty: New file.
10096         * doc/posix-functions/isatty.texi: Mention the new module.
10097         Suggested by Paolo Bonzini.
10098
10099 2012-01-02  Bruno Haible  <bruno@clisp.org>
10100
10101         canonicalize: Tweak 2011-12-29 commit.
10102         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10103         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10104
10105 2012-01-02  Jim Meyering  <meyering@redhat.com>
10106
10107         gitlog-to-changelog: describe input syntax in --help output
10108         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10109
10110         gitlog-to-changelog: fix typo in --help: show backslash before email @
10111         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10112         in sources, but not in actual output.
10113
10114 2011-12-30  Jim Meyering  <meyering@redhat.com>
10115
10116         gitlog-to-changelog: don't malfunction when name contains %-directive
10117         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10118         in a name string cause trouble.  E.g., with a user name of "%s",
10119         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10120
10121 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10122
10123         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10124         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10125         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10126         the "  (tiny change)" notation that is appended to the standard
10127         ChangeLog "date  name  email" header line.
10128
10129 2012-01-01  Jim Meyering  <meyering@redhat.com>
10130
10131         test-framework-sh: init.sh: fix "make dist" failure
10132         When using gnulib-tool's --with-tests option and any module that
10133         depends on test-framework-sh, "make dist" would fail due to the
10134         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10135         in the gltests directory, and not in the gllib/ directory.
10136         One way to work around that is to move the EXTRA_DIST += init.sh
10137         from the primary module to the -tests one:
10138         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10139         * modules/test-framework-sh (Makefile.am): ...not here.
10140         Reported by Tom G. Christensen in
10141         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10142
10143         version-etc: update copyright year reported by --version
10144         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10145
10146 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10147
10148         canonicalize: only stat() if required
10149         * lib/canonicalize.c (canonicalize_filename_mode):
10150         Avoid calling l?stat() when both CAN_MISSING,
10151         and CAN_NOLINKS are set, as we neither need
10152         to resolve symlinks or test component existence.
10153
10154 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10155
10156         doc: cover st_ino issues once; add OpenVMS etc.
10157         * doc/posix-functions/stat.texi (stat):
10158         * doc/posix-functions/lstat.texi (lstat):
10159         * doc/posix-functions/fstatat.texi (fstatat):
10160         * doc/posix-functions/fstat.texi (fstat):
10161         Move general 'struct stat' stuff to sys_stat.texi,
10162         leaving behind a pointer.
10163         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10164         Merge duplicate info about 'struct stat' problems into here.
10165         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10166         and suggest partial workarounds.
10167
10168         same-inode: port to OpenVMS
10169         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10170         three st_ino values.
10171
10172 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10173
10174         canonicalize: fix references to stat() and lstat()
10175         * lib/canonicalize.c (canonicalize_filename_mode):
10176         Ensure references always resolve to a replacement
10177         function if required (even via a macro).
10178
10179 2011-12-30  Jim Meyering  <meyering@redhat.com>
10180
10181         gitlog-to-changelog: remove a little duplication
10182         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10183         rather than twice.
10184
10185 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10186
10187         canonicalize: add support for not resolving symlinks
10188         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10189         indicate we don't want to follow symlinks.  Also
10190         provide CAN_MODE_MASK to aid setting these existing
10191         mutually exclusive values.
10192         * lib/canonicalize.c (canonicalize_filename_mode):
10193         Extract the flags from can_mode parameter, which
10194         are currently just used to select between stat()
10195         and lstat().  Also ensure that mutually exclusive
10196         values are flagged immediately as invalid.
10197         * tests/test-canonicalize.c: Verify symlinks are
10198         not followed, and that invalid flag combinations
10199         are diagnosed.
10200
10201 2011-12-25  Jim Meyering  <meyering@redhat.com>
10202
10203         gitlog-to-changelog: do not clump multi-paragraph entries
10204         Identical header lines (date,name,email+coauthors) are suppressed,
10205         thus putting all entries with those same characteristics under
10206         a single header.  However, when a log entry consists of two or
10207         more paragraphs, it may not be clear where it starts and ends.
10208         This change makes it so that such an entry is always separated
10209         from others by a header line, even when that header would
10210         otherwise be suppressed.
10211         * build-aux/gitlog-to-changelog: Implement the above.
10212         Inspired by a related request from Stefano Lattarini in
10213         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10214
10215 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10216
10217         announce-gen: fix `cmd' typo in diagnostic
10218         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10219         diagnostic: a missing '$' meant that the command was not output.
10220
10221 2011-12-23  Jim Meyering  <meyering@redhat.com>
10222
10223         test-framework-sh: distribute init.sh
10224         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10225         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10226         fail due to the lack of init.sh.
10227
10228         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10229         * modules/atexit-tests: Rather than listing tests/init.sh,
10230         now that there's a module for it, simply depend on that new module.
10231         * modules/closein-tests: Likewise.
10232         * modules/exclude-tests: Likewise.
10233         * modules/getcwd-tests: Likewise.
10234         * modules/perror-tests: Likewise.
10235         * modules/pread-tests: Likewise.
10236         * modules/pwrite-tests: Likewise.
10237         * modules/vc-list-files-tests: Likewise.
10238         * modules/verify-tests: Likewise.
10239         * modules/xalloc-die-tests: Likewise.
10240         * modules/xstrtoimax-tests: Likewise.
10241         * modules/xstrtol-tests: Likewise.
10242         * modules/xstrtoll-tests: Likewise.
10243         * modules/xstrtoumax-tests: Likewise.
10244         * modules/yesno-tests: Likewise.
10245
10246 2011-12-22  Jim Meyering  <meyering@redhat.com>
10247
10248         test-framework-sh: add minimal tests of init.sh's compare function
10249         * modules/test-framework-sh-tests: New file.
10250         * tests/test-init.sh: New file.
10251
10252         test-framework-sh: new module
10253         * modules/test-framework-sh: New file.
10254         * MODULES.html.sh (Support for maintaining and releasing projects):
10255         List it.
10256
10257         init.sh: do not emit simulated diff output to stderr
10258         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10259
10260 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10261
10262         .gitignore: ignore gnulib.dvi and regex.info
10263         * doc/.gitignore:add gnulib.dvi and regex.info
10264
10265 2011-12-22  Jim Meyering  <meyering@redhat.com>
10266
10267         init.sh: correct previous change
10268         * tests/init.sh (compare): My previous change was wrong.
10269         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10270
10271         init.sh: avoid unwarranted test failure when using "set -e"
10272         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10273         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10274         a use like "compare exp out" would get evoke an unconditional failure.
10275
10276 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10277
10278         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10279         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10280         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10281         autoreconf that did not.
10282         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10283         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10284
10285 2011-12-17  Jim Meyering  <meyering@redhat.com>
10286
10287         bootstrap: remove some now-unneeded code
10288         This script arose back when gnulib-tool was young.
10289         Since then, it has seen improvements that render much of this
10290         script unnecessary.  In particular, it can now make symlinks
10291         to the files it uses.  Also, I no longer see as much value in
10292         marking files as read-only via comments.
10293         If you relied on the symlink-creation feature of the preceding
10294         version of this script, you can get most of that functionality
10295         by adding the --symlink option to the definition of
10296         gnulib_tool_option_extras in your bootstrap.conf file.
10297         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10298         Run autopoint and libtoolize *before* gnulib-tool.
10299         After it, run an abbreviated autoreconf, rather than a loop around
10300         all tools.
10301         (slirp, bt_mark_as_generated): Remove functions.
10302
10303 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10304
10305         ftoastr: fix typo
10306         * lib/ftoastr.h: Fix misspelling in comment.
10307
10308 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10309
10310         * top/README-release: fix punctuation.
10311
10312 2011-12-17  Jim Meyering  <meyering@redhat.com>
10313
10314         bootstrap: correct the recent buildreq change
10315         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10316         had no effect.
10317         * build-aux/bootstrap (buildreq): Bracket each search term with
10318         "*...*", so that the shell "case" statement works as intended.
10319         Add comments.
10320
10321 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10322
10323         build: let bootstrap resort to wget when downloading .po files
10324         * build-aux/bootstrap (download_po_files): Fallback to wget when
10325         downloading the .po files via rsync fails.  This is necessary to
10326         bootstrap from behind a strict firewall.
10327
10328 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10329
10330         stdint: don't assume C++11 when compiling with g++
10331         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10333         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10334         work also in C++ before C++11, as that improperly inhibits
10335         generating a substitute stdint.h for that case.
10336
10337 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10338
10339         alloca: protect comment from gnulib-tool
10340         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10341         that gnulib-tool doesn't think it's a license, and munge it to
10342         say "GCC version 3".
10343
10344 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10345
10346         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10347         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10348         $(abs_top_builddir) instead of $(top_builddir).
10349
10350 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10351
10352         strftime-tests: also test nanoseconds
10353         * tests/test-strftime.c (T): Add a test of %N.
10354
10355 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10356
10357         inttypes, stdint: add C++11 support
10358         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10359         when including inttypes.h and stdint.h.  Support this change to
10360         the standard.
10361         * doc/posix-headers/inttypes.texi (inttypes.h):
10362         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10363         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10364         Define if not defined already, for the benefit of pre-C++11 hosts.
10365         Define the standard format macros (e.g., PRId8) always.
10366         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10367         Likewise, if __cpluspus.  Define the standard constant and limit
10368         macros (e.g., INT8_C, INT8_MAX) always.
10369         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10370         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10371         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10372         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10373         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10374         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10375         Likewise.
10376
10377 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10378
10379         nonblocking tests: Fix test failure on Linux/PPC.
10380         Suggested by Prerna Saxena in
10381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10382         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10383         Set to 1100000.
10384
10385 2011-12-12  Jim Meyering  <meyering@redhat.com>
10386
10387         argmatch: don't hard-code `' when listing valid option arguments
10388         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10389         use the quote function to add quotes.  Use fputs rather than
10390         fprintf for the format string with no format directive.
10391
10392 2011-12-07  Eric Blake  <eblake@redhat.com>
10393
10394         bootstrap: detect tools required by gnulib-tool
10395         * build-aux/bootstrap (buildreq): Provide minimum implicit
10396         dependencies.
10397         * DEPENDENCIES: Mention patch as a prereq.
10398
10399 2011-12-04  Bruno Haible  <bruno@clisp.org>
10400
10401         sethostname: Port to Windows platforms.
10402         * lib/sethostname.c: Provide an alternate implementation for Windows
10403         platforms.
10404         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10405         (main): Skip the test if sethostname() fails with EPERM. On Windows
10406         platforms, don't check the result of gethostname().
10407
10408 2011-12-04  Bruno Haible  <bruno@clisp.org>
10409             Jim Meyering  <meyering@redhat.com>
10410
10411         tests: Avoid spurious error message on platforms without mktemp program.
10412         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10413
10414 2011-12-04  Bruno Haible  <bruno@clisp.org>
10415
10416         sethostname: Fix documentation.
10417         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10418         "not fixed" section.
10419
10420 2011-12-03  Bruno Haible  <bruno@clisp.org>
10421
10422         gnulib-tool: Verify that the License field is present and non-empty.
10423         * gnulib-tool (func_get_license_raw): New function, extracted from
10424         func_get_license.
10425         (func_get_license): Use it. Warn if the module is not a test module and
10426         has no license.
10427         Suggested by Jim Meyering.
10428
10429 2011-12-03  Bruno Haible  <bruno@clisp.org>
10430
10431         sethostname tests: Fix link error on mingw.
10432         * tests/test-sethostname1.c: New file, extracted from
10433         tests/test-sethostname.c.
10434         * tests/test-sethostname2.c: New file, extracted from
10435         tests/test-sethostname.c.
10436         * tests/test-sethostname.c: Remove file.
10437         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10438         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10439         (Depends-on): Add gethostname.
10440         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10441         Link the latter with $(GETHOSTNAME_LIB).
10442
10443         sethostname tests: Fix compilation error on mingw.
10444         * tests/test-sethostname.c: Don't include <sys/types.h>.
10445         (geteuid): Use a dummy value without uid_t.
10446         * modules/sethostname-tests (Depends-on): Remove sys_types.
10447
10448         sethostname tests: Avoid a gcc warning.
10449         * tests/test-sethostname.c (main): Remove an unused variable.
10450
10451         Tweak last commit.
10452         * modules/sethostname-tests (Files): Sort by decreasing importance.
10453         (configure.ac): Check for geteuid.
10454         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10455         the test when there's nothing to test. Drop an unnecessary cast.
10456         Improve an error message. Verify that the final sethostname() call
10457         succeeds.
10458
10459 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10460
10461         Add a test suite for the sethostname module.
10462         * modules/sethostname-tests: New file.  A test program
10463         for the sethostname module.
10464         * tests/test-sethostname.c: Likewise.
10465
10466 2011-12-03  Bruno Haible  <bruno@clisp.org>
10467
10468         Tweak last commit.
10469         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10470         Fix preprocessor directives indentation. Fix typos.
10471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10472         * modules/unistd (Makefile): Likewise.
10473
10474 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10475
10476         Integrate the sethostname module into unistd.
10477         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10478         into the unistd.h header.
10479         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10480         preprocessor directives.
10481         * modules/unistd: Setup the Makefile substitutions of the
10482         SETHOSTNAME preprocessor directives.
10483
10484 2011-12-03  Bruno Haible  <bruno@clisp.org>
10485
10486         Tweak last commit.
10487         * lib/sethostname.c: Don't include <string.h>.
10488         (sethostname): No need to copy the argument string to the stack. Don't
10489         call clearerr. Preserve errno when fprintf failed.
10490         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10491         Don't invoke AC_REPLACE_FUNCS.
10492         * modules/sethostname (Link): Remove empty section.
10493         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10494         failure problem.
10495
10496 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10497
10498         New module 'sethostname'.
10499         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10500         for systems that lack it.
10501         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10502         sethostname declaration and function.
10503         * modules/sethostname: New file.  Define the sethostname module.
10504
10505 2011-12-03  Bruno Haible  <bruno@clisp.org>
10506
10507         Tweak last commit.
10508         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10509
10510 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10511
10512         Split the HOST_NAME_MAX detection into a separate m4 macro.
10513         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10514         macro so it can be used by the pending sethostname module.
10515
10516 2011-12-03  Bruno Haible  <bruno@clisp.org>
10517
10518         Fix module descriptions syntax.
10519         * modules/argv-iter (License): Fix syntax.
10520         * modules/di-set (License): Likewise.
10521         * modules/ino-map (License): Likewise.
10522         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10523
10524 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10525
10526         stdalign: port to Clang 3.0
10527         Problem reported by Simon Josefsson in
10528         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10529         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10530         which has <stdalign.h> but which does not define alignof.
10531         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10532
10533 2011-12-01  Eric Blake  <eblake@redhat.com>
10534
10535         mktempd: silence dd usage
10536         * build-aux/mktempd (rand_bytes): Silence dd.
10537
10538 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10539
10540         manywarnings: Don't mention gcc version in docstring.
10541         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10542         Jim Meyering <meyering@redhat.com>.
10543
10544 2011-11-30  Jim Meyering  <meyering@redhat.com>
10545
10546         hash: mark a few floating point constants with "f" suffix
10547         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10548         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10549         floating point constants with "f", since they're destined to be
10550         saved/used as "float"s.
10551
10552 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10553
10554         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10555         * tests/test-float.c (test_long_double): Correct and re-enable the
10556         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10557
10558 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10559
10560         Avoid subtracting two pointers that don't point into the same block.
10561         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10562         only pointers into the same memory block are subtracted. We cannot
10563         assume that sizeof (ptrdiff_t) == sizeof (void *).
10564
10565 2011-11-29  Eric Blake  <eblake@redhat.com>
10566
10567         maint.mk: add syntax check for use of compare from init.sh
10568         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10569         moved here from coreutils.
10570
10571         manywarnings: drop -Wunsuffixed-float-constants
10572         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10573         '1.0D', which is the only way to silence this warning for 'double'.
10574
10575 2011-11-29  Jim Meyering  <meyering@redhat.com>
10576
10577         hash: mark compute_bucket_size with the pure attribute
10578         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10579
10580         quotearg, propername: correct pragma guard expression
10581         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10582         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10583
10584 2011-11-28  Jim Meyering  <meyering@redhat.com>
10585
10586         propername: do not mark proper_name with the const attribute
10587         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10588         since it examines data pointed to by its parameter.
10589         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10590         the suggestion from -Wsuggest-attribute=const.
10591
10592         propername: mark one more function as const
10593         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10594
10595 2011-11-27  Jim Meyering  <meyering@redhat.com>
10596
10597         mark functions with const and pure attributes
10598
10599         Mark functions per suggestions from gcc-4.6 when using these options:
10600         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10601         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10602         Follow these guidelines: when possible, apply the attribute to
10603         an extern declaration, not to its definition.  Apply it to the
10604         definition only when the definition is static.
10605         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10606         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10607         * lib/base64.h (isbase64): Likewise.
10608         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10609         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10610         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10611         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10612         (c_tolower, c_toupper): Likewise.
10613         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10614         * lib/chdir-long.c (find_non_slash): Likewise.
10615         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10616         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10617         * lib/file-type.h (file_type): Likewise.
10618         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10619         * lib/filevercmp.c (verrevcmp): Likewise.
10620         * lib/freadahead.h (freadahead): Likewise.
10621         * lib/fts.c (fts_maxarglen): Likewise.
10622         * lib/hash-pjw.h (hash_pjw): Likewise.
10623         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10624         * lib/hash.c (is_prime, next_prime): Likewise.
10625         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10626         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10627         (hash_table_ok, hash_get_first, hash_string): Likewise.
10628         (compute_bucket_size): Likewise.
10629         * lib/i-ring.h (i_ring_empty): Likewise.
10630         * lib/isnan.c (isnanl): Likewise.
10631         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10632         * lib/memcasecmp.h (memcasecmp): Likewise.
10633         * lib/memchr2.h (memchr2): Likewise.
10634         * lib/memcmp2.h (memcmp2): Likewise.
10635         * lib/parse-datetime.y (lookup_zone): Likewise.
10636         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10637         [!WINDOWS_SOCKETS]: Likewise.
10638         * lib/strnlen1.h (strnlen1): Likewise.
10639         * lib/uniwidth.in.h (uc_width): Likewise.
10640         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10641         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10642         (quoting_options_from_style): Add a comment.
10643         * lib/propername.h (proper_name): Add a comment.
10644
10645 2011-11-27  Bruno Haible  <bruno@clisp.org>
10646
10647         Remove unused macros from !_LIBC code in glibc-borrowed files.
10648         * lib/fnmatch.c (STRCOLL): Remove macro.
10649         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10650         * lib/glob.c (__stat, __readdir64): Remove macros.
10651         * lib/tempname.c (__open64, __xstat64): Remove macros.
10652         Suggested by Paul Eggert.
10653
10654 2011-11-27  Bruno Haible  <bruno@clisp.org>
10655
10656         getcwd: Fix link error on MSVC 9.
10657         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10658
10659 2011-11-27  Bruno Haible  <bruno@clisp.org>
10660
10661         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10662         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10663         HAVE_OPENDIR is 0.
10664         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10665         HAVE_CLOSEDIR is 0.
10666         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10667         is 0.
10668         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10669
10670 2011-11-27  Bruno Haible  <bruno@clisp.org>
10671
10672         getcwd: Fix bug from 2011-08-17.
10673         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10674         platforms that need it.
10675         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10676         code of 4 to be a failure, not a success. This ensures that
10677         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10678
10679 2011-11-27  Bruno Haible  <bruno@clisp.org>
10680
10681         binary-io tests: Avoid test failure on mingw when libtool is used.
10682         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10683         Don't verify the size of t-bin-out1.tmp here.
10684         * tests/test-binary-io.sh: Verify it here.
10685         Reported by Simon Josefsson.
10686
10687 2011-11-26  Bruno Haible  <bruno@clisp.org>
10688
10689         Fix conflict between two instantiations of module 'unistd'.
10690         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10691         ${include_guard_prefix} also in the autoconf snippet.
10692         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10694         GNULIB_UNISTD_H_GETOPT.
10695         * modules/getopt-posix (configure.ac): Set the
10696         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10697         * modules/getopt-gnu (configure.ac): Likewise.
10698         * modules/unistd (Makefile.am): Change the substitution value of
10699         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10700         Reported by Simon Josefsson.
10701
10702 2011-11-25  Bruno Haible  <bruno@clisp.org>
10703
10704         pagealign_alloc: Doc and comments.
10705         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10706         module.
10707         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10708
10709 2011-11-25  Jim Meyering  <meyering@redhat.com>
10710
10711         test-update-copyright.sh: avoid false-positive failure
10712         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10713         around false positive failure on Cygwin/Windows.  The latter was
10714         matching erroneously-created files with names like
10715         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10716
10717 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10718
10719         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10720         * m4/valgrind-tests.m4: Check that the parameters that will be
10721         used works, not just a subset of them.  Reported by Bruno Haible
10722         <bruno@clisp.org>.
10723
10724 2011-11-24  Jim Meyering  <meyering@redhat.com>
10725
10726         test-stdalign.c: comment out long double tests
10727         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10728         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10729         error: '_Alignas' specifiers cannot reduce alignment of \
10730         'static_longdouble_alignas'.
10731
10732 2011-11-22  Jim Meyering  <meyering@redhat.com>
10733
10734         init.sh: make "compare /dev/null FILE" output more readable
10735         * tests/init.sh (compare_): Document the preferred order of arguments.
10736         (emit_diff_u_header_): New function.
10737         (compare_dev_null_): Emit a simulated diff, rather than just the
10738         contents of the unexpected file.  Suggestion from Bruno Haible.
10739
10740 2011-11-21  Jim Meyering  <meyering@redhat.com>
10741             Eric Blake  <eblake@redhat.com>
10742
10743         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10744         * tests/init.sh: Make our compare function slightly more portable.
10745         Reported by Bruno Haible in
10746         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10747
10748 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10749
10750         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10751         before using it, in code that ends up in config.h.
10752
10753 2011-11-20  Bruno Haible  <bruno@clisp.org>
10754
10755         getcwd: Work around getcwd bug on AIX 5..7.
10756         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10757         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10758         Use a different value for gl_cv_func_getcwd_path_max. Move the
10759         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10760         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10761         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10762         Define HAVE_MINIMALLY_WORKING_GETCWD.
10763         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10764         where it is not even minimally working, that is, on AIX.
10765         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10766         m4/getcwd-path-max.m4.
10767         (main): Update exit code computation.
10768         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10769         getcwd does not handle long file names.
10770
10771 2011-11-20  Bruno Haible  <bruno@clisp.org>
10772
10773         getcwd: Fix bug from 2009-09-10.
10774         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10775         like "no".
10776
10777 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10778
10779         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10780
10781 2011-11-20  Bruno Haible  <bruno@clisp.org>
10782
10783         fma tests: Avoid shadowing local variables.
10784         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10785         expected.
10786
10787 2011-11-20  Bruno Haible  <bruno@clisp.org>
10788
10789         copysignf tests: Fix.
10790         * tests/test-copysignf.c: Fix signature check.
10791
10792 2011-11-20  Bruno Haible  <bruno@clisp.org>
10793
10794         fma: Remove unused code.
10795         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
10796         unused macros.
10797
10798 2011-11-20  Bruno Haible  <bruno@clisp.org>
10799
10800         sethostname: Fix doc about AIX.
10801         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
10802         sethostname; it has it.
10803
10804         sethostname: Mention more portability problems.
10805         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
10806         problem.
10807         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10808
10809 2011-11-19  Bruno Haible  <bruno@clisp.org>
10810
10811         Depend on module fcntl-h when AT_FDCWD is used.
10812         * modules/utimens (Depends-on): Add fcntl-h.
10813         * modules/areadlinkat (Depends-on): Likewise.
10814         * modules/areadlinkat-with-size (Depends-on): Likewise.
10815         * modules/faccessat (Depends-on): Likewise.
10816         * modules/fchmodat (Depends-on): Likewise.
10817         * modules/fchownat (Depends-on): Likewise.
10818         * modules/getcwd (Depends-on): Likewise.
10819         * modules/mkdirat (Depends-on): Likewise.
10820         * modules/mkfifoat (Depends-on): Likewise.
10821         * modules/readlinkat (Depends-on): Likewise.
10822         * modules/symlinkat (Depends-on): Likewise.
10823         * modules/dup2-tests (Depends-on): Likewise.
10824         * modules/fdutimensat-tests (Depends-on): Likewise.
10825         * modules/futimens-tests (Depends-on): Likewise.
10826
10827 2011-11-19  Bruno Haible  <bruno@clisp.org>
10828
10829         euidaccess: Update a comment.
10830         * lib/euidaccess.c: Update comment about platforms with faccessat.
10831
10832 2011-11-19  Bruno Haible  <bruno@clisp.org>
10833
10834         openat: Fix file list.
10835         * modules/openat (Files): Remove lib/at-func.c.
10836
10837 2011-11-19  Bruno Haible  <bruno@clisp.org>
10838
10839         fstatat: Simplify.
10840         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
10841         gnulib should define rpl_fstatat, there is a
10842         "#define fstatat rpl_fstatat" in <sys/stat.h>.
10843
10844 2011-11-19  Bruno Haible  <bruno@clisp.org>
10845
10846         Ensure 'inline' can be used in tests/test-utimens-common.h.
10847         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10848         * modules/futimens-tests (configure.ac): Likewise.
10849         * modules/utimens-tests (configure.ac): Likewise.
10850         * modules/utimensat-tests (configure.ac): Likewise.
10851
10852 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10853
10854         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10855         not hash_insert0.
10856         (hash_insert_if_absent): Doc fix.
10857
10858 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10859
10860         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10861
10862 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10863
10864         test-getcwd: disambiguate exit status
10865         * tests/test-getcwd.c (test_long_name): Return 0..7.
10866         (main): Exit with an unambiguous exit status.  The old
10867         code yielded a mysterious mixture of two failure codes.
10868
10869         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10870         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10871         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10872         rpl_fstatat or fstatat.  This should fix the other problem
10873         reported by Kai Habel in
10874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10875         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10877         and I reproduced it on a Solaris 8 host we still have in production.
10878
10879 2011-11-18  Jim Meyering  <meyering@redhat.com>
10880
10881         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10882         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10883         Add a sentence to the comment.
10884         (hash_insert0): New function that simply calls hash_insert_if_absent.
10885         * lib/hash.h (hash_insert_if_absent): Declare it.
10886         (hash_insert0): Add deprecation attribute.
10887         (_GL_ATTRIBUTE_DEPRECATED): Define.
10888         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10889         not hash_insert0.
10890         * NEWS: Mention it, even though it's not really an incompatible change.
10891
10892 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10893
10894         openat: avoid compilation failure due to lack of <errno.h> inclusion
10895         * lib/openat.c: Include <errno.h>.
10896
10897 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10898
10899         * modules/getcwd (Depends-on): Add fdopendir.
10900         This fixes one of the two problems reported by Kai Habel in
10901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10902
10903         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10904         stdalign problem reported by Ian Beckwith in
10905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10906         * modules/crypto/gc-arcfour (Depends-on):
10907         Depend conditionally on crypto/arcfour.
10908         * modules/crypto/gc-arctwo (Depends-on):
10909         Depend conditionally on crypto/arctwo.
10910         * modules/crypto/gc-des (Depends-on):
10911         Depend conditionally on crypto/des.
10912         * modules/crypto/gc-hmac-md5 (Depends-on):
10913         Depend conditionally on crypto/hmac-md5.
10914         * modules/crypto/gc-hmac-sha1 (Depends-on):
10915         Depend conditionally on crypto/hmac-sha1.
10916         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10917         * modules/crypto/gc-md4 (Depends-on):
10918         Depend conditionally on crypto/md4.
10919         * modules/crypto/gc-md5 (Depends-on):
10920         Depend conditionally on crypto/md5.
10921         * modules/crypto/gc-rijndael (Depends-on):
10922         Depend conditionally on crypto/rijndael.
10923         * modules/crypto/gc-sha1 (Depends-on):
10924         Depend conditionally on crypto/sha1.
10925         * modules/crypto/gc-arcfour:
10926         * modules/crypto/gc-arctwo:
10927         * modules/crypto/gc-des:
10928         * modules/crypto/gc-hmac-md5:
10929         * modules/crypto/gc-hmac-sha1:
10930         * modules/crypto/gc-md2:
10931         * modules/crypto/gc-md4:
10932         * modules/crypto/gc-md5:
10933         * modules/crypto/gc-rijndael:
10934         * modules/crypto/gc-sha1:
10935         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10936         now that the conditional dependencies do the work for us.
10937
10938 2011-11-17  Jim Meyering  <meyering@redhat.com>
10939
10940         tests: factor st_ctime-comparison out of two headers
10941         * tests/test-utimens-common.h (ctime_compare): Define.
10942         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10943         * tests/test-lutimens.h (test_lutimens): Likewise.
10944         * tests/test-utimens.h (test_utimens): Likewise.
10945
10946         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10947         Invoke the test program via an init.sh-using wrapper.
10948         * tests/test-getcwd.sh: New file.
10949         * modules/getcwd-tests (Files): Add it.
10950         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10951
10952 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10953
10954         gitlog-to-changelog: support multi-author commits.
10955         The FSF cares about keeping track of all authors of patches to its
10956         projects, but Git doesn't provide obvious support for multi-author
10957         changesets. Consensus seems to be forming around the use of extra
10958         Signed-off-by inspired lines in the log message formatted as
10959         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10960         multi-author commits between version control systems.
10961         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10962         log message and output in standard ChangeLog multi-author format.
10963         Reported by Peter Rosin <peda@lysator.liu.se>
10964
10965 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10966             Bruno Haible  <bruno@clisp.org>
10967
10968         Fix some modules' file list.
10969         * modules/fstatat (Files): Add m4/lstat.m4.
10970         * modules/openat (Files): Likewise.
10971         * modules/unlinkat (Files): Likewise.
10972
10973 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10974
10975         maint.mk: fix tight-scope.mk generation in VPATH builds.
10976         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10977         reference with $(srcdir) so that the file is found correctly even
10978         when running `make syntax-check' in a VPATH build.
10979
10980 2011-11-13  Bruno Haible  <bruno@clisp.org>
10981             Jim Meyering  <meyering@redhat.com>
10982
10983         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10984         * tests/init.sh (compare): Remove "No differences encountered" or
10985         synonymous output from the 'diff' program.
10986
10987 2011-11-13  Bruno Haible  <bruno@clisp.org>
10988
10989         Makefile: Tweak indentation.
10990         * Makefile: Use tab as first character in every line that contains rule
10991         commands.
10992
10993 2011-11-13  Bruno Haible  <bruno@clisp.org>
10994
10995         Syntax check for copyright statements.
10996         * check-copyright: New file.
10997         * Makefile (sc_check_copyright): New rule.
10998
10999 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11000
11001         * build-aux/git-version-gen: Add --prefix to configure the tag
11002         match string.
11003
11004 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11005
11006         * build-aux/git-version-gen: Add --help and --version.
11007
11008 2011-11-12  Jim Meyering  <meyering@redhat.com>
11009
11010         revamp the other test-exclude?.sh scripts to use init.sh, too
11011         * tests/test-exclude1.sh: Use init.sh.
11012         * tests/test-exclude2.sh: Likewise.
11013         * tests/test-exclude3.sh: Likewise.
11014         * tests/test-exclude4.sh: Likewise.
11015         * tests/test-exclude5.sh: Likewise.
11016         * tests/test-exclude6.sh: Likewise.
11017         * tests/test-exclude7.sh: Likewise.
11018         * tests/test-exclude8.sh: Likewise.
11019         * modules/exclude-tests (Files): List init.sh.
11020
11021         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11022         These shell scripts ignored failure of the binary test-exclude,
11023         so making the latter return 77 didn't cause them to be skipped.
11024         * tests/test-exclude5.sh: Exit with test-exclude's error status
11025         when that program fails.  Revamp to use init.sh.
11026         * tests/test-exclude2.sh: Likewise.
11027
11028         test-exclude: fix a typo
11029         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11030
11031 2011-11-11  Bruno Haible  <bruno@clisp.org>
11032
11033         obstack: Fix compilation error on MSVC 9.
11034         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11035
11036 2011-11-11  Jim Meyering  <meyering@redhat.com>
11037
11038         test-exclude: skip tests rather than failing on deficient systems
11039         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11040         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11041         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11042         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11043
11044 2011-11-10  Bruno Haible  <bruno@clisp.org>
11045
11046         ptsname_r test: Avoid gcc warning on glibc systems.
11047         * tests/test-ptsname_r.c (null_ptr): New function.
11048         (test_errors): Use it.
11049
11050 2011-11-10  Bruno Haible  <bruno@clisp.org>
11051
11052         ptsname_r: Avoid compilation error on OSF/1 5.1.
11053         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11055         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11056         function is not declared or incompatibly declared.
11057         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11058         * modules/ptsname_r (Depends-on, configure.ac): Update.
11059         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11060
11061 2011-11-10  Bruno Haible  <bruno@clisp.org>
11062
11063         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11064         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11065         When cross-compiling, guess yes on all platforms except AIX.
11066         Reported by Ludovic Courtès <ludo@gnu.org>.
11067
11068 2011-11-09  Bruno Haible  <bruno@clisp.org>
11069
11070         ptsname_r tests: Fix bugs.
11071         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11072         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11073
11074 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11075
11076         fstatat: work with cross-compilation
11077         Problem reported by Ludovic Courtès in
11078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11079         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11080         "cross-compiling" and assume the bug is present.  Replace
11081         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11082         an inverted sense, to be more conservative about our assumptions.
11083         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11084
11085 2011-11-09  Bruno Haible  <bruno@clisp.org>
11086
11087         Improve MODULES.html output.
11088         * modules/mkfifoat (Description): Use the word "function".
11089         * modules/readlinkat (Description): Likewise.
11090         * modules/symlinkat (Description): Likewise.
11091
11092 2011-11-09  Eric Blake  <eblake@redhat.com>
11093
11094         ptsname_r-tests: new test module
11095         * modules/ptsname_r-tests: New module.
11096         * tests/test-ptsname_r.c: New file.
11097
11098         ptsname_r: new module
11099         * modules/ptsname_r: New module.
11100         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11101         * lib/ptsname.c (__ptsname_r): Split...
11102         * lib/ptsname_r.c: ...into new file.
11103         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11104         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11105         * modules/stdlib (Makefile.am): Substitute witnesses.
11106         * lib/stdlib.in.h (ptsname_r): Declare it.
11107         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11108         * MODULES.html.sh (Misc): Likewise.
11109         * modules/ptsname (Depends-on): Alter dependency.
11110         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11111
11112 2011-11-09  Jim Meyering  <meyering@redhat.com>
11113
11114         announce-gen: be more concise when there's only one URL+tarball
11115         * build-aux/announce-gen (get_tool_versions): When you distribute
11116         only one type of tarball, combine the first two "Here are..."
11117         sections and make the key-checking grammar independent of
11118         how many tarballs there are.
11119
11120 2011-11-09  Eric Blake  <eblake@redhat.com>
11121
11122         openpty: provide a stub on mingw
11123         * lib/pty.in.h (includes): Provide forward declarations.
11124         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11125
11126         raise: fix mingw handling of SIGPIPE
11127         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11128
11129 2011-11-08  Bruno Haible  <bruno@clisp.org>
11130
11131         More conditional dependencies.
11132         * modules/faccessat (Depends-on): Add conditions.
11133         * modules/fchmodat (Depends-on): Likewise.
11134         * modules/fchownat (Depends-on): Likewise.
11135         * modules/fstatat (Depends-on): Likewise.
11136         * modules/mkfifoat (Depends-on): Likewise.
11137         * modules/readlinkat (Depends-on): Likewise.
11138         * modules/symlinkat (Depends-on): Likewise.
11139         * modules/unlinkat (Depends-on): Likewise.
11140         * modules/utimensat (Depends-on): Likewise.
11141         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11142         * modules/linkat (Depends-on): Refine the conditions.
11143         * modules/renameat (Depends-on): Likewise.
11144
11145 2011-11-08  Bruno Haible  <bruno@clisp.org>
11146
11147         faccessat: Move AC_LIBOBJ invocation to module description.
11148         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11149         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11150         invocation from here...
11151         * modules/faccessat (configure.ac): ... to here. Invoke
11152         gl_PREREQ_FACCESSAT.
11153
11154 2011-11-08  Bruno Haible  <bruno@clisp.org>
11155
11156         faccessat: Simplify autoconf macro.
11157         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11158         gl_FUNC_EUIDACCESS.
11159
11160 2011-11-08  Bruno Haible  <bruno@clisp.org>
11161
11162         renameat: Fix dependencies.
11163         * modules/renameat (Depends-on): Add stdbool.
11164
11165 2011-11-08  Bruno Haible  <bruno@clisp.org>
11166
11167         mkfifoat: Fix module description.
11168         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11169         not gl_UNISTD_MODULE_INDICATOR.
11170
11171 2011-11-08  Bruno Haible  <bruno@clisp.org>
11172
11173         fstatat: Remove unused dependency.
11174         * modules/fstatat (Depends-on): Remove fstat.
11175
11176 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11177
11178         GNUmakefile: behave when Makefile is missing.
11179         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11180
11181 2011-11-08  Bruno Haible  <bruno@clisp.org>
11182
11183         openat: Conditionalize dependencies.
11184         * lib/openat.c: Reduce the scope of some #includes.
11185         * modules/openat (Depends-on): Add conditions.
11186
11187 2011-11-07  Jim Meyering  <meyering@redhat.com>
11188
11189         maint.mk: extract GPG key ID without using a temporary file
11190         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11191         without using a temporary file.  Based on a suggestion from Werner Koch
11192         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11193
11194 2011-11-07  Eric Blake  <eblake@redhat.com>
11195
11196         grantpt: fix typo
11197         * lib/stdlib.in.h (grantpt): Check correct function.
11198
11199         maint.mk: silence new syntax check
11200         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11201
11202 2011-11-06  Bruno Haible  <bruno@clisp.org>
11203
11204         Doc about floating-point and math API.
11205         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11206         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11207
11208 2011-11-06  Bruno Haible  <bruno@clisp.org>
11209
11210         stdalign tests: Skip the test when compiled by Sun C.
11211         * tests/test-stdalign.c (main): Skip the test on Sun C.
11212
11213 2011-11-06  Bruno Haible  <bruno@clisp.org>
11214
11215         ansi-c++-opt: Complete the 2011-06-05 change.
11216         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11217         does not support namespaces, set the variable to "no", not to ":".
11218
11219 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11220
11221         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11222
11223 2011-11-06  Bruno Haible  <bruno@clisp.org>
11224
11225         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11226         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11227         (minus_zerol) [HP-UX]: New macro.
11228         (unary_minus) [HP-UX]: New function.
11229         (copysignl) [HP-UX]: Use unary_minus function.
11230
11231 2011-11-06  Bruno Haible  <bruno@clisp.org>
11232
11233         ldexp, ldexpf, ldexpl: Enhance tests.
11234         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11235         and tests/test-ldexpl.c.
11236         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11237         LDEXP, MIN_EXP, MAX_EXP): New macros.
11238         Include test-ldexp.h.
11239         (main): Just call test_function.
11240         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11241         infinity.h, nan.h.
11242         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11243         MAX_EXP): New macros.
11244         Include test-ldexp.h.
11245         (x, y): Remove variables.
11246         (main): Just call test_function.
11247         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11248         infinity.h, nan.h.
11249         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11250         MAX_EXP): New macros.
11251         Include test-ldexp.h.
11252         (x, y): Remove variables.
11253         (main): Just call test_function.
11254         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11255         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11256         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11257         (Depends-on): Add isnand-nolibm, signbit, float.
11258         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11259         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11260         (Depends-on): Add isnanf-nolibm, signbit, float.
11261
11262 2011-11-06  Bruno Haible  <bruno@clisp.org>
11263
11264         math tests: Cosmetics.
11265         * tests/test-math-c++.cc: Reorder declarations.
11266
11267 2011-11-05  Bruno Haible  <bruno@clisp.org>
11268
11269         fma*: Simplify test.
11270         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11271         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11272
11273         Tests for module 'fmal'.
11274         * modules/fmal-tests: New file.
11275         * tests/test-fmal1.c: New file.
11276         * tests/test-fmal2.c: New file.
11277
11278         New module 'fmal'.
11279         * lib/math.in.h (fmal): New declaration.
11280         * lib/fmal.c: New file.
11281         * m4/fmal.m4: New file.
11282         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11284         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11285         REPLACE_FMAL.
11286         * modules/fmal: New file.
11287         * doc/posix-functions/fmal.texi: Mention the new module and the various
11288         bugs.
11289
11290         Tests for module 'fmaf'.
11291         * modules/fmaf-tests: New file.
11292         * tests/test-fmaf1.c: New file.
11293         * tests/test-fmaf2.c: New file.
11294
11295         New module 'fmaf'.
11296         * lib/math.in.h (fmaf): New declaration.
11297         * lib/fmaf.c: New file.
11298         * m4/fmaf.m4: New file.
11299         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11301         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11302         REPLACE_FMAF.
11303         * modules/fmaf: New file.
11304         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11305         bugs.
11306
11307         Tests for module 'fma'.
11308         * modules/fma-tests: New file.
11309         * tests/test-fma1.c: New file.
11310         * tests/test-fma1.h: New file.
11311         * tests/test-fma2.c: New file.
11312         * tests/test-fma2.h: New file.
11313
11314         New module 'fma'.
11315         * lib/math.in.h (fma): New declaration.
11316         * lib/fma.c: New file.
11317         * m4/fma.m4: New file.
11318         * m4/fegetround.m4: New file.
11319         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11321         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11322         REPLACE_FMA.
11323         * modules/fma: New file.
11324         * doc/posix-functions/fma.texi: Mention the new module and the various
11325         bugs.
11326
11327         Extend gl_MATHFUNC.
11328         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11329         Support 'void' as argument type.
11330         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11331
11332 2011-11-05  Jim Meyering  <meyering@redhat.com>
11333
11334         maint.mk: also prohibit inclusion of dirent.h without use
11335         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11336
11337 2011-11-05  Bruno Haible  <bruno@clisp.org>
11338
11339         ldexpl tests: Avoid test failure on MSVC 9.
11340         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11341         value. Needed in order to enforce the conversion from a value greater
11342         than LDBL_MAX to Infinity.
11343
11344 2011-11-05  Bruno Haible  <bruno@clisp.org>
11345
11346         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11347         * modules/at-internal: New file, extracted from modules/openat.
11348         * modules/openat-h: New file.
11349         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11350         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11351         * modules/openat (Description): Add reference to POSIX function.
11352         (Files): Remove lib/openat.h, lib/openat-proc.c.
11353         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11354         intprops, unistd.
11355         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11356         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11357         gl_FCNTL_MODULE_INDICATOR.
11358         (Include): Remove unistd.h, openat.h.
11359         * modules/areadlinkat (Files): Add lib/at-func.c.
11360         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11361         openat-die, openat-h, save-cwd.
11362         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11363         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11364         openat-die, openat-h, save-cwd, unistd.
11365         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11366         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11367         openat-h, save-cwd. Remove fcntl-h, openat.
11368         * modules/fchmodat (Files): Remove lib/openat.h.
11369         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11370         openat, stdbool, unistd.
11371         * modules/fchownat (Files): Remove lib/openat.h.
11372         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11373         openat, stdbool, sys_stat.
11374         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11375         lib/openat-proc.c.
11376         (Depends-on): Add at-internal.
11377         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11378         * modules/fstatat (Files): Remove lib/openat.h.
11379         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11380         stdbool, unistd.
11381         * modules/fts (Depends-on): Add openat-h.
11382         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11383         openat.
11384         * modules/mkdirat (Files): Remove lib/openat.h.
11385         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11386         openat, stdbool, sys_stat.
11387         * modules/mkfifoat (Files): Add lib/at-func.c.
11388         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11389         openat-h, save-cwd. Remove fcntl-h, openat.
11390         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11391         * modules/readlinkat (Files): Add lib/at-func.c.
11392         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11393         openat-h, save-cwd. Remove fcntl-h, openat.
11394         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11395         openat.
11396         * modules/selinux-at (Files): Add lib/at-func.c.
11397         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11398         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11399         * modules/symlinkat (Files): Add lib/at-func.c.
11400         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11401         openat-h, save-cwd. Remove fcntl-h, openat.
11402         * modules/unlinkat (Files): Remove lib/openat.h.
11403         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11404         stdbool.
11405         * modules/utimensat (Files): Add lib/at-func.c.
11406         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11407         openat-die, openat-h, save-cwd.
11408         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11409         * modules/fdutimensat-tests (Depends-on): Add openat.
11410         * modules/fstatat-tests (Depends-on): Add openat-h.
11411         * modules/readlinkat-tests (Depends-on): Add openat.
11412         * modules/symlinkat-tests (Depends-on): Add openat.
11413
11414 2011-11-05  Bruno Haible  <bruno@clisp.org>
11415
11416         openat: Include <stdbool.h>.
11417         * lib/openat.c: Include <stdbool.h>.
11418
11419 2011-11-04  Bruno Haible  <bruno@clisp.org>
11420
11421         fchownat, renameat, unlinkat: Fix dependencies.
11422         * modules/fchownat (Depends-on): Add fstatat.
11423         * modules/renameat (Depends-on): Likewise.
11424         * modules/unlinkat (Depends-on): Likewise.
11425
11426 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11427
11428         openat: remove direct dependency on dirent
11429         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11430         and hasn't been needed ever since fdopendir was split into its own
11431         module on 2009-08-31.
11432         * modules/openat (Depends-on): Remove dirent.
11433
11434 2011-11-04  Bruno Haible  <bruno@clisp.org>
11435
11436         renameat: Optimize code size.
11437         * modules/renameat (configure.ac): Don't compile at-func2.c if
11438         REPLACE_RENAMEAT is 1.
11439
11440 2011-11-04  Bruno Haible  <bruno@clisp.org>
11441
11442         openat tests: Fix file list.
11443         * modules/openat-tests (Files): Add tests/test-open.h.
11444
11445 2011-11-04  Bruno Haible  <bruno@clisp.org>
11446
11447         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11448         * modules/fchmodat (Depends-on): Add openat-die.
11449         * modules/fchownat (Depends-on): Likewise.
11450         * modules/linkat (Depends-on): Likewise.
11451         * modules/renameat (Depends-on): Likewise.
11452         * modules/openat (Depends-on): Add dirent.
11453
11454 2011-11-04  Jim Meyering  <meyering@redhat.com>
11455
11456         at-func*.c: fix comments
11457         * lib/at-func2.c: Correct/improve first-line comment.
11458         * lib/at-func.c: Correct grammar in first-line comment.
11459
11460 2011-11-04  Bruno Haible  <bruno@clisp.org>
11461
11462         New module 'mkdirat', split off from module 'openat'.
11463         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11464         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11465         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11466         * modules/mkdirat: New file, extracted from modules/openat.
11467         * modules/openat (Files): Remove lib/mkdirat.c.
11468         (Depends-on): Remove mkdir.
11469         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11470         (Include): Remove <sys/stat.h>.
11471         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11472         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11473         tests/test-mkdir.h.
11474         (Depends-on): Remove ignore-value.
11475         (Makefile.am): Remove rules for test-mkdirat.
11476         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11477         of module 'openat'.
11478         * NEWS: Mention the change.
11479
11480 2011-11-04  Bruno Haible  <bruno@clisp.org>
11481
11482         closedir: Avoid warning on mingw.
11483         * lib/closedir.c: Include <unistd.h>.
11484
11485 2011-11-04  Bruno Haible  <bruno@clisp.org>
11486
11487         New module 'fstatat', split off from module 'openat'.
11488         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11489         defined.
11490         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11491         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11492         gl_FUNC_FSTATAT.
11493         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11494         * modules/fstatat: New file, extracted from modules/openat.
11495         * modules/openat (Files): Remove lib/fstatat.c.
11496         (Depends-on): Remove lstat.
11497         (configure.ac): Remove AC_LIBOBJ of fstatat.
11498         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11499         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11500         tests/test-lstat.h, tests/test-stat.h.
11501         (Depends-on): Remove getcwd-lgpl.
11502         (Makefile.am): Remove rules for test-fstatat.
11503         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11504         of module 'openat'.
11505         * NEWS: Mention the change.
11506         * modules/getcwd (Depends-on): Add fstatat.
11507         * modules/linkat (Depends-on): Likewise.
11508         * modules/mkfifoat-tests (Depends-on): Likewise.
11509         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11510
11511 2011-11-03  Bruno Haible  <bruno@clisp.org>
11512
11513         New module 'unlinkat', split off from module 'openat'.
11514         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11515         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11516         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11517         * modules/unlinkat: New file, extracted from modules/openat. Correct
11518         the dependency conditions.
11519         * modules/openat (Files): Remove lib/unlinkat.c.
11520         (Depends-on): Remove rmdir, unlink.
11521         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11522         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11523         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11524         tests/test-rmdir.h, tests/test-unlink.h.
11525         (Depends-on): Remove unlinkdir.
11526         (Makefile.am): Remove rules for test-unlinkat.
11527         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11528         of module 'openat'.
11529         * NEWS: Mention the change.
11530         * modules/linkat-tests (Depends-on): Add unlinkat.
11531         * modules/mkfifoat-tests (Depends-on): Likewise.
11532         * modules/readlinkat-tests (Depends-on): Likewise.
11533
11534 2011-11-02  Bruno Haible  <bruno@clisp.org>
11535
11536         New module 'fchmodat', split off from module 'openat'.
11537         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11538         defined.
11539         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11540         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11541         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11542         * modules/fchmodat: New file, extracted from modules/openat.
11543         * modules/openat (Files): Remove lib/fchmodat.c.
11544         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11545         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11546         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11547         (Makefile.am): Remove rules for test-fchmodat.
11548         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11549         of module 'openat'.
11550         * NEWS: Mention the change.
11551
11552 2011-11-02  Jim Meyering  <meyering@redhat.com>
11553
11554         putenv: indent #definition of "environ" to placate cppi
11555         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11556
11557         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11558         Git logs are often treated as immutable, because editing them
11559         changes the SHA1 checksums of all descendants.  Thus, errors in
11560         git logs tend to stay there forever.  However, when we generate
11561         a ChangeLog file -- typically for distribution -- from that git log,
11562         we can actually make corrections in the generated file.  The key
11563         lies in recording in machine-readable/applicable form the desired
11564         corrections.  See --help for description and an example.
11565         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11566         (usage): Describe it; alphabetize option descriptions.
11567         (main): Honor the new option, carefully.
11568
11569 2011-11-01  Jim Meyering  <meyering@redhat.com>
11570
11571         gitlog-to-changelog: avoid an infloop
11572         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11573         that ends up being empty.
11574
11575 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11576
11577         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11578         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11579         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11580         contains (possibly-quoted) backslashes.  This should avoid
11581         all-too-common shell bugs if COMPLICATED contains backslashes in
11582         the "wrong" places.  Reported by David Evans in
11583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11584         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11585         because we want ASCII ranges.  Is there some reason we don't use
11586         the C locale everywhere in this script?
11587         (func_module, top level): Avoid unwanted pathname expansion when
11588         $repo_url_prefix or $repo_url_suffix_repl contain shell
11589         metacharacters like '?' and '*'.
11590
11591 2011-11-01  Bruno Haible  <bruno@clisp.org>
11592
11593         fchownat: Improve description.
11594         * modules/fchownat (Description): Add link to function.
11595
11596 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11597
11598         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11599         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11601         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11602
11603 2011-11-01  Bruno Haible  <bruno@clisp.org>
11604
11605         alignof: Avoid collision with stdalign module.
11606         * lib/alignof.h (alignof): Remove macro.
11607         * NEWS: Mention the change.
11608         Reported by Paul Eggert.
11609
11610 2011-11-01  Bruno Haible  <bruno@clisp.org>
11611
11612         New module 'fchownat', split off from module 'openat'.
11613         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11614         defined.
11615         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11616         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11617         invoke gl_FUNC_FCHOWNAT.
11618         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11619         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11620         * modules/fchownat: New file, extracted from modules/openat.
11621         * modules/openat (Files): Remove lib/fchownat.c.
11622         (Depends-on): Remove lchown.
11623         (configure.ac): Remove AC_LIBOBJ of fchownat.
11624         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11625         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11626         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11627         (Depends-on): Remove mgetgroups, usleep, stat-time.
11628         (configure.ac): Remove test for getegid.
11629         (Makefile.am): Remove rules for test-fchownat.
11630         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11631         of module 'openat'.
11632         * NEWS: Mention the change.
11633
11634 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11635
11636         stdalign: port better to MSVC and to Sun C 5.11
11637         This fixes some of the problems reported by Bruno Haible in
11638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11639         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11640         shortcomings of MSVC and of Sun C 5.11.
11641         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11642         around __declspec arg.
11643         * modules/stdalign-tests (Files): Add tests/macros.h.
11644         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11645         Include macros.h, for ASSERT.
11646         (DECLARE_ALIGNED): Remove.
11647         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11648         to catch bug), and to 1 if not (simplifies the rest of the code).
11649         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11650         (CHECK_AUTO): Remove.
11651         (CHECK_ALIGNED): Check only the alignment of the static vars,
11652         since auto var alignment isn't supported by Sun C 5.11.
11653         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11654         ASSERT failures are easier to diagnose.
11655
11656 2011-10-31  Bruno Haible  <bruno@clisp.org>
11657
11658         doc about some IRIX 5.3 problems.
11659         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11660         on IRIX 5.3.
11661         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11662         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11663         5.3.
11664         * doc/posix-functions/grantpt.texi: Likewise.
11665         * doc/posix-functions/unlockpt.texi: Likewise.
11666         * doc/posix-functions/lgamma.texi: Likewise.
11667         * doc/posix-functions/nextafter.texi: Likewise.
11668         * doc/posix-functions/remainder.texi: Likewise.
11669         * doc/posix-functions/select.texi: Mention misplaced declaration on
11670         IRIX 5.3.
11671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11672
11673 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11674
11675         gitlog-to-changelog: fix git-log invocation.
11676         git-log mishandles date strings before 1970-01-01 UTC, and there is
11677         no use to specify --since=1970-01-01 by default anyway.
11678         * build-aux/gitlog-to-changelog: By default, when no --since option
11679         was given, do not specify explicit --since option to git-log.
11680
11681 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11682
11683         gitlog-to-changelog: new option --append-dot.
11684         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11685         first non-blank line of each commit message terminated with a dot.
11686
11687 2011-10-30  Bruno Haible  <bruno@clisp.org>
11688
11689         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11690         * lib/ffsl.h: Include <config.h>.
11691         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11692
11693 2011-10-30  Jim Meyering  <meyering@redhat.com>
11694
11695         GNUmakefile: reenable "make syntax-check" for most projects
11696         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11697         build-aux variable", "syntax-check" would do nothing but succeed with
11698         the "No version control files detected..." diagnostic (unless you
11699         happened to override _build-aux via cfg.mk).
11700         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11701         to precede inclusion of maint.mk.  Otherwise, these variables would
11702         be used undefined in any project that does not override the default.
11703
11704 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11705
11706         gitlog-to-changelog: treat a message with only blank lines as empty.
11707         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11708         trailing blank lines before the code that issues a warning about an
11709         empty commit message.
11710
11711 2011-10-30  Jim Meyering  <meyering@redhat.com>
11712
11713         test-parse-datetime.c: avoid new DST-related false positive test failure
11714         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11715         based on the time/date we'll convert, not the current time.
11716         Otherwise, the moment we cross a DST boundary like today's in
11717         Europe, (CEST to CET), that offset ends up being one hour off.
11718
11719 2011-10-27  Bruno Haible  <bruno@clisp.org>
11720
11721         fstat: Tweak documentation.
11722         * modules/fstat (Description): More precise description.
11723
11724 2011-10-27  Bruno Haible  <bruno@clisp.org>
11725
11726         Update documentation regarding 'largefile' module.
11727         * doc/posix-functions/fstat.texi: Tweak wording.
11728         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11729         problems with huge directories and/or small ino_t types.
11730         * doc/posix-functions/readdir.texi: Likewise.
11731         * doc/posix-functions/rewinddir.texi: Likewise.
11732
11733 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11734
11735         maint.mk: don't maintain a second build-aux variable.
11736         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11737         depends on GNUmakefile, which already maintains a cfg.mk
11738         overridable $(_build-aux) for projects with a non-standard
11739         build-aux directory location, although without the $(srcdir)
11740         prefix.  Use that variable consistently instead of introducing a
11741         second one.  Adjust all call sites.
11742
11743 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11744
11745         Add stdalign module and use it in other modules.
11746         This is based on a previous proposal by Bruno Haible
11747         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11748
11749         stdalign: new module
11750         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11751         * modules/stdalign: New files.
11752         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11753         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11754
11755         stdalign-tests: new module
11756         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11757
11758         argp: use stdalign
11759         * lib/argp-parse.c: Include <stdalign.h>.
11760         (alignof): Remove.
11761         * modules/argp (Depends-on): Add stdalign.
11762
11763         crypto libraries: use stdalign
11764         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11765         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11766         Do not include <stdlib.h> twice, in md4.c.
11767         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11768         because we are accessing a pointer's bit-pattern, not a size.
11769         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11770         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11771         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11772         * modules/crypto/sha512: Likewise.
11773
11774         sys_socket: use stdalign, not alignof
11775         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11776         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11777
11778 2011-10-27  Bruno Haible  <bruno@clisp.org>
11779
11780         raise test: Avoid a test failure on Linux/MIPS.
11781         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11782         because 99 is a valid signal on Linux/MIPS.
11783
11784 2011-10-27  Bruno Haible  <bruno@clisp.org>
11785
11786         nonblocking tests: Fix test failure on Linux/MIPS.
11787         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11788         Set to 270000.
11789
11790 2011-10-27  Bruno Haible  <bruno@clisp.org>
11791
11792         utimensat: Work around problem on Linux/hppa.
11793         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11794         values.
11795         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
11796
11797 2011-10-25  Jim Meyering  <meyering@redhat.com>
11798
11799         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11800         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
11801         after symbols like NULL, size_t, etc.
11802         Reported by Alfred M. Szmidt.
11803
11804         maint.mk: exempt ENODATA from a syntax-check rule
11805         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
11806         from the sc_prohibit_always-defined_macros syntax-check rule.
11807         Add a comment.  See this for more details:
11808         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
11809
11810 2011-10-23  Jim Meyering  <meyering@redhat.com>
11811
11812         fts: close parent dir FD before returning from post-traversal fts_read
11813         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
11814         unlink A, even though an FD open on A remained.  This is suboptimal
11815         (holding a file descriptor open longer than needed), but otherwise not
11816         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
11817         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
11818         that represents a real problem: it causes the removal of A to fail
11819         with e.g., "rm: cannot remove `A': Device or resource busy"
11820
11821         fts visits each directory twice and keeps a cache (fts_fd_ring) of
11822         directory file descriptors.  After completing the final, FTS_DP,
11823         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
11824         cache, but then proceeded to add a new FD to it via the subsequent
11825         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
11826         final file descriptor would be closed only via fts_close's call to
11827         fd_ring_clear.  Now, it is usually closed earlier, via the final
11828         FTS_DP-returning fts_read call.
11829         * lib/fts.c (restore_initial_cwd): New function, converted from
11830         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
11831         Update callers.
11832         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
11833         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
11834
11835 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
11836             Bruno Haible  <bruno@clisp.org>
11837             Jim Meyering  <jim@meyering.net>
11838
11839         readme-release: improve safety of release prep instructions.
11840         * README-release: Don't git pull all branches when only master
11841         is needed for the release process.
11842         Run make maintainer-clean before changing trees and merging.
11843         Don't try to run ./configure right after git pull in case files
11844         that influence the bootstrap process have changed, move the
11845         ./configure step to after running ./bootstrap.
11846         Don't bootstrap "one last time"... it's the first time!
11847
11848 2011-10-22  Bruno Haible  <bruno@clisp.org>
11849
11850         errno, strerror-override: Support for MSVC 10.
11851         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11852         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11853         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11854         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11855         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11856         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11857         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11858         Assign values compatible with MSVC 10.
11859         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11860         New macros.
11861         (GNULIB_defined_EWINSOCK): New macro.
11862         * lib/strerror-override.c (strerror_override): Update accordingly.
11863         * lib/strerror-override.h: Likewise.
11864         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11865         longer equal to the corresponding errno value.
11866         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11867
11868 2011-10-22  Bruno Haible  <bruno@clisp.org>
11869
11870         perror: Recognize when test program crashes.
11871         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11872         strerror, set gl_cv_func_perror_works to no.
11873         Reported by Daniel Richard G. <skunk@iskunk.org>.
11874
11875         perror: Fix indentation.
11876         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11877
11878 2011-10-22  Bruno Haible  <bruno@clisp.org>
11879
11880         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11881         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11882         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11883         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11884         functions, not as a macro.
11885         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11886         macros.
11887         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11888         absence of macro.
11889         Suggested by Eric Blake.
11890         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11891
11892 2011-10-21  Bruno Haible  <bruno@clisp.org>
11893
11894         relocatable-prog-wrapper: Don't leave object files behind.
11895         * build-aux/install-reloc: Re-synchronize list of .o files to be
11896         removed with list of compilation units.
11897
11898 2011-10-20  Bruno Haible  <bruno@clisp.org>
11899
11900         openpty, posix_openpt: Remove code duplication.
11901         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11902         * lib/openpty.c: Include <stdlib.h>.
11903         (openpty): Use posix_openpt on all platforms except IRIX.
11904         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11905
11906 2011-10-20  Bruno Haible  <bruno@clisp.org>
11907
11908         unlockpt: Detect invalid argument.
11909         * lib/unlockpt.c: Include <fcntl.h>.
11910         (unlockpt): Check whether fd is valid, using fcntl().
11911         * modules/unlockpt (Depends-on): Add fcntl-h.
11912
11913 2011-10-20  Bruno Haible  <bruno@clisp.org>
11914
11915         openpty: Avoid compilation error on AIX 6.1.
11916         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11917
11918 2011-10-20  Bruno Haible  <bruno@clisp.org>
11919
11920         posix_openpt: Support for OpenBSD.
11921         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11922         (posix_openpt) [OpenBSD]: New code.
11923         * lib/grantpt.c: Include <fcntl.h>.
11924         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11925         * modules/grantpt (Depends-on): Add fcntl-h.
11926
11927 2011-10-20  Bruno Haible  <bruno@clisp.org>
11928
11929         posix_openpt test: Coding style.
11930         * tests/test-posix_openpt.c: Use GNU coding style.
11931
11932 2011-10-20  Bruno Haible  <bruno@clisp.org>
11933
11934         grantpt: Support --avoid=pt_chown.
11935         * modules/grantpt (Files): Add lib/pty-private.h.
11936
11937 2011-10-20  Bruno Haible  <bruno@clisp.org>
11938
11939         posix_openpt: Fix autoconf macro.
11940         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11941         unneeded check for _getpty.
11942
11943 2011-10-20  Bruno Haible  <bruno@clisp.org>
11944
11945         openpty: Update comments.
11946         * lib/openpty.c: Add comments about Minix.
11947
11948 2011-10-19  Eric Blake  <eblake@redhat.com>
11949
11950         openpty: relax license
11951         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11952
11953         pt_chown: use configmake to simplify build
11954         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11955
11956         ptsname and others: relax license
11957         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11958         * modules/unlockpt (License): Likewise.
11959         * modules/pt_chown (License): Likewise.
11960         * modules/ptsname (License): Likewise.
11961         * modules/ttyname_r (License): Likewise.
11962
11963 2011-10-19  Jim Meyering  <meyering@redhat.com>
11964
11965         posix_openpt: remove spurious #endif
11966         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11967
11968 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11969
11970         maint.mk: Respect $(build_aux) in web-manual rule.
11971         * top/maint.mk (web-manual): Find gen-announce script in user's
11972         $(build_aux) directory instead of hard-coding 'build-aux'.
11973
11974 2011-10-19  Bruno Haible  <bruno@clisp.org>
11975
11976         posix_openpt: Fix compilation error.
11977         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11978         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11979         Mention the openpty module as an alternative.
11980
11981 2011-10-19  Bruno Haible  <bruno@clisp.org>
11982
11983         Support for old NeXTstep 3.3 frexp().
11984         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11985         execution time of the test to 5 seconds.
11986         Reported by Daniel Richard G. <skunk@iskunk.org>.
11987
11988 2011-10-19  Bruno Haible  <bruno@clisp.org>
11989
11990         Support for old NeXTstep 3.3 sed.
11991         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11992         part, use /.../, not \|...|. Escape periods in the header file name.
11993         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11994         Reported by Daniel Richard G. <skunk@iskunk.org>.
11995
11996 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11997
11998         Support for old NeXTstep 3.3 gcc.
11999         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12000         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12001         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12002         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12003         * lib/regex.h (_Restrict_arr_): Likewise.
12004         * lib/regex_internal.h (re_token_t): Likewise.
12005         * lib/regexec.c (check_node_accept_bytes): Likewise.
12006         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12007
12008 2011-10-18  Eric Blake  <eblake@redhat.com>
12009
12010         posix_openpt: new module
12011         * modules/posix_openpt: New module.
12012         * m4/posix_openpt.m4: New file.
12013         * lib/posix_openpt.c: Likewise.
12014         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12015         (gl_STDLIB_H_DEFAULTS): Set defaults.
12016         * modules/stdlib (Makefile.am): Substitute macros.
12017         * lib/stdlib.in.h (posix_openpt): Declare.
12018         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12019         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12020         * modules/posix_openpt-tests: New test module.
12021         * tests/test-posix_openpt.c: New test.
12022
12023 2011-10-15  Bruno Haible  <bruno@clisp.org>
12024
12025         xstrtoll: Fix compilation failure.
12026         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12027         from lib/strtol.c.
12028         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12029         some platforms.
12030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12031
12032 2011-10-15  Bruno Haible  <bruno@clisp.org>
12033
12034         vasnprintf: Optimize bit search operation.
12035         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12037         gl_DOUBLE_EXPONENT_LOCATION.
12038         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12039         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12040         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12041         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12042         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12043         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12044         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12045         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12046         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12047
12048 2011-10-15  Bruno Haible  <bruno@clisp.org>
12049
12050         vasnprintf: Fix comments.
12051         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12052
12053 2011-10-14  Bruno Haible  <bruno@clisp.org>
12054
12055         Tests for module 'integer_length_ll'.
12056         * modules/integer_length_ll-tests: New file.
12057         * tests/test-integer_length_ll.c: New file.
12058
12059         New module 'integer_length_ll'.
12060         * lib/integer_length_ll.c: New file.
12061         * modules/integer_length_ll: New file.
12062
12063 2011-10-14  Bruno Haible  <bruno@clisp.org>
12064
12065         Tests for module 'integer_length_l'.
12066         * modules/integer_length_l-tests: New file.
12067         * tests/test-integer_length_l.c: New file.
12068
12069         New module 'integer_length_l'.
12070         * lib/integer_length_l.c: New file.
12071         * modules/integer_length_l: New file.
12072
12073 2011-10-14  Bruno Haible  <bruno@clisp.org>
12074
12075         Tests for module 'integer_length'.
12076         * modules/integer_length-tests: New file.
12077         * tests/test-integer_length.c: New file.
12078
12079         New module 'integer_length'.
12080         * lib/integer_length.h: New file.
12081         * lib/integer_length.c: New file.
12082         * modules/integer_length: New file.
12083
12084 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12085
12086         popen: Fix dependency conditions.
12087         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12088
12089 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12090
12091         perror: Fix autoconf test.
12092         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12093         <stdlib.h> and <string.h>.
12094
12095 2011-10-14  Bruno Haible  <bruno@clisp.org>
12096
12097         ffsl: Optimize on 64-bit platforms.
12098         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12099         unrolling.
12100
12101 2011-10-13  Bruno Haible  <bruno@clisp.org>
12102
12103         ffsl: Optimize on 32-bit platforms.
12104         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12105         use ffs() without a loop.
12106
12107         ffsl, ffsll: Optimize for GCC.
12108         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12109         * lib/ffsl.c (GCC_BUILTIN): New macro.
12110         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12111
12112 2011-10-13  Bruno Haible  <bruno@clisp.org>
12113
12114         ffs, bcopy, memset: Support symbol renaming via config.h.
12115         * lib/ffs.c: Include <config.h>.
12116         * lib/bcopy.c: Likewise.
12117         * lib/memset.c: Likewise.
12118
12119 2011-10-10  Bruno Haible  <bruno@clisp.org>
12120
12121         atanl: Simplify for platforms where 'long double' == 'double'.
12122         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12123         alternative implementation.
12124         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12125         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12126         * modules/atanl (Depends-on): Add atan. Update conditions.
12127
12128 2011-10-10  Bruno Haible  <bruno@clisp.org>
12129
12130         acosl: Simplify for platforms where 'long double' == 'double'.
12131         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12132         alternative implementation.
12133         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12134         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12135         * modules/acosl (Depends-on): Add acos. Update conditions.
12136
12137 2011-10-10  Bruno Haible  <bruno@clisp.org>
12138
12139         asinl: Simplify for platforms where 'long double' == 'double'.
12140         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12141         alternative implementation.
12142         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12143         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12144         * modules/asinl (Depends-on): Add asin. Update conditions.
12145
12146 2011-10-10  Bruno Haible  <bruno@clisp.org>
12147
12148         tanl: Simplify for platforms where 'long double' == 'double'.
12149         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12150         implementation.
12151         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12152         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12153         * modules/tanl (Depends-on): Add tan. Update conditions.
12154         (configure.ac): Don't compile trigl.c if
12155         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12156
12157 2011-10-10  Bruno Haible  <bruno@clisp.org>
12158
12159         cosl: Simplify for platforms where 'long double' == 'double'.
12160         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12161         implementation.
12162         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12163         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12164         * modules/cosl (Depends-on): Add cos. Update conditions.
12165         (configure.ac): Don't compile sincosl.c and trigl.c if
12166         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12167
12168 2011-10-10  Bruno Haible  <bruno@clisp.org>
12169
12170         sinl: Simplify for platforms where 'long double' == 'double'.
12171         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12172         implementation.
12173         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12174         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12175         * modules/sinl (Depends-on): Add sin. Update conditions.
12176         (configure.ac): Don't compile sincosl.c and trigl.c if
12177         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12178
12179 2011-10-10  Bruno Haible  <bruno@clisp.org>
12180
12181         logl: Simplify for platforms where 'long double' == 'double'.
12182         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12183         implementation.
12184         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12185         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12186         * modules/logl (Depends-on): Add log. Update conditions.
12187
12188 2011-10-10  Bruno Haible  <bruno@clisp.org>
12189
12190         expl: Simplify for platforms where 'long double' == 'double'.
12191         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12192         implementation.
12193         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12194         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12195         * modules/expl (Depends-on): Add exp. Update conditions.
12196
12197 2011-10-10  Bruno Haible  <bruno@clisp.org>
12198
12199         sqrtl: Simplify for platforms where 'long double' == 'double'.
12200         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12201         alternative implementation.
12202         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12203         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12204         * modules/sqrtl (Depends-on): Update conditions.
12205
12206 2011-10-10  Bruno Haible  <bruno@clisp.org>
12207
12208         ldexpl: Simplify for platforms where 'long double' == 'double'.
12209         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12210         alternative implementation.
12211         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12212         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12213         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12214
12215 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12216
12217         ffsll: set correct witness
12218         * modules/ffsll (configure.ac): Fix typo.
12219
12220 2011-10-10  Bruno Haible  <bruno@clisp.org>
12221
12222         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12223         * lib/printf-frexpl.c: Include <config.h>.
12224         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12225         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12226         second time.
12227         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12228         gl_LONG_DOUBLE_VS_DOUBLE.
12229         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12230         conditions.
12231
12232 2011-10-10  Bruno Haible  <bruno@clisp.org>
12233
12234         frexpl: Simplify for platforms where 'long double' == 'double'.
12235         * lib/frexpl.c: Include <config.h>.
12236         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12237         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12238         time.
12239         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12240         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12241         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12242         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12243         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12244         conditions.
12245
12246 2011-10-10  Jim Meyering  <meyering@redhat.com>
12247
12248         test-renameat: don't leave behind a temporary file
12249         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12250           ERROR: files left in build directory after distclean:
12251           ./gltests/test-renameat.too
12252           make[1]: *** [distcleancheck] Error 1
12253         Reported by Tom G. Christensen.
12254
12255 2011-10-09  Bruno Haible  <bruno@clisp.org>
12256
12257         rint: Determine RINT_LIBM correctly on AIX 7.
12258         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12259         directly, not only through a function pointer. Also accept an optional
12260         4th argument with extra code.
12261         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12262         rintf() call by gcc when optimizing.
12263
12264         mathfunc.m4: Refactor.
12265         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12266         m4 variable.
12267
12268 2011-10-09  Bruno Haible  <bruno@clisp.org>
12269
12270         rintl: Simplify for platforms where 'long double' == 'double'.
12271         * lib/rintl.c: Include <config.h>.
12272         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12273         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12274         time.
12275         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12276         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12277         * modules/rintl (Depends-on): Add rint. Update conditions.
12278
12279 2011-10-09  Bruno Haible  <bruno@clisp.org>
12280
12281         roundl: Simplify for platforms where 'long double' == 'double'.
12282         * lib/roundl.c: Include <config.h>.
12283         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12284         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12285         time.
12286         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12287         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12288         * modules/roundl (Depends-on): Add round. Update conditions.
12289
12290 2011-10-09  Bruno Haible  <bruno@clisp.org>
12291
12292         truncl: Simplify for platforms where 'long double' == 'double'.
12293         * lib/truncl.c: Include <config.h>.
12294         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12295         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12296         time.
12297         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12298         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12299         * modules/truncl (Depends-on): Add trunc. Update conditions.
12300
12301 2011-10-09  Bruno Haible  <bruno@clisp.org>
12302
12303         ceill: Simplify for platforms where 'long double' == 'double'.
12304         * lib/ceill.c: Include <config.h>.
12305         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12306         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12307         time.
12308         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12309         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12310         * modules/ceill (Depends-on): Add ceil. Update conditions.
12311
12312 2011-10-09  Bruno Haible  <bruno@clisp.org>
12313
12314         floorl: Simplify for platforms where 'long double' == 'double'.
12315         * lib/floorl.c: Include <config.h>.
12316         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12317         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12318         time.
12319         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12320         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12321         * modules/floorl (Depends-on): Add floor. Update conditions.
12322
12323 2011-10-09  Bruno Haible  <bruno@clisp.org>
12324
12325         rint: Fix ordering constraints.
12326         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12327         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12328         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12329
12330 2011-10-09  Bruno Haible  <bruno@clisp.org>
12331
12332         copysignl: Simplify for platforms where 'long double' == 'double'.
12333         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12334         alternative.
12335         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12336         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12337         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12338
12339 2011-10-09  Bruno Haible  <bruno@clisp.org>
12340
12341         Tests for module 'rintl'.
12342         * modules/rintl-tests: New file.
12343         * tests/test-rintl.c: New file.
12344
12345         New module 'rintl'.
12346         * lib/math.in.h (rintl): New declaration.
12347         * lib/rintl.c: New file.
12348         * m4/rintl.m4: New file.
12349         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12351         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12352         * modules/rintl: New file.
12353         * tests/test-math-c++.cc: Check the declaration of rintl.
12354         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12355         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12356         * doc/posix-functions/rintl.texi: Mention the new module.
12357
12358 2011-10-09  Bruno Haible  <bruno@clisp.org>
12359
12360         Tests for module 'rintf'.
12361         * modules/rintf-tests: New file.
12362         * tests/test-rintf.c: New file.
12363
12364         New module 'rintf'.
12365         * lib/math.in.h (rintf): New declaration.
12366         * lib/rintf.c: New file.
12367         * m4/rintf.m4: New file.
12368         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12370         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12371         * modules/rintf: New file.
12372         * tests/test-math-c++.cc: Check the declaration of rintf.
12373         * doc/posix-functions/rintf.texi: Mention the new module.
12374
12375 2011-10-09  Bruno Haible  <bruno@clisp.org>
12376
12377         rint: Support for MSVC.
12378         * lib/math.in.h (rint): New declaration.
12379         * lib/rint.c: New file.
12380         * m4/rint.m4: New file.
12381         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12382         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12383         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12384         * modules/rint (Description): Fix.
12385         (Files): Add lib/rint.c, m4/rint.m4.
12386         (Depends-on): Add math.
12387         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12388         gl_MATH_MODULE_INDICATOR.
12389         * tests/test-math-c++.cc: Check the declaration of rint.
12390         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12391         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12392         * doc/posix-functions/rint.texi: Mention the replacement provided by
12393         the module.
12394
12395         rint tests: More tests.
12396         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12397         minus-zero.h, infinity.h, nan.h.
12398         (main): Skip the test if the current rounding mode is not standard. Add
12399         tests for negative numbers, minus zero, infinity, NaN.
12400         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12401         tests/nan.h.
12402         (Depends-on): Add isnand-nolibm.
12403
12404 2011-10-09  Bruno Haible  <bruno@clisp.org>
12405
12406         Tests for module 'copysignl'.
12407         * modules/copysignl-tests: New file.
12408         * tests/test-copysignl.c: New file.
12409
12410         New module 'copysignl'.
12411         * lib/math.in.h (copysignl): New declaration.
12412         * lib/copysignl.c: New file.
12413         * m4/copysignl.m4: New file.
12414         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12416         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12417         HAVE_COPYSIGNL.
12418         * modules/copysignl: New file.
12419         * tests/test-math-c++.cc: Check the declaration of copysignl.
12420         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12421         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12422         * doc/posix-functions/copysignl.texi: Mention the new module.
12423
12424 2011-10-09  Bruno Haible  <bruno@clisp.org>
12425
12426         Tests for module 'copysignf'.
12427         * modules/copysignf-tests: New file.
12428         * tests/test-copysignf.c: New file.
12429
12430         New module 'copysignf'.
12431         * lib/math.in.h (copysignf): New declaration.
12432         * lib/copysignf.c: New file.
12433         * m4/copysignf.m4: New file.
12434         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12436         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12437         HAVE_COPYSIGNF.
12438         * modules/copysignf: New file.
12439         * tests/test-math-c++.cc: Check the declaration of copysignf.
12440         * doc/posix-functions/copysignf.texi: Mention the new module.
12441
12442 2011-10-09  Bruno Haible  <bruno@clisp.org>
12443
12444         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12445         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12446         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12447         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12448         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12449         gl_SIGNAL_H_DEFAULTS.
12450
12451 2011-10-09  Bruno Haible  <bruno@clisp.org>
12452
12453         poll: Make macro safer.
12454         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12455         ac_cv_header_poll_h is not set.
12456
12457 2011-10-09  Bruno Haible  <bruno@clisp.org>
12458
12459         copysign: Provide replacement.
12460         * lib/math.in.h (copysign): New declaration.
12461         * lib/copysign.c: New file.
12462         * m4/copysign.m4: New file.
12463         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12465         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12466         HAVE_COPYSIGN.
12467         * modules/copysign (Description): Clarify.
12468         (Files): Add lib/copysign.c, m4/copysign.m4.
12469         (Depends-on): Add math, signbit.
12470         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12471         gl_MATH_MODULE_INDICATOR.
12472         * tests/test-math-c++.cc: Check the declaration of copysign.
12473         * doc/posix-functions/copysign.texi: Mention the effects of the module
12474         on Minix and MSVC.
12475
12476 2011-10-09  Bruno Haible  <bruno@clisp.org>
12477
12478         isinf: Ensure macro on AIX 5.1.
12479         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12480         macro.
12481         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12482
12483 2011-10-09  Bruno Haible  <bruno@clisp.org>
12484
12485         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12486         * modules/snprintf-posix-tests (configure.ac): Require
12487         gl_LONG_DOUBLE_VS_DOUBLE.
12488         * modules/sprintf-posix-tests (configure.ac): Likewise.
12489         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12490         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12491         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12492         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12493         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12494         tests on platforms where 'long double' is the same as 'double'.
12495         * tests/test-sprintf-posix.h (test_function): Likewise.
12496         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12497         * tests/test-vasprintf-posix.c (test_function): Likewise.
12498
12499         *printf: Fix for platforms where 'long double' == 'double'.
12500         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12501         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12502         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12503         * modules/fprintf-posix (Files): Likewise.
12504         * modules/obstack-printf-posix (Files): Likewise.
12505         * modules/snprintf-posix (Files): Likewise.
12506         * modules/sprintf-posix (Files): Likewise.
12507         * modules/vasnprintf (Files): Likewise.
12508         * modules/vasnprintf-posix (Files): Likewise.
12509         * modules/vasprintf-posix (Files): Likewise.
12510         * modules/vdprintf-posix (Files): Likewise.
12511         * modules/vfprintf-posix (Files): Likewise.
12512         * modules/vsnprintf-posix (Files): Likewise.
12513         * modules/vsprintf-posix (Files): Likewise.
12514         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12515         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12516         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12517         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12518         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12519         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12520         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12521
12522         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12523         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12524         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12525         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12526         'long double'.
12527         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12528
12529         isinf: Fix for platforms where 'long double' == 'double'.
12530         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12531         Don't blindly assume 80-bit 'long double'.
12532
12533         isfinite: Fix for platforms where 'long double' == 'double'.
12534         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12535         Don't blindly assume 80-bit 'long double'.
12536
12537         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12538         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12539         * modules/isfinite-tests (configure.ac): Require
12540         gl_LONG_DOUBLE_VS_DOUBLE.
12541         * modules/isinf-tests (configure.ac): Likewise.
12542         * modules/isnan-tests (configure.ac): Likewise.
12543         * modules/isnanl-tests (configure.ac): Likewise.
12544         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12545         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12546         tests on platforms where 'long double' is the same as 'double'.
12547         * tests/test-isinf.c (test_isinfl): Likewise.
12548         * tests/test-isnan.c (test_long_double): Likewise.
12549         * tests/test-isnanl.h (main): Likewise.
12550
12551 2011-10-08  Bruno Haible  <bruno@clisp.org>
12552
12553         Tests for module 'tanhf'.
12554         * modules/tanhf-tests: New file.
12555         * tests/test-tanhf.c: New file.
12556
12557         New module 'tanhf'.
12558         * lib/math.in.h (tanhf): New declaration.
12559         * lib/tanhf.c: New file.
12560         * m4/tanhf.m4: New file.
12561         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12563         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12564         * modules/tanhf: New file.
12565         * tests/test-math-c++.cc: Check the declaration of tanhf.
12566         * doc/posix-functions/tanhf.texi: Mention the new module.
12567
12568         tanh: Use a .m4 file.
12569         * m4/tanh.m4: New file.
12570         * modules/tanh (Files): Add it.
12571         (configure.ac): Just invoke gl_FUNC_TANH.
12572
12573 2011-10-08  Bruno Haible  <bruno@clisp.org>
12574
12575         Tests for module 'coshf'.
12576         * modules/coshf-tests: New file.
12577         * tests/test-coshf.c: New file.
12578
12579         New module 'coshf'.
12580         * lib/math.in.h (coshf): New declaration.
12581         * lib/coshf.c: New file.
12582         * m4/coshf.m4: New file.
12583         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12585         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12586         * modules/coshf: New file.
12587         * tests/test-math-c++.cc: Check the declaration of coshf.
12588         * doc/posix-functions/coshf.texi: Mention the new module.
12589
12590         cosh: Use a .m4 file.
12591         * m4/cosh.m4: New file.
12592         * modules/cosh (Files): Add it.
12593         (configure.ac): Just invoke gl_FUNC_COSH.
12594
12595 2011-10-08  Bruno Haible  <bruno@clisp.org>
12596
12597         Tests for module 'sinhf'.
12598         * modules/sinhf-tests: New file.
12599         * tests/test-sinhf.c: New file.
12600
12601         New module 'sinhf'.
12602         * lib/math.in.h (sinhf): New declaration.
12603         * lib/sinhf.c: New file.
12604         * m4/sinhf.m4: New file.
12605         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12607         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12608         * modules/sinhf: New file.
12609         * tests/test-math-c++.cc: Check the declaration of sinhf.
12610         * doc/posix-functions/sinhf.texi: Mention the new module.
12611
12612         sinh: Use a .m4 file.
12613         * m4/sinh.m4: New file.
12614         * modules/sinh (Files): Add it.
12615         (configure.ac): Just invoke gl_FUNC_SINH.
12616
12617 2011-10-08  Bruno Haible  <bruno@clisp.org>
12618
12619         Tests for module 'atan2f'.
12620         * modules/atan2f-tests: New file.
12621         * tests/test-atan2f.c: New file.
12622
12623         New module 'atan2f'.
12624         * lib/math.in.h (atan2f): New declaration.
12625         * lib/atan2f.c: New file.
12626         * m4/atan2f.m4: New file.
12627         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12629         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12630         * modules/atan2f: New file.
12631         * tests/test-math-c++.cc: Check the declaration of atan2f.
12632         * doc/posix-functions/atan2f.texi: Mention the new module.
12633
12634         atan2: Use a .m4 file.
12635         * m4/atan2.m4: New file.
12636         * modules/atan2 (Files): Add it.
12637         (configure.ac): Just invoke gl_FUNC_ATAN2.
12638
12639 2011-10-08  Bruno Haible  <bruno@clisp.org>
12640
12641         Tests for module 'atanf'.
12642         * modules/atanf-tests: New file.
12643         * tests/test-atanf.c: New file.
12644
12645         New module 'atanf'.
12646         * lib/math.in.h (atanf): New declaration.
12647         * lib/atanf.c: New file.
12648         * m4/atanf.m4: New file.
12649         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12651         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12652         * modules/atanf: New file.
12653         * tests/test-math-c++.cc: Check the declaration of atanf.
12654         * doc/posix-functions/atanf.texi: Mention the new module.
12655
12656         atan: Use a .m4 file.
12657         * m4/atan.m4: New file.
12658         * modules/atan (Files): Add it.
12659         (configure.ac): Just invoke gl_FUNC_ATAN.
12660
12661 2011-10-08  Bruno Haible  <bruno@clisp.org>
12662
12663         Tests for module 'acosf'.
12664         * modules/acosf-tests: New file.
12665         * tests/test-acosf.c: New file.
12666
12667         New module 'acosf'.
12668         * lib/math.in.h (acosf): New declaration.
12669         * lib/acosf.c: New file.
12670         * m4/acosf.m4: New file.
12671         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12673         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12674         * modules/acosf: New file.
12675         * tests/test-math-c++.cc: Check the declaration of acosf.
12676         * doc/posix-functions/acosf.texi: Mention the new module.
12677
12678         acos: Use a .m4 file.
12679         * m4/acos.m4: New file.
12680         * modules/acos (Files): Add it.
12681         (configure.ac): Just invoke gl_FUNC_ACOS.
12682
12683 2011-10-08  Bruno Haible  <bruno@clisp.org>
12684
12685         Tests for module 'asinf'.
12686         * modules/asinf-tests: New file.
12687         * tests/test-asinf.c: New file.
12688
12689         New module 'asinf'.
12690         * lib/math.in.h (asinf): New declaration.
12691         * lib/asinf.c: New file.
12692         * m4/asinf.m4: New file.
12693         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12695         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12696         * modules/asinf: New file.
12697         * tests/test-math-c++.cc: Check the declaration of asinf.
12698         * doc/posix-functions/asinf.texi: Mention the new module.
12699
12700         asin: Use a .m4 file.
12701         * m4/asin.m4: New file.
12702         * modules/asin (Files): Add it.
12703         (configure.ac): Just invoke gl_FUNC_ASIN.
12704
12705 2011-10-08  Bruno Haible  <bruno@clisp.org>
12706
12707         Tests for module 'tanf'.
12708         * modules/tanf-tests: New file.
12709         * tests/test-tanf.c: New file.
12710
12711         New module 'tanf'.
12712         * lib/math.in.h (tanf): New declaration.
12713         * lib/tanf.c: New file.
12714         * m4/tanf.m4: New file.
12715         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12717         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12718         * modules/tanf: New file.
12719         * tests/test-math-c++.cc: Check the declaration of tanf.
12720         * doc/posix-functions/tanf.texi: Mention the new module.
12721
12722         tan: Use a .m4 file.
12723         * m4/tan.m4: New file.
12724         * modules/tan (Files): Add it.
12725         (configure.ac): Just invoke gl_FUNC_TAN.
12726
12727 2011-10-08  Bruno Haible  <bruno@clisp.org>
12728
12729         Tests for module 'cosf'.
12730         * modules/cosf-tests: New file.
12731         * tests/test-cosf.c: New file.
12732
12733         New module 'cosf'.
12734         * lib/math.in.h (cosf): New declaration.
12735         * lib/cosf.c: New file.
12736         * m4/cosf.m4: New file.
12737         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12739         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12740         * modules/cosf: New file.
12741         * tests/test-math-c++.cc: Check the declaration of cosf.
12742         * doc/posix-functions/cosf.texi: Mention the new module.
12743
12744         cos: Use a .m4 file.
12745         * m4/cos.m4: New file.
12746         * modules/cos (Files): Add it.
12747         (configure.ac): Just invoke gl_FUNC_COS.
12748
12749 2011-10-08  Bruno Haible  <bruno@clisp.org>
12750
12751         Tests for module 'sinf'.
12752         * modules/sinf-tests: New file.
12753         * tests/test-sinf.c: New file.
12754
12755         New module 'sinf'.
12756         * lib/math.in.h (sinf): New declaration.
12757         * lib/sinf.c: New file.
12758         * m4/sinf.m4: New file.
12759         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12761         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12762         * modules/sinf: New file.
12763         * tests/test-math-c++.cc: Check the declaration of sinf.
12764         * doc/posix-functions/sinf.texi: Mention the new module.
12765
12766         sin: Use a .m4 file.
12767         * m4/sin.m4: New file.
12768         * modules/sin (Files): Add it.
12769         (configure.ac): Just invoke gl_FUNC_SIN.
12770
12771 2011-10-08  Bruno Haible  <bruno@clisp.org>
12772
12773         Tests for module 'powf'.
12774         * modules/powf-tests: New file.
12775         * tests/test-powf.c: New file.
12776
12777         New module 'powf'.
12778         * lib/math.in.h (powf): New declaration.
12779         * lib/powf.c: New file.
12780         * m4/powf.m4: New file.
12781         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12783         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12784         * modules/powf: New file.
12785         * tests/test-math-c++.cc: Check the declaration of powf.
12786         * doc/posix-functions/powf.texi: Mention the new module.
12787
12788         pow: Use a .m4 file.
12789         * m4/pow.m4: New file.
12790         * modules/pow (Files): Add it.
12791         (configure.ac): Just invoke gl_FUNC_POW.
12792
12793 2011-10-08  Bruno Haible  <bruno@clisp.org>
12794
12795         Tests for module 'log10f'.
12796         * modules/log10f-tests: New file.
12797         * tests/test-log10f.c: New file.
12798
12799         New module 'log10f'.
12800         * lib/math.in.h (log10f): New declaration.
12801         * lib/log10f.c: New file.
12802         * m4/log10f.m4: New file.
12803         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
12804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
12805         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
12806         * modules/log10f: New file.
12807         * tests/test-math-c++.cc: Check the declaration of log10f.
12808         * doc/posix-functions/log10f.texi: Mention the new module.
12809
12810         log10: Use a .m4 file.
12811         * m4/log10.m4: New file.
12812         * modules/log10 (Files): Add it.
12813         (configure.ac): Just invoke gl_FUNC_LOG10.
12814
12815 2011-10-08  Bruno Haible  <bruno@clisp.org>
12816
12817         Tests for module 'logf'.
12818         * modules/logf-tests: New file.
12819         * tests/test-logf.c: New file.
12820
12821         New module 'logf'.
12822         * lib/math.in.h (logf): New declaration.
12823         * lib/logf.c: New file.
12824         * m4/logf.m4: New file.
12825         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
12826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
12827         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
12828         * modules/logf: New file.
12829         * tests/test-math-c++.cc: Check the declaration of logf.
12830         * doc/posix-functions/logf.texi: Mention the new module.
12831
12832         log: Use a .m4 file.
12833         * m4/log.m4: New file.
12834         * modules/log (Files): Add it.
12835         (configure.ac): Just invoke gl_FUNC_LOG.
12836
12837 2011-10-08  Bruno Haible  <bruno@clisp.org>
12838
12839         Tests for module 'expf'.
12840         * modules/expf-tests: New file.
12841         * tests/test-expf.c: New file.
12842
12843         New module 'expf'.
12844         * lib/math.in.h (expf): New declaration.
12845         * lib/expf.c: New file.
12846         * m4/expf.m4: New file.
12847         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12849         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12850         * modules/expf: New file.
12851         * tests/test-math-c++.cc: Check the declaration of expf.
12852         * doc/posix-functions/expf.texi: Mention the new module.
12853
12854         exp: Use a .m4 file.
12855         * m4/exp.m4: New file.
12856         * modules/exp (Files): Add it.
12857         (configure.ac): Just invoke gl_FUNC_EXP.
12858
12859 2011-10-08  Bruno Haible  <bruno@clisp.org>
12860
12861         Tests for module 'sqrtf'.
12862         * modules/sqrtf-tests: New file.
12863         * tests/test-sqrtf.c: New file.
12864
12865         New module 'sqrtf'.
12866         * lib/math.in.h (sqrtf): New declaration.
12867         * lib/sqrtf.c: New file.
12868         * m4/sqrtf.m4: New file.
12869         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12871         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12872         * modules/sqrtf: New file.
12873         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12874         * doc/posix-functions/sqrtf.texi: Mention the new module.
12875
12876 2011-10-08  Bruno Haible  <bruno@clisp.org>
12877
12878         Tests: Avoid link failures w.r.t. libintl.
12879         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12880         $(LIBINTL).
12881         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12882         $(LIBINTL).
12883         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12884         against $(LIBINTL).
12885         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12886         $(LIBINTL).
12887         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12888         $(LIBINTL).
12889         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12890
12891 2011-10-08  Bruno Haible  <bruno@clisp.org>
12892
12893         pow tests: Defeat compiler optimizations.
12894         * tests/test-pow.c (main): Assign arguments to x and y before use.
12895
12896 2011-10-08  Bruno Haible  <bruno@clisp.org>
12897
12898         gnulib-tool: Improve last commit.
12899         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12900         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12901         ignore dependencies that are not among the modules list.
12902
12903 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12904
12905         gnulib-tool: don't follow dependencies to avoided modules
12906         This fixes a bug that is related to the previous one.
12907         * gnulib-tool (func_modules_transitive_closure)
12908         (func_emit_autoconf_snippets):
12909         Check whether a dependency is acceptable before using it.
12910         (--extract-dependencies): Report an error if --avoid is also used,
12911         since this combination of options is not yet supported.
12912
12913         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12914         Problem reported by Peter Dyballa in
12915         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12916         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12917         when echoing "$condition".
12918
12919 2011-10-07  Bruno Haible  <bruno@clisp.org>
12920
12921         Fix documentation about math functions on MacOS X.
12922         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12923         MacOS X 10.5.
12924         * doc/posix-functions/fdim.texi: Likewise.
12925         * doc/posix-functions/feclearexcept.texi: Likewise.
12926         * doc/posix-functions/fegetenv.texi: Likewise.
12927         * doc/posix-functions/fegetround.texi: Likewise.
12928         * doc/posix-functions/feholdexcept.texi: Likewise.
12929         * doc/posix-functions/feraiseexcept.texi: Likewise.
12930         * doc/posix-functions/fesetenv.texi: Likewise.
12931         * doc/posix-functions/fesetround.texi: Likewise.
12932         * doc/posix-functions/fetestexcept.texi: Likewise.
12933         * doc/posix-functions/feupdateenv.texi: Likewise.
12934         * doc/posix-functions/fmax.texi: Likewise.
12935         * doc/posix-functions/fmin.texi: Likewise.
12936         * doc/posix-functions/log2.texi: Likewise.
12937         * doc/posix-functions/modff.texi: Likewise.
12938         * doc/posix-functions/nan.texi: Likewise.
12939         * doc/posix-functions/nanf.texi: Likewise.
12940         * doc/posix-functions/nextafterf.texi: Likewise.
12941         * doc/posix-functions/remquo.texi: Likewise.
12942
12943 2011-10-07  Bruno Haible  <bruno@clisp.org>
12944
12945         modff: Drop assumption about library that defines modff.
12946         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12947         AC_CHECK_FUNCS.
12948         * modules/modff (Files): Add m4/mathfunc.m4.
12949
12950 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12951
12952         raise tests: Avoid a GCC warning.
12953         * tests/test-raise.c (handler): Use _Noreturn.
12954
12955 2011-10-07  Bruno Haible  <bruno@clisp.org>
12956
12957         Tests for module 'ldexpf'.
12958         * modules/ldexpf-tests: New file.
12959         * tests/test-ldexpf.c: New file.
12960
12961         New module 'ldexpf'.
12962         * lib/math.in.h (ldexpf): New declaration.
12963         * lib/ldexpf.c: New file.
12964         * m4/ldexpf.m4: New file.
12965         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12967         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12968         * modules/ldexpf: New file.
12969         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12970         * doc/posix-functions/ldexpf.texi: Mention the new module.
12971
12972 2011-10-06  Bruno Haible  <bruno@clisp.org>
12973
12974         frexpf: Work around problems on IRIX and mingw.
12975         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12977         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12978         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12979         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12980         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12981         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12982
12983 2011-10-06  Bruno Haible  <bruno@clisp.org>
12984
12985         fabsf: Drop assumption about library that defines fabsf.
12986         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12987         AC_CHECK_FUNCS.
12988         * modules/fabsf (Files): Add m4/mathfunc.m4.
12989
12990 2011-10-06  Bruno Haible  <bruno@clisp.org>
12991
12992         frexpf: Drop assumption about library that defines frexpf.
12993         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12994         'int *', 'float *', 'long double *', 'float', 'long double'.
12995         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12996         AC_CHECK_FUNCS.
12997         * modules/frexpf (Files): Add m4/mathfunc.m4.
12998
12999         Tests for module 'frexpf'.
13000         * modules/frexpf-tests: New file.
13001         * tests/test-frexpf.c: New file.
13002
13003         New module 'frexpf'.
13004         * lib/math.in.h (frexpf): New declaration.
13005         * lib/frexpf.c: New file.
13006         * m4/frexpf.m4: New file.
13007         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13009         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13010         * modules/frexpf: New file.
13011         * tests/test-math-c++.cc: Check the declaration of frexpf.
13012         * doc/posix-functions/frexpf.texi: Mention the new module.
13013
13014 2011-10-06  Bruno Haible  <bruno@clisp.org>
13015
13016         math: Sort function declarations of math.in.h.
13017         * lib/math.in.h (frexp, logb): Move declarations.
13018
13019 2011-10-05  Bruno Haible  <bruno@clisp.org>
13020
13021         Tests for module 'modff'.
13022         * modules/modff-tests: New file.
13023         * tests/test-modff.c: New file.
13024
13025         New module 'modff'.
13026         * lib/math.in.h (modff): New declaration.
13027         * lib/modff.c: New file.
13028         * m4/modff.m4: New file.
13029         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13031         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13032         * modules/modff: New file.
13033         * tests/test-math-c++.cc: Check the declaration of modff.
13034         * doc/posix-functions/modff.texi: Mention the new module.
13035
13036         modf tests: Make test sharper.
13037         * tests/test-modf.c (main): Strengthen upper bound.
13038
13039         modf: Use a .m4 file.
13040         * m4/modf.m4: New file.
13041         * modules/modf (Files): Add it.
13042         (configure.ac): Just invoke gl_FUNC_MODF.
13043
13044 2011-10-05  Bruno Haible  <bruno@clisp.org>
13045
13046         Tests for module 'fmodf'.
13047         * modules/fmodf-tests: New file.
13048         * tests/test-fmodf.c: New file.
13049
13050         New module 'fmodf'.
13051         * lib/math.in.h (fmodf): New declaration.
13052         * lib/fmodf.c: New file.
13053         * m4/fmodf.m4: New file.
13054         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13055         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13056         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13057         * modules/fmodf: New file.
13058         * tests/test-math-c++.cc: Check the declaration of fmodf.
13059         * doc/posix-functions/fmodf.texi: Mention the new module.
13060
13061         fmod: Use a .m4 file.
13062         * m4/fmod.m4: New file.
13063         * modules/fmod (Files): Add it.
13064         (configure.ac): Just invoke gl_FUNC_FMOD.
13065
13066 2011-10-05  Bruno Haible  <bruno@clisp.org>
13067
13068         Tests for module 'fabsf'.
13069         * modules/fabsf-tests: New file.
13070         * tests/test-fabsf.c: New file.
13071
13072         New module 'fabsf'.
13073         * lib/math.in.h (fabsf): New declaration.
13074         * lib/fabsf.c: New file.
13075         * m4/fabsf.m4: New file.
13076         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13078         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13079         * modules/fabsf: New file.
13080         * tests/test-math-c++.cc: Check the declaration of fabsf.
13081         * doc/posix-functions/fabsf.texi: Mention the new module.
13082
13083         fabs: Use a .m4 file.
13084         * m4/fabs.m4: New file.
13085         * modules/fabs (Files): Add it.
13086         (configure.ac): Just invoke gl_FUNC_FABS.
13087
13088 2011-10-05  Jim Meyering  <meyering@redhat.com>
13089
13090         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13091         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13092         ls -lL regression introduced in coreutils-8.12, it does so at the
13093         cost of an additional stat call in the common case.  Besides, now
13094         that the kernel change that prompted commit 95f7c57f has been reverted
13095         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13096         we have no use for commit 95f7c57f, "file-has-acl: use
13097         acl_extended_file_nofollow if available".
13098
13099 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13100
13101         file-has-acl: revert unintended change in behavior of ls -L
13102         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13103         derived from...
13104         (file_has_acl): ...code here.  Call it.
13105         This problem was introduced with 2011-07-22 commit 95f7c57f,
13106         "file-has-acl: use acl_extended_file_nofollow if available".
13107         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13108
13109 2011-10-03  Bruno Haible  <bruno@clisp.org>
13110
13111         poll: Avoid link errors on MSVC.
13112         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13113         * modules/poll (Depends-on): Add sockets.
13114         (Link): New section.
13115         * NEWS: Mention the change.
13116         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13117         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13118         $(LIB_POLL) instead of $(LIBSOCKET).
13119
13120 2011-10-03  Bruno Haible  <bruno@clisp.org>
13121
13122         sys_select tests: Fix link error on MSVC 9.
13123         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13124         with $(LIB_SELECT) instead of $(LIBSOCKET).
13125
13126 2011-10-03  Bruno Haible  <bruno@clisp.org>
13127
13128         sys_select: Fix compilation error on mingw.
13129         * lib/sys_select.in.h: On native Windows, include <io.h>.
13130
13131 2011-10-03  Bruno Haible  <bruno@clisp.org>
13132
13133         wmemset: Support for MSVC.
13134         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13135         whether wmemset() exists.
13136
13137 2011-10-03  Bruno Haible  <bruno@clisp.org>
13138
13139         wmemmove: Support for MSVC.
13140         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13141         whether wmemmove() exists.
13142
13143 2011-10-03  Bruno Haible  <bruno@clisp.org>
13144
13145         wmemcpy: Support for MSVC.
13146         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13147         whether wmemcpy() exists.
13148
13149 2011-10-03  Bruno Haible  <bruno@clisp.org>
13150
13151         wmemcmp: Support for MSVC.
13152         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13153         whether wmemcmp() exists.
13154
13155 2011-10-03  Bruno Haible  <bruno@clisp.org>
13156
13157         wmemchr: Support for MSVC.
13158         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13159         whether wmemchr() exists.
13160
13161 2011-10-03  Bruno Haible  <bruno@clisp.org>
13162
13163         glthread/*, strsignal: Support for MSVC.
13164         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13165         including <winsock.h> on MSVC 9.
13166         * lib/glthread/lock.h: Likewise.
13167         * lib/glthread/thread.h: Likewise.
13168         * lib/glthread/tls.h: Likewise.
13169         * lib/glthread/yield.h: Likewise.
13170         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13171         if HAVE_UNISTD_H is false.
13172         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13173
13174 2011-10-03  Bruno Haible  <bruno@clisp.org>
13175
13176         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13177         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13178         Set to 100000.
13179
13180 2011-10-03  Bruno Haible  <bruno@clisp.org>
13181
13182         acl: Fix specification.
13183         * lib/file-has-acl.c (file_has_acl): Fix specification.
13184
13185 2011-10-03  Bruno Haible  <bruno@clisp.org>
13186
13187         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13188         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13189         (compute_curr_prefix, shared_library_fullname,
13190         find_shared_library_fullname, get_shared_library_fullname, relocate):
13191         Use it together with PIC && INSTALLDIR.
13192         Reported by <jojelino@gmail.com>
13193         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13194
13195 2011-10-01  Jim Meyering  <meyering@redhat.com>
13196
13197         maint.mk: adjust a release-related rule not to require use of gzip
13198         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13199         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13200         projects that build only .tar.xz files.  Also fix an erroneous test.
13201
13202         test-linkat: don't leave behind a temporary file
13203         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13204         Otherwise, coreutils' "make distcheck" would fail with this:
13205           Only in /c/cu/tests/torture/coreutils/test/\
13206             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13207           make[2]: *** [my-distcheck] Error 1
13208
13209         float, math: add omitted file
13210         * lib/itold.c: Add file, required for yesterday's float change.
13211
13212 2011-10-01  Bruno Haible  <bruno@clisp.org>
13213
13214         isinf: Fix for OpenBSD/x86.
13215         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13216         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13217         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13218
13219 2011-10-01  Bruno Haible  <bruno@clisp.org>
13220
13221         isfinite: Fix syntax error in configure test.
13222         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13223
13224         isfinite: Fix typo.
13225         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13226         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13227
13228 2011-10-01  Bruno Haible  <bruno@clisp.org>
13229
13230         nonblocking tests: Fix test failure on Linux/IA-64.
13231         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13232         Set to 270000.
13233
13234 2011-10-01  Bruno Haible  <bruno@clisp.org>
13235
13236         mkfifoat tests: Fix a test failure on mingw.
13237         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13238         with error ENOSYS.
13239
13240 2011-09-30  Bruno Haible  <bruno@clisp.org>
13241
13242         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13243         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13244         'long double'. Set REPLACE_ITOLD.
13245         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13246         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13247         * lib/itold.c: New file.
13248         * modules/float (Files): Add lib/itold.c.
13249         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13250         (Makefile.am): Substitute REPLACE_ITOLD.
13251         * modules/math (Depends-on): Add float.
13252         (Makefile.am): Substitute REPLACE_ITOLD.
13253         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13254         * doc/posix-headers/math.texi: Likewise.
13255         * doc/posix-functions/logl.texi: Likewise.
13256
13257 2011-09-30  Bruno Haible  <bruno@clisp.org>
13258
13259         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13260         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13261         Set to 140000.
13262
13263 2011-09-30  Bruno Haible  <bruno@clisp.org>
13264
13265         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13266         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13267         invocation, say "right after AC_PROG_CC_STDC", not "right after
13268         AC_PROG_CC".
13269         Reported by Gary V. Vaughan <gary@gnu.org>.
13270
13271 2011-09-30  Bruno Haible  <bruno@clisp.org>
13272
13273         Centralize C99 requirement.
13274         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13275         * modules/stdarg (configure.ac-early): Invoke it instead of
13276         AC_PROG_CC_STDC.
13277         Reported by Gary V. Vaughan and Paul Eggert.
13278
13279 2011-09-29  Bruno Haible  <bruno@clisp.org>
13280
13281         float: Fix LDBL_MAX value on Linux/PowerPC.
13282         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13283         on Linux/PowerPC.
13284         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13285         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13286         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13287         platform.
13288         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13289
13290 2011-09-29  Bruno Haible  <bruno@clisp.org>
13291
13292         doc: Improve doc about gl_EARLY.
13293         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13294         AC_PROG_CC_STDC invocation.
13295         Reported by Gary V. Vaughan <gary@gnu.org>.
13296
13297 2011-09-28  Bruno Haible  <bruno@clisp.org>
13298
13299         fgetc, fputc, fread, fwrite tests: Fix link error.
13300         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13301         on non-MSVC platforms.
13302         * tests/test-fputc.c (main): Likewise.
13303         * tests/test-fread.c (main): Likewise.
13304         * tests/test-fwrite.c (main): Likewise.
13305         Reported by Jim Meyering.
13306
13307 2011-09-27  Bruno Haible  <bruno@clisp.org>
13308
13309         fputc, fwrite tests: Avoid test failure on MSVC.
13310         * tests/test-fgetc.c: Include msvc-inval.h.
13311         (main): Invoke gl_msvc_inval_ensure_handler.
13312         * tests/test-fputc.c: Include msvc-inval.h.
13313         (main): Invoke gl_msvc_inval_ensure_handler.
13314         * tests/test-fread.c: Include msvc-inval.h.
13315         (main): Invoke gl_msvc_inval_ensure_handler.
13316         * tests/test-fwrite.c: Include msvc-inval.h.
13317         (main): Invoke gl_msvc_inval_ensure_handler.
13318         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13319         * modules/fputc-tests (Depends-on): Likewise.
13320         * modules/fread-tests (Depends-on): Likewise.
13321         * modules/fwrite-tests (Depends-on): Likewise.
13322
13323 2011-09-27  Bruno Haible  <bruno@clisp.org>
13324
13325         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13326         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13327         (raise): Remove older, duplicated declaration.
13328         (_gl_raise_SIGPIPE): New declaration.
13329         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13330         (rpl_raise): Remove function.
13331         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13332         a gnulib-defined SIGPIPE here.
13333         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13334         'sigprocmask' has detected missing signal-blocking and the module
13335         'sigpipe' is enabled.
13336         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13337
13338 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13339
13340         base64-tests: avoid memory leak
13341         * tests/test-base64.c (main): Plug memory leak.
13342
13343         base32: new module
13344         * modules/base32: New module.
13345         * lib/base32.c: New file.
13346         * lib/base32.h: Likewise.
13347         * m4/base32.m4: Likewise.
13348         * modules/base32-tests: New test.
13349         * tests/test-base32.c: Likewise.
13350         * MODULES.html.sh (Misc): Mention it.
13351
13352 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13353
13354         gnulib: use more-standard license notice wording
13355         * gnulib-tool (func_emit_copyright_notice): When emitting a
13356         license notice into a file, use the standard wording as suggested
13357         by the current information for GNU maintainers, except say "file"
13358         rather than "program".  The new wording gives a license version
13359         number, which addresses an issue raised by Glenn Morris in
13360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13361         * m4/onceonly.m4: Use that same wording here, too.
13362
13363         dup2: minor simplification
13364         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13365         as lib/dup2.c no longer uses 'inline'.
13366
13367 2011-09-25  Bruno Haible  <bruno@clisp.org>
13368
13369         strings: Fix compilation error on MSVC.
13370         * lib/strings.in.h: Include <stddef.h> for size_t.
13371
13372 2011-09-25  Bruno Haible  <bruno@clisp.org>
13373
13374         fflush et al.: Document limitation on MSVC.
13375         * doc/posix-functions/fflush.texi: Document possible crash in handling
13376         mode other than DEFAULT_HANDLING.
13377         * doc/posix-functions/fgetc.texi: Likewise.
13378         * doc/posix-functions/fputc.texi: Likewise.
13379         * doc/posix-functions/fread.texi: Likewise.
13380         * doc/posix-functions/fwrite.texi: Likewise.
13381
13382 2011-09-25  Bruno Haible  <bruno@clisp.org>
13383
13384         msvc-inval: Allow three invalid parameter handling modes.
13385         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13386         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13387         macros.
13388         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13389         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13390         SANE_LIBRARY_HANDLING as a no-op.
13391         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13392         <stdlib.h>.
13393         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13394
13395 2011-09-25  Bruno Haible  <bruno@clisp.org>
13396
13397         msvc-inval: Make handler multithread-safe.
13398         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13399         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13400         declarations.
13401         (gl_msvc_inval_current): New declaration.
13402         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13403         Operate on the structure returned by gl_msvc_inval_current().
13404         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13405         Remove varaiables.
13406         (tls_index, tls_initialized): New variables.
13407         (not_per_thread): New variable.
13408         (gl_msvc_inval_current): New function.
13409         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13410         returned by gl_msvc_inval_current().
13411
13412 2011-09-25  Bruno Haible  <bruno@clisp.org>
13413
13414         msvc-inval: Install handler globally.
13415         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13416         !_MSC_VER.
13417         (gl_msvc_invalid_parameter_handler): Remove declaration.
13418         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13419         declarations.
13420         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13421         Install the handler globally, don't uninstall it.
13422         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13423         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13424         currently valid, call RaiseException instead.
13425         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13426         for !_MSC_VER.
13427
13428 2011-09-25  Bruno Haible  <bruno@clisp.org>
13429
13430         strerror_r-posix: Fix for MSVC 9.
13431         * lib/strerror_r.c (local_snprintf): New function.
13432         (snprintf): Define to local_snprintf, not to _snprintf.
13433
13434 2011-09-25  Bruno Haible  <bruno@clisp.org>
13435
13436         ftruncate: Support for MSVC 9.
13437         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13438         (chsize_nothrow): New function.
13439         (chsize): Redefine as a macro.
13440         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13441         * modules/ftruncate (Depends-on): Add msvc-inval.
13442
13443 2011-09-25  Bruno Haible  <bruno@clisp.org>
13444
13445         New module 'fstat'.
13446         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13447         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13448         * lib/fchdir.c (rpl_fstat): Remove function.
13449         * m4/fstat.m4: New file.
13450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13451         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13452         declared.
13453         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13454         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13455         * modules/fstat: New file.
13456         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13457         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13458         is set.
13459         * doc/posix-functions/fstat.texi: Mention the new module and the
13460         problem on MSVC.
13461         * NEWS: Mention the change.
13462         * modules/acl (Depends-on): Add fstat.
13463         * modules/chdir-safer (Depends-on): Likewise.
13464         * modules/chown (Depends-on): Likewise.
13465         * modules/copy-file (Depends-on): Likewise.
13466         * modules/fchdir (Depends-on): Likewise.
13467         * modules/fdopendir (Depends-on): Likewise.
13468         * modules/fopen (Depends-on): Likewise.
13469         * modules/fts (Depends-on): Likewise.
13470         * modules/getcwd (Depends-on): Likewise.
13471         * modules/isapipe (Depends-on): Likewise.
13472         * modules/linkat (Depends-on): Likewise.
13473         * modules/lseek (Depends-on): Likewise.
13474         * modules/mkdir-p (Depends-on): Likewise.
13475         * modules/open (Depends-on): Likewise.
13476         * modules/openat (Depends-on): Likewise.
13477         * modules/read-file (Depends-on): Likewise.
13478         * modules/renameat (Depends-on): Likewise.
13479         * modules/utimens (Depends-on): Likewise.
13480
13481 2011-09-25  Bruno Haible  <bruno@clisp.org>
13482
13483         linkat: Fix compilation on MSVC 9.
13484         * lib/linkat.c: Don't include <stdint.h>.
13485
13486 2011-09-25  Bruno Haible  <bruno@clisp.org>
13487
13488         fclose: Support for MSVC 9.
13489         * lib/fclose.c: Include msvc-inval.h.
13490         (fclose_nothrow): New function.
13491         (rpl_fclose): Use it.
13492         * modules/fclose (Depends-on): Add msvc-inval.
13493         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13494
13495 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13496
13497         dup2: minor simplifications
13498         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13499         that it's a performance win.
13500         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13501         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13502
13503 2011-09-24  Jim Meyering  <meyering@redhat.com>
13504
13505         test-futimens: avoid a warning from gcc -Wshadow
13506         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13507         to avoid a shadowing warning.
13508
13509 2011-09-24  Bruno Haible  <bruno@clisp.org>
13510
13511         fdopen: Support for MSVC 9.
13512         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13513         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13514         * lib/fdopen.c: Include msvc-inval.h.
13515         (fdopen_nothrow): New function.
13516         (rpl_fdopen): Use it.
13517         * modules/fdopen (Depends-on): Add msvc-inval.
13518         * modules/fclose-tests (Depends-on): Add fdopen.
13519         * modules/fflush-tests (Depends-on): Likewise.
13520         * modules/fgetc-tests (Depends-on): Likewise.
13521         * modules/fputc-tests (Depends-on): Likewise.
13522         * modules/fread-tests (Depends-on): Likewise.
13523         * modules/freopen-tests (Depends-on): Likewise.
13524         * modules/fseeko-tests (Depends-on): Likewise.
13525         * modules/ftello-tests (Depends-on): Likewise.
13526         * modules/fwrite-tests  (Depends-on): Likewise.
13527         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13528
13529 2011-09-24  Bruno Haible  <bruno@clisp.org>
13530
13531         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13532         * modules/fgetc-tests (Depends-on): Add unistd.
13533         * modules/fputc-tests (Depends-on): Likewise.
13534         * modules/fread-tests (Depends-on): Likewise.
13535         * modules/fwrite-tests (Depends-on): Likewise.
13536
13537 2011-09-24  Bruno Haible  <bruno@clisp.org>
13538
13539         dup: Simplify autoconf test.
13540         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13541         on gl_MSVC_INVAL's result.
13542
13543 2011-09-24  Bruno Haible  <bruno@clisp.org>
13544
13545         Tests for function fwrite().
13546         * modules/fwrite-tests: New file.
13547         * tests/test-fwrite.c: New file.
13548         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13549
13550         Tests for function fread().
13551         * modules/fread-tests: New file.
13552         * tests/test-fread.c: New file.
13553         * modules/stdio-tests (Depends-on): Add fread-tests.
13554
13555         Activate fputc tests.
13556         * modules/stdio-tests (Depends-on): Add fputc-tests.
13557
13558         Enhance fgetc, fputc tests.
13559         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13560         * tests/test-fputc.c (main): Likewise.
13561
13562 2011-09-24  Bruno Haible  <bruno@clisp.org>
13563
13564         write: Support for MSVC 9.
13565         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13566         is not 1.
13567         * lib/write.c (write_nothrow): New function.
13568         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13569         not 1. Use write_nothrow.
13570         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13571         invalid parameter handler.
13572         (gl_PREREQ_WRITE): New macro.
13573         * modules/write (Depends-on): Add msvc-inval.
13574         (configure.ac): Invoke gl_PREREQ_WRITE.
13575         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13576
13577 2011-09-24  Bruno Haible  <bruno@clisp.org>
13578
13579         read: Fix last commit.
13580         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13581
13582 2011-09-24  Bruno Haible  <bruno@clisp.org>
13583
13584         dup2: Fix last commit.
13585         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13586         (rpl_dup2): Disable fcntl workaround on native Windows.
13587
13588         sigprocmask: Make code safer.
13589         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13590         section that changes macro definitions for this compilation unit.
13591
13592 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13593
13594         dup2: clarify by coalescing Windows-specific material
13595         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13596         "msvc-nothrow.h"' to the Windows-specific section, so that the
13597         Emacs source need not contain these include files.
13598         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13599         Windows-specific fixes into this function rather than just the
13600         nothrow fix, as this shortens and clarifies the code.  Always
13601         define as a function, as that's a bit cleaner than having it be
13602         sometimes a function and sometimes a macro.
13603         (rpl_dup2): Move the Windows-specific stuff out of here and into
13604         ms_windows_dup2.  Don't protect the Haiku-related fix with
13605         "#if !defined __linux__", as the same code also works around
13606         a Linux kernel bug, and it doesn't add any system calls on any
13607         platform.  Add comment about FreeBSD 6.1.
13608
13609         sigprocmask: move #include directive
13610         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13611         Windows-specific section, so that the Emacs source need not
13612         contain msvc-inval.h.
13613
13614 2011-09-23  Bruno Haible  <bruno@clisp.org>
13615
13616         read: Support for MSVC 9.
13617         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13618         is not 1.
13619         * lib/read.c (read_nothrow): New function.
13620         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13621         read_nothrow.
13622         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13623         invalid parameter handler.
13624         (gl_PREREQ_READ): New macro.
13625         * modules/read (Depends-on): Add msvc-inval.
13626         (configure.ac): Invoke gl_PREREQ_READ.
13627         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13628
13629 2011-09-23  Bruno Haible  <bruno@clisp.org>
13630
13631         close: Support for MSVC 9.
13632         * lib/close.c: Include <errno.h>, msvc-inval.h.
13633         (close_nothrow): New function.
13634         (rpl_close): Use it.
13635         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13636         invalid parameter handler.
13637         * modules/close (Depends-on): Add msvc-inval.
13638         * modules/dup2-tests (Depends-on): Add close.
13639         * modules/dup3-tests (Depends-on): Likewise.
13640         * modules/fcntl-tests (Depends-on): Likewise.
13641         * modules/spawn-pipe-tests (Depends-on): Likewise.
13642         * modules/unistd-safer-tests (Depends-on): Likewise.
13643         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13644
13645 2011-09-23  Bruno Haible  <bruno@clisp.org>
13646
13647         New module 'dup'.
13648         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13649         Allow replacement.
13650         * lib/dup.c: New file.
13651         * lib/fchdir.c (rpl_dup): Remove function.
13652         * m4/dup.m4: New file.
13653         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13654         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13655         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13656         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13657         * modules/dup: New file.
13658         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13659         'dup' module is in use.
13660         * modules/fdopendir (Depends-on): Add dup.
13661         * modules/fdutimensat-tests (Depends-on): Likewise.
13662         * modules/fts (Depends-on): Likewise.
13663         * modules/futimens-tests (Depends-on): Likewise.
13664         * modules/posix_spawnp-tests (Depends-on): Likewise.
13665         * modules/unistd-safer-tests (Depends-on): Likewise.
13666         * modules/utimens-tests (Depends-on): Likewise.
13667         * doc/posix-functions/dup.texi: Mention the new module and the problem
13668         on MSVC.
13669
13670 2011-09-23  Bruno Haible  <bruno@clisp.org>
13671
13672         getdtablesize: Support for MSVC 9.
13673         * lib/getdtablesize.c: Include msvc-inval.h.
13674         (_setmaxstdio_nothrow): New function.
13675         (_setmaxstdio): Redefine it.
13676         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13677         * modules/getdtablesize (Depends-on): Add msvc-inval.
13678         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13679
13680 2011-09-23  Bruno Haible  <bruno@clisp.org>
13681
13682         signal-h: Rename from signal.
13683         * modules/signal-h: Renamed from modules/signal.
13684         * modules/pthread_sigmask (Depends-on): Update.
13685         * modules/raise (Depends-on): Likewise.
13686         * modules/sigaction (Depends-on): Likewise.
13687         * modules/sigpipe (Depends-on): Likewise.
13688         * modules/sigprocmask (Depends-on): Likewise.
13689         * modules/sys_select (Depends-on): Likewise.
13690         * modules/signal-h-tests: Renamed from modules/signal-tests.
13691         (Files, Depends-on, Makefile.am): Update.
13692         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13693         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13694         (Files, Makefile.am): Update.
13695         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13696         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13697         * modules/signal: New placeholder file.
13698         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13699         * doc/posix-headers/signal.texi: Update.
13700         * NEWS: Mention the change.
13701
13702 2011-09-23  Bruno Haible  <bruno@clisp.org>
13703
13704         sigprocmask: Avoid crashes through signal() on MSVC 9.
13705         * lib/sigprocmask.c: Include msvc-inval.h.
13706         (signal_nothrow): New function.
13707         (signal): Redefine it.
13708         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13709         * modules/sigprocmask (Depends-on): Add msvc-inval.
13710         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13711
13712 2011-09-23  Bruno Haible  <bruno@clisp.org>
13713
13714         Tests for module 'raise'.
13715         * modules/raise-tests: New file.
13716         * tests/test-raise.c: New file.
13717
13718         raise: Support for MSVC.
13719         * lib/signal.in.h (raise): New declaration.
13720         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13721         for native Windows platforms.
13722         * m4/raise.m4: New file.
13723         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13724         HAVE_RAISE, REPLACE_RAISE.
13725         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13726         REPLACE_RAISE.
13727         * modules/raise (Status, Notice): Remove fields.
13728         (Files): Add m4/raise.m4.
13729         (Depends-on): Add signal, msvc-inval.
13730         (configure.ac): Use the common idioms.
13731         (Maintainer): Add me.
13732         * tests/test-signal-c++.cc: Check the signature of raise.
13733         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13734
13735 2011-09-23  Bruno Haible  <bruno@clisp.org>
13736
13737         pipe2: Fix compilation on pre-C99 compilers.
13738         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13739
13740 2011-09-23  Bruno Haible  <bruno@clisp.org>
13741
13742         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13743         * lib/msvc-nothrow.h: New file.
13744         * lib/msvc-nothrow.c: New file.
13745         * m4/msvc-nothrow.m4: New file.
13746         * modules/msvc-nothrow: New file.
13747         * lib/dup2.c: Include msvc-nothrow.h.
13748         (rpl_dup2): No need to protect _get_osfhandle call here.
13749         * lib/accept4.c: Include msvc-nothrow.h.
13750         * lib/error.c: Likewise.
13751         * lib/fcntl.c: Likewise.
13752         * lib/lseek.c: Likewise.
13753         * lib/nonblocking.c: Likewise.
13754         * lib/poll.c: Likewise.
13755         * lib/read.c: Likewise.
13756         * lib/select.c: Likewise.
13757         * lib/sockets.h: Likewise.
13758         * lib/sockets.c: Likewise.
13759         * lib/stdio-read.c: Likewise.
13760         * lib/stdio-write.c: Likewise.
13761         * lib/write.c: Likewise.
13762         * lib/w32sock.h: Likewise.
13763         * lib/w32spawn.h: Likewise.
13764         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13765         * lib/fsync.c: Likewise.
13766         * lib/isapipe.c: Likewise.
13767         * modules/dup2 (Depends-on): Add msvc-nothrow.
13768         * modules/accept4 (Depends-on): Likewise.
13769         * modules/error (Depends-on): Likewise.
13770         * modules/fcntl (Depends-on): Likewise.
13771         * modules/lseek (Depends-on): Likewise.
13772         * modules/nonblocking (Depends-on): Likewise.
13773         * modules/poll (Depends-on): Likewise.
13774         * modules/read (Depends-on): Likewise.
13775         * modules/select (Depends-on): Likewise.
13776         * modules/sockets (Depends-on): Likewise.
13777         * modules/sigpipe (Depends-on): Likewise.
13778         * modules/write (Depends-on): Likewise.
13779         * modules/accept (Depends-on): Likewise.
13780         * modules/bind (Depends-on): Likewise.
13781         * modules/connect (Depends-on): Likewise.
13782         * modules/gethostname (Depends-on): Likewise.
13783         * modules/getpeername (Depends-on): Likewise.
13784         * modules/getsockname (Depends-on): Likewise.
13785         * modules/getsockopt (Depends-on): Likewise.
13786         * modules/ioctl (Depends-on): Likewise.
13787         * modules/listen (Depends-on): Likewise.
13788         * modules/recv (Depends-on): Likewise.
13789         * modules/recvfrom (Depends-on): Likewise.
13790         * modules/send (Depends-on): Likewise.
13791         * modules/sendto (Depends-on): Likewise.
13792         * modules/setsockopt (Depends-on): Likewise.
13793         * modules/shutdown (Depends-on): Likewise.
13794         * modules/socket (Depends-on): Likewise.
13795         * modules/execute (Depends-on): Likewise.
13796         * modules/spawn-pipe (Depends-on): Likewise.
13797         * modules/flock (Depends-on): Likewise.
13798         * modules/fsync (Depends-on): Likewise.
13799         * modules/isapipe (Depends-on): Likewise.
13800         * tests/test-cloexec.c: Include msvc-nothrow.h.
13801         * tests/test-dup-safer.c: Likewise.
13802         * tests/test-dup2.c: Likewise.
13803         * tests/test-dup3.c: Likewise.
13804         * tests/test-fcntl.c: Likewise.
13805         * tests/test-pipe.c: Likewise.
13806         * tests/test-pipe2.c: Likewise.
13807         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
13808         * modules/unistd-safer-tests (Depends-on): Likewise.
13809         * modules/dup2-tests (Depends-on): Likewise.
13810         * modules/dup3-tests (Depends-on): Likewise.
13811         * modules/fcntl-tests (Depends-on): Likewise.
13812         * modules/pipe-posix-tests (Depends-on): Likewise.
13813         * modules/pipe2-tests (Depends-on): Likewise.
13814
13815 2011-09-23  Bruno Haible  <bruno@clisp.org>
13816
13817         dup2: Make code more maintainable.
13818         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
13819         (rpl_dup2): Use it.
13820         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
13821         * modules/dup2 (configure.ac): Invoke it.
13822         Reported by Paul Eggert.
13823
13824 2011-09-23  Bruno Haible  <bruno@clisp.org>
13825
13826         msvc-inval: Fix compilation error.
13827         * lib/msvc-inval.h: Include <excpt.h>.
13828
13829 2011-09-23  Bruno Haible  <bruno@clisp.org>
13830
13831         mkdir: Tweak for MSVC 9.
13832         * lib/sys_stat.in.h: Update comments.
13833         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
13834
13835         Tests for module 'chdir'.
13836         * modules/chdir-tests: New file.
13837         * tests/test-chdir.c: New file.
13838
13839         New module 'chdir'.
13840         * modules/chdir: New file.
13841         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
13842         (chdir): New declaration.
13843         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13844         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13845         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13846         * tests/test-unistd-c++.cc: Check signature of chdir.
13847         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13848         * modules/chdir-long (Depends-on): Add chdir.
13849         * modules/fchdir (Depends-on): Likewise.
13850         * modules/rename (Depends-on): Likewise.
13851         * modules/savewd (Depends-on): Likewise.
13852
13853         rmdir: Support for mingw, MSVC 9.
13854         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13855         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13856
13857         getcwd: Tweak for MSVC 9.
13858         * lib/unistd.in.h: Update comments.
13859         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13860
13861 2011-09-22  Bruno Haible  <bruno@clisp.org>
13862
13863         strerror_r-posix: Avoid a link error on MSVC.
13864         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13865         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13866
13867 2011-09-22  Bruno Haible  <bruno@clisp.org>
13868
13869         select: Avoid link errors on MSVC.
13870         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13871         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13872         * modules/pselect (Link): Likewise.
13873         * NEWS: Mention the change.
13874         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13875         test-select-stdin against $(LIB_SELECT).
13876         * modules/pselect-tests (Makefile.am): Link test-pselect against
13877         $(LIB_SELECT).
13878
13879 2011-09-22  Bruno Haible  <bruno@clisp.org>
13880
13881         select: Avoid compilation error on MSVC.
13882         * lib/select.c: Don't include <stdbool.h>.
13883
13884 2011-09-21  Bruno Haible  <bruno@clisp.org>
13885
13886         Consolidate all uses of PATH_MAX in *.m4 files.
13887         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13888         macros.
13889         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13890         and gl_PATHMAX_SNIPPET.
13891         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13892         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13893         * modules/chdir-long (Files): Add m4/pathmax.m4.
13894         * modules/getcwd (Files): Likewise.
13895
13896 2011-09-21  Bruno Haible  <bruno@clisp.org>
13897
13898         ftruncate: Un-deprecate, concentrate on Win32 support.
13899         * modules/ftruncate (Status, Notice): Remove sections.
13900         (Depends-on): Add largefile.
13901         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13902         non-mingw platforms.
13903         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13904         include <io.h>.
13905         * modules/perror-tests (Depends-on): Add ftruncate.
13906         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13907         'ftruncate' module.
13908
13909 2011-09-21  Bruno Haible  <bruno@clisp.org>
13910
13911         Add dependencies to new dirent related modules.
13912         * modules/opendir (Depends-on): Add closedir.
13913         * modules/getcwd (Depends-on): Add opendir, closedir.
13914         * modules/dirent-safer-tests (Depends-on): Likewise.
13915         * modules/fdopendir-tests (Depends-on): Likewise.
13916         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13917         * modules/renameat-tests (Depends-on): Likewise.
13918
13919 2011-09-21  Bruno Haible  <bruno@clisp.org>
13920
13921         opendir: Avoid compilation error on mingw.
13922         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13923         * modules/opendir (Depends-on): Add unistd.
13924
13925 2011-09-21  Bruno Haible  <bruno@clisp.org>
13926
13927         ftruncate tests: Avoid a test failure on mingw.
13928         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13929
13930 2011-09-21  Bruno Haible  <bruno@clisp.org>
13931
13932         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13933         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13934         native Windows.
13935
13936 2011-09-21  Bruno Haible  <bruno@clisp.org>
13937
13938         New module 'fdopen'.
13939         * lib/stdio.in.h (fdopen): New declaration.
13940         * lib/fdopen.c: New file.
13941         * m4/fdopen.m4: New file.
13942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13943         REPLACE_FDOPEN.
13944         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13945         REPLACE_FDOPEN.
13946         * modules/fdopen: New file.
13947         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13948         * tests/test-stdio-c++.cc: Check signature of fdopen.
13949         * doc/posix-functions/fdopen.texi: Mention the new module.
13950
13951 2011-09-21  Bruno Haible  <bruno@clisp.org>
13952
13953         unlockpt tests: Avoid test failure on NetBSD 5.1.
13954         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13955         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13956
13957 2011-09-21  Bruno Haible  <bruno@clisp.org>
13958
13959         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13960         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13961         * tests/test-getlogin_r.c (main): Likewise.
13962
13963 2011-09-20  Bruno Haible  <bruno@clisp.org>
13964
13965         time tests: Don't require pid_t.
13966         * doc/posix-headers/time.texi: Revert last change.
13967         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13968         * tests/test-time.c: Comment out the check for pid_t.
13969
13970 2011-09-20  Bruno Haible  <bruno@clisp.org>
13971
13972         fsync tests: Avoid a test failure on mingw.
13973         * tests/test-fsync.c (main): Allow a failure with EIO.
13974
13975 2011-09-20  Bruno Haible  <bruno@clisp.org>
13976
13977         euidaccess: Update comments.
13978         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13979
13980 2011-09-20  Bruno Haible  <bruno@clisp.org>
13981
13982         Ensure EBADF returns for socket functions on mingw.
13983         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13984         descriptor is invalid.
13985         * lib/bind.c (rpl_bind): Likewise.
13986         * lib/connect.c (rpl_connect): Likewise.
13987         * lib/getpeername.c (rpl_getpeername): Likewise.
13988         * lib/getsockname.c (rpl_getsockname): Likewise.
13989         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13990         * lib/listen.c (rpl_listen): Likewise.
13991         * lib/recv.c (rpl_recv): Likewise.
13992         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13993         * lib/send.c (rpl_send): Likewise.
13994         * lib/sendto.c (rpl_sendto): Likewise.
13995         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13996         * lib/shutdown.c (rpl_shutdown): Likewise.
13997
13998 2011-09-20  Bruno Haible  <bruno@clisp.org>
13999
14000         select tests: EBADF tests.
14001         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14002         test_bad_fd): New functions.
14003         (test_function): Invoke also test_bad_fd.
14004
14005 2011-09-20  Bruno Haible  <bruno@clisp.org>
14006
14007         Tests for module 'posix_spawn_file_actions_addopen.
14008         * modules/posix_spawn_file_actions_addopen-tests: New file.
14009         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14010
14011         Tests for module 'posix_spawn_file_actions_adddup2'.
14012         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14013         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14014
14015         Tests for module 'posix_spawn_file_actions_addclose'.
14016         * modules/posix_spawn_file_actions_addclose-tests: New file.
14017         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14018
14019 2011-09-20  Bruno Haible  <bruno@clisp.org>
14020
14021         Tests for module 'unlockpt'.
14022         * modules/unlockpt-tests: New file.
14023         * tests/test-unlockpt.c: New file.
14024         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14025
14026         Tests for module 'grantpt'.
14027         * modules/grantpt-tests: New file.
14028         * tests/test-grantpt.c: New file.
14029         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14030
14031 2011-09-20  Bruno Haible  <bruno@clisp.org>
14032
14033         freopen tests: EBADF tests.
14034         * tests/test-freopen.c: Include errno.h, unistd.h.
14035         (main): Add tests for EBADF, commented out for the moment.
14036
14037         fclose tests: EBADF tests.
14038         * tests/test-fclose.c (main): Add tests for EBADF.
14039
14040         fflush tests: EBADF tests.
14041         * tests/test-fflush.c: Include errno.h, macros.h.
14042         (main): Add tests for EBADF.
14043
14044         ftello tests: EBADF tests.
14045         * tests/test-ftello4.sh: New file.
14046         * tests/test-ftello4.c: New file.
14047         * modules/ftello-tests (Files): Add them.
14048         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14049
14050         fseeko tests: EBADF tests.
14051         * tests/test-fseeko4.sh: New file.
14052         * tests/test-fseeko4.c: New file.
14053         * modules/fseeko-tests (Files): Add them.
14054         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14055
14056         Tests for function fputc().
14057         * modules/fputc-tests: New file.
14058         * tests/test-fputc.c: New file.
14059         * modules/stdio-tests (Depends-on): Add fputc-tests.
14060
14061         Tests for function fgetc().
14062         * modules/fgetc-tests: New file.
14063         * tests/test-fgetc.c: New file.
14064         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14065
14066         Tests for function fdopen().
14067         * modules/fdopen-tests: New file.
14068         * tests/test-fdopen.c: New file.
14069         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14070
14071         Tests for module 'vdprintf'.
14072         * modules/vdprintf-tests: New file.
14073         * tests/test-vdprintf.c: New file.
14074
14075         Tests for module 'dprintf'.
14076         * modules/dprintf-tests: New file.
14077         * tests/test-dprintf.c: New file.
14078
14079 2011-09-20  Bruno Haible  <bruno@clisp.org>
14080
14081         Tests for module 'ioctl'.
14082         * modules/ioctl-tests: New file.
14083         * tests/test-ioctl.c: New file.
14084
14085 2011-09-20  Bruno Haible  <bruno@clisp.org>
14086
14087         fcntl tests: EBADF tests.
14088         * tests/test-fcntl.c (main): Add more tests for EBADF.
14089
14090 2011-09-20  Bruno Haible  <bruno@clisp.org>
14091
14092         utimensat tests: EBADF tests.
14093         * tests/test-utimensat.c (main): Add tests for EBADF.
14094
14095         renameat tests: EBADF tests.
14096         * tests/test-renameat.c (main): Add tests for EBADF.
14097
14098         mkfifoat tests: EBADF tests.
14099         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14100
14101         readlinkat tests: EBADF tests.
14102         * tests/test-readlinkat.c (main): Add tests for EBADF.
14103
14104         symlinkat tests: EBADF tests.
14105         * tests/test-symlinkat.c (main): Add tests for EBADF.
14106
14107         linkat tests: EBADF tests.
14108         * tests/test-linkat.c (main): Add tests for EBADF.
14109
14110         Tests for module 'faccessat'.
14111         * modules/faccessat-tests: New file.
14112         * tests/test-faccessat.c: New file.
14113
14114         fdopendir tests: EBADF tests.
14115         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14116
14117         openat tests: EBADF tests.
14118         * tests/test-fchownat.c (main): Add tests for EBADF.
14119         * tests/test-fstatat.c (main): Likewise.
14120         * tests/test-mkdirat.c (main): Likewise.
14121         * tests/test-openat.c (main): Likewise.
14122         * tests/test-unlinkat.c (main): Likewise.
14123         * tests/test-fchmodat.c: New file.
14124         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14125         (Makefile.am): Also run 'test-fchmodat'.
14126
14127 2011-09-20  Bruno Haible  <bruno@clisp.org>
14128
14129         utimens, futimens, fdutimensat tests: EBADF tests.
14130         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14131
14132         Tests for function fstat().
14133         * modules/fstat-tests: New file.
14134         * tests/test-fstat.c: New file.
14135         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14136
14137 2011-09-20  Bruno Haible  <bruno@clisp.org>
14138
14139         test-ttyname_r tests: EBADF tests.
14140         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14141
14142         Tests for module 'isatty'.
14143         * modules/isatty-tests: New file.
14144         * tests/test-isatty.c: New file.
14145
14146         Tests for module 'write'.
14147         * modules/write-tests: New file.
14148         * tests/test-write.c: New file.
14149
14150         Tests for module 'read'.
14151         * modules/read-tests: New file.
14152         * tests/test-read.c: New file.
14153
14154         pwrite tests: EBADF tests.
14155         * tests/test-pwrite.c (main): Add tests for EBADF.
14156
14157         pread tests: EBADF tests.
14158         * tests/test-pread.c (main): Add tests for EBADF.
14159
14160         lseek tests: EBADF tests.
14161         * tests/test-lseek.c (main): Add more tests for EBADF.
14162
14163         Tests for module 'ftruncate'.
14164         * modules/ftruncate-tests: New file.
14165         * tests/test-ftruncate.sh: New file.
14166         * tests/test-ftruncate.c: New file.
14167
14168         fsync tests: EBADF tests.
14169         * tests/test-fsync.c (main): Add more tests for EBADF.
14170
14171         fdatasync tests: EBADF tests.
14172         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14173
14174         Tests for module 'fchown'.
14175         * modules/fchown-tests: New file.
14176         * tests/test-fchown.c: New file.
14177
14178         Tests for module 'fchmod'.
14179         * modules/fchmod-tests: New file.
14180         * tests/test-fchmod.c: New file.
14181
14182         fchdir tests: EBADF tests.
14183         * tests/test-fchdir.c (main): Add more tests for EBADF.
14184
14185         dup2 tests: EBADF tests.
14186         * tests/test-dup2.c (main): Add more tests for EBADF.
14187
14188         Tests for module 'dup'.
14189         * modules/dup-tests: New file.
14190         * tests/test-dup.c: New file.
14191
14192         Tests for module 'close'.
14193         * modules/close-tests: New file.
14194         * tests/test-close.c: New file.
14195
14196 2011-09-20  Bruno Haible  <bruno@clisp.org>
14197
14198         Tests for module 'shutdown'.
14199         * modules/shutdown-tests: New file.
14200         * tests/test-shutdown.c: New file.
14201
14202         Tests for module 'setsockopt'.
14203         * modules/setsockopt-tests: New file.
14204         * tests/test-setsockopt.c: New file.
14205
14206         Tests for module 'sendto'.
14207         * modules/sendto-tests: New file.
14208         * tests/test-sendto.c: New file.
14209
14210         Tests for module 'send'.
14211         * modules/send-tests: New file.
14212         * tests/test-send.c: New file.
14213
14214         Tests for module 'recvfrom'.
14215         * modules/recvfrom-tests: New file.
14216         * tests/test-recvfrom.c: New file.
14217
14218         Tests for module 'recv'.
14219         * modules/recv-tests: New file.
14220         * tests/test-recv.c: New file.
14221
14222         Tests for module 'listen'.
14223         * modules/listen-tests: New file.
14224         * tests/test-listen.c: New file.
14225
14226         Tests for module 'getsockopt'.
14227         * modules/getsockopt-tests: New file.
14228         * tests/test-getsockopt.c: New file.
14229
14230         Tests for module 'getsockname'.
14231         * modules/getsockname-tests: New file.
14232         * tests/test-getsockname.c: New file.
14233
14234         Tests for module 'getpeername'.
14235         * modules/getpeername-tests: New file.
14236         * tests/test-getpeername.c: New file.
14237
14238         Tests for module 'connect'.
14239         * modules/connect-tests: New file.
14240         * tests/test-connect.c: New file.
14241
14242         Tests for module 'bind'.
14243         * modules/bind-tests: New file.
14244         * tests/test-bind.c: New file.
14245
14246         accept4 tests: Fix for native Windows.
14247         * tests/test-accept4.c: Include sockets.h.
14248         (main): Invoke gl_sockets_startup.
14249         * modules/accept4-tests (Depends-on): Add sockets.
14250
14251         accept tests: Fix for native Windows.
14252         * tests/test-accept.c: Include sockets.h.
14253         (main): Invoke gl_sockets_startup.
14254         * modules/accept-tests (Depends-on): Add sockets.
14255
14256 2011-09-19  Bruno Haible  <bruno@clisp.org>
14257
14258         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14259         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14260         do...while(0).
14261         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14262         Suggested by Paul Eggert.
14263
14264 2011-09-19  Bruno Haible  <bruno@clisp.org>
14265
14266         sched: Ensure pid_t is defined.
14267         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14268         not define pid_t.
14269         * lib/sched.in.h: Include <sys/types.h>.
14270         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14271         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14272
14273 2011-09-19  Bruno Haible  <bruno@clisp.org>
14274
14275         msvc-inval: Ensure the entire expansion is a single statement.
14276         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14277         of braces.
14278
14279 2011-09-19  Jim Meyering  <meyering@redhat.com>
14280
14281         tests: use printf, not echo in init.sh's warn_ function
14282         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14283         misbehave when given strings containing a backslash or starting
14284         with e.g., -n.  James Youngman suggested setting IFS.
14285
14286 2011-09-19  Eric Blake  <eblake@redhat.com>
14287
14288         futimens: enhance test
14289         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14290         closed non-negative fd.
14291
14292         date: accept 'hence' as opposite of 'ago'
14293         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14294         * tests/test-parse-datetime.c (main): Enhance test.
14295         Suggested by Jesse Wilson.
14296
14297 2011-09-19  Jim Meyering  <meyering@redhat.com>
14298
14299         getcwd: don't fail in a deep directory on a system without openat
14300         Before this change, getcwd would fail when called from a directory
14301         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14302         the non-openat implementation used "..", "../..", "../../..", etc.
14303         to access ancestor directories.  With too many, that string would
14304         be longer than PATH_MAX.
14305         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14306         using gnulib's openat replacement.
14307         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14308         we're using the replacement function.
14309
14310 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14311
14312         maint.mk: avoid warnings from perl about missing files
14313         * top/maint.mk (def_sym_regex): Ignore files listed in
14314         $(gl_other_headers_) that do not exist, say because a project
14315         does not use a corresponding module.
14316
14317 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14318
14319         stat: use pathmax.h only if needed
14320         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14321         This is better for Emacs, which does not have a mingw port and
14322         therefore can avoid the pathmax module.
14323
14324         utimens: remove dependency on dup2
14325         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14326         to work around the Linux kernel bug.
14327         * modules/utimens (Depends-on): Remove dup2.
14328
14329 2011-09-18  Bruno Haible  <bruno@clisp.org>
14330
14331         inet_ntop, inet_pton: Look for it also in libresolv.
14332         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14333         libnsl, search for it in libresolv.
14334         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14335         Needed on Solaris 7.
14336
14337 2011-09-18  Bruno Haible  <bruno@clisp.org>
14338
14339         accept, accept4 tests: Avoid link error on Solaris.
14340         * modules/accept-tests (Makefile.am): Link test-accept against
14341         $(LIBSOCKET).
14342         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14343         $(LIBSOCKET).
14344
14345         accept4: Avoid link error on Solaris.
14346         * modules/accept4 (Link): New section.
14347
14348         socket functions: Avoid link errors on Solaris.
14349         * modules/accept (Depends-on): Add socketlib.
14350         (Link): New section.
14351         * modules/bind (Depends-on): Add socketlib.
14352         (Link): New section.
14353         * modules/connect (Depends-on): Add socketlib.
14354         (Link): New section.
14355         * modules/getpeername (Depends-on): Add socketlib.
14356         (Link): New section.
14357         * modules/getsockname (Depends-on): Add socketlib.
14358         (Link): New section.
14359         * modules/getsockopt (Depends-on): Add socketlib.
14360         (Link): New section.
14361         * modules/listen (Depends-on): Add socketlib.
14362         (Link): New section.
14363         * modules/recv (Depends-on): Add socketlib.
14364         (Link): New section.
14365         * modules/recvfrom (Depends-on): Add socketlib.
14366         (Link): New section.
14367         * modules/send (Depends-on): Add socketlib.
14368         (Link): New section.
14369         * modules/sendto (Depends-on): Add socketlib.
14370         (Link): New section.
14371         * modules/setsockopt (Depends-on): Add socketlib.
14372         (Link): New section.
14373         * modules/shutdown (Depends-on): Add socketlib.
14374         (Link): New section.
14375         * modules/socket (Depends-on): Add socketlib.
14376         (Link): New section.
14377
14378 2011-09-18  Bruno Haible  <bruno@clisp.org>
14379
14380         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14381         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14382         than 5 seconds.
14383         * modules/ptsname-tests (configure.ac): Test for alarm.
14384
14385 2011-09-18  Bruno Haible  <bruno@clisp.org>
14386
14387         posix_spawn_file_actions_add*: Fix module dependencies.
14388         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14389         posix_spawn_file_actions_init.
14390         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14391         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14392
14393 2011-09-18  Bruno Haible  <bruno@clisp.org>
14394
14395         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14396         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14397         * tests/test-renameat.c (main): Likewise.
14398
14399 2011-09-18  Bruno Haible  <bruno@clisp.org>
14400
14401         Tests for module 'accept4'.
14402         * modules/accept4-tests: New file.
14403         * tests/test-accept4.c: New file.
14404
14405 2011-09-18  Bruno Haible  <bruno@clisp.org>
14406
14407         Tests for module 'accept'.
14408         * modules/accept-tests: New file.
14409         * tests/test-accept.c: New file.
14410
14411 2011-09-18  Bruno Haible  <bruno@clisp.org>
14412
14413         dup2: Support for MSVC.
14414         * lib/dup2.c: Include msvc-inval.h.
14415         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14416         _get_osfhandle calls.
14417         * modules/dup2 (Depends-on): Add msvc-inval.
14418         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14419
14420         New module 'msvc-inval'.
14421         * lib/msvc-inval.h: New file.
14422         * lib/msvc-inval.c: New file.
14423         * m4/msvc-inval.m4: New file.
14424         * modules/msvc-inval: New file.
14425
14426 2011-09-17  Bruno Haible  <bruno@clisp.org>
14427
14428         Tests for module 'pclose'.
14429         * modules/pclose-tests: New file.
14430
14431         New module 'pclose'.
14432         * lib/stdio.in.h (pclose): New declaration.
14433         * lib/pclose.c: New file.
14434         * m4/pclose.m4: New file.
14435         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14436         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14437         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14438         * modules/pclose: New file.
14439         * modules/popen-tests (Depends-on): Add pclose.
14440         * modules/popen-safer-tests (Depends-on): Likewise.
14441         * doc/posix-functions/pclose.texi: Mention the new module.
14442
14443 2011-09-17  Bruno Haible  <bruno@clisp.org>
14444
14445         popen: Support for MSVC.
14446         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14447         * lib/popen.c (popen): Provide alternate definition for native Windows.
14448         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14450         * modules/popen (Depends-on, configure.ac): Update condition.
14451         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14452         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14453         fixed.
14454
14455 2011-09-17  Bruno Haible  <bruno@clisp.org>
14456
14457         isnanl, isnand, isnanf: Work around MSVC bug.
14458         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14459
14460 2011-09-17  Bruno Haible  <bruno@clisp.org>
14461
14462         sys_socket tests: Fix recent mistake.
14463         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14464
14465 2011-09-17  Bruno Haible  <bruno@clisp.org>
14466
14467         putenv: Support for MSVC.
14468         * modules/putenv (Depends-on): Add environ.
14469         * lib/putenv.c (environ): Disable declaration.
14470         * lib/unistd.in.h: Update comment.
14471
14472 2011-09-17  Bruno Haible  <bruno@clisp.org>
14473
14474         math: Avoid macro redefinition warnings on MSVC.
14475         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14476         Undefine before redefining.
14477
14478 2011-09-17  Bruno Haible  <bruno@clisp.org>
14479
14480         doc: Mention functions which are declared as macros.
14481         * doc/posix-functions/*[fl].texi: Mention that some functions are
14482         defined as macros with arguments only.
14483
14484 2011-09-17  Bruno Haible  <bruno@clisp.org>
14485
14486         Add dependencies to new dirent related modules.
14487         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14488         * modules/fts (Depends-on): Likewise.
14489         * modules/glob (Depends-on): Likewise.
14490         * modules/savedir (Depends-on): Likewise.
14491         * modules/scandir (Depends-on): Likewise.
14492         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14493         * modules/fdopendir (Depends-on): Add opendir.
14494
14495 2011-09-17  Bruno Haible  <bruno@clisp.org>
14496
14497         inet_pton: Support for MSVC on Windows Vista or newer.
14498         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14499         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14500         HAVE_DECL_INET_PTON is defined.
14501         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14502         On platforms with <winsock2.h>, test whether inet_pton is declared in
14503         <ws2tcpip.h>. If so, arrange to replace it.
14504         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14505         REPLACE_INET_PTON.
14506         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14507         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14508         (Depends-on, configure.ac): Update condition.
14509         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14510
14511 2011-09-17  Bruno Haible  <bruno@clisp.org>
14512
14513         inet_ntop: Support for MSVC on Windows Vista or newer.
14514         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14515         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14516         HAVE_DECL_INET_NTOP is defined.
14517         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14518         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14519         <ws2tcpip.h>. If so, arrange to replace it.
14520         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14521         REPLACE_INET_NTOP.
14522         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14523         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14524         (Depends-on, configure.ac): Update condition.
14525         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14526
14527 2011-09-16  Eric Blake  <eblake@redhat.com>
14528
14529         test-fsync: yet another enhancement
14530         * tests/test-fsync.c (main): Also test behavior on read-only text
14531         file.
14532
14533 2011-09-16  Bruno Haible  <bruno@clisp.org>
14534
14535         Enhance fsync, fdatasync tests.
14536         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14537         * tests/test-fdatasync.c (main): Likewise.
14538
14539 2011-09-16  Bruno Haible  <bruno@clisp.org>
14540
14541         Support for MSVC compiler: Ensure mode_t gets defined.
14542         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14543         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14544         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14545         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14546         * tests/test-fcntl-h.c: Check that mode_t is defined.
14547         * tests/test-sys_stat.c: Likewise.
14548         * tests/test-sys_types.c: Likewise.
14549         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14550         * doc/posix-headers/sys_stat.texi: Likewise.
14551         * doc/posix-headers/sys_types.texi: Likewise.
14552
14553 2011-09-16  Bruno Haible  <bruno@clisp.org>
14554
14555         sys_stat: Support for MSVC.
14556         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14557         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14558         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14559         MSVC.
14560
14561 2011-09-16  Bruno Haible  <bruno@clisp.org>
14562
14563         Support for MSVC compiler: Ensure off_t gets defined.
14564         * lib/unistd.in.h: Include <sys/types.h>.
14565         * tests/test-fcntl-h.c: Check that off_t is defined.
14566         * tests/test-sys_stat.c: Likewise.
14567         * tests/test-sys_types.c: Likewise.
14568
14569 2011-09-16  Eric Blake  <eblake@redhat.com>
14570
14571         fdatasync: port to Solaris
14572         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14573         * modules/fdatasync (Link): Document it.
14574         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14575
14576         fdatasync: port to MacOS X 10.7
14577         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14578         declared.
14579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14580         * modules/unistd (Makefile.am): Substitute it.
14581         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14582         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14583
14584         fdatasync: minor improvements
14585         * modules/fdatasync (Depends-on): Add condition for fsync.
14586         * lib/fdatasync.c (fdatasync): Add comment.
14587         * tests/test-unistd-c++.cc: Test fdatasync.
14588
14589         unistd: update refs to newer POSIX
14590         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14591         Suggested by Bruno Haible.
14592
14593         fdatasync: new module
14594         * modules/fsync (Description): Document difference to fdatasync.
14595         * modules/fdatasync: New module.
14596         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14597         * lib/fdatasync.c (fdatasync): Likewise.
14598         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14599         defaults.
14600         * modules/unistd (Makefile.am): Set witnesses.
14601         * lib/unistd.in.h (fdatasync): Declare.
14602         * MODULES.html.sh: Document it.
14603         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14604         * modules/fdatasync-tests: New test.
14605         * tests/test-fdatasync.c: Likewise.
14606
14607 2011-09-16  Eric Blake  <eblake@redhat.com>
14608
14609         test-fsync: enhance tests
14610         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14611         * tests/test-fsync.c (main): Enhance test.
14612
14613 2011-09-15  Bruno Haible  <bruno@clisp.org>
14614
14615         Support for MSVC compiler: Ensure ssize_t gets defined.
14616         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14617         * doc/posix-headers/stdio.texi: Likewise.
14618         * modules/stdio (Depends-on): Add ssize_t.
14619         * modules/sys_socket (Depends-on): Likewise.
14620         * modules/sys_types (Depends-on): Likewise.
14621         * modules/sys_uio (Depends-on): Likewise.
14622         * modules/unistd (Depends-on): Likewise.
14623         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14624         * tests/test-sys_types.c: Check that ssize_t is defined.
14625
14626 2011-09-14  Bruno Haible  <bruno@clisp.org>
14627
14628         Avoid using #, the m4 comment starter character, near brackets.
14629         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14630         delimiter character in sed expressions.
14631         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14632         Suggested by Eric Blake.
14633
14634         Properly quote AC_CHECK_DECLS' 4th argument.
14635         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14636         argument.
14637         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14638         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14639         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14640         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14641         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14642         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14643         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14644         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14645         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14646         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14647         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14648         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14649         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14650         * m4/isinf.m4 (gl_ISINF): Likewise.
14651         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14652         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14653         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14654         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14655         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14656         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14657         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14658         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14659         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14660         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14661         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14662         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14664         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14666         Reported by Eric Blake.
14667
14668         Properly quote AC_CHECK_DECL's 4th argument.
14669         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14670         argument.
14671         * m4/argp.m4 (gl_ARGP): Likewise.
14672         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14673         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14674         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14675         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14676         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14677         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14678         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14679         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14680         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14681         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14682         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14683         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14684         Reported by Eric Blake.
14685
14686 2011-09-14  Eric Blake  <eblake@redhat.com>
14687
14688         opendir: avoid compile warning
14689         * lib/opendir.c (includes): Always include errno.h.
14690         Reported by Tatsuro MATSUOKA.
14691
14692 2011-09-14  Jim Meyering  <meyering@redhat.com>
14693
14694         maint.mk: sc_tight_scope: propagate failure from sub-make
14695         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14696         Reported by Martin von Gagern.
14697
14698 2011-09-13  Bruno Haible  <bruno@clisp.org>
14699
14700         tempname: Support for MSVC.
14701         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14702         MSVC.
14703         * modules/tempname (Depends-on): Add fcntl-h.
14704
14705 2011-09-13  Bruno Haible  <bruno@clisp.org>
14706
14707         sys_time: Support for MSVC.
14708         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14709         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14710         include <winsock2.h>.
14711         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14712         function declarations that collide with POSIX.
14713         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14714         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14715
14716 2011-09-13  Bruno Haible  <bruno@clisp.org>
14717
14718         stat: Support for MSVC.
14719         * lib/stat.c: Include pathmax.h.
14720         * modules/stat (Depends-on): Add pathmax.
14721
14722         pathmax: Support for native Windows.
14723         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14724
14725 2011-09-12  Bruno Haible  <bruno@clisp.org>
14726
14727         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14728         * lib/dirent.in.h (struct dirent): New type.
14729         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14730         DT_WHT): New macros.
14731         (DIR): New type.
14732         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14733         (readdir, rewinddir): New declarations.
14734         * lib/dirent-private.h: New file.
14735         * lib/opendir.c: New file.
14736         * lib/readdir.c: New file.
14737         * lib/rewinddir.c: New file.
14738         * lib/closedir.c: New file.
14739         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14740         * m4/opendir.m4: New file.
14741         * m4/readdir.m4: New file.
14742         * m4/rewinddir.m4: New file.
14743         * m4/closedir.m4: New file.
14744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14745         REPLACE_CLOSEDIR here.
14746         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14747         readdir, rewinddir are declared.
14748         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14749         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14750         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14751         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14752         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14753         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14754         * modules/opendir: New file.
14755         * modules/readdir: New file.
14756         * modules/rewinddir: New file.
14757         * modules/closedir: New file.
14758         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14759         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14760         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14761         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14762         * NEWS: Mention the 'fchdir' change.
14763
14764 2011-09-11  Bruno Haible  <bruno@clisp.org>
14765
14766         asm-underscore.m4: Support for MSVC.
14767         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14768         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14769
14770 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14771
14772         Doc about crypt functions.
14773         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14774         needing for _GNU_SOURCE to get crypt.
14775         * doc/posix-functions/encrypt.texi: Likewise.
14776         * doc/posix-functions/setkey.texi: Likewise.
14777
14778 2011-09-11  Bruno Haible  <bruno@clisp.org>
14779
14780         doc: Update regarding MSVC 9.
14781         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14782         tested".
14783         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14784         * doc/posix-headers/*.texi: Likewise.
14785         * doc/pastposix-functions/*.texi: Likewise.
14786         * doc/glibc-functions/*.texi: Likewise.
14787         * doc/glibc-headers/*.texi: Likewise.
14788
14789 2011-09-11  Bruno Haible  <bruno@clisp.org>
14790
14791         unistd et al.: Don't assume <unistd.h> exists.
14792         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14793         does not exist.
14794         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14795         exist. But include <stdlib.h>.
14796         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
14797         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
14798         symlink() does not exist.
14799         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
14800         include <io.h> instead.
14801         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
14802         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
14803         include <direct.h> instead.
14804         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14805         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14806         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
14807         <io.h> instead.
14808         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
14809         correctly if the system does not have hard links.
14810         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
14811         <direct.h> instead.
14812         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
14813         it when looking for function declarations.
14814         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
14815         <direct.h> and <io.h> instead.
14816         * doc/posix-headers/unistd.texi: More details about MSVC problem.
14817
14818 2011-09-11  Bruno Haible  <bruno@clisp.org>
14819
14820         strcase: Support for MSVC.
14821         * modules/strcase (Status, Notice): Remove obsoletion mark.
14822         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
14823         * doc/posix-functions/strncasecmp.texi: Likewise.
14824
14825         strings: Don't assume <strings.h> exists.
14826         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
14827         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
14828         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
14829         * doc/posix-headers/strings.texi: Mention the MSVC problem.
14830
14831 2011-09-11  Bruno Haible  <bruno@clisp.org>
14832
14833         dirent: Don't assume <dirent.h> exists.
14834         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
14835         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14836         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
14837         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
14838
14839 2011-09-11  Bruno Haible  <bruno@clisp.org>
14840
14841         Fix wint_t on MSVC.
14842         * lib/wchar.in.h (wint_t): On MSVC, override it.
14843         * lib/wctype.in.h (wint_t): Likewise.
14844         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14845         MSVC.
14846         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14847         * doc/posix-headers/wctype.texi: Likewise.
14848
14849 2011-09-11  Bruno Haible  <bruno@clisp.org>
14850
14851         sys_types: Fix typo.
14852         * lib/sys_types.in.h: Fix typo in comment.
14853         Reported by Paul Eggert.
14854
14855         Support for MSVC compiler: Ensure size_t gets defined.
14856         * modules/strings (Depends-on): Add 'sys_types'.
14857         * modules/sys_uio (Depends-on): Likewise.
14858         * lib/sys_uio.in.h: Update comment.
14859
14860         C++ tests for module 'sys_types'.
14861         * modules/sys_types-c++-tests: New file.
14862         * tests/test-sys_types-c++.cc: New file.
14863
14864         Tests for module 'sys_types'.
14865         * modules/sys_types-tests: New file.
14866         * tests/test-sys_types.c: New file.
14867
14868         New module 'sys_types'.
14869         * lib/sys_types.in.h: New file.
14870         * m4/sys_types_h.m4: New file.
14871         * modules/sys_types: New file.
14872         * doc/posix-headers/sys_types.texi: Mention the new module and the
14873         size_t problem on MSVC 9.
14874
14875 2011-09-11  Bruno Haible  <bruno@clisp.org>
14876
14877         Support for MSVC compiler: Avoid division by a literal 0.
14878         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14879         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14880         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14881         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14882         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14883         * tests/infinity.h: New file.
14884         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14885         on MSVC.
14886         * tests/test-ceilf1.c: Include infinity.h.
14887         (main): Use Infinityf.
14888         * tests/test-ceil1.c: Include infinity.h.
14889         (main): Use Infinityd.
14890         * tests/test-ceill.c: Include infinity.h.
14891         (main): Use Infinityl.
14892         * tests/test-dprintf-posix.c: Include infinity.h.
14893         (test_function): Use Infinityd.
14894         * tests/test-floorf1.c: Include infinity.h.
14895         (main): Use Infinityf.
14896         * tests/test-floor1.c: Include infinity.h.
14897         (main): Use Infinityd.
14898         * tests/test-floorl.c: Include infinity.h.
14899         (main): Use Infinityl.
14900         * tests/test-fprintf-posix.c: Include infinity.h.
14901         (test_function): Use Infinityd.
14902         * tests/test-frexp.c: Include infinity.h.
14903         (main): Use Infinityd.
14904         * tests/test-frexpl.c: Include infinity.h.
14905         (main): Use Infinityl.
14906         * tests/test-isfinite.c: Include infinity.h.
14907         (test_isfinitef): Use Infinityf.
14908         (test_isfinited): Use Infinityd.
14909         (test_isfinitel): Use Infinityl.
14910         * tests/test-isinf.c: Include infinity.h.
14911         (test_isinff): Use Infinityf.
14912         (test_isinfd): Use Infinityd.
14913         (test_isinfl): Use Infinityl.
14914         * tests/test-isnan.c: Include infinity.h.
14915         (test_float): Use Infinityf.
14916         (test_double): Use Infinityd.
14917         (test_long_double): Use Infinityl.
14918         * tests/test-isnanf.h: Include infinity.h.
14919         (main): Use Infinityf.
14920         * tests/test-isnand.h: Include infinity.h.
14921         (main): Use Infinityd.
14922         * tests/test-isnanl.h: Include infinity.h.
14923         (main): Use Infinityl.
14924         * tests/test-ldexpl.c: Include infinity.h.
14925         (main): Use Infinityl.
14926         * tests/test-printf-posix.h: Include infinity.h.
14927         (test_function): Use Infinityd.
14928         * tests/test-roundf1.c: Include infinity.h.
14929         (main): Use Infinityf.
14930         * tests/test-round1.c: Include infinity.h.
14931         (main): Use Infinityd.
14932         * tests/test-roundl.c: Include infinity.h.
14933         (main): Use Infinityl.
14934         * tests/test-signbit.c: Include infinity.h.
14935         (test_signbitf): Use Infinityf.
14936         (test_signbitd): Use Infinityd.
14937         (test_signbitl): Use Infinityl.
14938         * tests/test-snprintf-posix.h: Include infinity.h.
14939         (test_function): Use Infinityd, Infinityl.
14940         * tests/test-sprintf-posix.h: Include infinity.h.
14941         (test_function): Use Infinityd, Infinityl.
14942         * tests/test-truncf1.c: Include infinity.h.
14943         (main): Use Infinityf.
14944         * tests/test-trunc1.c: Include infinity.h.
14945         (main): Use Infinityd.
14946         * tests/test-truncl.c: Include infinity.h.
14947         (main): Use Infinityl.
14948         * tests/test-vasnprintf-posix.c: Include infinity.h.
14949         (test_function): Use Infinityd, Infinityl.
14950         * tests/test-vasprintf-posix.c: Include infinity.h.
14951         (test_function): Use Infinityd, Infinityl.
14952         * modules/ceilf-tests (Files): Add tests/infinity.h.
14953         * modules/ceil-tests (Files): Likewise.
14954         * modules/ceill-tests (Files): Likewise.
14955         * modules/dprintf-posix-tests (Files): Likewise.
14956         * modules/floorf-tests (Files): Likewise.
14957         * modules/floor-tests (Files): Likewise.
14958         * modules/floorl-tests (Files): Likewise.
14959         * modules/fprintf-posix-tests (Files): Likewise.
14960         * modules/frexp-tests (Files): Likewise.
14961         * modules/frexp-nolibm-tests (Files): Likewise.
14962         * modules/frexpl-tests (Files): Likewise.
14963         * modules/frexpl-nolibm-tests (Files): Likewise.
14964         * modules/isfinite-tests (Files): Likewise.
14965         * modules/isinf-tests (Files): Likewise.
14966         * modules/isnan-tests (Files): Likewise.
14967         * modules/isnanf-tests (Files): Likewise.
14968         * modules/isnanf-nolibm-tests (Files): Likewise.
14969         * modules/isnand-tests (Files): Likewise.
14970         * modules/isnand-nolibm-tests (Files): Likewise.
14971         * modules/isnanl-tests (Files): Likewise.
14972         * modules/isnanl-nolibm-tests (Files): Likewise.
14973         * modules/ldexpl-tests (Files): Likewise.
14974         * modules/printf-posix-tests (Files): Likewise.
14975         * modules/roundf-tests (Files): Likewise.
14976         * modules/round-tests (Files): Likewise.
14977         * modules/roundl-tests (Files): Likewise.
14978         * modules/signbit-tests (Files): Likewise.
14979         * modules/snprintf-posix-tests (Files): Likewise.
14980         * modules/sprintf-posix-tests (Files): Likewise.
14981         * modules/truncf-tests (Files): Likewise.
14982         * modules/trunc-tests (Files): Likewise.
14983         * modules/truncl-tests (Files): Likewise.
14984         * modules/vasnprintf-posix-tests (Files): Likewise.
14985         * modules/vasprintf-posix-tests (Files): Likewise.
14986         * modules/vdprintf-posix-tests (Files): Likewise.
14987         * modules/vfprintf-posix-tests (Files): Likewise.
14988         * modules/vprintf-posix-tests (Files): Likewise.
14989         * modules/vsnprintf-posix-tests (Files): Likewise.
14990         * modules/vsprintf-posix-tests (Files): Likewise.
14991         * modules/xprintf-posix-tests (Files): Likewise.
14992
14993 2011-09-11  Bruno Haible  <bruno@clisp.org>
14994
14995         Ensure pid_t gets defined.
14996         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14997         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14998         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14999         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15000         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15001         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15002         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15003         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15004         * tests/test-fcntl-h.c: Check that pid_t is defined.
15005         * tests/test-sched.c: Likewise.
15006         * tests/test-termios.c: Likewise.
15007         * tests/test-time.c: Likewise.
15008         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15009         * doc/posix-headers/signal.texi: Likewise.
15010         * doc/posix-headers/sys_types.texi: Likewise.
15011         * doc/posix-headers/time.texi: Likewise.
15012
15013 2011-09-11  Bruno Haible  <bruno@clisp.org>
15014
15015         acl: Fix compilation on Solaris 10 (older version).
15016         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15017         of ACE_EVERYONE.
15018         * lib/set-mode-acl.c (qset_acl): Likewise.
15019         Reported by Christian Jullien <eligis@orange.fr>.
15020
15021 2011-09-10  Bruno Haible  <bruno@clisp.org>
15022
15023         iconv, unsetenv: Add support for MSVC compiler.
15024         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15025         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15026
15027 2011-09-10  Bruno Haible  <bruno@clisp.org>
15028
15029         *printf: Add support for MSVC compiler.
15030         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15031         handles the exception caused by the %n directive. When cross-compiling,
15032         guess no on native Windows.
15033         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15034         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15035         emulate it through vsnprintf.
15036         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15037         * doc/posix-functions/dprintf.texi: Update documentation regarding
15038         MSVC 9.
15039         * doc/posix-functions/fprintf.texi: Likewise.
15040         * doc/posix-functions/printf.texi: Likewise.
15041         * doc/posix-functions/snprintf.texi: Likewise.
15042         * doc/posix-functions/sprintf.texi: Likewise.
15043         * doc/posix-functions/swprintf.texi: Likewise.
15044         * doc/posix-functions/vdprintf.texi: Likewise.
15045         * doc/posix-functions/vfprintf.texi: Likewise.
15046         * doc/posix-functions/vprintf.texi: Likewise.
15047         * doc/posix-functions/vsnprintf.texi: Likewise.
15048         * doc/posix-functions/vsprintf.texi: Likewise.
15049         * doc/glibc-functions/asprintf.texi: Likewise.
15050         * doc/glibc-functions/obstack_printf.texi: Likewise.
15051         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15052         * doc/glibc-functions/vasprintf.texi: Likewise.
15053
15054 2011-09-10  Bruno Haible  <bruno@clisp.org>
15055
15056         nocrash: Add support for native Windows.
15057         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15058
15059 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15060             Bruno Haible  <bruno@clisp.org>
15061
15062         absolute-header, include-next: Add support for MSVC compiler.
15063         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15064         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15065         directory separator in #line directives.
15066         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15067         recognize also backslash as directory separator in #line directives.
15068
15069 2011-09-08  Jim Meyering  <meyering@redhat.com>
15070
15071         maint.mk: mark the post-release commit log with "maint: " prefix
15072         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15073         one-line commit-log summary.
15074
15075 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15076             Bruno Haible  <bruno@clisp.org>
15077
15078         Doc about crypt functions.
15079         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15080         systems.
15081         * doc/posix-functions/encrypt.texi: Likewise.
15082         * doc/posix-functions/setkey.texi: Likewise.
15083
15084 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15085
15086         * lib/gc.h: Fix copyright header.
15087
15088 2011-09-07  Bruno Haible  <bruno@clisp.org>
15089
15090         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15091         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15092         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15093
15094 2011-09-07  Bruno Haible  <bruno@clisp.org>
15095
15096         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15097         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15098         * lib/freopen.c: Likewise.
15099         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15100         * lib/lstat.c: Likewise.
15101         * lib/stat.c: Likewise.
15102         * lib/open.c: Use different syntax for include of <fcntl.h>.
15103         * lib/openat.c: Include fcntl.h again, explicitly.
15104
15105 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15106
15107         parse-datetime: document the newly accepted format
15108         * doc/parse-datetime.texi (Combined date and time of day items):
15109         New section.
15110
15111 2011-09-06  Bruno Haible  <bruno@clisp.org>
15112
15113         acl: Fix a test failure on newer Solaris 10 with ZFS.
15114         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15115         ENOSYS as no ACL.
15116         Reported by Jim Meyering.
15117
15118 2011-09-06  Bruno Haible  <bruno@clisp.org>
15119
15120         acl: Update for AIX >= 5.3 with NFS.
15121         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15122         ENOSYS as no ACL.
15123
15124         acl: Fix a test failure on AIX >= 5.3 with NFS.
15125         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15126         as no ACL.
15127
15128 2011-09-06  Bruno Haible  <bruno@clisp.org>
15129
15130         acl: Fix a test failure on IRIX 6.5 with NFS.
15131         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15132         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15133         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15134         * lib/copy-acl.c (qcopy_acl): Likewise.
15135
15136 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15137
15138         openat: port to AIX 7.1 with large files
15139         AIX 7.1 does a "#define openat open64at" if large files are in use,
15140         so we can't simply #undef openat.  Use the orig_openat trick (similar
15141         to orig_open in lib/open.c) to work around the problem.  Problem
15142         reported by Kevin Brott for GNU tar, in the thread containing
15143         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15144         * lib/openat.c (__need_system_fcntl_h): Define first.
15145         Include <fcntl.h> and <sys/types.h> before undefining.
15146         (orig_openat) [HAVE_OPENAT]: New inline function.
15147         (openat) [HAVE_OPENAT]: Do not undef.
15148         (rpl_openat): Use orig_openat, not openat.
15149
15150 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15151             Bruno Haible  <bruno@clisp.org>
15152
15153         acl: Avoid errors on NonStop Kernel.
15154         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15155         ENOTSUP errors.
15156
15157 2011-09-05  Bruno Haible  <bruno@clisp.org>
15158
15159         acl: Clean up Solaris code.
15160         * lib/acl-internal.h: Remove no-op #if.
15161         * lib/file-has-acl.c: Likewise.
15162         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15163         * lib/copy-acl.c (qcopy_acl): Likewise.
15164
15165 2011-09-05  Bruno Haible  <bruno@clisp.org>
15166
15167         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15168         binaries built on the original Solaris 10.
15169         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15170         trivial.
15171
15172 2011-09-05  Bruno Haible  <bruno@clisp.org>
15173
15174         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15175         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15176         10.
15177         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15178         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15179         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15180         instead of acl_get, facl_get, acl_set, facl_set.
15181
15182 2011-09-05  Bruno Haible  <bruno@clisp.org>
15183
15184         copy-file: Try unit tests on more file systems.
15185         * tests/test-copy-file-1.sh: New file.
15186         * tests/test-copy-file-2.sh: New file.
15187         * modules/copy-file-tests (Files): Add them.
15188         (Makefile.am): Add them to TESTS.
15189
15190         acl: Try unit tests on more file systems.
15191         * tests/test-file-has-acl-1.sh: New file.
15192         * tests/test-file-has-acl-2.sh: New file.
15193         * tests/test-set-mode-acl-1.sh: New file.
15194         * tests/test-set-mode-acl-2.sh: New file.
15195         * tests/test-copy-acl-1.sh: New file.
15196         * tests/test-copy-acl-2.sh: New file.
15197         * modules/acl-tests (Files): Add them.
15198         (Makefile.am): Add them to TESTS.
15199
15200 2011-09-04  Bruno Haible  <bruno@clisp.org>
15201
15202         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15203         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15204         10.
15205         (OLD_ALLOW, OLD_DENY): New macros.
15206         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15207         ACE_ACCESS_ALLOWED_ACE_TYPE.
15208         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15209         ACE_ACCESS_DENIED_ACE_TYPE.
15210         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15211         (NEW_ACE_EXECUTE): Fix value.
15212         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15213         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15214         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15215         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15216         NEW_ACE_SYNCHRONIZE): New macros.
15217         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15218         instead of acl_fromtext, acl_set, facl_set.
15219         Fixes a coreutils/tests/cp/perm failure.
15220
15221 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15222
15223         openat: test for fstatat (..., 0) bug
15224         Further testing with tar suggests that fstatat (..., 0)
15225         does not work in general, on AIX 7.1; see
15226         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15227         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15228         replacement fstatat (which is what older AIX releases were using
15229         anyway).
15230         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15231         use is now changed to orig_fstatat.  This was probably the right
15232         thing to do anyway.
15233         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15234         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15235         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15236         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15237         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15238         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15239         if the bug is found.
15240
15241         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15242         This tests for another fstatat bug on AIX 7.1:
15243         fstatat (AT_FDCWD, ..., 0) does not work.  See
15244         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15245         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15246         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15247         (rpl_fstatat): Adjust so that it works around either (or both)
15248         bugs if present.
15249         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15250
15251 2011-09-03  Karl Berry  <karl@gnu.org>
15252
15253         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15254         in index entries.
15255
15256 2011-09-02  Bruno Haible  <bruno@clisp.org>
15257
15258         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15259         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15260         values of AR, ARFLAGS, RANLIB.
15261         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15262
15263 2011-09-02  Bruno Haible  <bruno@clisp.org>
15264
15265         Find 'ar' program that fits with --host argument.
15266         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15267
15268 2011-09-02  Bruno Haible  <bruno@clisp.org>
15269
15270         tests: init.sh: Support any non-GNU diff.
15271         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15272         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15273         Solaris 8.
15274
15275 2011-09-02  Bruno Haible  <bruno@clisp.org>
15276
15277         tests: init.sh: work also with any non-GNU diff that supports -u
15278         * tests/init.sh: Relax check for diff -u support.
15279         Rather than checking for GNU diff via --version, simply check
15280         for support for -u itself.  Useful at least on OpenBSD 4.9,
15281         AIX 7.1, IRIX 6.5, and Solaris 10.
15282
15283 2011-09-01  Bruno Haible  <bruno@clisp.org>
15284
15285         strtoimax, strtoumax: Document problem on HP-UX 11.
15286         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15287         * doc/posix-functions/strtoumax.texi: Likewise.
15288
15289 2011-09-01  Bruno Haible  <bruno@clisp.org>
15290
15291         strtoumax: Avoid link error on OSF/1 with DTK cc.
15292         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15293         defined as a function.
15294         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15295         strtoumax is defined, not whether it is declared.
15296
15297 2011-09-01  Bruno Haible  <bruno@clisp.org>
15298
15299         strtoimax: Avoid link error on OSF/1 with DTK cc.
15300         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15301         defined as a function.
15302         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15303         strtoimax is defined, not whether it is declared.
15304
15305 2011-09-01  Bruno Haible  <bruno@clisp.org>
15306
15307         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15308         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15309         as a function.
15310         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15311         whether it is declared.
15312
15313 2011-09-01  Bruno Haible  <bruno@clisp.org>
15314
15315         imaxabs: Avoid link error on OSF/1 with DTK cc.
15316         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15317         as a function.
15318         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15319         whether it is declared.
15320
15321 2011-09-01  Bruno Haible  <bruno@clisp.org>
15322
15323         Tests for module 'strtoumax'.
15324         * modules/strtoumax-tests: New file.
15325         * tests/test-strtoumax.c: New file.
15326
15327         Tests for module 'strtoimax'.
15328         * modules/strtoimax-tests: New file.
15329         * tests/test-strtoimax.c: New file.
15330
15331         Tests for module 'imaxdiv'.
15332         * modules/imaxdiv-tests: New file.
15333         * tests/test-imaxdiv.c: New file.
15334
15335         Tests for module 'imaxabs'.
15336         * modules/imaxabs-tests: New file.
15337         * tests/test-imaxabs.c: New file.
15338
15339 2011-09-01  Bruno Haible  <bruno@clisp.org>
15340
15341         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15342         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15343         pthread_create.
15344
15345 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15346
15347         openat: work around AIX 7.1 fstatat issue
15348         This should fix the problem that was not properly fixed
15349         in the previous change, dated 2011-08-30.
15350         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15351         __need_system_stat_h defined.
15352         (orig_fstatat) [HAVE_FSTATAT]: New function.
15353         (rpl_fstatat): Go back to the old way of doing things,
15354         except call orig_fstatat instead of fstatat.
15355         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15356         Remove unnecessary check whether fstatat fills in st_size etc.
15357
15358 2011-09-01  Bruno Haible  <bruno@clisp.org>
15359
15360         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15361         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15362         just include the system's header.
15363
15364 2011-08-31  Jim Meyering  <meyering@redhat.com>
15365
15366         tests: avoid spurious assertion failure in test-float.c on ppc64
15367         * tests/test-float.c (test_long_double): Comment out an assertion,
15368         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15369         with gcc-4.4.4.
15370
15371         maint: indent with spaces, not TABs
15372         I need to get in the habit of running gnulib's "make check".
15373         Both of these would have been caught.
15374         * m4/largefile.m4: Indent with spaces, not TABs.
15375         * lib/parse-datetime.y (iso_8601_time): Likewise.
15376         Spotted by Pádraig Brady.
15377
15378         test-parse-datetime.c: accommodate a relatively strict gcc warning
15379         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15380         to avoid a warning from gcc's -Werror=missing-declarations.
15381         Insert a few spaces-before-funcall-parenthesis.
15382
15383 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15384
15385         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15386         The parser now accepts ISO 8601 date-time strings with "T" as the
15387         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15388         with a space between the date and time strings.  Now it also parses
15389         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15390         variants like "2004-02-29T16:21:42.333-07:00"
15391         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15392         of day representation using the 'T' separator character.
15393         * doc/parse-datetime.texi (General date syntax): replace use of
15394         deprecated --iso-8601 option with --rfc-3339 in example of date
15395         command output formats that can be parsed.
15396         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15397         lib/parse-datetime.y.
15398         (gmt_offset): New function.
15399         (main): Add additional test cases to validate ISO8601 extended
15400         date and time of day parsing.
15401
15402 2011-08-31  Bruno Haible  <bruno@clisp.org>
15403
15404         freopen: Documentation.
15405         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15406         name.
15407         Reported by Claudio Bley <claudio.bley@gmail.com>.
15408
15409 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15410
15411         freopen: Don't crash if the filename argument is NULL.
15412         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15413         NULL.
15414
15415 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15416
15417         openat: work around AIX 7.1 fstatat bug
15418         Problem reported by Kevin Brott for GNU tar, in the thread containing
15419         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15420         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15421         FSTATAT_ST_SIZE_ETC_BROKEN.
15422         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15423         rpl_fstatat.
15424         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15425         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15426         AC_CHECK_FUNCS_ONCE for fstatat.
15427         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15428         fchmodat, mkdirat, openat and unlinkat.
15429
15430 2011-08-30  Bruno Haible  <bruno@clisp.org>
15431
15432         Avoid endless recursions if config.h includes some header files.
15433         * lib/fopen.c (__need_FILE): Define already before including config.h.
15434         * lib/freopen.c (__need_FILE): Likewise.
15435         * lib/open.c (__need_system_fcntl_h): Likewise.
15436         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15437         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15438         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15439
15440 2011-08-25  Karl Berry  <karl@gnu.org>
15441
15442         * config/srclist.txt (ylwrap): new try.
15443         * build-aux/ylwrap: new file.
15444
15445 2011-08-23  Bruno Haible  <bruno@clisp.org>
15446
15447         tmpdir: Use a good default directory on native Windows.
15448         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15449         (P_tmpdir): Default to _P_tmpdir on native Windows.
15450         (path_search): On native Windows, try the value returned by GetTempPath
15451         before trying P_tmpdir.
15452         * modules/tmpdir (Depends-on): Add pathmax.
15453         Suggested by John Darrington <john@darrington.wattle.id.au>.
15454
15455 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15456
15457         doc: fix typo in README-release
15458         * top/README-release: Capitalize first word of a sentence.
15459
15460 2011-08-19  Jim Meyering  <meyering@redhat.com>
15461
15462         fts: do not exhaust memory when processing million-entry directories
15463         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15464         directory would require about 256*N bytes of memory.  Thus, it was
15465         easy to construct a directory too large to be processed by any of
15466         those tools.  With this change, fts' maximum memory utilization is
15467         now limited to around 30MB.
15468         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15469         (fts_read): When we've processed the final entry (i.e., when
15470         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15471         using the parent entry to read any remaining entries.  Dispatch
15472         depending on what fts_build returns:
15473         - NULL+stop, aka failure: stop
15474         - NULL otherwise: move up in the dir hierarchy
15475         - non-NULL: handle this new entry
15476         (fts_build): Declare and use new local, continue_readdir.
15477         Prepare to be called from fts_read, when the entries
15478         from a partially-read directory have just been exhausted.
15479         In that case, we'll skip the opendir and instead use the parent's
15480         fts_dirp and derive dir_fd from that.
15481         Finally, in the readdir loop, if we read max_entries entries,
15482         exit the loop ensuring *not* to call closedir.  This is required
15483         so that fts_dirp can be reused on a subsequent call.
15484         Prompted by Ben England's report of memory exhaustion in find
15485         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15486
15487         maint: fts: move decl of `dp' down into while loop; split a long line
15488         * lib/fts.c (fts_build): No semantic change.
15489
15490         fts: add/use new struct member, fts_dirp
15491         We are about to use this to manage any directory with
15492         too many entries to read all of them into memory at once.
15493         To do that, we'll need to save the DIR* pointer in each
15494         affected FTSENT struct.
15495         * lib/fts_.h: Include <dirent.h>.
15496         (struct FTSENT) [fts_dirp]: New member.
15497         * lib/fts.c (closedir_and_clear): Define.
15498         Use it in place of closedir so that we are sure to
15499         clear the new fts_dirp member when done with it.
15500         (fts_alloc): Initialize the new member.
15501         (fts_lfree): Free, if needed.
15502
15503         maint: fts: give __opendir2 a new parameter and rename
15504         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15505         than surreptitiously using sole caller's "dir_fd".
15506         (fts_opendir): Rename from __opendir2.
15507
15508         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15509         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15510
15511         maint: fts.c: correct off-by-one indentation
15512         * lib/fts.c (fts_build): Correct indentation, change style
15513         of a couple of block comments, and bracing style.
15514
15515         maint: fts.c: move __opendir2 #define "up" out of function body
15516         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15517
15518         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15519         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15520         out for a long time and besides was useful only on BSD systems.
15521
15522 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15523
15524         regex: port to Stratus OpenVOS
15525         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15526         define to empty, rather than attempting nonportable optimizations.
15527         Problem reported by Paul Green in:
15528         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15529         and fix suggested by Eric Blake in:
15530         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15531
15532 2011-08-17  Eric Blake  <eblake@redhat.com>
15533
15534         getcwd: fix test failures on mingw
15535         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15536         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15537         test if long directory cannot be created, and allow mingw errno.
15538
15539         getcwd-lgpl: fix m4 to match relaxed test for BSD
15540         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15541         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15542         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15543         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15544         signature problem.
15545
15546         getcwd: fix compilation on mingw64
15547         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15548         getcwd.
15549         Reported by Marc-André Lureau.
15550
15551         pipe2: silence compiler warning
15552         * lib/pipe2.c (pipe2): Hide label if it is not used.
15553
15554 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15555
15556         relocatable-prog: fix link error
15557         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15558         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15559         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15560         into modules/relocatable-lib without noticing that
15561         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15562         also needs to build relocatable.c.
15563
15564 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15565
15566         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15567         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15568         shell code: it contained a 'break' that was not in a loop.
15569         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15570         via a shell-language loop; this may have been true in old Autoconf
15571         versions, but it's not true in Autoconf 2.68.  I found this bug
15572         when testing coreutils git on Solaris 8, whose shell complains
15573         about the syntax error.
15574
15575 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15576
15577         * lib/base64.c: Fix comment to reference RFC 4648.
15578         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15579         <gvtulder@gmail.com>.
15580
15581 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15582
15583         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15584
15585         po/Makefile.in.in: fix make -q problem
15586         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15587         rule, since there's no file named 'check-macro-version' and its
15588         use as a file breaks make -q.
15589         (all): Don't depend on check-macro-version.
15590         (CHECK_MACRO_VERSION): New macro.
15591         (stamp-po): Use it.
15592
15593         configmake: fix make -q problem
15594         * modules/configmake (configmake.h): Update configmake.h's time stamp
15595         even if the file does not change.  Otherwise, 'make -q' fails.
15596         Problem reported by Simon Josefsson in
15597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15598
15599 2011-08-11  Jim Meyering  <meyering@redhat.com>
15600
15601         git-version-gen: correct the advice in a comment
15602         * build-aux/git-version-gen: Correct comment.
15603         Don't recommend to list .tarball-version in .gitignore.
15604
15605 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15606
15607         base64: fix off-by-one buffer size bug
15608         Problem and (trivial) fix reported by Gijs van Tulder in
15609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15610         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15611         * tests/test-base64.c (main): Catch the bug.
15612
15613 2011-08-10  Eric Blake  <eblake@redhat.com>
15614
15615         closein: correct comments
15616         * lib/closein.c (close_stdin): Improve comments.
15617
15618 2011-08-09  Bruno Haible  <bruno@clisp.org>
15619
15620         More tests for 'fseeko'.
15621         * tests/test-fseeko3.c: New file, from Eric Blake.
15622         * tests/test-fseeko3.sh: New file.
15623         * modules/fseeko-tests (Files): Add them.
15624         (TESTS): Add test-fseeko3.sh.
15625         (check_PROGRAMS): Add test-fseeko3.
15626
15627 2011-08-09  Eric Blake  <eblake@redhat.com>
15628
15629         fseeko: remove unneeded hack
15630         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15631
15632         fseeko: fix bug on glibc
15633         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15634         Reported by John W. Eaton.
15635
15636 2011-08-08  Bruno Haible  <bruno@clisp.org>
15637
15638         unictype/base: Fix interoperability with preinstalled libunistring.
15639         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15640         Reported by Simon Josefsson.
15641
15642 2011-08-08  Bruno Haible  <bruno@clisp.org>
15643
15644         iswblank: Detect declaration correctly.
15645         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15646         AC_CHECK_DECLS invocation.
15647
15648 2011-08-08  Bruno Haible  <bruno@clisp.org>
15649
15650         tcgetsid: Detect declaration correctly.
15651         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15652         AC_CHECK_DECLS invocation.
15653         Reported by Simon Josefsson.
15654
15655 2011-08-08  Eric Blake  <eblake@redhat.com>
15656
15657         largefile: fix typo that regressed large file support
15658         * modules/largefile (configure.ac-early): Fix section name.
15659
15660 2011-08-06  Karl Berry  <karl@gnu.org>
15661
15662         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15663         a separate module.
15664
15665 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15666
15667         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15668         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15669         get prototype for free.
15670
15671 2011-08-04  Bruno Haible  <bruno@clisp.org>
15672
15673         Tests for module 'pathmax'.
15674         * modules/pathmax-tests: New file.
15675         * tests/test-pathmax.c: New file.
15676
15677         canonicalize-lgpl: Support larger filenames on the Hurd.
15678         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15679         Reported by Paul Eggert.
15680
15681         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15682         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15683         * lib/chdir-long.h: Include pathmax.h.
15684         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15685         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15686         (PATH_MAX): Remove code that is done by pathmax.h.
15687         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15688         * lib/tmpfile.c: Add a comment.
15689         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15690         * modules/chdir-long (Depends-on): Add pathmax.
15691         * modules/getcwd (Depends-on): Add pathmax.
15692         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15693         is not defined.
15694         * doc/posix-headers/limits.texi: Mention the pathmax module.
15695         * NEWS: Mention the change.
15696
15697 2011-08-02  Bruno Haible  <bruno@clisp.org>
15698
15699         pthread_sigmask: Actually use results of gl_THREADLIB.
15700         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15701         gl_THREADLIB, not gl_[]THREADLIB.
15702         Reported by Eric Blake.
15703
15704 2011-08-02  Jim Meyering  <meyering@redhat.com>
15705
15706         maint.mk: relax the default _gl_TS_function_match regexp
15707         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15708         space between function name and "(" in an "extern" declaration.
15709         That would fail to match a decl with no space there: extern void foo();
15710
15711 2011-07-31  Iain Nicol  <iain@thenicols.net>
15712
15713         git-version-gen: document that EXTRA_DIST must include .version
15714         * build-aux/git-version-gen: In the how-to-use comment, document
15715         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15716         will fail when run from an unpacked distribution tarball.
15717
15718 2011-08-01  Bruno Haible  <bruno@clisp.org>
15719
15720         wctype-h: Fix last change.
15721         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15722         REPLACE_TOWLOWER to 0.
15723         Reported by Sam Steingold <sds@gnu.org>.
15724
15725 2011-07-31  Bruno Haible  <bruno@clisp.org>
15726
15727         frexpl: Update autoconf test.
15728         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15729         according to changes of 2011-06-20.
15730
15731 2011-07-31  Bruno Haible  <bruno@clisp.org>
15732
15733         sys_utsname: Add support for Minix.
15734         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15735         <sys/utsname.h>.
15736         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15737         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15738
15739 2011-07-31  Bruno Haible  <bruno@clisp.org>
15740
15741         strings: Add support for Minix.
15742         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15743         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15744         * doc/posix-headers/strings.texi: Document the Minix problem.
15745
15746 2011-07-31  Bruno Haible  <bruno@clisp.org>
15747
15748         wctype-h: Add support for Minix.
15749         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15750         REPLACE_TOWLOWER.
15751         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15752         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15753         REPLACE_ISWCNTRL.
15754
15755 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15756
15757         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15758         This is a performance improvement for 64-bit hosts: it causes the
15759         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15760
15761 2011-07-31  Bruno Haible  <bruno@clisp.org>
15762
15763         stdioext: Add support for Minix.
15764         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15765         * lib/fpurge.c (fpurge): Likewise.
15766         * lib/freadahead.c (freadahead): Likewise.
15767         * lib/freadable.c (freadable): Likewise.
15768         * lib/freading.c (freading): Likewise.
15769         * lib/freadptr.c (freadptr): Likewise.
15770         * lib/freadseek.c (freadptrinc): Likewise.
15771         * lib/fseeko.c (rpl_fseeko): Likewise.
15772         * lib/fseterr.c (fseterr): Likewise.
15773         * lib/fwritable.c (fwritable): Likewise.
15774         * lib/fwriting.c (fwriting): Likewise.
15775         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15776         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15777
15778 2011-07-31  Bruno Haible  <bruno@clisp.org>
15779
15780         errno: Port to Minix.
15781         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15782         ECONNABORTED are defined.
15783         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15784         GNULIB_defined_ECONNABORTED): New macros.
15785         * lib/strerror-override.h (strerror_override): Test also
15786         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15787         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15788         ECONNABORTED.
15789         * doc/posix-headers/errno.texi: Mention the Minix problem.
15790
15791 2011-07-31  Bruno Haible  <bruno@clisp.org>
15792
15793         Work around declaration collisions on Minix.
15794         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15795         defined, set REPLACE_MBSINIT.
15796         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
15797         defined, set REPLACE_MBRTOWC.
15798         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
15799         set REPLACE_MBRLEN.
15800         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
15801         defined, set REPLACE_MBSRTOWCS.
15802         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
15803         defined, set REPLACE_WCRTOMB.
15804         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
15805         defined, set REPLACE_WCSRTOMBS.
15806
15807 2011-07-31  Bruno Haible  <bruno@clisp.org>
15808
15809         Add support for Minix with ACK compiler.
15810         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
15811         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
15812         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
15813
15814 2011-07-31  Bruno Haible  <bruno@clisp.org>
15815
15816         Documentation about Minix.
15817         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
15818         * doc/glibc-headers/*.texi: Likewise.
15819         * doc/posix-functions/*.texi: Likewise.
15820         * doc/glibc-functions/*.texi: Likewise.
15821
15822 2011-07-31  Bruno Haible  <bruno@clisp.org>
15823
15824         snippet/warn-on-use: Fix indentation.
15825         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
15826
15827 2011-07-25  Jim Meyering  <meyering@redhat.com>
15828
15829         tests: test-update-copyright.sh: remove unnecessary "rm" commands
15830         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
15831         commands.
15832
15833 2011-07-27  Jim Meyering  <meyering@redhat.com>
15834
15835         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
15836         * top/maint.mk (gl_extract_significant_defines_): Now that
15837         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
15838         gnulib/lib/signal.in.h, and now that we recommend to
15839         define-if-undefined those two symbols in application code,
15840         we must filter them out of the "significant" list.
15841         This avoids a "make syntax-check" failure in coreutils.
15842
15843 2011-07-26  Eric Blake  <eblake@redhat.com>
15844
15845         warnings: add comments about previous patch
15846         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15847         * m4/include_next.m4: Likewise.
15848         * m4/warn-on-use.m4: Likewise.
15849         * m4/warnings.m4: Likewise, and simplify use.
15850         Suggested by Stefano Lattarini.
15851
15852         include-next, warnings: support older autoconf
15853         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15854         AS_VAR_PUSHDEF in a way that works with older autoconf.
15855         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15856         Reported by Daniel P. Berrange.
15857
15858 2011-07-25  Bruno Haible  <bruno@clisp.org>
15859
15860         fseek, ftell: Fix doc.
15861         * doc/posix-functions/fseek.texi: Reword statement about
15862         AC_SYS_LARGEFILE.
15863         * doc/posix-functions/ftell.texi: Likewise.
15864
15865 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15866             Bruno Haible  <bruno@clisp.org>
15867
15868         Add dependencies to the 'largefile' module.
15869         * modules/fopen (Depends-on): Add 'largefile'.
15870         * modules/freopen (Depends-on): Likewise.
15871         * modules/fseeko (Depends-on): Likewise.
15872         * modules/ftello (Depends-on): Likewise.
15873         * modules/glob (Depends-on): Likewise.
15874         * modules/lseek (Depends-on): Likewise.
15875         * modules/lstat (Depends-on): Likewise.
15876         * modules/mkostemp (Depends-on): Likewise.
15877         * modules/mkostemps (Depends-on): Likewise.
15878         * modules/mkstemp (Depends-on): Likewise.
15879         * modules/mkstemps (Depends-on): Likewise.
15880         * modules/open (Depends-on): Likewise.
15881         * modules/openat (Depends-on): Likewise.
15882         * modules/pread (Depends-on): Likewise.
15883         * modules/pwrite (Depends-on): Likewise.
15884         * modules/scandir (Depends-on): Likewise.
15885         * modules/stat (Depends-on): Likewise.
15886         * modules/tmpfile (Depends-on): Likewise.
15887         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15888         since the containing module now depends on the largefile module.
15889         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15890         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15891         off_t is fixed by gnulib.
15892         * doc/posix-functions/freopen.texi: Likewise.
15893         * doc/posix-functions/fseeko.texi: Likewise.
15894         * doc/posix-functions/fstatat.texi: Likewise.
15895         * doc/posix-functions/ftello.texi: Likewise.
15896         * doc/posix-functions/glob.texi: Likewise.
15897         * doc/posix-functions/lseek.texi: Likewise.
15898         * doc/posix-functions/lstat.texi: Likewise.
15899         * doc/posix-functions/mkstemp.texi: Likewise.
15900         * doc/posix-functions/open.texi: Likewise.
15901         * doc/posix-functions/openat.texi: Likewise.
15902         * doc/posix-functions/pread.texi: Likewise.
15903         * doc/posix-functions/pwrite.texi: Likewise.
15904         * doc/posix-functions/scandir.texi: Likewise.
15905         * doc/posix-functions/stat.texi: Likewise.
15906         * doc/posix-functions/tmpfile.texi: Likewise.
15907         * doc/glibc-functions/mkostemp.texi: Likewise.
15908         * doc/glibc-functions/mkostemps.texi: Likewise.
15909         * doc/glibc-functions/mkstemps.texi: Likewise.
15910
15911 2011-07-25  Bruno Haible  <bruno@clisp.org>
15912
15913         fcntl: Move AC_LIBOBJ invocation to module description.
15914         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15915         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15916
15917         fcntl: Remove call-in from fchdir.m4.
15918         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15919         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15920
15921         dup3: Remove potential call-in from fchdir.m4.
15922         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15924
15925         dup2: Move AC_LIBOBJ invocation to module description.
15926         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15927         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15928         Don't invoke AC_LIBOBJ.
15929         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15930
15931         dup2: Remove call-in from fchdir.m4.
15932         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15933         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15934
15935         fclose: Move AC_LIBOBJ invocation to module description.
15936         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15937         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15938         to 1.
15939         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15940
15941         fclose: Remove call-in from close.m4.
15942         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15943         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15944
15945         close: Move AC_LIBOBJ invocation to module description.
15946         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15947         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15948         1.
15949         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15950
15951         close: Remove call-in from fchdir.m4.
15952         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15954
15955         open: Move AC_LIBOBJ invocation to module description.
15956         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15957         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15958         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15959
15960         open: Remove call-in from fchdir.m4.
15961         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15963
15964         fchdir: Start to remove gl_REPLACE_* idiom.
15965         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15966         (gl_FUNC_FCHDIR): Invoke it.
15967
15968 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15969
15970         * lib/ftell.c (ftell): Comment out cast.
15971
15972         close: use gl_REPLACE_FCLOSE only if defined
15973         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15974         is defined.  The close module doesn't depend on the fclose module
15975         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15977         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15978
15979 2011-07-24  Jim Meyering  <meyering@redhat.com>
15980
15981         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15982         * tests/test-select.h (test_function): Declare as "static".
15983
15984 2011-07-24  Bruno Haible  <bruno@clisp.org>
15985
15986         doc: Mention the effects of AC_SYS_LARGEFILE.
15987         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15988         on this function.
15989         * doc/posix-functions/aio_error.texi: Likewise.
15990         * doc/posix-functions/aio_fsync.texi: Likewise.
15991         * doc/posix-functions/aio_read.texi: Likewise.
15992         * doc/posix-functions/aio_return.texi: Likewise.
15993         * doc/posix-functions/aio_suspend.texi: Likewise.
15994         * doc/posix-functions/aio_write.texi: Likewise.
15995         * doc/posix-functions/fgetpos.texi: Likewise.
15996         * doc/posix-functions/fopen.texi: Likewise.
15997         * doc/posix-functions/freopen.texi: Likewise.
15998         * doc/posix-functions/fsetpos.texi: Likewise.
15999         * doc/posix-functions/fstatvfs.texi: Likewise.
16000         * doc/posix-functions/ftruncate.texi: Likewise.
16001         * doc/posix-functions/ftw.texi: Likewise.
16002         * doc/posix-functions/getrlimit.texi: Likewise.
16003         * doc/posix-functions/glob.texi: Likewise.
16004         * doc/posix-functions/lio_listio.texi: Likewise.
16005         * doc/posix-functions/lockf.texi: Likewise.
16006         * doc/posix-functions/mkstemp.texi: Likewise.
16007         * doc/posix-functions/mmap.texi: Likewise.
16008         * doc/posix-functions/nftw.texi: Likewise.
16009         * doc/posix-functions/openat.texi: Likewise.
16010         * doc/posix-functions/opendir.texi: Likewise.
16011         * doc/posix-functions/posix_fadvise.texi: Likewise.
16012         * doc/posix-functions/posix_fallocate.texi: Likewise.
16013         * doc/posix-functions/pread.texi: Likewise.
16014         * doc/posix-functions/pwrite.texi: Likewise.
16015         * doc/posix-functions/readdir.texi: Likewise.
16016         * doc/posix-functions/readdir_r.texi: Likewise.
16017         * doc/posix-functions/rewinddir.texi: Likewise.
16018         * doc/posix-functions/scandir.texi: Likewise.
16019         * doc/posix-functions/seekdir.texi: Likewise.
16020         * doc/posix-functions/setrlimit.texi: Likewise.
16021         * doc/posix-functions/statvfs.texi: Likewise.
16022         * doc/posix-functions/telldir.texi: Likewise.
16023         * doc/posix-functions/tmpfile.texi: Likewise.
16024         * doc/posix-functions/truncate.texi: Likewise.
16025         * doc/glibc-functions/fallocate.texi: Likewise.
16026         * doc/glibc-functions/fstatfs.texi: Likewise.
16027         * doc/glibc-functions/fts_children.texi: Likewise.
16028         * doc/glibc-functions/fts_read.texi: Likewise.
16029         * doc/glibc-functions/getdirentries.texi: Likewise.
16030         * doc/glibc-functions/mkostemp.texi: Likewise.
16031         * doc/glibc-functions/mkostemps.texi: Likewise.
16032         * doc/glibc-functions/mkstemps.texi: Likewise.
16033         * doc/glibc-functions/preadv.texi: Likewise.
16034         * doc/glibc-functions/pwritev.texi: Likewise.
16035         * doc/glibc-functions/sendfile.texi: Likewise.
16036         * doc/glibc-functions/statfs.texi: Likewise.
16037
16038 2011-07-24  Bruno Haible  <bruno@clisp.org>
16039
16040         doc: Fix typo.
16041         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16042
16043 2011-07-24  Bruno Haible  <bruno@clisp.org>
16044
16045         doc: Mention fsusage.
16046         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16047
16048 2011-07-24  Bruno Haible  <bruno@clisp.org>
16049
16050         doc: Mention new glibc headers and functions.
16051         * doc/glibc-headers/gshadow.texi: New file.
16052         * doc/glibc-functions/endsgent.texi: New file.
16053         * doc/glibc-functions/fgetsgent.texi: New file.
16054         * doc/glibc-functions/fgetsgent_r.texi: New file.
16055         * doc/glibc-functions/getsgent.texi: New file.
16056         * doc/glibc-functions/getsgent_r.texi: New file.
16057         * doc/glibc-functions/getsgnam.texi: New file.
16058         * doc/glibc-functions/getsgnam_r.texi: New file.
16059         * doc/glibc-functions/putsgent.texi: New file.
16060         * doc/glibc-functions/setsgent.texi: New file.
16061         * doc/glibc-functions/sgetsgent.texi: New file.
16062         * doc/glibc-functions/sgetsgent_r.texi: New file.
16063         * doc/glibc-functions/malloc_info.texi: New file.
16064         * doc/glibc-functions/preadv.texi: New file.
16065         * doc/glibc-functions/pwritev.texi: New file.
16066         * doc/glibc-functions/register_printf_modifier.texi: New file.
16067         * doc/glibc-functions/register_printf_specifier.texi: New file.
16068         * doc/glibc-functions/register_printf_type.texi: New file.
16069         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16070         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16071         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16072         * doc/glibc-functions/pthread_getname_np.texi: New file.
16073         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16074         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16075         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16076         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16077         * doc/glibc-functions/pthread_setname_np.texi: New file.
16078         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16079         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16080         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16081         * doc/glibc-functions/qsort_r.texi: New file.
16082         * doc/glibc-functions/quick_exit.texi: New file.
16083         * doc/glibc-functions/syncfs.texi: New file.
16084         * doc/gnulib.texi: Include them.
16085         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16086         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16087         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16088         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16089         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16090         * doc/glibc-functions/execvpe.texi: Likewise.
16091
16092 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16093
16094         ftell: don't include <unistd.h>
16095         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16096         guaranteed to define off_t, and the ftell module depends on the
16097         stdio module.
16098
16099         ftell: do not assume wraparound signed arithmetic
16100         * lib/ftell.c: Include <limits.h>.
16101         (ftell): Don't assume wraparound signed arithmetic.
16102
16103 2011-07-24  Bruno Haible  <bruno@clisp.org>
16104
16105         close: No longer depend on module 'fclose'.
16106         * modules/close (Depends-on): Remove fclose.
16107         * NEWS: Mention the change.
16108         Suggested by Sam Steingold <sds@gnu.org>.
16109
16110 2011-07-24  Bruno Haible  <bruno@clisp.org>
16111
16112         fsusage: Enable large volume support on AIX >= 5.2.
16113         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16114         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16115         instead of STAT_STATVFS.
16116         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16117
16118         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16119         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16120         f_blocks field only on MacOS X.
16121
16122         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16123         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16124         * modules/fsusage (Depends-on): Add largefile.
16125
16126 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16127
16128         * README: Modernize discussion of signed integers.
16129         Assuming overflow wraparound is no longer safe.
16130         Mention ones' complement and signed magnitude.
16131
16132 2011-07-22  Bruno Haible  <bruno@clisp.org>
16133
16134         select tests, pselect tests: Refactor.
16135         * tests/test-select.h: New file, extracted from tests/test-select.c.
16136         (select_fn): New type.
16137         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16138         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16139         test_pipe): Add my_select argument.
16140         (test_function): Renamed from main. Add my_select argument.
16141         * tests/test-select.c: Move most code to tests/test-select.h. Include
16142         test-select.h.
16143         * modules/select-tests (Files): Add tests/test-select.h.
16144         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16145         (my_select, main): New functions.
16146         * modules/pselect-tests (Files): Add tests/test-select.h,
16147         tests/macros.h, tests/signature.h.
16148         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16149         (configure.ac): Check for <sys/wait.h>.
16150
16151 2011-07-22  Bruno Haible  <bruno@clisp.org>
16152
16153         sys_select tests: Check the signature of FD_*.
16154         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16155         signature tests from here...
16156         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16157         here.
16158         * modules/sys_select-tests (Files): Add tests/signature.h.
16159
16160 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16161
16162         largefile: new module, replacing large-inode
16163         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16164         * MODULES.html.sh: Add largefile, remove large-inode.
16165         * modules/largefile, m4/largefile.m4: New files.
16166         * modules/large-inode, m4/large-inode.m4: Remove.
16167
16168         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16169         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16170         implementations that use only 32 bits to count blocks.
16171         On typical hosts with 1024-byte blocks, this fails with file
16172         systems as small as 4 TiB.  Problem reported by Herb Wartens
16173         <http://debbugs.gnu.org/9140> and this should also fix a similar
16174         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16175
16176         large-inode: New module
16177         * MODULES.html.sh: Add it.
16178         * modules/large-inode, m4/large-inode.m4: New files.
16179
16180         extensions: Enable extensions on MacOS X 10.5 and later.
16181         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16182
16183 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16184
16185         file-has-acl: use acl_extended_file_nofollow if available
16186         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16187         (acl_extended_file): New macro.
16188         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16189         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16190
16191 2011-07-21  Bruno Haible  <bruno@clisp.org>
16192
16193         Declare system functions in a way that works with C++.
16194         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16195         declare fdopendir as extern "C".
16196         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16197         declare frexpl as extern "C".
16198         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16199         declare gai_strerror as extern "C".
16200         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16201         programs, declare gai_strerror as extern "C".
16202         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16203         declare getlogin_r as extern "C".
16204         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16205         as extern "C".
16206         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16207         declare ldexpl as extern "C".
16208         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16209         as extern "C".
16210         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16211         program, declare getmntinfo as extern "C".
16212         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16213         stpncpy as extern "C".
16214         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16215         program, declare __xpg_strerror_r as extern "C".
16216         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16217         strndup as extern "C".
16218         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16219         declare memset and bzero as extern "C".
16220         Reported by Sam Steingold <sds@gnu.org>.
16221
16222 2011-07-12  Jim Meyering  <meyering@redhat.com>
16223
16224         maint.mk: prohibit inclusion of "verify.h" without use
16225         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16226
16227 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16228
16229         timer-time: A new module to check for timer_settime()
16230         * m4/timer_time.m4: Check for the posix function.
16231         * modules/timer-time: Add the new module.
16232         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16233         Mention it.
16234
16235 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16236             Bruno Haible  <bruno@clisp.org>
16237
16238         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16239         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16240         not defined, assume POSIX threads and look for pthread_sigmask in
16241         $LIBS, without changing $CPPFLAGS.
16242
16243 2011-07-19  Bruno Haible  <bruno@clisp.org>
16244
16245         strstr: Update cross-compilation guess.
16246         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16247         CPUs, guess no, in view of glibc
16248         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16249         Suggested by Eric Blake. Reported by Reuben Thomas.
16250
16251 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16252
16253         getopt-gnu: suppress core dumps from detection code
16254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16255         to suppress core dumps that may well occur on glibc systems.
16256         * modules/getopt-gnu: Depend on nocrash.
16257
16258 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16259
16260         pthread_sigmask: ensure usleep is declared
16261         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16262         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16263
16264 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16265
16266         doc: Document NonStop portability issues.
16267         * doc/posix-functions/sigaction.texi (sigaction):
16268         * doc/posix-headers/signal.texi (signal.h):
16269         Document NonStop.  See Joachim Schmitz in
16270         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16271
16272 2011-07-15  Bruno Haible  <bruno@clisp.org>
16273
16274         ffsl, ffsll: Avoid unportable behaviour.
16275         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16276
16277 2011-07-15  Bruno Haible  <bruno@clisp.org>
16278
16279         ffs: More tests.
16280         * tests/test-ffs.c (NBITS): New macro.
16281         (main): Add more tests.
16282         * tests/test-ffsl.c (NBITS): New macro.
16283         (main): Add more tests.
16284         * tests/test-ffsll.c (NBITS): New macro.
16285         (main): Add more tests.
16286
16287 2011-07-15  Eric Blake  <eblake@redhat.com>
16288
16289         ffsl, ffsll: new modules
16290         * modules/ffsl: New file.
16291         * modules/ffsll: Likewise.
16292         * m4/ffsl.m4: Likewise.
16293         * m4/ffsll.m4: Likewise.
16294         * lib/ffsl.c: Likewise.
16295         * lib/ffsl.h: Likewise.
16296         * lib/ffsll.c: Likewise.
16297         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16298         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16299         * modules/string (Makefile.am): Substitute witnesses.
16300         * lib/strings.in.h (ffsl, ffsll): Declare.
16301         * modules/ffsl-tests: New test file.
16302         * modules/ffsll-tests: Likewise.
16303         * tests/test-ffsl.c: Likewise.
16304         * tests/test-ffsll.c: Likewise.
16305         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16306         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16307         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16308
16309         ffs: fix m4 prerequisite
16310         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16311
16312         ffs: avoid undefined behavior
16313         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16314         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16315         Reported by Bruno Haible.
16316
16317 2011-07-12  Bruno Haible  <bruno@clisp.org>
16318
16319         pthread_sigmask: Rely on module 'threadlib'.
16320         * modules/pthread_sigmask (Depends-on): Add threadlib.
16321         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16322         is defined.
16323
16324 2011-07-12  Bruno Haible  <bruno@clisp.org>
16325
16326         regex: Depend on module 'strcase'.
16327         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16328
16329 2011-07-12  Jim Meyering  <meyering@redhat.com>
16330
16331         warn-on-use: fix typo in file name
16332         * modules/snippet/warn-on-use (Files): Correct file name:
16333         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16334
16335 2011-07-12  Bruno Haible  <bruno@clisp.org>
16336
16337         strings: Document module.
16338         * doc/posix-headers/strings.texi: Mention module 'strings'.
16339
16340 2011-07-12  Bruno Haible  <bruno@clisp.org>
16341
16342         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16343         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16344         (Files, Makefile.am): Update.
16345         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16346         * modules/stdlib (Depends-on): Update.
16347
16348 2011-07-12  Bruno Haible  <bruno@clisp.org>
16349
16350         * NEWS: Mention the changes.
16351
16352         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16353         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16354         (Files, Makefile.am): Update.
16355         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16356         * modules/arpa_inet (Depends-on): Update.
16357         * modules/ctype (Depends-on): Update.
16358         * modules/dirent (Depends-on): Update.
16359         * modules/fcntl-h (Depends-on): Update.
16360         * modules/glob (Depends-on): Update.
16361         * modules/iconv-h (Depends-on): Update.
16362         * modules/inttypes-incomplete (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_file (Depends-on): Update.
16377         * modules/sys_ioctl (Depends-on): Update.
16378         * modules/sys_select (Depends-on): Update.
16379         * modules/sys_socket (Depends-on): Update.
16380         * modules/sys_stat (Depends-on): Update.
16381         * modules/sys_time (Depends-on): Update.
16382         * modules/sys_times (Depends-on): Update.
16383         * modules/sys_utsname (Depends-on): Update.
16384         * modules/sys_wait (Depends-on): Update.
16385         * modules/termios (Depends-on): Update.
16386         * modules/time (Depends-on): Update.
16387         * modules/unistd (Depends-on): Update.
16388         * modules/wchar (Depends-on): Update.
16389         * modules/wctype-h (Depends-on): Update.
16390         * MODULES.html.sh (Support for building libraries and executables):
16391         Update.
16392
16393         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16394         * modules/snippet/unused-parameter: Renamed from
16395         modules/unused-parameter.
16396         (Files, Makefile.am): Update.
16397         * build-aux/snippet/unused-parameter.h: Renamed from
16398         build-aux/unused-parameter.h.
16399         * modules/selinux-h (Depends-on): Update.
16400         * modules/unistr/base (Depends-on): Update.
16401         * MODULES.html.sh (Core language properties): Update.
16402
16403         Rename module 'link-warning' to 'snippet/link-warning'.
16404         * modules/snippet/link-warning: Renamed from modules/link-warning.
16405         (Files, Makefile.am): Update.
16406         * build-aux/snippet/link-warning.h: Renamed from
16407         build-aux/link-warning.h.
16408         * MODULES.html.sh (Support for building libraries and executables):
16409         Update.
16410
16411         Rename module 'c++defs' to 'snippet/c++defs'.
16412         * modules/snippet/c++defs: Renamed from modules/c++defs.
16413         (Files, Makefile.am): Update.
16414         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16415         * modules/arpa_inet (Depends-on): Update.
16416         * modules/ctype (Depends-on): Update.
16417         * modules/dirent (Depends-on): Update.
16418         * modules/fcntl-h (Depends-on): Update.
16419         * modules/glob (Depends-on): Update.
16420         * modules/iconv-h (Depends-on): Update.
16421         * modules/langinfo (Depends-on): Update.
16422         * modules/locale (Depends-on): Update.
16423         * modules/math (Depends-on): Update.
16424         * modules/netdb (Depends-on): Update.
16425         * modules/poll-h (Depends-on): Update.
16426         * modules/pty (Depends-on): Update.
16427         * modules/search (Depends-on): Update.
16428         * modules/signal (Depends-on): Update.
16429         * modules/spawn (Depends-on): Update.
16430         * modules/stdio (Depends-on): Update.
16431         * modules/stdlib (Depends-on): Update.
16432         * modules/string (Depends-on): Update.
16433         * modules/strings (Depends-on): Update.
16434         * modules/sys_ioctl (Depends-on): Update.
16435         * modules/sys_select (Depends-on): Update.
16436         * modules/sys_socket (Depends-on): Update.
16437         * modules/sys_stat (Depends-on): Update.
16438         * modules/sys_time (Depends-on): Update.
16439         * modules/sys_wait (Depends-on): Update.
16440         * modules/termios (Depends-on): Update.
16441         * modules/time (Depends-on): Update.
16442         * modules/unistd (Depends-on): Update.
16443         * modules/wchar (Depends-on): Update.
16444         * modules/wctype-h (Depends-on): Update.
16445
16446         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16447         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16448         (Files, Makefile.am): Update.
16449         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16450         * modules/argv-iter (Depends-on): Update.
16451         * modules/arpa_inet (Depends-on): Update.
16452         * modules/dirent (Depends-on): Update.
16453         * modules/fcntl-h (Depends-on): Update.
16454         * modules/fnmatch (Depends-on): Update.
16455         * modules/getopt-posix (Depends-on): Update.
16456         * modules/glob (Depends-on): Update.
16457         * modules/iconv-h (Depends-on): Update.
16458         * modules/inttypes-incomplete (Depends-on): Update.
16459         * modules/locale (Depends-on): Update.
16460         * modules/math (Depends-on): Update.
16461         * modules/netdb (Depends-on): Update.
16462         * modules/search (Depends-on): Update.
16463         * modules/signal (Depends-on): Update.
16464         * modules/spawn (Depends-on): Update.
16465         * modules/stdio (Depends-on): Update.
16466         * modules/stdlib (Depends-on): Update.
16467         * modules/string (Depends-on): Update.
16468         * modules/strings (Depends-on): Update.
16469         * modules/sys_socket (Depends-on): Update.
16470         * modules/sys_stat (Depends-on): Update.
16471         * modules/sys_time (Depends-on): Update.
16472         * modules/sys_times (Depends-on): Update.
16473         * modules/sys_utsname (Depends-on): Update.
16474         * modules/time (Depends-on): Update.
16475         * modules/unistd (Depends-on): Update.
16476         * modules/wchar (Depends-on): Update.
16477         * MODULES.html.sh (Support for building libraries and executables):
16478         Update.
16479
16480 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16481
16482         Improvements on _Noreturn and related modules.
16483
16484         modules/_Exit-tests: test _Noreturn too
16485         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16486         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16487         (main): Use them.
16488
16489         stdnoreturn, stdnoreturn-tests: remove modules
16490         They're not needed here and a bit premature for use elsewhere.  See
16491         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16492         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16493         * tests/test-stdnoreturn.c: Remove files.
16494         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16495         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16496         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16497         and using noreturn.
16498         * modules/openat, modules/sigpipe-die, modules/xalloc:
16499         * modules/xmemdup0, modules/xstrtol:
16500         Remove dependency on stdnoreturn.
16501
16502         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16503         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16504         Reparenthesize to avoid GCC warning.
16505         Support Microsoft's syntax.
16506         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16507
16508         _Noreturn-tests: remove module
16509         * modules/_Noreturn-tests: Remove.
16510         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16511         * tests/test-_Noreturn.c: Remove.
16512         * tests/test-stdnoreturn.c: Merge from the old
16513         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16514
16515 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16516
16517         _Noreturn, stdnoreturn, and related modules.
16518
16519         * top/maint.mk: Adjust to new noreturn support.
16520         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16521         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16522
16523         xalloc: use stdnoreturn.h
16524         * lib/xalloc.h: Include <stdnoreturn.h>.
16525         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16526         * modules/xalloc (Depends-on): Add stdnoreturn.
16527
16528         xstrtol: use stdnoreturn.h
16529         * lib/xstrtol.h: Include <stdnoreturn.h>.
16530         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16531         * modules/xstrtol (Depends-on): Add stdnoreturn.
16532
16533         xmemdup0: use stdnoreturn.h
16534         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16535         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16536         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16537
16538         sigpipe-die: use stdnoreturn.h
16539         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16540         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16541         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16542
16543         openat: use stdnoreturn.h
16544         * lib/openat.h: Include <stdnoreturn.h>.
16545         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16546         * modules/openat (Depends-on): Add stdnoreturn.
16547
16548         * lib/openat-die.c (openat_save_fail): Modernize comment.
16549
16550         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16551
16552         * lib/glthread/thread.h: Modernize comment.
16553
16554         obstack: use _Noreturn
16555         * lib/obstack.c (__attribute__): Remove macro.
16556         (print_and_abort): Use _Noreturn.
16557
16558         c-stack: use _Noreturn
16559         * lib/c-stack.c (die, overflow_handler, segv_handler):
16560         Use _Noreturn rather than __attribute__((noreturn)).
16561
16562         argmatch-tests, exclude_tests: use _Noreturn
16563         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16564         Remove.
16565         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16566
16567         stdlib: use _Noreturn
16568         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16569         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16570         * modules/stdlib (Depends-on): Add _Noreturn.
16571         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16572
16573         stdnoreturn-tests: new module
16574         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16575
16576         stdnoreturn: new module
16577         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16578         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16579
16580         _Noreturn-tests: new module
16581         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16582
16583         _Noreturn: new module
16584         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16585         New section, mentioning it.
16586         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16587
16588         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16589
16590 2011-07-11  Eric Blake  <eblake@redhat.com>
16591
16592         ffs: new module
16593         * modules/ffs: New file.
16594         * m4/ffs.m4: Likewise.
16595         * lib/ffs.c: Likewise.
16596         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16597         * modules/strings (Makefile.am): Substitute witness.
16598         (Depends-on): Add c++defs.
16599         * lib/strings.in.h (ffs): Declare.
16600         * modules/ffs-tests: New test file.
16601         * tests/test-ffs.c: Test new module.
16602         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16603         * doc/posix-functions/ffs.texi (ffs): Likewise.
16604
16605         regex: avoid compiler warning
16606         * lib/regex.c (includes): Include <strings.h>, for use of
16607         strcasecmp in regcomp.c.
16608         Reported by Joachim Schmitz.
16609
16610 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16611
16612         stdint: respect system's intmax_t if INTMAX_MAX
16613         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16614         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16615         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16616         long but int64_t is long long, and where we will clash with the
16617         system intmax_t if we override it.  See
16618         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16619         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16620         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16621         similarly for UINTMAX_C.
16622
16623 2011-07-08  Bruno Haible  <bruno@clisp.org>
16624
16625         pthread_sigmask tests: Avoid a compiler warning.
16626         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16627         non-zero.
16628
16629         sigprocmask tests: A better way to avoid a compiler warning.
16630         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16631         (main): Complain if system() returns non-zero.
16632         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16633
16634 2011-07-08  Bruno Haible  <bruno@clisp.org>
16635
16636         pthread_sigmask: Work around IRIX bug.
16637         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16638         bug.
16639         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16640         there may be unblocked pending signals.
16641         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16642
16643 2011-07-08  Bruno Haible  <bruno@clisp.org>
16644
16645         pthread_sigmask: Work around Cygwin bug.
16646         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16647         bug.
16648         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16649         the system's pthread_sigmask function.
16650         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16651
16652 2011-07-08  Bruno Haible  <bruno@clisp.org>
16653
16654         pthread_sigmask: Work around bug in single-threaded implementation.
16655         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16656         FreeBSD, HP-UX, Solaris bug.
16657         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16658         * lib/pthread_sigmask.c: Include <stddef.h>.
16659         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16660         the system's pthread_sigmask function.
16661         * modules/pthread_sigmask (configure.ac): Invoke
16662         gl_PREREQ_PTHREAD_SIGMASK.
16663         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16664         HP-UX, Solaris.
16665
16666 2011-07-08  Eric Blake  <eblake@redhat.com>
16667
16668         test-sigprocmask: avoid compiler warning
16669         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16670         * tests/test-sigprocmask.c (main): Use it to silence warning.
16671         Reported by Jim Meyering.
16672
16673         test-snprintf: avoid compiler warning
16674         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16675         * tests/test-vsnprintf.c (main): Likewise.
16676         Reported by Jim Meyering.
16677
16678 2011-07-08  Bruno Haible  <bruno@clisp.org>
16679
16680         Tests for module 'pthread_sigmask'.
16681         * modules/pthread_sigmask-tests: New file.
16682         * tests/test-pthread_sigmask1.c: New file, based on
16683         tests/test-sigprocmask.c.
16684         * tests/test-pthread_sigmask2.c: New file.
16685
16686 2011-07-08  Jim Meyering  <meyering@redhat.com>
16687
16688         test-getopt.h: avoid warning about an unused variable
16689         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16690
16691 2011-07-07  Jim Meyering  <meyering@redhat.com>
16692
16693         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16694         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16695         now that it no longer contains leading TABs.
16696         Remove unused "url=FIXME" statement.
16697
16698 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16699
16700         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16701         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16702         When gl_THREADLIB is not in use, assume that the POSIX sematics
16703         are desired.  This is better for Emacs, which uses POSIX semantics
16704         on GNUish and/or POSIXish platforms, and does not use threads at
16705         all otherwise.
16706
16707         pthread_sigmask: fix typo when testing for libraries
16708         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16709         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16710
16711 2011-07-08  Eric Blake  <eblake@redhat.com>
16712
16713         fts: introduce FTS_NOATIME
16714         * lib/fts_.h (FTS_NOATIME): New bit flag.
16715         (FTS_OPTIONMASK): Adjust.
16716         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16717         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16718
16719 2011-07-08  Bruno Haible  <bruno@clisp.org>
16720
16721         Tests for module 'thread'.
16722         * modules/thread-tests: New file.
16723         * tests/test-thread_self.c: New file.
16724         * tests/test-thread_create.cc: New file.
16725
16726 2011-07-08  Bruno Haible  <bruno@clisp.org>
16727
16728         thread: Avoid gcc warnings when using gl_thread_self().
16729         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16730         'void *'.
16731         (gl_thread_self_pointer): Update.
16732
16733 2011-07-07  Bruno Haible  <bruno@clisp.org>
16734
16735         signal-c++-tests: Check declaration of pthread_sigmask.
16736         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16737         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16738         $(LIB_PTHREAD_SIGMASK).
16739
16740 2011-07-07  Bruno Haible  <bruno@clisp.org>
16741
16742         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16743         * lib/signal.in.h (pthread_sigmask): Override if
16744         REPLACE_PTHREAD_SIGMASK is 1.
16745         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16746         REPLACE_PTHREAD_SIGMASK.
16747         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16748         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16749         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16750         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16751         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16752
16753 2011-07-07  Bruno Haible  <bruno@clisp.org>
16754
16755         pthread_sigmask: Ensure declaration in <signal.h>.
16756         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16757         include <pthread.h>.
16758         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16759         problem.
16760
16761 2011-07-07  Bruno Haible  <bruno@clisp.org>
16762
16763         pthread_sigmask: Document the module.
16764         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16765
16766 2011-07-07  Bruno Haible  <bruno@clisp.org>
16767
16768         pthread_sigmask: Follow gnulib conventions.
16769         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16770         gl_PTHREAD_SIGMASK.
16771         * modules/pthread_sigmask (configure.ac): Update.
16772
16773 2011-07-07  Bruno Haible  <bruno@clisp.org>
16774
16775         pthread_sigmask: Make declaration C++ safe.
16776         * lib/signal.in.h: In two special conditions, just do an #include_next.
16777         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16778         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16779         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16780         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16781         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16782         not REPLACE_PTHREAD_MASK.
16783         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16784         not REPLACE_PTHREAD_MASK.
16785         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16786
16787 2011-07-07  Bruno Haible  <bruno@clisp.org>
16788
16789         pthread_sigmask: Fix return value.
16790         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16791         * lib/pthread_sigmask.c: New file.
16792         * modules/pthread_sigmask (Files): Add it.
16793         (configure.ac): Invoke AC_LIBOBJ.
16794
16795 2011-07-07  Eric Blake  <eblake@redhat.com>
16796
16797         getopt: more portable argv creation
16798         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
16799         const, use char arrays rather than strings.
16800         Suggested by Paul Eggert.
16801
16802 2011-07-07  Bruno Haible  <bruno@clisp.org>
16803
16804         Tests for module 'sigprocmask'.
16805         * modules/sigprocmask-tests: New file.
16806         * tests/test-sigprocmask.c: New file.
16807
16808 2011-07-07  Bruno Haible  <bruno@clisp.org>
16809
16810         float tests: Tweak.
16811         * tests/test-float.c (main): Tweak skip message.
16812
16813 2011-07-07  Eric Blake  <eblake@redhat.com>
16814
16815         getopt: avoid compiler warning during configure
16816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
16817         assigning string literals to non-const pointer.
16818
16819         getopt-gnu: avoid crash in glibc getopt
16820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
16821         * tests/test-getopt.h (test_getopt): Enhance test.
16822         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16823         * doc/posix-functions/getopt.texi (getopt): Document it.
16824         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16825         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16826         Likewise.
16827
16828 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16829
16830         getopt: handle W; without long options in getopt [BZ #12922]
16831         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
16832         but no long options are defined, just return 'W'.
16833
16834 2011-07-07  Bruno Haible  <bruno@clisp.org>
16835
16836         Avoid literal tabs.
16837         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
16838         variable containing a tab instead of a literal tab.
16839         Reported by Jim Meyering.
16840
16841 2011-07-07  Bruno Haible  <bruno@clisp.org>
16842
16843         Comments.
16844         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16845
16846 2011-07-06  Bruno Haible  <bruno@clisp.org>
16847
16848         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16849         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16850         <winsock2.h>.
16851         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16852         lib/sys_socket.in.h.
16853         (close, gethostname): Hide declarations from <winsock2.h>.
16854         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16855         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16856         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16857         (select): Don't override if gnulib's <sys/select.h> was already
16858         included.
16859         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16860         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16861         setsockopt, shutdown, select): Tweak indentation.
16862
16863 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16864
16865         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16866         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16867         in an application that does not use the sys_select module.
16868
16869 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16870
16871         poll: do not return 0 on timeout=-1
16872         * lib/poll.c: Loop with yield if no events occurred.
16873
16874 2011-07-06  Eric Blake  <eblake@redhat.com>
16875
16876         pthread_sigmask: always replace when not using pthread
16877         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16878         replacement when using some threading other than pthread.  Fix
16879         logic bug.
16880
16881 2011-07-06  Bruno Haible  <bruno@clisp.org>
16882
16883         Comments.
16884         * m4/printf.m4: Update comments about mingw.
16885
16886 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16887
16888         sys_select: define sigset_t more portably
16889         * lib/sys_select.in.h: Always include <sys/types.h>, since
16890         we now need sigset_t and mingw defines it there.
16891         Include <signal.h> before split inclusion guard, to avoid
16892         mishaps on Solaris, whose <signal.h> eventually includes us.
16893         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16894         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16895         which come from ...
16896         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16897         gl_CHECK_TYPE_SIGSET_T.
16898         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16899         does the real work.
16900         * modules/sys_select (Depends-on): Add 'signal'.
16901
16902         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16903         Suggested by Bruno Haible.
16904
16905         pselect: Use pthread_sigmask, not sigprocmask.
16906         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16907         multithreaded apps better than sigprocmask does.
16908         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16909         sigprocmask directly.
16910
16911 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16912
16913         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16914         Don't #undef,  since we don't need any underlying pselect.
16915         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16916         (Depends-on): Add select.
16917         (Link): Add $(LIBSOCKET).
16918         These changes suggested by Bruno Haible.
16919
16920         pselect: document better
16921         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16922         * doc/posix-functions/pselect.texi (pselect): Document new module.
16923
16924         pthread_sigmask: new module
16925         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16926         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16927         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16928         This is done only as a macro; I don't know how well that'll
16929         work for C++.  Move <sys/types.h> include before the include_next,
16930         to avoid mishap on Solaris.
16931         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16932         * modules/signal (Makefile.am): Substitute the check's results.
16933         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16934
16935         test-pselect: new module
16936         * modules/pselect-tests, tests/test-pselect.c: New files.
16937         * tests/test-select.c, tests/test-sys_select-c++.cc:
16938         If TEST_PSELECT is defined, test pselect instead of testing select.
16939
16940         * tests/test-sys_select.c (sigset_t): Test for it, too.
16941         Suggested by Bruno Haible.
16942
16943 2011-07-05  Eric Blake  <eblake@redhat.com>
16944
16945         snprintf: guarantee %1$d, for libintl
16946         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16947         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16948         * doc/posix-functions/snprintf.texi (snprintf): Update.
16949         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16950         * tests/test-snprintf.c (main): Enhance test.
16951         * tests/test-vsnprintf.c (main): Likewise.
16952
16953 2011-07-05  Jim Meyering  <meyering@redhat.com>
16954
16955         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16956         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16957         per Bruno's request, to accommodate this idiom (no space after "#")
16958         even when the function is inside an #if block:
16959         char *
16960         gets (char *s)
16961         #undef gets
16962         {
16963           ...
16964         }
16965
16966 2011-07-04  Jim Meyering  <meyering@redhat.com>
16967
16968         maint: indent with spaces, not TABs, and add a rule to check this
16969         * tests/test-userspec.c: Indent with spaces, not TABs.
16970         * tests/test-argp.c: Likewise.
16971         * tests/test-c-stack2.sh: Likewise.
16972         * tests/test-parse-duration.sh: Likewise
16973         * m4/strtod.m4: Likewise.
16974         * m4/alloca.m4: Likewise.
16975         * m4/pselect.m4: Likewise.
16976         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16977
16978 2011-07-03  Jim Meyering  <meyering@redhat.com>
16979
16980         maint.mk: correct omissions in prohibit_argmatch_without_use check
16981         This rule would mistakenly report that argmatch.h is included without
16982         use even when both the argmatch and invalid_arg macro were used.
16983         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16984         of argmatch and invalid_arg.
16985
16986 2011-07-03  Bruno Haible  <bruno@clisp.org>
16987
16988         Comments about EINTR.
16989         * lib/safe-read.h: Explain the purpose of this module.
16990         * lib/safe-write.h: Likewise.
16991         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16992         module.
16993         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16994         module.
16995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16996
16997 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16998
16999         xnanosleep: Rewrite to use new dtotimespec module.
17000         It has the conversion code that used to be in xnanosleep.
17001         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17002         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17003         (TIME_T_MAX): Remove.
17004         (xnanosleep): Rewrite in terms of dtotimespec.
17005         * modules/xnanosleep (Depends-on): Add dtotimespec.
17006         Remove intprops, stdbool.
17007
17008         timespec-add, timespec-sub: new modules
17009         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17010         * lib/timespec-add.c, lib/timespec-sub.c:
17011         * modules/timespec-add, modules/timespec-sub: New files.
17012
17013         dtotimespec: new module
17014         * lib/timespec.h (dtotimespec): New decl.
17015         * lib/dtotimespec.c, modules/dtotimespec: New files.
17016
17017         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17018
17019         pselect: new module
17020         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17021         (pselect): New decls.
17022         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17023         since the standard pselect decl uses 'restrict'.
17024         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17025         HAVE_PSELECT, REPLACE_PSELECT.
17026         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17027         HAVE_PSELECT, REPLACE_PSELECT.
17028         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17029
17030         sys_select: don't depend on sys_socket
17031         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17033         This fix works on GNU and GNU-like platforms, but has not been tested
17034         on native Windows.
17035         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17036         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17037         gl_HEADER_SYS_SOCKET.
17038         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17039         gl_PREREQ_SYS_H_WINSOCK2.
17040
17041 2011-06-29  Eric Blake  <eblake@redhat.com>
17042
17043         pipe2: fix C89 compile problem
17044         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17045         Reported by Bruno Haible.
17046
17047         pipe, pipe2: don't corrupt fd on error
17048         * lib/pipe.c (pipe): Leave fd unchanged on error.
17049         * lib/pipe2.c (pipe2): Likewise.
17050         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17051         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17052
17053 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17054
17055         mmap-anon: do not use regular expressions inadvertently
17056         * m4/mmap-anon.m4: Remove trailing period from strings sought
17057         in the output.
17058
17059 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17060
17061         nanosleep: fix integer overflow problem
17062         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17063         arithmetic wraps around on overflow.
17064
17065         nanosleep: simplify carrying
17066         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17067         first call to the underyling nanosleep, not for the last one.
17068         This doesn't fix any bugs, but it simplifies the computation of
17069         the remaining delay.  Found while auditing integer overflow issues.
17070
17071         dup2: remove test for existence of fcntl
17072         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17073         "#if HAVE_FCNTL", in the configure-time test program.
17074         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17075         and therefore speeds up "configure" a bit.  Found while
17076         adding the dup2 module to Emacs.
17077
17078 2011-06-24  Eric Blake  <eblake@redhat.com>
17079
17080         maint.mk: enhance useless header checks
17081         * top/maint.mk (_sc_header_without_use): Check both include
17082         styles.
17083         (sc_prohibit_assert_without_use)
17084         (sc_prohibit_close_stream_without_use)
17085         (sc_prohibit_getopt_without_use)
17086         (sc_prohibit_quotearg_without_use)
17087         (sc_prohibit_quote_without_use)
17088         (sc_prohibit_long_options_without_use)
17089         (sc_prohibit_inttostr_without_use)
17090         (sc_prohibit_ignore_value_without_use)
17091         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17092         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17093         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17094         (sc_prohibit_hash_pjw_without_use)
17095         (sc_prohibit_safe_read_without_use)
17096         (sc_prohibit_argmatch_without_use)
17097         (sc_prohibit_canonicalize_without_use)
17098         (sc_prohibit_root_dev_ino_without_use)
17099         (sc_prohibit_openat_without_use)
17100         (sc_prohibit_c_ctype_without_use)
17101         (sc_prohibit_signal_without_use)
17102         (sc_prohibit_stdio--_without_use)
17103         (sc_prohibit_stdio-safer_without_use)
17104         (sc_prohibit_strings_without_use)
17105         (sc_prohibit_intprops_without_use)
17106         (sc_prohibit_stddef_without_use)
17107         (sc_prohibit_xfreopen_without_use): Update clients.
17108
17109 2011-06-24  Jim Meyering  <meyering@redhat.com>
17110
17111         syntax-check: keep one maint.mk rule in sync with its header
17112         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17113         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17114         I prefer to avoid temporary files here, so use <(...), but that
17115         is not supported by /bin/sh, so...
17116         (SHELL): Define to /bin/bash.
17117
17118 2011-06-24  Eric Blake  <eblake@redhat.com>
17119
17120         maint.mk: update sc_prohibit_intprops_without_use
17121         * top/maint.mk (_intprops_names): Match recent changes.
17122
17123 2011-06-24  Bruno Haible  <bruno@clisp.org>
17124
17125         strerror-override: No-op tweak.
17126         * lib/strerror-override.h (strerror_override): Reorder conditions,
17127         for consistency with lib/strerror-override.c.
17128
17129 2011-06-23  Eric Blake  <eblake@redhat.com>
17130
17131         maint.mk: test further PATH_MAX issues
17132         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17133         (sc_prohibit_path_max_allocation): ...and also test alloca.
17134         Suggested by Jim Meyering.
17135
17136 2011-06-22  Eric Blake  <eblake@redhat.com>
17137
17138         maint.mk: add syntax-check to avoid char[PATH_MAX]
17139         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17140
17141         stat: be robust to PATH_MAX definition
17142         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17143         * modules/stat (Depends-on): Add verify.
17144
17145         link: work around IRIX bug
17146         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17147         * lib/link.c (rpl_link): Work around it.
17148         * tests/test-link.h (test_link): Enhance test.
17149         * doc/posix-functions/link.texi (link): Document the bug.
17150
17151         getopt: silence clang warning
17152         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17153         dereference.
17154         Reported by Gustavo Martin Domato.
17155
17156 2011-06-22  Jim Meyering  <meyering@redhat.com>
17157
17158         bootstrap: do not insert a blank line into each .gitignore file
17159         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17160
17161 2011-06-21  Eric Blake  <eblake@redhat.com>
17162
17163         perror: test for output mismatch
17164         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17165         perror on IRIX.
17166
17167         strerror_r: fix OpenBSD behavior on out-of-range
17168         * lib/strerror_r.c (strerror_r): Always use maximal string.
17169         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17170
17171         strerror_r: fix OpenBSD behavior on 0
17172         * lib/strerror-override.c (strerror_override): Also override 0
17173         when needed.
17174         * lib/strerror-override.h (strerror_override): Likewise.
17175         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17176         earlier.
17177         * lib/strerror_r.c (strerror_r): Likewise.
17178         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17179         behavior...
17180         (gl_FUNC_STRERROR_0): ...into new macro.
17181         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17182         is overridden.
17183         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17184         * modules/strerror-override (Files): Add strerror.m4.
17185         (configure.ac): Also provide override for 0 when needed.
17186         * doc/posix-functions/strerror.texi (strerror): Document this.
17187         * doc/posix-functions/perror.texi (perror): Likewise.
17188
17189         perror: adjust array size
17190         * modules/perror (Depends-on): Add strerror-override.
17191         * lib/perror.c (perror): Use it to avoid magic number.
17192
17193         strerror-override: reduce size
17194         * lib/strerror-override.c (strerror_override): Use fewer lines.
17195
17196 2011-06-20  Bruno Haible  <bruno@clisp.org>
17197
17198         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17199         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17200
17201 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17202
17203         alloca: port to compilers that can optimize like GCC 4.6.0
17204         * lib/alloca.c (find_stack_direction): New signature, taken from
17205         Autoconf git.  This works with GCC 4.6.0.  This code should never
17206         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17207         be used with other compilers that optimize as well as GCC 4.6.0 does.
17208         (alloca): Adjust to new signature.
17209         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17210         New macro, which patches Autoconf in a similar way.
17211
17212         c-stack: stop worrying about stack direction
17213         * lib/c-stack.c (find_stack_direction): Remove.
17214         (segv_handler): Don't worry about stack direction growth, as it's
17215         too much of a pain to configure this correctly, given how compilers
17216         are optimizing-away our stack-growth detection code.  Instead, assume
17217         that any access to just before or just after the stack is OK.
17218         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17219         Don't require AC_FUNC_ALLOCA; no longer needed.
17220
17221 2011-06-20  Eric Blake  <eblake@redhat.com>
17222
17223         test-stat: don't allocate PATH_MAX bytes
17224         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17225         PATH_MAX-sized buffer.
17226         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17227         * modules/stat-tests (Depends-on): Likewise.
17228         * tests/test-fstatat.c (includes): Drop pathmax.h.
17229         * tests/test-stat.c (includes): Likewise.
17230         Reported by Bruno Haible.
17231
17232 2011-06-20  Bruno Haible  <bruno@clisp.org>
17233
17234         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17235         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17236         * lib/float.c: New file.
17237         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17238         REPLACE_FLOAT_LDBL.
17239         * modules/float (Files): Add lib/float.c.
17240         (configure.ac): Invoke AC_LIBOBJ.
17241         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17242
17243 2011-06-20  Bruno Haible  <bruno@clisp.org>
17244
17245         Tests for module 'float'.
17246         * modules/float-tests: New file.
17247         * tests/test-float.c: New file.
17248
17249 2011-06-19  Bruno Haible  <bruno@clisp.org>
17250
17251         isinf: Coding style.
17252         * lib/isinf.c: Use GNU coding style.
17253
17254 2011-06-19  Bruno Haible  <bruno@clisp.org>
17255
17256         linkat test: Avoid test failure on AIX 7.1.
17257         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17258         * tests/test-link.h (test_link): Likewise.
17259
17260 2011-06-19  Bruno Haible  <bruno@clisp.org>
17261
17262         pread test: Avoid test failure on OpenBSD 4.9.
17263         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17264
17265 2011-06-19  Bruno Haible  <bruno@clisp.org>
17266
17267         sprintf-posix: Fix test failure on AIX 7.1.
17268         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17269         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17270         on AIX.
17271         * doc/posix-functions/fprintf.texi: Likewise.
17272         * doc/posix-functions/printf.texi: Likewise.
17273         * doc/posix-functions/snprintf.texi: Likewise.
17274         * doc/posix-functions/sprintf.texi: Likewise.
17275         * doc/posix-functions/vdprintf.texi: Likewise.
17276         * doc/posix-functions/vfprintf.texi: Likewise.
17277         * doc/posix-functions/vprintf.texi: Likewise.
17278         * doc/posix-functions/vsnprintf.texi: Likewise.
17279         * doc/posix-functions/vsprintf.texi: Likewise.
17280
17281 2011-06-19  Bruno Haible  <bruno@clisp.org>
17282
17283         roundl-ieee: Fix test failure on AIX 7.1.
17284         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17285         * doc/posix-functions/roundl.texi: Mention problem with negative
17286         arguments.
17287
17288 2011-06-19  Bruno Haible  <bruno@clisp.org>
17289
17290         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17291         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17292         * doc/posix-functions/round.texi: Mention problem with negative
17293         arguments.
17294         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17295
17296 2011-06-19  Bruno Haible  <bruno@clisp.org>
17297
17298         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17299         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17300         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17301         * doc/posix-functions/roundf.texi: Mention problem with negative
17302         arguments.
17303         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17304
17305 2011-06-19  Bruno Haible  <bruno@clisp.org>
17306
17307         ceilf-ieee: Work around bug on MacOS X 10.5.
17308         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17309
17310         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17311         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17312         IEEE compliant, avoid compiler optimizations.
17313         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17314         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17315         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17316         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17317         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17318         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17319         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17320         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17321         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17322         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17323
17324 2011-06-19  Bruno Haible  <bruno@clisp.org>
17325
17326         ceilf-ieee: Work around bug on AIX 7.1.
17327         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17328         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17329
17330 2011-06-19  Bruno Haible  <bruno@clisp.org>
17331
17332         ceil-ieee: Work around bug on AIX 7.1.
17333         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17334         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17335
17336 2011-06-18  Bruno Haible  <bruno@clisp.org>
17337
17338         fsync test: Avoid test failure on MacOS X and AIX.
17339         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17340         EINVAL.
17341
17342 2011-06-18  Bruno Haible  <bruno@clisp.org>
17343
17344         openat, fdopendir tests: Fix link errors.
17345         * modules/openat-tests (Depends-on): Add progname.
17346         * modules/fdopendir-tests (Depends-on): Likewise.
17347         * tests/test-fchownat.c: Include progname.h.
17348         (main): Call set_program_name.
17349         * tests/test-fstatat.c: Include progname.h.
17350         (main): Call set_program_name.
17351         * tests/test-mkdirat.c: Include progname.h.
17352         (main): Call set_program_name.
17353         * tests/test-openat.c: Include progname.h.
17354         (main): Call set_program_name.
17355         * tests/test-unlinkat.c: Include progname.h.
17356         (main): Call set_program_name.
17357         * tests/test-fdopendir.c: Include progname.h.
17358         (main): Call set_program_name.
17359
17360 2011-06-18  Bruno Haible  <bruno@clisp.org>
17361
17362         Doc update.
17363         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17364         HP-UX.
17365         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17366
17367 2011-06-18  Bruno Haible  <bruno@clisp.org>
17368
17369         getcwd tests: Avoid compilation error on HP-UX 11.31.
17370         * modules/getcwd-tests (Depends-on): Add pathmax.
17371         * tests/test-getcwd.c: Include pathmax.h.
17372
17373 2011-06-18  Bruno Haible  <bruno@clisp.org>
17374
17375         isfinite, isinf: Fix link error on AIX 6 and 7.
17376         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17377         needed, also test the macro with a 'float' argument.
17378         * m4/isinf.m4 (gl_ISINF): Likewise.
17379
17380 2011-06-18  Bruno Haible  <bruno@clisp.org>
17381
17382         getloadavg: Don't clobber LIBS. Regression from previous commit.
17383         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17384         AC_CHECK_LIB from here...
17385         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17386         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17387         gl_func_getloadavg_done.
17388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17389
17390 2011-06-18  Bruno Haible  <bruno@clisp.org>
17391
17392         clean-temp: Improve documentation.
17393         * lib/clean-temp.h: Explain better how to use this module.
17394         Reported by John Darrington <john@darrington.wattle.id.au>.
17395
17396 2011-06-17  Bruno Haible  <bruno@clisp.org>
17397
17398         pread, pwrite: Avoid cc warning on AIX.
17399         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17400         (pwrite): Likewise.
17401
17402 2011-06-17  Bruno Haible  <bruno@clisp.org>
17403
17404         spawn-pipe tests: Fix link error.
17405         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17406         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17407
17408 2011-06-17  Bruno Haible  <bruno@clisp.org>
17409
17410         Tests: Remove unnecessary dependency.
17411         * modules/canonicalize-tests (Depends-on): Remove progname.
17412         * modules/chown-tests (Depends-on): Likewise.
17413         * modules/dirname-tests (Depends-on): Likewise.
17414         * modules/fdopendir-tests (Depends-on): Likewise.
17415         * modules/fdutimensat-tests (Depends-on): Likewise.
17416         * modules/hash-tests (Depends-on): Likewise.
17417         * modules/lchown-tests (Depends-on): Likewise.
17418         * modules/linkat-tests (Depends-on): Likewise.
17419         * modules/renameat-tests (Depends-on): Likewise.
17420         * modules/spawn-pipe-tests (Depends-on): Likewise.
17421         * modules/utimensat-tests (Depends-on): Likewise.
17422
17423 2011-06-17  Bruno Haible  <bruno@clisp.org>
17424
17425         spawn-pipe tests: Fix link error.
17426         * tests/test-spawn-pipe-child.c: Undefine fflush.
17427
17428 2011-06-17  Bruno Haible  <bruno@clisp.org>
17429
17430         Fix tests link errors.
17431         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17432         * modules/chown-tests (Makefile.am): Don't link test-chown with
17433         LIBINTL.
17434         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17435         LIBINTL.
17436         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17437         LIBINTL.
17438         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17439         LIBINTL.
17440
17441 2011-06-16  Bruno Haible  <bruno@clisp.org>
17442
17443         crypto/gc-sha1: Fix recent regression.
17444         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17445         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17446
17447         crypto/gc-md5: Fix recent regression.
17448         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17449
17450         crypto/gc-md4: Fix recent regression.
17451         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17452         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17453
17454         crypto/gc-arctwo: Fix recent regression.
17455         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17456         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17457
17458         crypto/gc-rijndael: Fix recent regression.
17459         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17460         (configure.ac): Invoke AC_LIBOBJ here.
17461         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17463
17464         crypto/gc-hmac-sha1: Fix recent regression.
17465         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17466         (configure.ac): Invoke AC_LIBOBJ here.
17467         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17469
17470         crypto/gc-hmac-md5: Fix recent regression.
17471         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17472         (configure.ac): Invoke AC_LIBOBJ here.
17473         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17474         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17475
17476         crypto/gc-des: Fix recent regression.
17477         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17478         (configure.ac): Invoke AC_LIBOBJ here.
17479         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17480         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17481
17482         crypto/gc-arcfour: Fix recent regression.
17483         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17484         (configure.ac): Invoke AC_LIBOBJ here.
17485         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17487
17488 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17489
17490         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17491         After the 2011-05-21 change, this macro requires
17492         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17493         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17494
17495 2011-06-16  Bruno Haible  <bruno@clisp.org>
17496
17497         fprintftime: Move AC_LIBOBJ invocations to module description.
17498         * m4/fprintftime.m4: Remove file.
17499         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17500         (configure.ac): Remove gl_FPRINTFTIME call.
17501         (Makefile.am): Augment lib_SOURCES.
17502         Reported by Jim Meyering.
17503
17504 2011-06-16  Bruno Haible  <bruno@clisp.org>
17505
17506         tmpfile-safer: Finish 2011-05-23 commit.
17507         * m4/stdio-safer.m4: Really remove file.
17508         Reported by Jim Meyering.
17509
17510 2011-06-16  Bruno Haible  <bruno@clisp.org>
17511
17512         syntax-check: Fix typo.
17513         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17514         printf-posix.m4.
17515         Reported by Jim Meyering.
17516
17517 2011-06-13  Jim Meyering  <meyering@redhat.com>
17518
17519         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17520         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17521
17522 2011-05-23  Bruno Haible  <bruno@clisp.org>
17523
17524         yesno: Move AC_LIBOBJ invocations to module description.
17525         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17526         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17527
17528 2011-05-23  Bruno Haible  <bruno@clisp.org>
17529
17530         xstrtol: Move AC_LIBOBJ invocations to module description.
17531         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17532         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17533
17534 2011-05-23  Bruno Haible  <bruno@clisp.org>
17535
17536         xstrtold: Move AC_LIBOBJ invocations to module description.
17537         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17538         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17539
17540 2011-05-23  Bruno Haible  <bruno@clisp.org>
17541
17542         xstrtod: Move AC_LIBOBJ invocations to module description.
17543         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17544         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17545
17546 2011-05-23  Bruno Haible  <bruno@clisp.org>
17547
17548         xnanosleep: Move AC_LIBOBJ invocations to module description.
17549         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17550         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17551
17552 2011-05-23  Bruno Haible  <bruno@clisp.org>
17553
17554         xgetcwd: Move AC_LIBOBJ invocations to module description.
17555         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17556         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17557
17558 2011-05-23  Bruno Haible  <bruno@clisp.org>
17559
17560         xalloc: Move AC_LIBOBJ invocations to module description.
17561         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17562         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17563
17564 2011-05-23  Bruno Haible  <bruno@clisp.org>
17565
17566         write-any-file: Move AC_LIBOBJ invocations to module description.
17567         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17568         invocation.
17569         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17570
17571 2011-05-23  Bruno Haible  <bruno@clisp.org>
17572
17573         utimens: Move AC_LIBOBJ invocations to module description.
17574         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17575         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17576
17577 2011-05-23  Bruno Haible  <bruno@clisp.org>
17578
17579         utimecmp: Move AC_LIBOBJ invocations to module description.
17580         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17581         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17582
17583 2011-05-23  Bruno Haible  <bruno@clisp.org>
17584
17585         userspec: Move AC_LIBOBJ invocations to module description.
17586         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17587         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17588
17589 2011-05-23  Bruno Haible  <bruno@clisp.org>
17590
17591         unlinkdir: Move AC_LIBOBJ invocations to module description.
17592         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17593         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17594
17595 2011-05-23  Bruno Haible  <bruno@clisp.org>
17596
17597         unistd-safer: Move AC_LIBOBJ invocations to module description.
17598         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17599         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17600
17601 2011-05-23  Bruno Haible  <bruno@clisp.org>
17602
17603         tempname: Move AC_LIBOBJ invocations to module description.
17604         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17605         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17606
17607 2011-05-23  Bruno Haible  <bruno@clisp.org>
17608
17609         strftime: Move AC_LIBOBJ invocations to module description.
17610         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17611         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17612
17613 2011-05-23  Bruno Haible  <bruno@clisp.org>
17614
17615         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17616         * m4/stdlib-safer.m4: Remove file.
17617         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17618         (configure.ac): Remove gl_STDLIB_SAFER call.
17619         (Makefile.am): Augment lib_SOURCES.
17620
17621 2011-05-23  Bruno Haible  <bruno@clisp.org>
17622
17623         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17624         * m4/stdio-safer.m4: Remove file.
17625         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17626         (configure.ac): Remove gl_TMPFILE_SAFER call.
17627         (Makefile.am): Augment lib_SOURCES.
17628
17629 2011-05-23  Bruno Haible  <bruno@clisp.org>
17630
17631         popen-safer: Move AC_LIBOBJ invocations to module description.
17632         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17633         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17634         (configure.ac): Remove gl_POPEN_SAFER call.
17635         (Makefile.am): Augment lib_SOURCES.
17636
17637 2011-05-23  Bruno Haible  <bruno@clisp.org>
17638
17639         freopen-safer: Move AC_LIBOBJ invocations to module description.
17640         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17641         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17642         (configure.ac): Remove gl_FREOPEN_SAFER call.
17643         (Makefile.am): Augment lib_SOURCES.
17644
17645 2011-05-23  Bruno Haible  <bruno@clisp.org>
17646
17647         fopen-safer: Move AC_LIBOBJ invocations to module description.
17648         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17649         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17650         (configure.ac): Remove gl_FOPEN_SAFER call.
17651         (Makefile.am): Augment lib_SOURCES.
17652
17653 2011-05-23  Bruno Haible  <bruno@clisp.org>
17654
17655         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17656         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17657         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17658
17659 2011-05-23  Bruno Haible  <bruno@clisp.org>
17660
17661         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17662         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17663         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17664
17665 2011-05-23  Bruno Haible  <bruno@clisp.org>
17666
17667         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17668         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17669         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17670
17671 2011-05-23  Bruno Haible  <bruno@clisp.org>
17672
17673         settime: Move AC_LIBOBJ invocations to module description.
17674         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17675         * modules/settime (Makefile.am): Augment lib_SOURCES.
17676
17677 2011-05-23  Bruno Haible  <bruno@clisp.org>
17678
17679         savedir: Move AC_LIBOBJ invocations to module description.
17680         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17681         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17682
17683 2011-05-23  Bruno Haible  <bruno@clisp.org>
17684
17685         save-cwd: Move AC_LIBOBJ invocations to module description.
17686         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17687         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17688
17689 2011-05-23  Bruno Haible  <bruno@clisp.org>
17690
17691         same: Move AC_LIBOBJ invocations to module description.
17692         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17693         * modules/same (Makefile.am): Augment lib_SOURCES.
17694
17695 2011-05-23  Bruno Haible  <bruno@clisp.org>
17696
17697         safe-write: Move AC_LIBOBJ invocations to module description.
17698         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17699         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17700         instead of gl_SAFE_WRITE.
17701         (Makefile.am): Augment lib_SOURCES.
17702
17703 2011-05-23  Bruno Haible  <bruno@clisp.org>
17704
17705         safe-read: Move AC_LIBOBJ invocations to module description.
17706         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17707         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17708         of gl_SAFE_READ.
17709         (Makefile.am): Augment lib_SOURCES.
17710
17711 2011-05-23  Bruno Haible  <bruno@clisp.org>
17712
17713         safe-alloc: Move AC_LIBOBJ invocations to module description.
17714         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17715         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17716
17717 2011-05-23  Bruno Haible  <bruno@clisp.org>
17718
17719         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17720         * m4/rijndael.m4: Remove file.
17721         * modules/crypto/rijndael (Files): Remove it.
17722         (configure.ac): Remove gl_RIJNDAEL call.
17723         (Makefile.am): Augment lib_SOURCES.
17724
17725 2011-05-23  Bruno Haible  <bruno@clisp.org>
17726
17727         readtokens: Move AC_LIBOBJ invocations to module description.
17728         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17729         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17730
17731 2011-05-23  Bruno Haible  <bruno@clisp.org>
17732
17733         read-file: Move AC_LIBOBJ invocations to module description.
17734         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17735         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17736         of gl_FUNC_READ_FILE.
17737         (Makefile.am): Augment lib_SOURCES.
17738
17739 2011-05-23  Bruno Haible  <bruno@clisp.org>
17740
17741         quotearg: Move AC_LIBOBJ invocations to module description.
17742         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17743         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17744
17745 2011-05-23  Bruno Haible  <bruno@clisp.org>
17746
17747         quote: Move AC_LIBOBJ invocations to module description.
17748         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17749         * modules/quote (Makefile.am): Augment lib_SOURCES.
17750
17751 2011-05-23  Bruno Haible  <bruno@clisp.org>
17752
17753         posixver: Move AC_LIBOBJ invocations to module description.
17754         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17755         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17756
17757 2011-05-23  Bruno Haible  <bruno@clisp.org>
17758
17759         posixtm: Move AC_LIBOBJ invocations to module description.
17760         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17761         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17762
17763 2011-05-23  Bruno Haible  <bruno@clisp.org>
17764
17765         physmem: Move AC_LIBOBJ invocations to module description.
17766         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17767         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17768
17769 2011-05-23  Bruno Haible  <bruno@clisp.org>
17770
17771         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17772         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17773         invocation.
17774         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17775
17776 2011-05-23  Bruno Haible  <bruno@clisp.org>
17777
17778         mpsort: Move AC_LIBOBJ invocations to module description.
17779         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17780         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17781
17782 2011-05-23  Bruno Haible  <bruno@clisp.org>
17783
17784         modechange: Move AC_LIBOBJ invocations to module description.
17785         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17786         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17787
17788 2011-05-23  Bruno Haible  <bruno@clisp.org>
17789
17790         mkdir-p: Move AC_LIBOBJ invocations to module description.
17791         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17792         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17793
17794 2011-05-23  Bruno Haible  <bruno@clisp.org>
17795
17796         mkancesdirs: Move AC_LIBOBJ invocations to module description.
17797         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
17798         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
17799
17800 2011-05-23  Bruno Haible  <bruno@clisp.org>
17801
17802         mgetgroups: Move AC_LIBOBJ invocations to module description.
17803         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
17804         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
17805
17806 2011-05-23  Bruno Haible  <bruno@clisp.org>
17807
17808         memxor: Move AC_LIBOBJ invocations to module description.
17809         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17810         * modules/memxor (Makefile.am): Augment lib_SOURCES.
17811
17812 2011-05-23  Bruno Haible  <bruno@clisp.org>
17813
17814         memcoll: Move AC_LIBOBJ invocations to module description.
17815         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
17816         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
17817
17818 2011-05-23  Bruno Haible  <bruno@clisp.org>
17819
17820         memcasecmp: Move AC_LIBOBJ invocations to module description.
17821         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
17822         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
17823
17824 2011-05-23  Bruno Haible  <bruno@clisp.org>
17825
17826         crypto/md5: Move AC_LIBOBJ invocations to module description.
17827         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
17828         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
17829
17830 2011-05-23  Bruno Haible  <bruno@clisp.org>
17831
17832         crypto/md4: Move AC_LIBOBJ invocations to module description.
17833         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
17834         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
17835
17836 2011-05-23  Bruno Haible  <bruno@clisp.org>
17837
17838         crypto/md2: Move AC_LIBOBJ invocations to module description.
17839         * m4/md2.m4: Remove file.
17840         * modules/crypto/md2 (Files): Remove it.
17841         (configure.ac): Remove gl_MD2 call.
17842         (Makefile.am): Augment lib_SOURCES.
17843
17844 2011-05-23  Bruno Haible  <bruno@clisp.org>
17845
17846         long-options: Move AC_LIBOBJ invocations to module description.
17847         * m4/long-options.m4: Remove file.
17848         * modules/long-options (Files): Remove it.
17849         (configure.ac): Remove gl_LONG_OPTIONS call.
17850         (Makefile.am): Augment lib_SOURCES.
17851
17852 2011-05-23  Bruno Haible  <bruno@clisp.org>
17853
17854         i-ring: Move AC_LIBOBJ invocations to module description.
17855         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17856         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17857
17858 2011-05-23  Bruno Haible  <bruno@clisp.org>
17859
17860         idcache: Move AC_LIBOBJ invocations to module description.
17861         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17862         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17863
17864 2011-05-23  Bruno Haible  <bruno@clisp.org>
17865
17866         human: Move AC_LIBOBJ invocations to module description.
17867         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17868         * modules/human (Makefile.am): Augment lib_SOURCES.
17869
17870 2011-05-23  Bruno Haible  <bruno@clisp.org>
17871
17872         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17873         * m4/hmac-sha1.m4: Remove file.
17874         * modules/crypto/hmac-sha1 (Files): Remove it.
17875         (configure.ac): Remove gl_HMAC_SHA1 call.
17876         (Makefile.am): Augment lib_SOURCES.
17877
17878 2011-05-23  Bruno Haible  <bruno@clisp.org>
17879
17880         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17881         * m4/hmac-md5.m4: Remove file.
17882         * modules/crypto/hmac-md5 (Files): Remove it.
17883         (configure.ac): Remove gl_HMAC_MD5 call.
17884         (Makefile.am): Augment lib_SOURCES.
17885
17886 2011-05-23  Bruno Haible  <bruno@clisp.org>
17887
17888         hash: Move AC_LIBOBJ invocations to module description.
17889         * m4/hash.m4: Remove file.
17890         * modules/hash (Files): Remove it.
17891         (configure.ac): Remove gl_HASH call.
17892         (Makefile.am): Augment lib_SOURCES.
17893
17894 2011-05-23  Bruno Haible  <bruno@clisp.org>
17895
17896         hard-locale: Move AC_LIBOBJ invocations to module description.
17897         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17898         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17899
17900 2011-05-23  Bruno Haible  <bruno@clisp.org>
17901
17902         getugroups: Move AC_LIBOBJ invocations to module description.
17903         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17904         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17905
17906 2011-05-23  Bruno Haible  <bruno@clisp.org>
17907
17908         gettime: Move AC_LIBOBJ invocations to module description.
17909         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17910         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17911
17912 2011-05-23  Bruno Haible  <bruno@clisp.org>
17913
17914         getndelim2: Move AC_LIBOBJ invocations to module description.
17915         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17916         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17917
17918 2011-05-23  Bruno Haible  <bruno@clisp.org>
17919
17920         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17921         * m4/gc-pbkdf2-sha1.m4: Remove file.
17922         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17923         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17924         (Makefile.am): Augment lib_SOURCES.
17925
17926 2011-05-23  Bruno Haible  <bruno@clisp.org>
17927
17928         fts: Move AC_LIBOBJ invocations to module description.
17929         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17930         * modules/fts (configure.ac): ... to here.
17931
17932 2011-05-23  Bruno Haible  <bruno@clisp.org>
17933
17934         file-type: Move AC_LIBOBJ invocations to module description.
17935         * m4/file-type.m4: Remove file.
17936         * modules/file-type (Files): Remove it.
17937         (configure.ac): Remove gl_FILE_TYPE call.
17938         (Makefile.am): Augment lib_SOURCES.
17939
17940 2011-05-23  Bruno Haible  <bruno@clisp.org>
17941
17942         filenamecat*: Respect rules for use of AC_LIBOBJ.
17943         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17944         Remove AC_LIBOBJ invocation.
17945         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17946         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17947
17948 2011-05-23  Bruno Haible  <bruno@clisp.org>
17949
17950         filemode: Move AC_LIBOBJ invocations to module description.
17951         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17952         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17953
17954 2011-05-23  Bruno Haible  <bruno@clisp.org>
17955
17956         openat-safer: Move AC_LIBOBJ invocations to module description.
17957         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17958         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17959
17960 2011-05-23  Bruno Haible  <bruno@clisp.org>
17961
17962         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17963         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17964         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17965
17966 2011-05-23  Bruno Haible  <bruno@clisp.org>
17967
17968         exclude: Move AC_LIBOBJ invocations to module description.
17969         * m4/exclude.m4: Remove file.
17970         * modules/exclude (Files): Remove it.
17971         (configure.ac): Remove gl_EXCLUDE call.
17972         (Makefile.am): Augment lib_SOURCES.
17973
17974 2011-05-23  Bruno Haible  <bruno@clisp.org>
17975
17976         dirname*: Respect rules for use of AC_LIBOBJ.
17977         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17978         invocations.
17979         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17980         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17981
17982 2011-05-23  Bruno Haible  <bruno@clisp.org>
17983
17984         dirent-safer: Move AC_LIBOBJ invocations to module description.
17985         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17986         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17987
17988 2011-05-23  Bruno Haible  <bruno@clisp.org>
17989
17990         crypto/des: Move AC_LIBOBJ invocations to module description.
17991         * m4/des.m4: Remove file.
17992         * modules/crypto/des (Files): Remove it.
17993         (configure.ac): Remove gl_DES call.
17994         (Makefile.am): Augment lib_SOURCES.
17995
17996 2011-05-23  Bruno Haible  <bruno@clisp.org>
17997
17998         cycle-check: Move AC_LIBOBJ invocations to module description.
17999         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18000         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18001
18002 2011-05-23  Bruno Haible  <bruno@clisp.org>
18003
18004         c-strtold: Move AC_LIBOBJ invocations to module description.
18005         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18006         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18007
18008 2011-05-23  Bruno Haible  <bruno@clisp.org>
18009
18010         c-strtod: Move AC_LIBOBJ invocations to module description.
18011         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18012         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18013
18014 2011-05-23  Bruno Haible  <bruno@clisp.org>
18015
18016         crc: Move AC_LIBOBJ invocations to module description.
18017         * m4/crc.m4: Remove file.
18018         * modules/crc (Files): Remove it.
18019         (configure.ac): Remove gl_CRC call.
18020         (Makefile.am): Augment lib_SOURCES.
18021
18022 2011-05-23  Bruno Haible  <bruno@clisp.org>
18023
18024         close-stream: Move AC_LIBOBJ invocations to module description.
18025         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18026         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18027
18028 2011-05-23  Bruno Haible  <bruno@clisp.org>
18029
18030         closeout: Move AC_LIBOBJ invocations to module description.
18031         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18032         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18033
18034 2011-05-23  Bruno Haible  <bruno@clisp.org>
18035
18036         closein: Move AC_LIBOBJ invocations to module description.
18037         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18038         * modules/closein (Makefile.am): Augment lib_SOURCES.
18039
18040 2011-05-23  Bruno Haible  <bruno@clisp.org>
18041
18042         cloexec: Move AC_LIBOBJ invocations to module description.
18043         * m4/cloexec.m4: Remove file.
18044         * modules/cloexec (Files): Remove it.
18045         (configure.ac): Remove gl_CLOEXEC call.
18046         (Makefile.am): Augment lib_SOURCES.
18047
18048 2011-05-23  Bruno Haible  <bruno@clisp.org>
18049
18050         check-version: Move AC_LIBOBJ invocations to module description.
18051         * m4/check-version.m4: Remove file.
18052         * modules/check-version (Files): Remove it.
18053         (configure.ac): Remove gl_CHECK_VERSION call.
18054         (Makefile.am): Augment lib_SOURCES.
18055
18056 2011-05-23  Bruno Haible  <bruno@clisp.org>
18057
18058         chdir-safer: Move AC_LIBOBJ invocations to module description.
18059         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18060         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18061
18062 2011-05-23  Bruno Haible  <bruno@clisp.org>
18063
18064         canonicalize: Move AC_LIBOBJ invocations to module description.
18065         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18066         AC_LIBOBJ invocation.
18067         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18068
18069 2011-05-23  Bruno Haible  <bruno@clisp.org>
18070
18071         canon-host: Move AC_LIBOBJ invocations to module description.
18072         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18073         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18074         instead of gl_CANON_HOST.
18075         (Makefile.am): Augment lib_SOURCES.
18076
18077 2011-05-23  Bruno Haible  <bruno@clisp.org>
18078
18079         backupfile: Move AC_LIBOBJ invocations to module description.
18080         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18081         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18082
18083 2011-05-23  Bruno Haible  <bruno@clisp.org>
18084
18085         argmatch: Move AC_LIBOBJ invocations to module description.
18086         * m4/argmatch.m4: Remove file.
18087         * modules/argmatch (Files): Remove it.
18088         (configure.ac): Remove gl_ARGMATCH call.
18089         (Makefile.am): Augment lib_SOURCES.
18090
18091 2011-05-23  Bruno Haible  <bruno@clisp.org>
18092
18093         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18094         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18095         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18096
18097 2011-05-23  Bruno Haible  <bruno@clisp.org>
18098
18099         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18100         * m4/arcfour.m4: Remove file.
18101         * modules/crypto/arcfour (Files): Remove it.
18102         (configure.ac): Remove gl_ARCFOUR call.
18103         (Makefile.am): Augment lib_SOURCES.
18104
18105 2011-05-22  Bruno Haible  <bruno@clisp.org>
18106
18107         write: Move AC_LIBOBJ invocations to module description.
18108         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18109         * modules/write (configure.ac): ... to here.
18110
18111 2011-05-22  Bruno Haible  <bruno@clisp.org>
18112
18113         wmemset: Move AC_LIBOBJ invocations to module description.
18114         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18115         here...
18116         * modules/wmemset (configure.ac): ... to here.
18117
18118 2011-05-22  Bruno Haible  <bruno@clisp.org>
18119
18120         wmemmove: Move AC_LIBOBJ invocations to module description.
18121         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18122         here...
18123         * modules/wmemmove (configure.ac): ... to here.
18124
18125 2011-05-22  Bruno Haible  <bruno@clisp.org>
18126
18127         wmemcpy: Move AC_LIBOBJ invocations to module description.
18128         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18129         here...
18130         * modules/wmemcpy (configure.ac): ... to here.
18131
18132 2011-05-22  Bruno Haible  <bruno@clisp.org>
18133
18134         wmemcmp: Move AC_LIBOBJ invocations to module description.
18135         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18136         here...
18137         * modules/wmemcmp (configure.ac): ... to here.
18138
18139 2011-05-22  Bruno Haible  <bruno@clisp.org>
18140
18141         wmemchr: Move AC_LIBOBJ invocations to module description.
18142         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18143         here...
18144         * modules/wmemchr (configure.ac): ... to here.
18145
18146 2011-05-22  Bruno Haible  <bruno@clisp.org>
18147
18148         wcswidth: Move AC_LIBOBJ invocations to module description.
18149         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18150         here...
18151         * modules/wcswidth (configure.ac): ... to here.
18152
18153 2011-05-22  Bruno Haible  <bruno@clisp.org>
18154
18155         wcwidth: Respect rules for use of AC_LIBOBJ.
18156         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18157         invocation from here...
18158         * modules/wcwidth (configure.ac): ... to here.
18159         (Depends-on): Update conditions.
18160
18161 2011-05-22  Bruno Haible  <bruno@clisp.org>
18162
18163         wctype: Move AC_LIBOBJ invocations to module description.
18164         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18165         invocation from here...
18166         * modules/wctype (configure.ac): ... to here.
18167         (Depends-on): Update conditions.
18168
18169 2011-05-22  Bruno Haible  <bruno@clisp.org>
18170
18171         wctrans: Move AC_LIBOBJ invocations to module description.
18172         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18173         invocation from here...
18174         * modules/wctrans (configure.ac): ... to here.
18175
18176 2011-05-22  Bruno Haible  <bruno@clisp.org>
18177
18178         wctomb: Move AC_LIBOBJ invocations to module description.
18179         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18180         invocations from here...
18181         * modules/wctomb (configure.ac): ... to here.
18182
18183 2011-05-22  Bruno Haible  <bruno@clisp.org>
18184
18185         wctob: Move AC_LIBOBJ invocations to module description.
18186         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18187         gl_PREREQ_WCTOB invocations from here...
18188         * modules/wctob (configure.ac): ... to here.
18189         (Depends-on): Update conditions.
18190
18191 2011-05-22  Bruno Haible  <bruno@clisp.org>
18192
18193         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18194         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18195         here...
18196         * modules/wcsxfrm (configure.ac): ... to here.
18197
18198 2011-05-22  Bruno Haible  <bruno@clisp.org>
18199
18200         wcstok: Move AC_LIBOBJ invocations to module description.
18201         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18202         * modules/wcstok (configure.ac): ... to here.
18203
18204 2011-05-22  Bruno Haible  <bruno@clisp.org>
18205
18206         wcsstr: Move AC_LIBOBJ invocations to module description.
18207         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18208         * modules/wcsstr (configure.ac): ... to here.
18209
18210 2011-05-22  Bruno Haible  <bruno@clisp.org>
18211
18212         wcsspn: Move AC_LIBOBJ invocations to module description.
18213         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18214         * modules/wcsspn (configure.ac): ... to here.
18215
18216 2011-05-22  Bruno Haible  <bruno@clisp.org>
18217
18218         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18219         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18220         gl_PREREQ_WCSRTOMBS invocations from here...
18221         * modules/wcsrtombs (configure.ac): ... to here.
18222
18223 2011-05-22  Bruno Haible  <bruno@clisp.org>
18224
18225         wcsrchr: Move AC_LIBOBJ invocations to module description.
18226         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18227         here...
18228         * modules/wcsrchr (configure.ac): ... to here.
18229
18230 2011-05-22  Bruno Haible  <bruno@clisp.org>
18231
18232         wcspbrk: Move AC_LIBOBJ invocations to module description.
18233         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18234         here...
18235         * modules/wcspbrk (configure.ac): ... to here.
18236
18237 2011-05-22  Bruno Haible  <bruno@clisp.org>
18238
18239         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18240         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18241         gl_PREREQ_WCSNRTOMBS invocations from here...
18242         * modules/wcsnrtombs (configure.ac): ... to here.
18243
18244 2011-05-22  Bruno Haible  <bruno@clisp.org>
18245
18246         wcsnlen: Move AC_LIBOBJ invocations to module description.
18247         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18248         here...
18249         * modules/wcsnlen (configure.ac): ... to here.
18250
18251 2011-05-22  Bruno Haible  <bruno@clisp.org>
18252
18253         wcsncpy: Move AC_LIBOBJ invocations to module description.
18254         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18255         here...
18256         * modules/wcsncpy (configure.ac): ... to here.
18257
18258 2011-05-22  Bruno Haible  <bruno@clisp.org>
18259
18260         wcsncmp: Move AC_LIBOBJ invocations to module description.
18261         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18262         here...
18263         * modules/wcsncmp (configure.ac): ... to here.
18264
18265 2011-05-22  Bruno Haible  <bruno@clisp.org>
18266
18267         wcsncat: Move AC_LIBOBJ invocations to module description.
18268         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18269         here...
18270         * modules/wcsncat (configure.ac): ... to here.
18271
18272 2011-05-22  Bruno Haible  <bruno@clisp.org>
18273
18274         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18275         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18276         from here...
18277         * modules/wcsncasecmp (configure.ac): ... to here.
18278
18279 2011-05-22  Bruno Haible  <bruno@clisp.org>
18280
18281         wcslen: Move AC_LIBOBJ invocations to module description.
18282         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18283         * modules/wcslen (configure.ac): ... to here.
18284
18285 2011-05-22  Bruno Haible  <bruno@clisp.org>
18286
18287         wcsdup: Move AC_LIBOBJ invocations to module description.
18288         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18289         * modules/wcsdup (configure.ac): ... to here.
18290
18291 2011-05-22  Bruno Haible  <bruno@clisp.org>
18292
18293         wcscspn: Move AC_LIBOBJ invocations to module description.
18294         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18295         here...
18296         * modules/wcscspn (configure.ac): ... to here.
18297
18298 2011-05-22  Bruno Haible  <bruno@clisp.org>
18299
18300         wcscpy: Move AC_LIBOBJ invocations to module description.
18301         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18302         * modules/wcscpy (configure.ac): ... to here.
18303
18304 2011-05-22  Bruno Haible  <bruno@clisp.org>
18305
18306         wcscoll: Move AC_LIBOBJ invocations to module description.
18307         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18308         here...
18309         * modules/wcscoll (configure.ac): ... to here.
18310
18311 2011-05-22  Bruno Haible  <bruno@clisp.org>
18312
18313         wcscmp: Move AC_LIBOBJ invocations to module description.
18314         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18315         * modules/wcscmp (configure.ac): ... to here.
18316
18317 2011-05-22  Bruno Haible  <bruno@clisp.org>
18318
18319         wcschr: Move AC_LIBOBJ invocations to module description.
18320         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18321         * modules/wcschr (configure.ac): ... to here.
18322
18323 2011-05-22  Bruno Haible  <bruno@clisp.org>
18324
18325         wcscat: Move AC_LIBOBJ invocations to module description.
18326         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18327         * modules/wcscat (configure.ac): ... to here.
18328
18329 2011-05-22  Bruno Haible  <bruno@clisp.org>
18330
18331         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18332         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18333         here...
18334         * modules/wcscasecmp (configure.ac): ... to here.
18335
18336 2011-05-22  Bruno Haible  <bruno@clisp.org>
18337
18338         wcrtomb: Move AC_LIBOBJ invocations to module description.
18339         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18340         invocations from here...
18341         * modules/wcrtomb (configure.ac): ... to here.
18342
18343 2011-05-22  Bruno Haible  <bruno@clisp.org>
18344
18345         wcpncpy: Move AC_LIBOBJ invocations to module description.
18346         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18347         here...
18348         * modules/wcpncpy (configure.ac): ... to here.
18349
18350 2011-05-22  Bruno Haible  <bruno@clisp.org>
18351
18352         wcpcpy: Move AC_LIBOBJ invocations to module description.
18353         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18354         * modules/wcpcpy (configure.ac): ... to here.
18355
18356 2011-05-22  Bruno Haible  <bruno@clisp.org>
18357
18358         waitpid: Move AC_LIBOBJ invocations to module description.
18359         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18360         invocation from here...
18361         * modules/waitpid (configure.ac): ... to here.
18362
18363 2011-05-22  Bruno Haible  <bruno@clisp.org>
18364
18365         utimensat: Move AC_LIBOBJ invocations to module description.
18366         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18367         here...
18368         * modules/utimensat (configure.ac): ... to here.
18369
18370 2011-05-22  Bruno Haible  <bruno@clisp.org>
18371
18372         usleep: Move AC_LIBOBJ invocations to module description.
18373         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18374         here...
18375         * modules/usleep (configure.ac): ... to here.
18376
18377 2011-05-22  Bruno Haible  <bruno@clisp.org>
18378
18379         unlockpt: Move AC_LIBOBJ invocations to module description.
18380         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18381         gl_PREREQ_UNLOCKPT invocations from here...
18382         * modules/unlockpt (configure.ac): ... to here.
18383
18384 2011-05-22  Bruno Haible  <bruno@clisp.org>
18385
18386         unlink: Respect rules for use of AC_LIBOBJ.
18387         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18388         * modules/unlink (configure.ac): ... to here.
18389
18390 2011-05-22  Bruno Haible  <bruno@clisp.org>
18391
18392         uname: Move AC_LIBOBJ invocations to module description.
18393         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18394         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18395         here...
18396         * modules/uname (configure.ac): ... to here.
18397
18398 2011-05-22  Bruno Haible  <bruno@clisp.org>
18399
18400         ttyname_r: Move AC_LIBOBJ invocations to module description.
18401         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18402         gl_PREREQ_TTYNAME_R invocations from here...
18403         * modules/ttyname_r (configure.ac): ... to here.
18404
18405 2011-05-22  Bruno Haible  <bruno@clisp.org>
18406
18407         tsearch: Move AC_LIBOBJ invocations to module description.
18408         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18409         invocations from here...
18410         * modules/tsearch (configure.ac): ... to here.
18411
18412 2011-05-22  Bruno Haible  <bruno@clisp.org>
18413
18414         towctrans: Move AC_LIBOBJ invocations to module description.
18415         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18416         AC_LIBOBJ invocation from here...
18417         * modules/towctrans (configure.ac): ... to here.
18418
18419 2011-05-22  Bruno Haible  <bruno@clisp.org>
18420
18421         tmpfile: Move AC_LIBOBJ invocations to module description.
18422         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18423         invocations from here...
18424         * modules/tmpfile (configure.ac): ... to here.
18425
18426 2011-05-22  Bruno Haible  <bruno@clisp.org>
18427
18428         times: Move AC_LIBOBJ invocations to module description.
18429         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18430         * modules/times (configure.ac): ... to here.
18431
18432 2011-05-22  Bruno Haible  <bruno@clisp.org>
18433
18434         time_r: Move AC_LIBOBJ invocations to module description.
18435         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18436         invocations from here...
18437         * modules/time_r (configure.ac): ... to here.
18438
18439 2011-05-22  Bruno Haible  <bruno@clisp.org>
18440
18441         timegm: Move AC_LIBOBJ invocations to module description.
18442         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18443         invocations from here...
18444         * modules/timegm (configure.ac): ... to here.
18445
18446 2011-05-22  Bruno Haible  <bruno@clisp.org>
18447
18448         tcgetsid: Move AC_LIBOBJ invocations to module description.
18449         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18450         and gl_PREREQ_TCGETSID invocations from here...
18451         * modules/tcgetsid (configure.ac): ... to here.
18452         (Depends-on): Update conditions.
18453
18454 2011-05-22  Bruno Haible  <bruno@clisp.org>
18455
18456         symlinkat: Move AC_LIBOBJ invocations to module description.
18457         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18458         here...
18459         * modules/symlinkat (configure.ac): ... to here.
18460
18461 2011-05-22  Bruno Haible  <bruno@clisp.org>
18462
18463         symlink: Move AC_LIBOBJ invocations to module description.
18464         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18465         here...
18466         * modules/symlink (configure.ac): ... to here.
18467
18468 2011-05-22  Bruno Haible  <bruno@clisp.org>
18469
18470         strverscmp: Move AC_LIBOBJ invocations to module description.
18471         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18472         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18473         from here...
18474         * modules/strverscmp (configure.ac): ... to here.
18475
18476 2011-05-22  Bruno Haible  <bruno@clisp.org>
18477
18478         strtok_r: Move AC_LIBOBJ invocations to module description.
18479         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18480         and gl_PREREQ_STRTOK_R invocations from here...
18481         * modules/strtok_r (configure.ac): ... to here.
18482         (Depends-on): Update conditions.
18483
18484 2011-05-22  Bruno Haible  <bruno@clisp.org>
18485
18486         strtoumax: Move AC_LIBOBJ invocations to module description.
18487         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18488         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18489         from here...
18490         * modules/strtoumax (configure.ac): ... to here.
18491
18492 2011-05-22  Bruno Haible  <bruno@clisp.org>
18493
18494         strtoimax: Move AC_LIBOBJ invocations to module description.
18495         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18496         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18497         from here...
18498         * modules/strtoimax (configure.ac): ... to here.
18499
18500 2011-05-22  Bruno Haible  <bruno@clisp.org>
18501
18502         strtoull: Move AC_LIBOBJ invocations to module description.
18503         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18504         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18505         from here...
18506         * modules/strtoull (configure.ac): ... to here.
18507
18508 2011-05-22  Bruno Haible  <bruno@clisp.org>
18509
18510         strtoll: Move AC_LIBOBJ invocations to module description.
18511         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18512         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18513         here...
18514         * modules/strtoll (configure.ac): ... to here.
18515
18516 2011-05-22  Bruno Haible  <bruno@clisp.org>
18517
18518         strtoul: Move AC_LIBOBJ invocations to module description.
18519         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18520         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18521         * modules/strtoul (configure.ac): ... to here.
18522
18523 2011-05-22  Bruno Haible  <bruno@clisp.org>
18524
18525         strtol: Move AC_LIBOBJ invocations to module description.
18526         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18527         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18528         * modules/strtol (configure.ac): ... to here.
18529
18530 2011-05-22  Bruno Haible  <bruno@clisp.org>
18531
18532         strtod: Move AC_LIBOBJ invocations to module description.
18533         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18534         invocations from here...
18535         * modules/strtod (configure.ac): ... to here.
18536
18537 2011-05-22  Bruno Haible  <bruno@clisp.org>
18538
18539         strstr*: Move AC_LIBOBJ invocations to module description.
18540         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18541         invocations from here...
18542         * modules/strstr-simple (configure.ac): ... to here.
18543         * modules/strstr (configure.ac): ... and here.
18544
18545 2011-05-22  Bruno Haible  <bruno@clisp.org>
18546
18547         strsignal: Move AC_LIBOBJ invocations to module description.
18548         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18549         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18550         * modules/strsignal (configure.ac): ... to here.
18551         (Depends-on): Update conditions.
18552
18553 2011-05-22  Bruno Haible  <bruno@clisp.org>
18554
18555         strsep: Move AC_LIBOBJ invocations to module description.
18556         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18557         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18558         here...
18559         * modules/strsep (configure.ac): ... to here.
18560
18561 2011-05-22  Bruno Haible  <bruno@clisp.org>
18562
18563         strptime: Move AC_LIBOBJ invocations to module description.
18564         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18565         gl_PREREQ_STRPTIME invocations from here...
18566         * modules/strptime (configure.ac): ... to here.
18567
18568 2011-05-22  Bruno Haible  <bruno@clisp.org>
18569
18570         strpbrk: Move AC_LIBOBJ invocations to module description.
18571         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18572         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18573         here...
18574         * modules/strpbrk (configure.ac): ... to here.
18575
18576 2011-05-22  Bruno Haible  <bruno@clisp.org>
18577
18578         strnlen: Move AC_LIBOBJ invocations to module description.
18579         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18580         invocations from here...
18581         * modules/strnlen (configure.ac): ... to here.
18582
18583 2011-05-22  Bruno Haible  <bruno@clisp.org>
18584
18585         strndup: Move AC_LIBOBJ invocations to module description.
18586         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18587         invocations from here...
18588         * modules/strndup (configure.ac): ... to here.
18589         (Depends-on): Update conditions.
18590
18591 2011-05-22  Bruno Haible  <bruno@clisp.org>
18592
18593         strncat: Move AC_LIBOBJ invocations to module description.
18594         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18595         invocations from here...
18596         * modules/strncat (configure.ac): ... to here.
18597
18598 2011-05-22  Bruno Haible  <bruno@clisp.org>
18599
18600         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18601         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18602         invocations from here...
18603         * modules/strdup (configure.ac): ... to here.
18604         * modules/strdup-posix (configure.ac): ... and here.
18605
18606 2011-05-22  Bruno Haible  <bruno@clisp.org>
18607
18608         strcspn: Move AC_LIBOBJ invocations to module description.
18609         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18610         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18611         here...
18612         * modules/strcspn (configure.ac): ... to here.
18613
18614 2011-05-22  Bruno Haible  <bruno@clisp.org>
18615
18616         strchrnul: Move AC_LIBOBJ invocations to module description.
18617         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18618         gl_PREREQ_STRCHRNUL invocations from here...
18619         * modules/strchrnul (configure.ac): ... to here.
18620
18621 2011-05-22  Bruno Haible  <bruno@clisp.org>
18622
18623         strcasestr*: Move AC_LIBOBJ invocations to module description.
18624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18625         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18626         * modules/strcasestr-simple (configure.ac): ... to here.
18627         * modules/strcasestr (configure.ac): ... and here.
18628
18629 2011-05-22  Bruno Haible  <bruno@clisp.org>
18630
18631         strcase: Move AC_LIBOBJ invocations to module description.
18632         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18633         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18634         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18635         gl_PREREQ_STRNCASECMP invocations from here...
18636         * modules/strcase (configure.ac): ... to here.
18637
18638 2011-05-22  Bruno Haible  <bruno@clisp.org>
18639
18640         stpncpy: Move AC_LIBOBJ invocations to module description.
18641         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18642         here...
18643         * modules/stpncpy (configure.ac): ... to here.
18644
18645 2011-05-22  Bruno Haible  <bruno@clisp.org>
18646
18647         stpcpy: Move AC_LIBOBJ invocations to module description.
18648         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18649         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18650         here...
18651         * modules/stpcpy (configure.ac): ... to here.
18652
18653 2011-05-21  Bruno Haible  <bruno@clisp.org>
18654
18655         stat: Move AC_LIBOBJ invocations to module description.
18656         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18657         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18658         here...
18659         * modules/stat (configure.ac): ... to here.
18660
18661 2011-05-21  Bruno Haible  <bruno@clisp.org>
18662
18663         sleep: Move AC_LIBOBJ invocations to module description.
18664         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18665         * modules/sleep (configure.ac): ... to here.
18666
18667 2011-05-21  Bruno Haible  <bruno@clisp.org>
18668
18669         signbit: Move AC_LIBOBJ invocations to module description.
18670         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18671         * modules/signbit (configure.ac): ... to here.
18672
18673 2011-05-21  Bruno Haible  <bruno@clisp.org>
18674
18675         sigprocmask: Move AC_LIBOBJ invocations to module description.
18676         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18677         gl_PREREQ_SIGPROMASK invocations from here...
18678         * modules/sigprocmask (configure.ac): ... to here.
18679
18680 2011-05-21  Bruno Haible  <bruno@clisp.org>
18681
18682         sigaction: Move AC_LIBOBJ invocations to module description.
18683         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18684         gl_PREREQ_SIGACTION invocations from here...
18685         * modules/sigaction (configure.ac): ... to here.
18686
18687 2011-05-21  Bruno Haible  <bruno@clisp.org>
18688
18689         sig2str: Move AC_LIBOBJ invocations to module description.
18690         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18691         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18692         here...
18693         * modules/sig2str (configure.ac): ... to here.
18694
18695 2011-05-21  Bruno Haible  <bruno@clisp.org>
18696
18697         setlocale: Move AC_LIBOBJ invocations to module description.
18698         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18699         gl_PREREQ_SETLOCALE invocations from here...
18700         * modules/setlocale (configure.ac): ... to here.
18701
18702 2011-05-21  Bruno Haible  <bruno@clisp.org>
18703
18704         unsetenv: Move AC_LIBOBJ invocations to module description.
18705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18706         and gl_PREREQ_UNSETENV invocations from here...
18707         * modules/unsetenv (configure.ac): ... to here.
18708         (Depends-on): Update.
18709
18710 2011-05-21  Bruno Haible  <bruno@clisp.org>
18711
18712         setenv: Move AC_LIBOBJ invocations to module description.
18713         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18714         here...
18715         * modules/setenv (configure.ac): ... to here.
18716
18717 2011-05-21  Bruno Haible  <bruno@clisp.org>
18718
18719         selinux-h: Move AC_LIBOBJ invocations to module description.
18720         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18721         AC_LIBOBJ invocation from here...
18722         * modules/selinux-h (configure.ac): ... to here.
18723
18724 2011-05-21  Bruno Haible  <bruno@clisp.org>
18725
18726         select: Respect rules for use of AC_LIBOBJ.
18727         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18728         here...
18729         * modules/select (configure.ac): ... to here.
18730
18731 2011-05-21  Bruno Haible  <bruno@clisp.org>
18732
18733         scandir: Move AC_LIBOBJ invocations to module description.
18734         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18735         invocations from here...
18736         * modules/scandir (configure.ac): ... to here.
18737
18738 2011-05-21  Bruno Haible  <bruno@clisp.org>
18739
18740         rpmatch: Move AC_LIBOBJ invocations to module description.
18741         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18742         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18743         here...
18744         * modules/rpmatch (configure.ac): ... to here.
18745
18746 2011-05-21  Bruno Haible  <bruno@clisp.org>
18747
18748         rmdir: Respect rules for use of AC_LIBOBJ.
18749         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18750         * modules/rmdir (configure.ac): ... to here.
18751
18752 2011-05-21  Bruno Haible  <bruno@clisp.org>
18753
18754         renameat: Move AC_LIBOBJ invocations to module description.
18755         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18756         here...
18757         * modules/renameat (configure.ac): ... to here.
18758
18759 2011-05-21  Bruno Haible  <bruno@clisp.org>
18760
18761         rename: Respect rules for use of AC_LIBOBJ.
18762         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18763         here...
18764         * modules/rename (configure.ac): ... to here.
18765
18766 2011-05-21  Bruno Haible  <bruno@clisp.org>
18767
18768         remove: Move AC_LIBOBJ invocations to module description.
18769         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18770         here...
18771         * modules/remove (configure.ac): ... to here.
18772
18773 2011-05-21  Bruno Haible  <bruno@clisp.org>
18774
18775         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18776         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18777         macro.
18778         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18779         * modules/relocatable-lib (configure.ac): ... to here.
18780         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18781         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18782
18783 2011-05-21  Bruno Haible  <bruno@clisp.org>
18784
18785         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18786         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18787         here...
18788         * modules/relocatable-prog (configure.ac): ... to here.
18789
18790 2011-05-21  Bruno Haible  <bruno@clisp.org>
18791
18792         regex: Move AC_LIBOBJ invocations to module description.
18793         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18794         invocations from here...
18795         * modules/regex (configure.ac): ... to here.
18796
18797 2011-05-21  Bruno Haible  <bruno@clisp.org>
18798
18799         realloc-*: Move AC_LIBOBJ invocations to module description.
18800         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
18801         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
18802         AC_LIBOBJ invocations from here...
18803         * modules/realloc-gnu (configure.ac): ... to here.
18804         * modules/realloc-posix (configure.ac): ... and here.
18805
18806 2011-05-21  Bruno Haible  <bruno@clisp.org>
18807
18808         readutmp: Move AC_LIBOBJ invocations to module description.
18809         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
18810         * modules/readutmp (configure.ac): ... to here.
18811
18812 2011-05-21  Bruno Haible  <bruno@clisp.org>
18813
18814         readlinkat: Move AC_LIBOBJ invocations to module description.
18815         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
18816         here...
18817         * modules/readlinkat (configure.ac): ... to here.
18818
18819 2011-05-21  Bruno Haible  <bruno@clisp.org>
18820
18821         readlink: Move AC_LIBOBJ invocations to module description.
18822         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
18823         gl_PREREQ_READLINK invocations from here...
18824         * modules/readlink (configure.ac): ... to here.
18825
18826 2011-05-21  Bruno Haible  <bruno@clisp.org>
18827
18828         readline: Move AC_LIBOBJ invocations to module description.
18829         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
18830         gl_PREREQ_READLINE invocations from here...
18831         * modules/readline (configure.ac): ... to here.
18832
18833 2011-05-21  Bruno Haible  <bruno@clisp.org>
18834
18835         read: Move AC_LIBOBJ invocations to module description.
18836         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
18837         * modules/read (configure.ac): ... to here.
18838
18839 2011-05-21  Bruno Haible  <bruno@clisp.org>
18840
18841         rawmemchr: Move AC_LIBOBJ invocations to module description.
18842         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
18843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18844         from here...
18845         * modules/rawmemchr (configure.ac): ... to here.
18846
18847 2011-05-21  Bruno Haible  <bruno@clisp.org>
18848
18849         random_r: Move AC_LIBOBJ invocations to module description.
18850         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18851         gl_PREREQ_RANDOM_R invocations from here...
18852         * modules/random_r (configure.ac): ... to here.
18853
18854 2011-05-21  Bruno Haible  <bruno@clisp.org>
18855
18856         pwrite: Move AC_LIBOBJ invocations to module description.
18857         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18858         * modules/pwrite (configure.ac): ... to here.
18859
18860 2011-05-21  Bruno Haible  <bruno@clisp.org>
18861
18862         putenv: Move AC_LIBOBJ invocations to module description.
18863         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18864         * modules/putenv (configure.ac): ... to here.
18865
18866 2011-05-21  Bruno Haible  <bruno@clisp.org>
18867
18868         login_tty: Move AC_LIBOBJ invocations to module description.
18869         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18870         * modules/login_tty (configure.ac): ... to here.
18871
18872 2011-05-21  Bruno Haible  <bruno@clisp.org>
18873
18874         openpty: Move AC_LIBOBJ invocations to module description.
18875         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18876         * modules/openpty (configure.ac): ... to here.
18877
18878 2011-05-21  Bruno Haible  <bruno@clisp.org>
18879
18880         forkpty: Move AC_LIBOBJ invocations to module description.
18881         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18882         * modules/forkpty (configure.ac): ... to here.
18883
18884 2011-05-21  Bruno Haible  <bruno@clisp.org>
18885
18886         ptsname: Move AC_LIBOBJ invocations to module description.
18887         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18888         invocations from here...
18889         * modules/ptsname (configure.ac): ... to here.
18890
18891 2011-05-21  Bruno Haible  <bruno@clisp.org>
18892
18893         pread: Move AC_LIBOBJ invocations to module description.
18894         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18895         * modules/pread (configure.ac): ... to here.
18896
18897 2011-05-21  Bruno Haible  <bruno@clisp.org>
18898
18899         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18900         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18901         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18902         * modules/posix_spawn (configure.ac): ... to here.
18903         * modules/posix_spawnp (configure.ac): ... and here.
18904
18905 2011-05-21  Bruno Haible  <bruno@clisp.org>
18906
18907         popen: Move AC_LIBOBJ invocations to module description.
18908         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18909         invocations from here...
18910         * modules/popen (configure.ac): ... to here.
18911
18912 2011-05-21  Bruno Haible  <bruno@clisp.org>
18913
18914         poll: Move AC_LIBOBJ invocations to module description.
18915         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18916         invocations from here...
18917         * modules/poll (configure.ac): ... to here.
18918
18919 2011-05-21  Bruno Haible  <bruno@clisp.org>
18920
18921         pipe-posix: Move AC_LIBOBJ invocations to module description.
18922         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18923         * modules/pipe-posix (configure.ac): ... to here.
18924
18925 2011-05-21  Bruno Haible  <bruno@clisp.org>
18926
18927         openat: Respect rules for use of AC_LIBOBJ.
18928         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18929         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18930         * modules/openat (configure.ac): ... to here.
18931
18932 2011-05-21  Bruno Haible  <bruno@clisp.org>
18933
18934         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18935         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18936         invocation from here...
18937         * modules/obstack-printf (configure.ac): ... to here.
18938         * modules/obstack-printf-posix (configure.ac): ... and here.
18939
18940 2011-05-21  Bruno Haible  <bruno@clisp.org>
18941
18942         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18943         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18944         from here...
18945         * modules/nl_langinfo (configure.ac): ... to here.
18946
18947 2011-05-21  Bruno Haible  <bruno@clisp.org>
18948
18949         nanosleep: Move AC_LIBOBJ invocations to module description.
18950         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18951         gl_PREREQ_NANOSLEEP invocations from here...
18952         * modules/nanosleep (configure.ac): ... to here.
18953
18954 2011-05-21  Bruno Haible  <bruno@clisp.org>
18955
18956         mountlist: Move AC_LIBOBJ invocations to module description.
18957         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18958         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18959         * modules/mountlist (configure.ac): ... to here.
18960
18961 2011-05-21  Bruno Haible  <bruno@clisp.org>
18962
18963         mktime: Respect rules for use of AC_LIBOBJ.
18964         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18965         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18966         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18967         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18968         * modules/mktime (configure.ac): ... to here.
18969         * modules/mktime-internal (configure.ac): ... and here.
18970         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18971
18972 2011-05-21  Bruno Haible  <bruno@clisp.org>
18973
18974         mkstemps: Move AC_LIBOBJ invocations to module description.
18975         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18976         here...
18977         * modules/mkstemps (configure.ac): ... to here.
18978
18979 2011-05-21  Bruno Haible  <bruno@clisp.org>
18980
18981         mkstemp: Move AC_LIBOBJ invocations to module description.
18982         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18983         gl_PREREQ_MKSTEMP invocations from here...
18984         * modules/mkstemp (configure.ac): ... to here.
18985
18986 2011-05-21  Bruno Haible  <bruno@clisp.org>
18987
18988         mkostemps: Move AC_LIBOBJ invocations to module description.
18989         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18990         here...
18991         * modules/mkostemps (configure.ac): ... to here.
18992
18993 2011-05-21  Bruno Haible  <bruno@clisp.org>
18994
18995         mkostemp: Move AC_LIBOBJ invocations to module description.
18996         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18997         gl_PREREQ_MKOSTEMP invocations from here...
18998         * modules/mkostemp (configure.ac): ... to here.
18999
19000 2011-05-21  Bruno Haible  <bruno@clisp.org>
19001
19002         mknod: Move AC_LIBOBJ invocations to module description.
19003         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19004         * modules/mknod (configure.ac): ... to here.
19005
19006 2011-05-21  Bruno Haible  <bruno@clisp.org>
19007
19008         mkfifoat: Move AC_LIBOBJ invocations to module description.
19009         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19010         here...
19011         * modules/mkfifoat (configure.ac): ... to here.
19012
19013 2011-05-21  Bruno Haible  <bruno@clisp.org>
19014
19015         mkfifo: Respect rules for use of AC_LIBOBJ.
19016         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19017         here...
19018         * modules/mkfifo (configure.ac): ... to here.
19019
19020 2011-05-21  Bruno Haible  <bruno@clisp.org>
19021
19022         mkdtemp: Move AC_LIBOBJ invocations to module description.
19023         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19024         invocations from here...
19025         * modules/mkdtemp (configure.ac): ... to here.
19026
19027 2011-05-21  Bruno Haible  <bruno@clisp.org>
19028
19029         mkdir: Move AC_LIBOBJ invocations to module description.
19030         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19031         * modules/mkdir (configure.ac): ... to here.
19032
19033 2011-05-21  Bruno Haible  <bruno@clisp.org>
19034
19035         memset: Move AC_LIBOBJ invocations to module description.
19036         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19037         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19038         here...
19039         * modules/memset (configure.ac): ... to here.
19040
19041 2011-05-21  Bruno Haible  <bruno@clisp.org>
19042
19043         memrchr: Move AC_LIBOBJ invocations to module description.
19044         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19046         here...
19047         * modules/memrchr (configure.ac): ... to here.
19048
19049 2011-05-21  Bruno Haible  <bruno@clisp.org>
19050
19051         mempcpy: Move AC_LIBOBJ invocations to module description.
19052         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19053         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19054         here...
19055         * modules/mempcpy (configure.ac): ... to here.
19056
19057 2011-05-21  Bruno Haible  <bruno@clisp.org>
19058
19059         memmove: Move AC_LIBOBJ invocations to module description.
19060         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19061         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19062         here...
19063         * modules/memmove (configure.ac): ... to here.
19064
19065 2011-05-21  Bruno Haible  <bruno@clisp.org>
19066
19067         memmem*: Move AC_LIBOBJ invocations to module description.
19068         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19069         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19070         here...
19071         (gl_FUNC_MEMMEM): ... and here...
19072         * modules/memmem-simple (configure.ac): ... to here.
19073         * modules/memmem (configure.ac): ... and here.
19074
19075 2011-05-21  Bruno Haible  <bruno@clisp.org>
19076
19077         memcpy: Move AC_LIBOBJ invocations to module description.
19078         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19079         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19080         here...
19081         * modules/memcpy (configure.ac): ... to here.
19082
19083 2011-05-21  Bruno Haible  <bruno@clisp.org>
19084
19085         memcmp: Simplify autoconf macro.
19086         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19087         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19088         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19089
19090 2011-05-21  Bruno Haible  <bruno@clisp.org>
19091
19092         memcmp: Move AC_LIBOBJ invocations to module description.
19093         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19094         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19095         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19096         * modules/memcmp (configure.ac): ... to here.
19097         (Depends-on): Update conditions.
19098
19099 2011-05-21  Bruno Haible  <bruno@clisp.org>
19100
19101         memchr: Respect rules for use of AC_LIBOBJ.
19102         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19103         invocations from here...
19104         * modules/memchr (configure.ac): ... to here.
19105
19106 2011-05-21  Bruno Haible  <bruno@clisp.org>
19107
19108         mbtowc: Move AC_LIBOBJ invocations to module description.
19109         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19110         invocations from here...
19111         * modules/mbtowc (configure.ac): ... to here.
19112
19113 2011-05-21  Bruno Haible  <bruno@clisp.org>
19114
19115         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19116         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19117         gl_PREREQ_MBSRTOWCS invocations from here...
19118         * modules/mbsrtowcs (configure.ac): ... to here.
19119
19120 2011-05-21  Bruno Haible  <bruno@clisp.org>
19121
19122         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19123         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19124         gl_PREREQ_MBSNRTOWCS invocations from here...
19125         * modules/mbsnrtowcs (configure.ac): ... to here.
19126
19127 2011-05-21  Bruno Haible  <bruno@clisp.org>
19128
19129         mbsinit: Move AC_LIBOBJ invocations to module description.
19130         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19131         invocations from here...
19132         * modules/mbsinit (configure.ac): ... to here.
19133
19134 2011-05-21  Bruno Haible  <bruno@clisp.org>
19135
19136         mbrlen: Move AC_LIBOBJ invocations to module description.
19137         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19138         invocations from here...
19139         * modules/mbrlen (configure.ac): ... to here.
19140
19141 2011-05-21  Bruno Haible  <bruno@clisp.org>
19142
19143         mbrtowc: Respect rules for use of AC_LIBOBJ.
19144         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19145         invocations from here...
19146         * modules/mbrtowc (configure.ac): ... to here.
19147
19148 2011-05-21  Bruno Haible  <bruno@clisp.org>
19149
19150         malloc-*: Move AC_LIBOBJ invocations to module description.
19151         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19152         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19153         AC_LIBOBJ invocations from here...
19154         * modules/malloc-gnu (configure.ac): ... to here.
19155         * modules/malloc-posix (configure.ac): ... and here.
19156
19157 2011-05-21  Bruno Haible  <bruno@clisp.org>
19158
19159         lstat, openat: Respect rules for use of AC_LIBOBJ.
19160         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19161         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19162         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19163         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19164         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19165         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19166         here.
19167         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19168
19169 2011-05-21  Bruno Haible  <bruno@clisp.org>
19170
19171         lseek: Move AC_LIBOBJ invocations to module description.
19172         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19173         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19174         * modules/lseek (configure.ac): ... to here.
19175
19176 2011-05-21  Bruno Haible  <bruno@clisp.org>
19177
19178         linkat: Move AC_LIBOBJ invocations to module description.
19179         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19180         here...
19181         * modules/linkat (configure.ac): ... to here.
19182
19183 2011-05-21  Bruno Haible  <bruno@clisp.org>
19184
19185         link: Respect rules for use of AC_LIBOBJ.
19186         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19187         * modules/link (configure.ac): ... to here.
19188
19189 2011-05-21  Bruno Haible  <bruno@clisp.org>
19190
19191         lchown: Move AC_LIBOBJ invocations to module description.
19192         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19193         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19194         * modules/lchown (configure.ac): ... to here.
19195
19196 2011-05-21  Bruno Haible  <bruno@clisp.org>
19197
19198         iswctype: Move AC_LIBOBJ invocations to module description.
19199         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19200         here...
19201         * modules/iswctype (configure.ac): ... to here.
19202
19203 2011-05-21  Bruno Haible  <bruno@clisp.org>
19204
19205         iswblank: Move AC_LIBOBJ invocations to module description.
19206         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19207         here...
19208         * modules/iswblank (configure.ac): ... to here.
19209
19210 2011-05-21  Bruno Haible  <bruno@clisp.org>
19211
19212         atanl: Move AC_LIBOBJ invocations to module description.
19213         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19214         * modules/atanl (configure.ac): ... to here.
19215
19216 2011-05-21  Bruno Haible  <bruno@clisp.org>
19217
19218         acosl: Move AC_LIBOBJ invocations to module description.
19219         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19220         * modules/acosl (configure.ac): ... to here.
19221
19222 2011-05-21  Bruno Haible  <bruno@clisp.org>
19223
19224         asinl: Respect rules for use of AC_LIBOBJ.
19225         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19226         * modules/asinl (configure.ac): ... to here.
19227
19228 2011-05-21  Bruno Haible  <bruno@clisp.org>
19229
19230         tanl: Move AC_LIBOBJ invocations to module description.
19231         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19232         * modules/tanl (configure.ac): ... to here.
19233
19234 2011-05-21  Bruno Haible  <bruno@clisp.org>
19235
19236         cosl: Move AC_LIBOBJ invocations to module description.
19237         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19238         * modules/cosl (configure.ac): ... to here.
19239
19240 2011-05-21  Bruno Haible  <bruno@clisp.org>
19241
19242         sinl: Move AC_LIBOBJ invocations to module description.
19243         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19244         * modules/sinl (configure.ac): ... to here.
19245
19246 2011-05-21  Bruno Haible  <bruno@clisp.org>
19247
19248         logl: Move AC_LIBOBJ invocations to module description.
19249         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19250         * modules/logl (configure.ac): ... to here.
19251
19252 2011-05-21  Bruno Haible  <bruno@clisp.org>
19253
19254         expl: Move AC_LIBOBJ invocations to module description.
19255         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19256         * modules/expl (configure.ac): ... to here.
19257
19258 2011-05-21  Bruno Haible  <bruno@clisp.org>
19259
19260         roundl: Move AC_LIBOBJ invocations to module description.
19261         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19262         * modules/roundl (configure.ac): ... to here.
19263
19264 2011-05-21  Bruno Haible  <bruno@clisp.org>
19265
19266         round: Move AC_LIBOBJ invocations to module description.
19267         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19268         * modules/round (configure.ac): ... to here.
19269
19270 2011-05-21  Bruno Haible  <bruno@clisp.org>
19271
19272         roundf: Move AC_LIBOBJ invocations to module description.
19273         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19274         * modules/roundf (configure.ac): ... to here.
19275
19276 2011-05-21  Bruno Haible  <bruno@clisp.org>
19277
19278         truncl: Move AC_LIBOBJ invocations to module description.
19279         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19280         * modules/truncl (configure.ac): ... to here.
19281
19282 2011-05-21  Bruno Haible  <bruno@clisp.org>
19283
19284         trunc: Move AC_LIBOBJ invocations to module description.
19285         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19286         * modules/trunc (configure.ac): ... to here.
19287
19288 2011-05-21  Bruno Haible  <bruno@clisp.org>
19289
19290         truncf: Move AC_LIBOBJ invocations to module description.
19291         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19292         * modules/truncf (configure.ac): ... to here.
19293
19294 2011-05-21  Bruno Haible  <bruno@clisp.org>
19295
19296         ceill: Move AC_LIBOBJ invocations to module description.
19297         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19298         * modules/ceill (configure.ac): ... to here.
19299
19300 2011-05-21  Bruno Haible  <bruno@clisp.org>
19301
19302         ceil: Move AC_LIBOBJ invocations to module description.
19303         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19304         * modules/ceil (configure.ac): ... to here.
19305
19306 2011-05-21  Bruno Haible  <bruno@clisp.org>
19307
19308         ceilf: Move AC_LIBOBJ invocations to module description.
19309         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19310         * modules/ceilf (configure.ac): ... to here.
19311
19312 2011-05-21  Bruno Haible  <bruno@clisp.org>
19313
19314         floorl: Respect rules for use of AC_LIBOBJ.
19315         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19316         * modules/floorl (configure.ac): ... to here.
19317
19318 2011-05-21  Bruno Haible  <bruno@clisp.org>
19319
19320         floor: Respect rules for use of AC_LIBOBJ.
19321         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19322         * modules/floor (configure.ac): ... to here.
19323
19324 2011-05-21  Bruno Haible  <bruno@clisp.org>
19325
19326         floorf: Move AC_LIBOBJ invocations to module description.
19327         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19328         * modules/floorf (configure.ac): ... to here.
19329
19330 2011-05-20  Bruno Haible  <bruno@clisp.org>
19331
19332         sqrtl: Respect rules for use of AC_LIBOBJ.
19333         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19334         * modules/sqrtl (configure.ac): ... to here.
19335
19336 2011-05-20  Bruno Haible  <bruno@clisp.org>
19337
19338         ldexpl: Respect rules for use of AC_LIBOBJ.
19339         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19340         * modules/ldexpl (configure.ac): ... to here.
19341
19342 2011-05-20  Bruno Haible  <bruno@clisp.org>
19343
19344         frexpl*: Respect rules for use of AC_LIBOBJ.
19345         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19346         invocation from here...
19347         * modules/frexpl (configure.ac): ... to here.
19348         * modules/frexpl-nolibm (configure.ac): ... and here.
19349
19350 2011-05-20  Bruno Haible  <bruno@clisp.org>
19351
19352         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19353         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19354         invocation from here...
19355         * modules/frexp (configure.ac): ... to here.
19356         * modules/frexp-nolibm (configure.ac): ... and here.
19357
19358 2011-05-20  Bruno Haible  <bruno@clisp.org>
19359
19360         isnan: Respect rules for use of AC_LIBOBJ.
19361         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19362         invocations here.
19363         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19364         REPLACE_ISNAN.
19365         * modules/isnand (configure.ac): Likewise.
19366         * modules/isnanl (configure.ac): Likewise.
19367
19368 2011-05-20  Bruno Haible  <bruno@clisp.org>
19369
19370         isnanl*: Respect rules for use of AC_LIBOBJ.
19371         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19372         invocation from here...
19373         * modules/isnanl (configure.ac): ... to here.
19374         * modules/isnanl-nolibm (configure.ac): ... and here.
19375
19376 2011-05-20  Bruno Haible  <bruno@clisp.org>
19377
19378         isnand*: Move AC_LIBOBJ invocations to module description.
19379         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19380         invocation from here...
19381         * modules/isnand (configure.ac): ... to here.
19382         * modules/isnand-nolibm (configure.ac): ... and here.
19383
19384 2011-05-20  Bruno Haible  <bruno@clisp.org>
19385
19386         isnanf*: Move AC_LIBOBJ invocations to module description.
19387         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19388         invocation from here...
19389         * modules/isnanf (configure.ac): ... to here.
19390         * modules/isnanf-nolibm (configure.ac): ... and here.
19391
19392 2011-05-20  Bruno Haible  <bruno@clisp.org>
19393
19394         isnan*: Separate the AC_LIBOBJ invocations.
19395         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19396         AC_LIBOBJ invocation.
19397         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19398         here.
19399         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19400         AC_LIBOBJ invocation.
19401         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19402         here.
19403         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19404         AC_LIBOBJ invocation.
19405         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19406         here.
19407         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19408
19409 2011-05-08  Bruno Haible  <bruno@clisp.org>
19410
19411         isinf: Move AC_LIBOBJ invocations to module description.
19412         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19413         * modules/isinf (configure.ac): ... to here.
19414
19415 2011-05-08  Bruno Haible  <bruno@clisp.org>
19416
19417         isfinite: Move AC_LIBOBJ invocations to module description.
19418         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19419         * modules/isfinite (configure.ac): ... to here.
19420
19421 2011-05-08  Bruno Haible  <bruno@clisp.org>
19422
19423         isblank: Move AC_LIBOBJ invocations to module description.
19424         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19425         here...
19426         * modules/isblank (configure.ac): ... to here.
19427
19428 2011-05-08  Bruno Haible  <bruno@clisp.org>
19429
19430         isapipe: Move AC_LIBOBJ invocations to module description.
19431         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19432         gl_PREREQ_ISAPIPE invocations from here...
19433         * modules/isapipe (configure.ac): ... to here.
19434         (Depends-on): Update condition.
19435
19436 2011-05-08  Bruno Haible  <bruno@clisp.org>
19437
19438         ioctl: Move AC_LIBOBJ invocations to module description.
19439         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19440         invocations from here...
19441         * modules/ioctl (configure.ac): ... to here.
19442         (Depends-on): Update condition.
19443
19444 2011-05-08  Bruno Haible  <bruno@clisp.org>
19445
19446         imaxdiv: Move AC_LIBOBJ invocations to module description.
19447         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19448         invocations from here...
19449         * modules/imaxdiv (configure.ac): ... to here.
19450
19451 2011-05-08  Bruno Haible  <bruno@clisp.org>
19452
19453         imaxabs: Move AC_LIBOBJ invocations to module description.
19454         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19455         invocations from here...
19456         * modules/imaxabs (configure.ac): ... to here.
19457
19458 2011-05-08  Bruno Haible  <bruno@clisp.org>
19459
19460         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19461         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19462         AC_LIBOBJ invocations from here...
19463         * modules/getaddrinfo (configure.ac): ... to here.
19464         (Depends-on): Add conditions.
19465
19466 2011-05-08  Bruno Haible  <bruno@clisp.org>
19467
19468         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19469         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19470         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19471         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19472         (gl_PREREQ_INET_PTON): ... from here.
19473         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19474         gl_PREREQ_INET_PTON here.
19475         (Depends-on): Update condition.
19476
19477 2011-05-08  Bruno Haible  <bruno@clisp.org>
19478
19479         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19480         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19481         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19482         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19483         (gl_PREREQ_INET_NTOP): ... from here.
19484         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19485         gl_PREREQ_INET_NTOP here.
19486         (Depends-on): Update condition.
19487
19488 2011-05-08  Bruno Haible  <bruno@clisp.org>
19489
19490         iconv_open: Move AC_LIBOBJ invocations to module description.
19491         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19492         AC_LIBOBJ invocations from here...
19493         * modules/iconv_open (configure.ac): ... to here.
19494
19495 2011-05-08  Bruno Haible  <bruno@clisp.org>
19496
19497         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19498         If module 'iconv_open' is among the main modules and module
19499         'iconv_open-utf' is among the tests dependencies, then
19500         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19501         return the special iconv_t values. Therefore iconv() and iconv_close()
19502         must support these special iconv_t values, already in lib, not only in
19503         tests.
19504         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19505         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19506         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19507         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19508         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19509         (Depends-on): Add the dependencies of iconv_open-utf.
19510         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19511         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19512         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19513
19514 2011-05-08  Bruno Haible  <bruno@clisp.org>
19515
19516         group-member: Move AC_LIBOBJ invocations to module description.
19517         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19518         gl_PREREQ_GROUP_MEMBER invocations from here...
19519         * modules/group-member (configure.ac): ... to here.
19520
19521 2011-05-08  Bruno Haible  <bruno@clisp.org>
19522
19523         grantpt: Move AC_LIBOBJ invocations to module description.
19524         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19525         invocations from here...
19526         * modules/grantpt (configure.ac): ... to here.
19527
19528 2011-05-08  Bruno Haible  <bruno@clisp.org>
19529
19530         glob: Move AC_LIBOBJ invocations to module description.
19531         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19532         from here...
19533         * modules/glob (configure.ac): ... to here.
19534
19535 2011-05-08  Bruno Haible  <bruno@clisp.org>
19536
19537         getusershell: Move AC_LIBOBJ invocations to module description.
19538         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19539         Move AC_LIBOBJ invocation from here...
19540         * modules/getusershell (configure.ac): ... to here.
19541         (Depends-on): Update condition.
19542
19543 2011-05-08  Bruno Haible  <bruno@clisp.org>
19544
19545         gettimeofday: Move AC_LIBOBJ invocations to module description.
19546         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19547         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19548         gl_PREREQ_GETTIMEOFDAY invocations from here...
19549         * modules/gettimeofday (configure.ac): ... to here.
19550
19551 2011-05-08  Bruno Haible  <bruno@clisp.org>
19552
19553         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19554         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19555         just gl_FUNC_TZSET.
19556         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19557         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19558         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19559         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19560
19561 2011-05-08  Bruno Haible  <bruno@clisp.org>
19562
19563         getsubopt: Move AC_LIBOBJ invocations to module description.
19564         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19565         gl_PREREQ_GETSUBOPT invocations from here...
19566         * modules/getsubopt (configure.ac): ... to here.
19567
19568 2011-05-08  Bruno Haible  <bruno@clisp.org>
19569
19570         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19571         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19572         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19573         * modules/getpass-gnu (configure.ac): ... to here.
19574
19575 2011-05-08  Bruno Haible  <bruno@clisp.org>
19576
19577         getpass: Move AC_LIBOBJ invocations to module description.
19578         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19579         gl_PREREQ_GETPASS invocations from here...
19580         * modules/getpass (configure.ac): ... to here.
19581
19582 2011-05-08  Bruno Haible  <bruno@clisp.org>
19583
19584         getpagesize: Move AC_LIBOBJ invocations to module description.
19585         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19586         from here...
19587         * modules/getpagesize (configure.ac): ... to here.
19588
19589 2011-05-08  Bruno Haible  <bruno@clisp.org>
19590
19591         getopt: Move AC_LIBOBJ invocations to module description.
19592         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19593         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19594         invocations from here...
19595         * modules/getopt-gnu (configure.ac): ... to here.
19596         * modules/getopt-posix (configure.ac): ... and here.
19597         (Depends-on): Update condition.
19598
19599 2011-05-08  Bruno Haible  <bruno@clisp.org>
19600
19601         getopt, argp: Respect rules for use of AC_LIBOBJ.
19602         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19603         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19604         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19605         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19606
19607 2011-05-08  Bruno Haible  <bruno@clisp.org>
19608
19609         getlogin_r: Move AC_LIBOBJ invocations to module description.
19610         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19611         gl_PREREQ_GETLOGIN_R invocations from here...
19612         * modules/getlogin_r (configure.ac): ... to here.
19613
19614 2011-05-08  Bruno Haible  <bruno@clisp.org>
19615
19616         getlogin: Move AC_LIBOBJ invocations to module description.
19617         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19618         here...
19619         * modules/getlogin (configure.ac): ... to here.
19620
19621 2011-05-08  Bruno Haible  <bruno@clisp.org>
19622
19623         getloadavg: Move AC_LIBOBJ invocations to module description.
19624         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19625         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19626         * modules/getloadavg (configure.ac): ... to here.
19627
19628 2011-05-08  Bruno Haible  <bruno@clisp.org>
19629
19630         gethrxtime: Move AC_LIBOBJ invocations to module description.
19631         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19632         LIB_GETHRXTIME from here...
19633         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19634         invocations from here...
19635         * modules/gethrxtime (configure.ac): ... to here.
19636
19637 2011-05-08  Bruno Haible  <bruno@clisp.org>
19638
19639         gethostname: Move AC_LIBOBJ invocations to module description.
19640         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19641         gl_PREREQ_GETHOSTNAME invocations from here...
19642         * modules/gethostname (configure.ac): ... to here.
19643
19644 2011-05-08  Bruno Haible  <bruno@clisp.org>
19645
19646         getgroups: Move AC_LIBOBJ invocations to module description.
19647         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19648         here...
19649         * modules/getgroups (configure.ac): ... to here.
19650
19651 2011-05-08  Bruno Haible  <bruno@clisp.org>
19652
19653         getdtablesize: Move AC_LIBOBJ invocations to module description.
19654         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19655         invocation from here...
19656         * modules/getdtablesize (configure.ac): ... to here.
19657
19658 2011-05-08  Bruno Haible  <bruno@clisp.org>
19659
19660         getdomainname: Move AC_LIBOBJ invocations to module description.
19661         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19662         gl_PREREQ_GETDOMAINNAME invocations from here...
19663         * modules/getdomainname (configure.ac): ... to here.
19664
19665 2011-05-08  Bruno Haible  <bruno@clisp.org>
19666
19667         getline: Move AC_LIBOBJ invocations to module description.
19668         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19669         invocations from here...
19670         * modules/getline (configure.ac): ... to here.
19671
19672 2011-05-08  Bruno Haible  <bruno@clisp.org>
19673
19674         getline: Simplify.
19675         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19676         It's already handled through the module dependency.
19677
19678 2011-05-08  Bruno Haible  <bruno@clisp.org>
19679
19680         getdelim: Move AC_LIBOBJ invocations to module description.
19681         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19682         and gl_PREREQ_GETDELIM invocations from here...
19683         * modules/getdelim (configure.ac): ... to here.
19684         (Depends-on): Fix condition.
19685
19686 2011-05-08  Bruno Haible  <bruno@clisp.org>
19687
19688         getcwd: Move AC_LIBOBJ invocations to module description.
19689         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19690         invocations from here...
19691         * modules/getcwd (configure.ac): ... to here.
19692
19693 2011-05-08  Bruno Haible  <bruno@clisp.org>
19694
19695         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19696         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19697         here...
19698         * modules/getcwd-lgpl (configure.ac): ... to here.
19699
19700 2011-05-07  Bruno Haible  <bruno@clisp.org>
19701
19702         crypto/gc: Move AC_LIBOBJ invocations to module description.
19703         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19704         * modules/crypto/gc (configure.ac): ... to here.
19705
19706 2011-05-07  Bruno Haible  <bruno@clisp.org>
19707
19708         fwriting: Move AC_LIBOBJ invocations to module description.
19709         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19710         here...
19711         * modules/fwriting (configure.ac): ... to here.
19712
19713 2011-05-07  Bruno Haible  <bruno@clisp.org>
19714
19715         fwritable: Move AC_LIBOBJ invocations to module description.
19716         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19717         here...
19718         * modules/fwritable (configure.ac): ... to here.
19719
19720 2011-05-07  Bruno Haible  <bruno@clisp.org>
19721
19722         futimens: Move AC_LIBOBJ invocations to module description.
19723         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19724         here...
19725         * modules/futimens (configure.ac): ... to here.
19726
19727 2011-05-07  Bruno Haible  <bruno@clisp.org>
19728
19729         ftruncate: Move AC_LIBOBJ invocations to module description.
19730         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19731         gl_PREREQ_FTRUNCATE invocations from here...
19732         * modules/ftruncate (configure.ac): ... to here.
19733
19734 2011-05-07  Bruno Haible  <bruno@clisp.org>
19735
19736         fsync: Move AC_LIBOBJ invocations to module description.
19737         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19738         invocations from here...
19739         * modules/fsync (configure.ac): ... to here.
19740
19741 2011-05-07  Bruno Haible  <bruno@clisp.org>
19742
19743         fsusage: Move AC_LIBOBJ invocations to module description.
19744         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19745         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19746         * modules/fsusage (configure.ac): ... to here.
19747
19748 2011-05-07  Bruno Haible  <bruno@clisp.org>
19749
19750         freopen: Move AC_LIBOBJ invocations to module description.
19751         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19752         invocations from here...
19753         * modules/freopen (configure.ac): ... to here.
19754
19755 2011-05-07  Bruno Haible  <bruno@clisp.org>
19756
19757         free: Move AC_LIBOBJ invocations to module description.
19758         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19759         invocations from here...
19760         * modules/free (configure.ac): ... to here.
19761
19762 2011-05-07  Bruno Haible  <bruno@clisp.org>
19763
19764         freadable: Move AC_LIBOBJ invocations to module description.
19765         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19766         here...
19767         * modules/freadable (configure.ac): ... to here.
19768
19769 2011-05-07  Bruno Haible  <bruno@clisp.org>
19770
19771         fpurge: Move AC_LIBOBJ invocations to module description.
19772         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19773         invocations from here...
19774         * modules/fpurge (configure.ac): ... to here.
19775
19776 2011-05-07  Bruno Haible  <bruno@clisp.org>
19777
19778         fpending: Move AC_LIBOBJ invocations to module description.
19779         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19780         gl_FUNC_FPENDING.
19781         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19782         invocations from here...
19783         * modules/fpending (configure.ac): ... to here.
19784
19785 2011-05-07  Bruno Haible  <bruno@clisp.org>
19786
19787         fopen: Move AC_LIBOBJ invocations to module description.
19788         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19789         invocations from here...
19790         * modules/fopen (configure.ac): ... to here.
19791
19792 2011-05-07  Bruno Haible  <bruno@clisp.org>
19793
19794         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19795         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
19796         gl_FUNC_FNMATCH_POSIX.
19797         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
19798         invocations from here...
19799         * modules/fnmatch (configure.ac): ... to here.
19800         * modules/fnmatch-gnu (configure.ac): ... and here.
19801
19802 2011-05-07  Bruno Haible  <bruno@clisp.org>
19803
19804         flock: Move AC_LIBOBJ invocations to module description.
19805         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
19806         invocations from here...
19807         * modules/flock (configure.ac): ... to here.
19808
19809 2011-05-07  Bruno Haible  <bruno@clisp.org>
19810
19811         fileblocks: Move AC_LIBOBJ invocations to module description.
19812         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
19813         gl_PREREQ_FILEBLOCKS invocations from here...
19814         * modules/fileblocks (configure.ac): ... to here.
19815
19816 2011-05-06  Bruno Haible  <bruno@clisp.org>
19817
19818         fflush: Move AC_LIBOBJ invocations to module description.
19819         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19820         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
19821         invocations from here...
19822         * modules/fflush (configure.ac): ... to here.
19823
19824 2011-05-06  Bruno Haible  <bruno@clisp.org>
19825
19826         fdopendir: Move AC_LIBOBJ invocations to module description.
19827         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
19828         here...
19829         * modules/fdopendir (configure.ac): ... to here.
19830         (Depends-on): Improve conditions.
19831
19832 2011-05-06  Bruno Haible  <bruno@clisp.org>
19833
19834         _Exit: Move AC_LIBOBJ invocations to module description.
19835         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
19836         invocations from here...
19837         * modules/_Exit (configure.ac): ... to here.
19838
19839 2011-05-21  Bruno Haible  <bruno@clisp.org>
19840
19841         euidaccess: Respect rules for use of AC_LIBOBJ.
19842         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19844         from here...
19845         * modules/euidaccess (configure.ac): ... to here.
19846
19847 2011-05-06  Bruno Haible  <bruno@clisp.org>
19848
19849         error: Move AC_LIBOBJ invocations to module description.
19850         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19851         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19852         invocations from here...
19853         * modules/error (configure.ac): ... to here.
19854
19855 2011-05-06  Bruno Haible  <bruno@clisp.org>
19856
19857         duplocale: Move AC_LIBOBJ invocations to module description.
19858         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19859         gl_PREREQ_DUPLOCALE invocations from here...
19860         * modules/duplocale (configure.ac): ... to here.
19861
19862 2011-05-05  Bruno Haible  <bruno@clisp.org>
19863
19864         dirfd: Move AC_LIBOBJ invocations to module description.
19865         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19866         gl_FUNC_DIRFD.
19867         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19868         here...
19869         * modules/dirfd (configure.ac): ... to here.
19870         (Depends-on): Fix condition.
19871
19872 2011-05-05  Bruno Haible  <bruno@clisp.org>
19873
19874         chown: Respect rules for use of AC_LIBOBJ.
19875         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19876         * modules/chown (configure.ac): ... to here.
19877
19878 2011-05-05  Bruno Haible  <bruno@clisp.org>
19879
19880         chdir-long: Move AC_LIBOBJ invocations to module description.
19881         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19882         gl_PREREQ_CHDIR_LONG invocations from here...
19883         * modules/chdir-long (configure.ac): ... to here.
19884
19885 2011-05-05  Bruno Haible  <bruno@clisp.org>
19886
19887         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19888         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19889         from here...
19890         * modules/canonicalize-lgpl (configure.ac): ... to here.
19891
19892 2011-05-05  Bruno Haible  <bruno@clisp.org>
19893
19894         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19895         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19896         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19897         REPLACE_CALLOC.
19898         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19899         * modules/calloc-gnu (configure.ac): Likewise.
19900
19901 2011-05-05  Bruno Haible  <bruno@clisp.org>
19902
19903         btowc: Move AC_LIBOBJ invocations to module description.
19904         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19905         invocations from here...
19906         * modules/btowc (configure.ac): ... to here.
19907
19908 2011-05-21  Bruno Haible  <bruno@clisp.org>
19909
19910         atexit: Move AC_LIBOBJ invocations to module description.
19911         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19912         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19913         here...
19914         * modules/atexit (configure.ac): ... to here.
19915
19916 2011-05-05  Bruno Haible  <bruno@clisp.org>
19917
19918         atoll: Move AC_LIBOBJ invocations to module description.
19919         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19920         invocations from here...
19921         * modules/atoll (configure.ac): ... to here.
19922
19923 2011-05-05  Bruno Haible  <bruno@clisp.org>
19924
19925         argz: Move AC_LIBOBJ invocations to module description.
19926         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19927         * modules/argz (configure.ac): ... to here.
19928
19929 2011-05-05  Bruno Haible  <bruno@clisp.org>
19930
19931         alphasort: Move AC_LIBOBJ invocations to module description.
19932         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19933         gl_PREREQ_ALPHASORT invocations from here...
19934         * modules/alphasort (configure.ac): ... to here.
19935
19936 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19937
19938         verify: new macro verify_expr; verify_true deprecated
19939         * NEWS: Mention this.
19940         * doc/verify.texi (Compile-time Assertions): Document this.
19941         * lib/verify.h (verify_true): Deprecate.
19942         (verify_expr): New macro.
19943         * tests/test-verify.c (function): Test verify_expr.
19944
19945 2011-06-14  Jim Meyering  <meyering@redhat.com>
19946
19947         init.sh: give more portable redirection-related advice in a comment
19948         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19949         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19950         for lots of discussion.  Stefano Lattarini suggested the solution
19951         of putting "9>&2" after the command.  Reported by Bruno Haible.
19952
19953 2011-06-13  Bruno Haible  <bruno@clisp.org>
19954
19955         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19956         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19957         'none'.
19958
19959 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19960
19961         ftoastr: use strtof only if HAVE_STRTOF
19962         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19964         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19965         * modules/ftoastr (configure.ac): Check for strtof.
19966
19967 2011-06-13  Bruno Haible  <bruno@clisp.org>
19968
19969         gnulib-tool: Addendum to 2011-06-08 commit.
19970         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19971         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19972
19973 2011-06-13  Bruno Haible  <bruno@clisp.org>
19974
19975         fseeko: Provide a non-inline replacement of fseek().
19976         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19977         * modules/fseeko (Depends-on): Add fseek.
19978         * modules/fseek (License): Change to LGPLv2+.
19979
19980 2011-06-13  Bruno Haible  <bruno@clisp.org>
19981
19982         ftello: Provide a non-inline replacement of ftell().
19983         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19984         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19985         not have ftello() (such as on mingw).
19986         * modules/ftello (Depends-on): Add ftell.
19987         * modules/ftell (License): Change to LGPLv2+.
19988
19989 2011-05-07  Bruno Haible  <bruno@clisp.org>
19990
19991         ftell: Move AC_LIBOBJ invocations to module description.
19992         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19993         * modules/ftell (configure.ac): ... to here.
19994
19995 2011-05-07  Bruno Haible  <bruno@clisp.org>
19996
19997         ftello: Respect rules for use of AC_LIBOBJ.
19998         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19999         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20000         here...
20001         * modules/ftello (configure.ac): ... to here.
20002
20003 2011-05-07  Bruno Haible  <bruno@clisp.org>
20004
20005         fseeko: Simplify.
20006         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20007         (gl_FUNC_FSEEKO): Inline it here.
20008
20009 2011-05-07  Bruno Haible  <bruno@clisp.org>
20010
20011         fseek: Move AC_LIBOBJ invocations to module description.
20012         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20013         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20014         * modules/fseek (configure.ac): ... to here.
20015
20016 2011-05-07  Bruno Haible  <bruno@clisp.org>
20017
20018         fseek: Respect rules for use of AC_LIBOBJ.
20019         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20020         here...
20021         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20022
20023 2011-05-07  Bruno Haible  <bruno@clisp.org>
20024
20025         fseeko: Respect rules for use of AC_LIBOBJ.
20026         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20027         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20028         here...
20029         * modules/fseeko (configure.ac): ... to here.
20030
20031 2011-06-13  Bruno Haible  <bruno@clisp.org>
20032
20033         gnulib-tool: Allow comments in the 'Depends-on' section.
20034         * doc/gnulib.texi (Module description): Mention comment syntax in the
20035         Depends-on section.
20036         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20037
20038 2011-06-13  Bruno Haible  <bruno@clisp.org>
20039
20040         file-set.h: guard __attibute__ use, now that it's not always defined
20041         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20042         versions that support it.  This fixes a coreutils build failure with
20043         the vendor cc on HP-UX 11.31.
20044
20045 2011-06-12  Bruno Haible  <bruno@clisp.org>
20046
20047         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20048         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20049         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20050         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20051         (acl, aclsort): New declarations.
20052         (aclv_nontrivial): New declaration.
20053         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20054         (file_has_acl): Read also the second kind of HP-UX ACLs.
20055         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20056         kind of HP-UX ACLs if the first kind fails.
20057         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20058         second kind of HP-UX ACLs.
20059         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20060         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20061         agree.
20062         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20063         hpuxjfs.
20064         Handle hpuxjfs.
20065         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20066         hpuxjfs.
20067         Handle hpuxjfs.
20068         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20069         (func_test_same_acls): Use both lsacl and getacl.
20070         Handle hpuxjfs.
20071         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20072         (func_test_same_acls): Use both lsacl and getacl.
20073         Handle hpuxjfs.
20074
20075 2011-06-12  Bruno Haible  <bruno@clisp.org>
20076
20077         acl: Complete the 2010-08-10 fix.
20078         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20079         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20080         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20081         explicitly.
20082         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20083         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20084
20085 2011-06-12  Bruno Haible  <bruno@clisp.org>
20086
20087         spawn-pipe tests: Comments.
20088         * tests/test-spawn-pipe-child.c (main): Update comment.
20089         Reported by James Youngman <jay@gnu.org>.
20090
20091 2011-06-11  James Youngman  <jay@gnu.org>
20092
20093         New module 'stat-size'.
20094         * modules/stat-size: New module.  Provides macros for accessing
20095         file size information in instances of struct stat.  Depends on the
20096         fileblocks module because it calls st_blocks.
20097         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20098         * doc/gnulib.texi: Include stat-size.texi.
20099         * doc/stat-size.texi: Documentation for this module.
20100         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20101         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20102         AC_STRUCT_ST_BLOCKS.
20103
20104 2011-06-09  Bruno Haible  <bruno@clisp.org>
20105
20106         thread: Support pthreads-win32.
20107         * lib/glthread/thread.h (gl_thread_self): Define differently on
20108         pthreads-win32.
20109         (gl_null_thread): New declaration.
20110         (gl_thread_self_pointer): New macro.
20111         * lib/glthread/thread.c (gl_null_thread): New constant.
20112         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20113         gl_thread_self.
20114         * tests/test-tls.c: Likewise.
20115         Suggested by Paul Eggert. Reported by Eric Blake.
20116
20117 2011-06-09  Bruno Haible  <bruno@clisp.org>
20118
20119         thread: Fix confusion between NULL and 0.
20120         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20121         Reported by Paul Eggert.
20122
20123 2011-06-09  Bruno Haible  <bruno@clisp.org>
20124
20125         spawn-pipe tests: Avoid test failure on HP-UX 11.
20126         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20127         is closed.
20128
20129 2011-06-09  Bruno Haible  <bruno@clisp.org>
20130
20131         acl tests: Fix compilation error on HP-UX 11.
20132         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20133
20134 2011-06-09  Bruno Haible  <bruno@clisp.org>
20135
20136         rmdir: Avoid test failure on HP-UX 10.20.
20137         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20138         EEXIST.
20139
20140 2011-06-08  Eric Blake  <eblake@redhat.com>
20141
20142         perror: fix test on mingw
20143         * modules/perror-tests (Depends-on): Add dup2.
20144
20145         strerror_r-posix: fix on MacOS
20146         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20147         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20148         logic bug.
20149         * lib/strerror_r.c (strerror_r): Fix the bug.
20150         * lib/strerror.c (strerror): Likewise.
20151         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20152         problem.
20153         * doc/posix-functions/strerror.texi (strerror): Likewise.
20154         * doc/posix-functions/perror.texi (perror): Likewise.
20155         * tests/test-strerror.c (main): Enhance test.
20156         * tests/test-strerror_r.c (main): Likewise.
20157
20158 2011-06-08  Bruno Haible  <bruno@clisp.org>
20159
20160         gnulib-tool: Better isolation between different gnulib-tool invocations.
20161         * gnulib-tool: New option --witness-c-macro.
20162         (witness_c_macro): New variable.
20163         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20164         AM_CPPFLAGS define it as a C macro.
20165         (func_emit_tests_Makefile_am): Likewise.
20166         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20167         read it from there.
20168         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20169         m4_define, not AC_DEFUN.
20170         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20171         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20172         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20173         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20174         s|...|...|, to substitute the values of the GNULIB_* module indicator
20175         variables.
20176         * modules/dirent (Makefile.am): Likewise.
20177         * modules/fcntl-h (Makefile.am): Likewise.
20178         * modules/iconv-h (Makefile.am): Likewise.
20179         * modules/langinfo (Makefile.am): Likewise.
20180         * modules/locale (Makefile.am): Likewise.
20181         * modules/math (Makefile.am): Likewise.
20182         * modules/netdb (Makefile.am): Likewise.
20183         * modules/poll-h (Makefile.am): Likewise.
20184         * modules/pty (Makefile.am): Likewise.
20185         * modules/search (Makefile.am): Likewise.
20186         * modules/signal (Makefile.am): Likewise.
20187         * modules/spawn (Makefile.am): Likewise.
20188         * modules/stdio (Makefile.am): Likewise.
20189         * modules/stdlib (Makefile.am): Likewise.
20190         * modules/string (Makefile.am): Likewise.
20191         * modules/sys_ioctl (Makefile.am): Likewise.
20192         * modules/sys_select (Makefile.am): Likewise.
20193         * modules/sys_socket (Makefile.am): Likewise.
20194         * modules/sys_stat (Makefile.am): Likewise.
20195         * modules/sys_times (Makefile.am): Likewise.
20196         * modules/sys_utsname (Makefile.am): Likewise.
20197         * modules/sys_wait (Makefile.am): Likewise.
20198         * modules/termios (Makefile.am): Likewise.
20199         * modules/time (Makefile.am): Likewise.
20200         * modules/unistd (Makefile.am): Likewise.
20201         * modules/wchar (Makefile.am): Likewise.
20202
20203 2011-06-08  Eric Blake  <eblake@redhat.com>
20204
20205         strerror: simplify replacement
20206         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20207         * modules/strerror (configure.ac): No prereqs needed here...
20208         * modules/strerror-override (configure.ac): ...but this needs it.
20209         (Files): Add file for needed prereq macro.
20210
20211 2011-06-08  Bruno Haible  <bruno@clisp.org>
20212
20213         strerror_r-posix: Tweaks.
20214         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20215         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20216         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20217         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20218         (gl_FUNC_STRERROR_R): ... to here.
20219         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20220
20221 2011-06-07  Eric Blake  <eblake@redhat.com>
20222
20223         perror: document fixed bugs
20224         * doc/posix-functions/perror.texi (perror): Document recent
20225         patches.
20226
20227 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20228
20229         stat-time: get_stat_birthtime failure is better-defined
20230         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20231         return a timestamp whose tv_sec and tv_nsec values are both -1.
20232         Previously, the spec said only that the tv_nsec value was negative.
20233         This upward-compatible change simplifies GNU tar a bit.
20234
20235 2011-06-07  Eric Blake  <eblake@redhat.com>
20236
20237         strerror_r-posix: work around cygwin 1.7.9
20238         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20239         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20240         bug without replacing strerror_r.
20241         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20242         strerror_r is buggy, but without requiring strerror_r compilation.
20243         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20244
20245         test-perror: relax test to ignore cygwin bug
20246         * tests/test-perror2.c (main): Relax test on requiring detection
20247         of stream errors, and use unbuffered stream.
20248         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20249         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20250         * doc/posix-functions/fputc.texi (fputc): Likewise.
20251         * doc/posix-functions/fputs.texi (fputs): Likewise.
20252         * doc/posix-functions/fputws.texi (fputws): Likewise.
20253         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20254         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20255         * doc/posix-functions/getopt.texi (getopt): Likewise.
20256         * doc/posix-functions/perror.texi (perror): Likewise.
20257         * doc/posix-functions/printf.texi (printf): Likewise.
20258         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20259         * doc/posix-functions/psignal.texi (psignal): Likewise.
20260         * doc/posix-functions/putc.texi (putc): Likewise.
20261         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20262         Likewise.
20263         * doc/posix-functions/putchar.texi (putchar): Likewise.
20264         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20265         Likewise.
20266         * doc/posix-functions/puts.texi (puts): Likewise.
20267         * doc/posix-functions/putwc.texi (putwc): Likewise.
20268         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20269         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20270         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20271         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20272         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20273         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20274         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20275         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20276
20277 2011-05-22  Bruno Haible  <bruno@clisp.org>
20278
20279         strerror: Move AC_LIBOBJ invocations to module description.
20280         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20281         gl_PREREQ_STRERROR invocations from here...
20282         * modules/strerror (configure.ac): ... to here.
20283
20284 2011-05-21  Bruno Haible  <bruno@clisp.org>
20285
20286         perror: Use common idiom.
20287         * modules/perror (configure.ac): Reorder statements.
20288
20289 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20290
20291         tests: fix usage message in 'mktempd_'
20292         * tests/init.sh (mktempd_): In the usage message, use literal
20293         'mktempd_', not '$ME' (which is even undefined), as the name of
20294         the subroutine.
20295
20296 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20297
20298         tests init: new function 'fatal_', for hard errors
20299         Before this patch, the only way offered by tests/init.sh to
20300         properly signal a hard error was the `framework_failure_'
20301         function.  But the error message issued by that function,
20302         as its name would suggest, refers to a set-up failure in the
20303         testsuite, while hard errors can obviously also be due to
20304         other reasons.  The best way to fix this inconsistency is to
20305         introduce a new function with a more general error message.
20306         * tests/init.sh (fatal_): New function.
20307
20308 2011-06-06  Eric Blake  <eblake@redhat.com>
20309
20310         canonicalize-lgpl: use common idiom
20311         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20312         over newer POSIX -Rf.
20313         Reported by Bruno Haible.
20314
20315         canonicalize-lgpl: work around AIX realpath bug
20316         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20317         * doc/posix-functions/realpath.texi (realpath): Document it.
20318         Reported by Bruno Haible.
20319
20320         strerror: work around FreeBSD bug
20321         * lib/strerror.c (strerror): Special case 0.
20322         Reported by Bruno Haible.
20323
20324         strerror-override: avoid bloating errno module
20325         * modules/errno (Files, configure.ac): Move replacement strings...
20326         * modules/strerror-override: ...to new module.
20327         * modules/strerror (Depends-on): Add strerror-override.
20328         * modules/strerror_r-posix (Depends-on): Likewise.
20329         * MODULES.html.sh: Document new module.
20330         Reported by Bruno Haible.
20331
20332 2011-06-06  Bruno Haible  <bruno@clisp.org>
20333
20334         spawn-pipe tests: Rename program.
20335         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20336         * tests/test-spawn-pipe-child.c: Update comment.
20337         * tests/test-spawn-pipe.sh: Update.
20338         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20339
20340         spawn-pipe tests: Link the child program only against libc.
20341         * tests/test-spawn-pipe-child.c: New file, extracted from
20342         tests/test-spawn-pipe.c.
20343         (main): Expect only one argument.
20344         (is_open): New function, copied from tests/test-pipe.c.
20345         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20346         (child_main): Remove function.
20347         (test_pipe): Pass only one argument to the child program.
20348         (main): Remove child process code. Expect the child program's name as
20349         first argument.
20350         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20351         argument.
20352         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20353         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20354         test-spawn-pipe-child against no libraries.
20355
20356 2011-06-06  Bruno Haible  <bruno@clisp.org>
20357
20358         careadlinkat: Avoid mismatch between ssize_t and int.
20359         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20360         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20361
20362 2011-06-06  Jim Meyering  <meyering@redhat.com>
20363
20364         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20365         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20366         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20367
20368 2011-06-05  Bruno Haible  <bruno@clisp.org>
20369
20370         ansi-c++-opt: Interoperability with libtool.
20371         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20372         set the variable to "no", not to ":".
20373         * NEWS: Mention the change.
20374
20375 2011-06-05  Bruno Haible  <bruno@clisp.org>
20376
20377         acl: Fix test failure on AIX 7.
20378         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20379         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20380
20381 2011-06-05  Bruno Haible  <bruno@clisp.org>
20382
20383         pipe-filter-ii: Fix test failure on AIX and IRIX.
20384         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20385         with EAGAIN, retry with a smaller buffer size.
20386
20387 2011-06-05  Bruno Haible  <bruno@clisp.org>
20388
20389         localename: Fix link dependencies.
20390         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20391         * modules/localename-tests (Makefile.am): Link test-localename with
20392         $(LIBTHREAD).
20393
20394 2011-06-05  Bruno Haible  <bruno@clisp.org>
20395
20396         error: Avoid gcc warning.
20397         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20398
20399 2011-06-05  Bruno Haible  <bruno@clisp.org>
20400
20401         unsetenv: Avoid gcc warning.
20402         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20403
20404 2011-06-05  Bruno Haible  <bruno@clisp.org>
20405
20406         setenv: Avoid gcc warning.
20407         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20408
20409 2011-06-05  Bruno Haible  <bruno@clisp.org>
20410
20411         sys_select: Ensure memset is declared also on AIX 7.
20412         * lib/sys_select.in.h: Include <string.h> also on AIX.
20413         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20414         self-contained also on AIX 7.1.
20415
20416 2011-06-04  Jim Meyering  <meyering@redhat.com>
20417
20418         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20419         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20420         function name, "error".
20421         (_gl_translatable_diag_func_re): New configurable variable.
20422
20423 2011-06-04  Bruno Haible  <bruno@clisp.org>
20424
20425         getopt: Avoid gcc warning.
20426         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20427
20428 2011-06-04  Bruno Haible  <bruno@clisp.org>
20429
20430         strerror_r: Fix comments.
20431         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20432         commit.
20433
20434 2011-06-04  Bruno Haible  <bruno@clisp.org>
20435
20436         perror: Fix compilation error.
20437         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20438         Undefine fprintf, not sprintf.
20439         * modules/perror (Depends-on): Remove intprops, verify.
20440
20441 2011-06-04  Bruno Haible  <bruno@clisp.org>
20442
20443         setlocale: Enable replacement on Cygwin 1.5.
20444         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20445         Cygwin 1.5.x.
20446         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20447         LC_CTYPE category also exists on Cygwin 1.5.x.
20448
20449 2011-06-04  Bruno Haible  <bruno@clisp.org>
20450
20451         strerror-override: Don't disable symbol renamings.
20452         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20453         * lib/strerror-override.c: Include config.h.
20454         (strerror_override): Don't undefine.
20455
20456 2011-06-03  Bruno Haible  <bruno@clisp.org>
20457
20458         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20459         * lib/localename.h: Update copyright header.
20460         * lib/localename.c: Likewise.
20461         * lib/relocatable.h: Likewise.
20462         * lib/relocatable.c: Likewise.
20463
20464 2011-06-02  Bruno Haible  <bruno@clisp.org>
20465
20466         doc: Fix a module name.
20467         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20468
20469 2011-06-02  Bruno Haible  <bruno@clisp.org>
20470
20471         pipe2: Remove dependency on 'nonblocking' module.
20472         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20473         O_NONBLOCK is defined by gnulib.
20474         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20475         is zero.
20476         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20477         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20478         defined by gnulib.
20479         (get_nonblocking_flag): New function.
20480         (main): Test O_NONBLOCK flag only if it is nonzero.
20481         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20482
20483 2011-06-03  Jim Meyering  <meyering@redhat.com>
20484
20485         maint: three new prohibit-header-without-use rules
20486         Prohibit use of cloexec.h, posixver.h, same.h without use.
20487         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20488         (sc_prohibit_posixver_without_use): Likewise.
20489         (sc_prohibit_same_without_use): Likewise.
20490
20491 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20492
20493         allocator: 'die' routine is now given requested size
20494         * lib/allocator.h (struct allocator.die): New size arg.
20495         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20496         If the actual problem is an ssize_t limitation, not a size_t or
20497         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20498
20499 2011-06-01  Eric Blake  <eblake@redhat.com>
20500
20501         strerror: drop strerror_r dependency
20502         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20503         * lib/strerror-override.c (strerror_override): ...to new file.
20504         * lib/strerror-override.h: Add prototype.
20505         * lib/strerror-impl.h: Delete.
20506         * lib/strerror.c (strerror): New implementation.
20507         * modules/errno (Files): Add new files.
20508         (configure.ac): Compile new file as appropriate.
20509         * modules/strerror (Files): Drop unused file.
20510         (Depends-on): Drop strerror_r-posix.
20511         * MODULES.html.sh: Document strerror_r-posix.
20512         Requested by Sam Steingold.
20513
20514         perror: call strerror_r directly
20515         * modules/perror (Files): Drop strerror-impl.h.
20516         * lib/perror.c (perror): Use our own stack buffer, rather than
20517         calling a wrapper that uses static storage.
20518         * doc/posix-functions/perror.texi (perror): Document a limitation
20519         of our replacement.
20520
20521         strerror_r: fix includes for FreeBSD
20522         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20523         since we use abort on some platforms.
20524         Reported by Matthias Bolte.
20525
20526 2011-05-31  Bruno Haible  <bruno@clisp.org>
20527
20528         Fix link errors in tests: openat-die uses gettext-h.
20529         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20530         against $(LIBINTL).
20531         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20532         against $(LIBINTL).
20533         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20534         $(LIBINTL).
20535         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20536         against $(LIBINTL).
20537         * modules/linkat-tests (Makefile.am): Link test-linkat against
20538         $(LIBINTL).
20539         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20540         $(LIBINTL).
20541         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20542         against $(LIBINTL).
20543         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20544         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20545         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20546         $(LIBINTL).
20547         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20548         $(LIBINTL).
20549         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20550         $(LIBINTL).
20551         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20552
20553 2011-05-31  Bruno Haible  <bruno@clisp.org>
20554
20555         Fix link errors in tests: wait-process uses gettext-h.
20556         * modules/nonblocking-pipe-tests (Makefile.am): Set
20557         test_nonblocking_pipe_main_LDADD.
20558         * modules/nonblocking-socket-tests (Makefile.am): Link
20559         test-nonblocking-socket-main against $(LIBINTL).
20560         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20561
20562 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20563
20564         assert-h: work around 'verify' incompatibility
20565         * lib/verify.h: Use @...@ directives, not ifdef.
20566         * modules/assert-h (assert.h): Implement the directives.
20567         (assert.h): Substitute the symbol-prefix more consistently.
20568
20569 2011-05-29  Jim Meyering  <meyering@redhat.com>
20570
20571         trim: remove three superfluous assignments
20572         * lib/trim.c (trim2): Remove three superfluous assignments
20573         and correct brace positioning.
20574
20575 2011-05-29  Bruno Haible  <bruno@clisp.org>
20576
20577         wctype-h: Avoid namespace pollution on Solaris 2.6.
20578         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20579         identifiers.
20580         * doc/posix-headers/wctype.texi: Mention the problem.
20581         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20582
20583 2011-05-28  Jim Meyering  <meyering@redhat.com>
20584
20585         parse-datetime.y: accommodate -Wstrict-overflow
20586         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20587         placate -Wstrict-overflow.
20588
20589         trim: avoid a warning from -O2 -Wstrict-overflow
20590         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20591
20592 2011-05-29  Bruno Haible  <bruno@clisp.org>
20593
20594         gnulib-tool: Fix bug in yesterday's commit.
20595         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20596         twice.
20597
20598 2011-05-29  Bruno Haible  <bruno@clisp.org>
20599
20600         Allow multiple gnulib generated include files to be combined.
20601         * gnulib-tool (func_compute_include_guard_prefix): New function.
20602         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20603         ${gl_include_guard_prefix} references.
20604         (func_import, func_create_testdir): Invoke
20605         func_compute_include_guard_prefix.
20606         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20607         * lib/ctype.in.h: Likewise.
20608         * lib/dirent.in.h: Likewise.
20609         * lib/errno.in.h: Likewise.
20610         * lib/fcntl.in.h: Likewise.
20611         * lib/float.in.h: Likewise.
20612         * lib/getopt.in.h: Likewise.
20613         * lib/iconv.in.h: Likewise.
20614         * lib/langinfo.in.h: Likewise.
20615         * lib/locale.in.h: Likewise.
20616         * lib/math.in.h: Likewise.
20617         * lib/netdb.in.h: Likewise.
20618         * lib/netinet_in.in.h: Likewise.
20619         * lib/poll.in.h: Likewise.
20620         * lib/pthread.in.h: Likewise.
20621         * lib/pty.in.h: Likewise.
20622         * lib/sched.in.h: Likewise.
20623         * lib/se-selinux.in.h: Likewise.
20624         * lib/search.in.h: Likewise.
20625         * lib/signal.in.h: Likewise.
20626         * lib/spawn.in.h: Likewise.
20627         * lib/stdarg.in.h: Likewise.
20628         * lib/stddef.in.h: Likewise.
20629         * lib/stdint.in.h: Likewise.
20630         * lib/stdio.in.h: Likewise.
20631         * lib/stdlib.in.h: Likewise.
20632         * lib/string.in.h: Likewise.
20633         * lib/strings.in.h: Likewise.
20634         * lib/sys_file.in.h: Likewise.
20635         * lib/sys_ioctl.in.h: Likewise.
20636         * lib/sys_select.in.h: Likewise.
20637         * lib/sys_socket.in.h: Likewise.
20638         * lib/sys_stat.in.h: Likewise.
20639         * lib/sys_time.in.h: Likewise.
20640         * lib/sys_times.in.h: Likewise.
20641         * lib/sys_uio.in.h: Likewise.
20642         * lib/sys_utsname.in.h: Likewise.
20643         * lib/sys_wait.in.h: Likewise.
20644         * lib/sysexits.in.h: Likewise.
20645         * lib/termios.in.h: Likewise.
20646         * lib/time.in.h: Likewise.
20647         * lib/unistd.in.h: Likewise.
20648         * lib/wchar.in.h: Likewise.
20649         * lib/wctype.in.h: Likewise.
20650         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20651         * modules/ctype (Makefile.am): Likewise.
20652         * modules/dirent (Makefile.am): Likewise.
20653         * modules/errno (Makefile.am): Likewise.
20654         * modules/fcntl-h (Makefile.am): Likewise.
20655         * modules/float (Makefile.am): Likewise.
20656         * modules/getopt-posix (Makefile.am): Likewise.
20657         * modules/iconv-h (Makefile.am): Likewise.
20658         * modules/langinfo (Makefile.am): Likewise.
20659         * modules/locale (Makefile.am): Likewise.
20660         * modules/math (Makefile.am): Likewise.
20661         * modules/netdb (Makefile.am): Likewise.
20662         * modules/netinet_in (Makefile.am): Likewise.
20663         * modules/poll-h (Makefile.am): Likewise.
20664         * modules/pthread (Makefile.am): Likewise.
20665         * modules/pty (Makefile.am): Likewise.
20666         * modules/sched (Makefile.am): Likewise.
20667         * modules/search (Makefile.am): Likewise.
20668         * modules/selinux-h (Makefile.am): Likewise.
20669         * modules/signal (Makefile.am): Likewise.
20670         * modules/spawn (Makefile.am): Likewise.
20671         * modules/stdarg (Makefile.am): Likewise.
20672         * modules/stddef (Makefile.am): Likewise.
20673         * modules/stdint (Makefile.am): Likewise.
20674         * modules/stdio (Makefile.am): Likewise.
20675         * modules/stdlib (Makefile.am): Likewise.
20676         * modules/string (Makefile.am): Likewise.
20677         * modules/strings (Makefile.am): Likewise.
20678         * modules/sys_file (Makefile.am): Likewise.
20679         * modules/sys_ioctl (Makefile.am): Likewise.
20680         * modules/sys_select (Makefile.am): Likewise.
20681         * modules/sys_socket (Makefile.am): Likewise.
20682         * modules/sys_stat (Makefile.am): Likewise.
20683         * modules/sys_time (Makefile.am): Likewise.
20684         * modules/sys_times (Makefile.am): Likewise.
20685         * modules/sys_uio (Makefile.am): Likewise.
20686         * modules/sys_utsname (Makefile.am): Likewise.
20687         * modules/sys_wait (Makefile.am): Likewise.
20688         * modules/sysexits (Makefile.am): Likewise.
20689         * modules/termios (Makefile.am): Likewise.
20690         * modules/time (Makefile.am): Likewise.
20691         * modules/unistd (Makefile.am): Likewise.
20692         * modules/wchar (Makefile.am): Likewise.
20693         * modules/wctype-h (Makefile.am): Likewise.
20694         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20695
20696 2011-05-29  Bruno Haible  <bruno@clisp.org>
20697
20698         assert-h: Allow multiple gnulib generated replacements to coexist.
20699         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20700
20701 2011-05-29  Bruno Haible  <bruno@clisp.org>
20702
20703         argp: Allow coexistence with strerror_r-posix module.
20704         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20705         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20706         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20707         not the glibc signature.
20708
20709 2011-05-28  Bruno Haible  <bruno@clisp.org>
20710
20711         gnulib-tool: Alternative structure of testdirs, similar to --import.
20712         * gnulib-tool: New option --single-configure.
20713         (func_usage): Document it.
20714         (single_configure): New variable.
20715         (func_modules_transitive_closure_separately,
20716         func_modules_transitive_closure_separately,
20717         func_determine_use_libtests, func_modules_add_dummy_separately,
20718         func_modules_to_filelist_separately): New functions, extracted from
20719         func_import.
20720         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20721         (func_import): Use the new functions.
20722         (func_create_testdir): Set final_modules. Handle $single_configure =
20723         true case.
20724
20725 2011-05-28  Bruno Haible  <bruno@clisp.org>
20726
20727         getloadavg: Remove an unreliable safety check.
20728         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20729         getloadavg.c is in place.
20730         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20731         Reported by Sam Steingold <sds@gnu.org>.
20732
20733 2011-05-28  Bruno Haible  <bruno@clisp.org>
20734
20735         doc: Cleanup yet another file produced by texinfo.tex.
20736         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20737
20738 2011-05-28  Bruno Haible  <bruno@clisp.org>
20739
20740         Finish the conditional dependencies mechanism.
20741         * gnulib-tool: New option --no-conditional-dependencies.
20742         (func_usage): Document it. Don't mark --conditional-dependencies as
20743         experimental.
20744         (cond_dependencies): The possible values can now be true, false, empty.
20745         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20746         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20747         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20748
20749 2011-05-28  Bruno Haible  <bruno@clisp.org>
20750
20751         doc: Use a recent texinfo.tex.
20752         * doc/Makefile (tex_opts): New variable.
20753         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20754
20755 2011-05-28  Jim Meyering  <meyering@redhat.com>
20756
20757         intprops.h: adjust comment to match code change
20758         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20759         only once, it *may* have side effects.  Also fix an unrelated typo.
20760         (_GL_INT_SIGNED): Likewise.
20761
20762 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20763
20764         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20765
20766 2011-05-26  Bruno Haible  <bruno@clisp.org>
20767
20768         mbsrchr: Avoid collision with system function on Interix.
20769         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20770         Reported by Markus Duft <mduft@gentoo.org>.
20771
20772 2011-05-15  James Youngman  <jay@gnu.org>
20773
20774         getopt: for ambiguous options, enumerate the possibilities.
20775         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20776         the ambiguous options when an ambiguous prefix is given. This was
20777         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20778         glibc change was
20779         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20780
20781 2011-05-25  Eric Blake  <eblake@redhat.com>
20782
20783         getcwd: work around mingw bug
20784         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20785         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20786         Reported by Matthias Bolte.
20787
20788 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20789
20790         test-intprops: disable -Wtype-limits diagnostics
20791         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20792         diagnostics.  Otherwise, the integer overflow macros generate many
20793         diagnostics.  Reported by Jim Meyering in
20794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20795
20796         intprops: shorten, to pacify gcc -Woverlength-strings
20797         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
20798         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
20799         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
20800         likely to run afoul of C compiler limits for string constant lengths.
20801         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20802
20803 2011-05-24  Eric Blake  <eblake@redhat.com>
20804
20805         docs: document recently fixed glibc printf bug
20806         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20807         * doc/posix-functions/printf.texi (printf): Likewise.
20808         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20809         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20810
20811         closein-tests: convert to init.sh
20812         * modules/closein-tests (Files): Add init.sh
20813         * tests/test-closein.sh Use it.
20814
20815         yesno-tests: convert to init.sh
20816         * modules/yesno-tests (Files): Add init.sh.
20817         * tests/test-yesno.sh: Use it.
20818
20819         atexit-tests: ensure reliable exit status
20820         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
20821         Reported by Bruno Haible.
20822
20823 2011-05-24  Bruno Haible  <bruno@clisp.org>
20824
20825         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
20826         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
20827         gl_PREREQ_STRERROR_R invocations from here...
20828         * modules/strerror_r-posix (configure.ac): ... to here.
20829
20830 2011-05-24  Eric Blake  <eblake@redhat.com>
20831
20832         strerror_r: fix missing header
20833         * lib/strerror_r.c: Avoid compiler warning about snprintf.
20834
20835         strerror_r: fix AIX test failures
20836         * lib/strerror_r.c (strerror_r): Convert silent truncation to
20837         ERANGE failure.
20838
20839         strerror_r: fix Solaris test failures
20840         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
20841         failures.
20842         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20843
20844         strerror_r: enforce POSIX recommendations
20845         * lib/strerror_r.c (safe_copy): New helper method.
20846         (strerror_r): Guarantee a non-empty string.
20847         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20848         recent POSIX rulings and to match our strerror guarantees.
20849         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20850
20851 2011-05-24  Jim Meyering  <meyering@redhat.com>
20852
20853         test-perror2.c: avoid warning about unused variable
20854         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20855
20856 2011-05-24  Eric Blake  <eblake@redhat.com>
20857
20858         perror: avoid spurious test failure on HP-UX
20859         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20860
20861         tests: fix logic bug in init.sh
20862         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20863         shell.
20864
20865 2011-05-24  Jim Meyering  <meyering@redhat.com>
20866
20867         utimensat: do not reference an out-of-scope buffer
20868         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20869         declared in an inner scope, yet "times" would be dereferenced outside
20870         the scope in which "ts" was valid.
20871         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20872         of ts[2] "out/up", so that the use of aliased "times" (via
20873         "times = ts;") does not end up referencing an out-of-scope "ts"
20874
20875         opendir-safer.c: don't clobber errno; don't close negative FD
20876         * lib/opendir-safer.c (opendir_safer):
20877         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20878         file descriptor, and more importantly, don't clobber the
20879         offending errno value with EINVAL.  Before, upon failure
20880         of dup_safer, we would pass the negative file descriptor to
20881         fdopendir, which would clobber errno.
20882
20883 2011-05-23  Bruno Haible  <bruno@clisp.org>
20884
20885         idcache: Fix module description.
20886         * modules/idcache (Include): Set to "idcache.h".
20887
20888 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20889
20890         gnulib-tool: fix portability problem with MacOS sed
20891         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20892         before the "}".  Problem reported by Leo in
20893         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20894         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20895         sed_extract_condition1, sed_extract_condition2.
20896
20897 2011-05-23  Bruno Haible  <bruno@clisp.org>
20898
20899         hash: Simplify autoconf macro.
20900         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20901
20902 2011-05-23  Bruno Haible  <bruno@clisp.org>
20903
20904         getugroups: Fix module description.
20905         * modules/getugroups (Include): Set to "getugroups.h".
20906
20907 2011-05-23  Bruno Haible  <bruno@clisp.org>
20908
20909         linkat: Simplify autoconf macro.
20910         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20911
20912 2011-05-23  Bruno Haible  <bruno@clisp.org>
20913             Eric Blake  <eblake@redhat.com>
20914
20915         linkat, renameat: Update dependencies.
20916         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20917         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20918         symlinkat.
20919
20920 2011-05-23  Jim Meyering  <meyering@redhat.com>
20921
20922         maint.mk: more tight_scope improvements
20923         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20924         (_gl_TS_headers): Define only in if-0'd block.
20925         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20926         sometimes we must *not* use it.  Adjust uses accordingly.
20927         (sc_tight_scope): Use much simpler grep-based test to determine
20928         whether we skip this rule.
20929
20930         maint.mk: generalize/improve the tight-scope rule
20931         * top/maint.mk: Emit a warning when the test is skipped.
20932         (_gl_TS_dir): Add $(srcdir)/ prefix.
20933         (_gl_TS_function_match): Simplify, rather than trying
20934         to enumerate common types.  Otherwise, it would fail to match an
20935         "extern unsigned char const *" declaration in idutils.
20936         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20937         a way to support use of that type of macro.
20938         (_gl_TS_var_match): Simplify regexp.
20939         (_gl_TS_obj_files): New configurable variable.
20940         (_gl_TS_headers): Likewise.
20941
20942 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20943
20944         verify: fix bug when gnulib <assert.h> is also included
20945         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20946         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20947         Perhaps there's a better way, but this fixes the immediate problem.
20948         Problem reported by Bruno Haible in
20949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20950
20951 2011-05-22  Bruno Haible  <bruno@clisp.org>
20952
20953         xgetcwd: Simplify autoconf macro.
20954         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20955
20956 2011-05-22  Bruno Haible  <bruno@clisp.org>
20957
20958         New module 'mktime-internal'.
20959         * modules/mktime-internal: New file.
20960         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20961         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20962         mktime_internal as a C macro if libc has __mktime_internal.
20963         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20964         conditions.
20965         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20966
20967 2011-05-22  Bruno Haible  <bruno@clisp.org>
20968
20969         timegm: Correct mktime replacement statements.
20970         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20971         defining mktime as a C macro. This completes a 2009-07-28 commit.
20972
20973 2011-05-22  Bruno Haible  <bruno@clisp.org>
20974
20975         timegm: Simplify autoconf macro.
20976         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20977
20978 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20979
20980         clock-time: change to LGPLv2+.
20981         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20982         BSD-like but we have no mark for that; this is good enough for now.
20983
20984 2011-05-21  Bruno Haible  <bruno@clisp.org>
20985
20986         strerror_r: Fix comments.
20987         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20988
20989 2011-05-21  Bruno Haible  <bruno@clisp.org>
20990
20991         relocatable-prog-wrapper: Fix possible link error.
20992         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20993         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20994         (gl_FUNC_SETENV): ... to here.
20995         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20996         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20997
20998 2011-05-21  Bruno Haible  <bruno@clisp.org>
20999
21000         relocatable-prog-wrapper: Assume strerror() exists.
21001         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21002         m4/strerror.m4.
21003         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21004         * lib/relocwrapper.c: Remove mention of strerror module.
21005         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21006         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21007         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21008         C macro.
21009
21010 2011-05-21  Bruno Haible  <bruno@clisp.org>
21011
21012         select: Simplify replacement idiom.
21013         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21014         Win32 platforms.
21015         * lib/sys_select.in.h (select): Simplify accordingly.
21016         * modules/select (Depends-on): Likewise.
21017
21018 2011-05-21  Bruno Haible  <bruno@clisp.org>
21019
21020         mkdir-p: Simplify autoconf macro.
21021         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21022         gl_FUNC_LCHOWN.
21023
21024 2011-05-21  Eric Blake  <eblake@redhat.com>
21025
21026         strerror_r: avoid clobbering strerror on cygwin
21027         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21028         fall back instead to sys_errlist.
21029         * modules/strerror (configure.ac): Add witness.
21030         * tests/test-strerror_r.c (main): Enhance test.
21031         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21032         * tests/test-perror2.c (main): Free memory before exit.
21033
21034 2011-05-21  Bruno Haible  <bruno@clisp.org>
21035
21036         mkdtemp: Use gnulib naming conventions.
21037         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21038         * modules/mkdtemp (configure.ac): Update.
21039
21040 2011-05-20  Eric Blake  <eblake@redhat.com>
21041
21042         strerror_r: avoid corrupting errno on Solaris
21043         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21044         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21045
21046         strerror_r: avoid compiler warning
21047         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21048
21049         strerror_r: simplify AIX code
21050         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21051
21052         test-perror: avoid spurious failure on FreeBSD
21053         * modules/perror-tests (Depends-on): Add strerror, now that
21054         strerror_r no longer pulls it in.
21055
21056 2011-05-20  Bruno Haible  <bruno@clisp.org>
21057
21058         strerror_r-posix: Remove unused dependencies.
21059         * modules/strerror_r-posix (Depends-on): Remove strerror.
21060         Reported by Eric Blake.
21061
21062 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21063
21064         intprops: remove assumption about A|B representation
21065         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21066         is a valid integer if both A and B are.  Although this is true for
21067         all known practical hosts, the C standard doesn't guarantee it,
21068         and the code need not assume it.  Also, this change may work around
21069         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21071
21072 2011-05-20  Eric Blake  <eblake@redhat.com>
21073
21074         perror: work around FreeBSD bug
21075         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21076         is broken.  Move AC_LIBOBJ...
21077         * modules/perror (configure.ac): Here.
21078         * doc/posix-functions/perror.texi (perror): Document this.
21079         * tests/test-perror2.c (main): Enhance test.
21080
21081         test-perror: check for strerror interactions
21082         * tests/macros.h (STREQ): Add macro.
21083         * modules/perror-tests (Files): Add second test.
21084         * tests/test-perror2.c (main): New file.
21085         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21086
21087         test-perror: rewrite to use init script
21088         * modules/perror-tests (Files): Add init.sh.
21089         * tests/test-perror.sh: Use temporary directory.
21090
21091 2011-05-20  Jim Meyering  <meyering@redhat.com>
21092
21093         maint: replace misused "a" with "an"
21094         * doc/intprops.texi: "a integer"
21095         * doc/regex.texi: "a explanation"
21096         * lib/alignof.h: "a object"
21097         * lib/argmatch.h: "a explanation"
21098         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21099         * lib/stdint.in.h: "a integer"
21100         * lib/userspec.c: "a owner"
21101         * doc/gnulib.texi: Fix "a idea", and reword.
21102
21103 2011-05-19  Jim Meyering  <meyering@redhat.com>
21104
21105         maint: correct misuse of "a" and "an"
21106         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21107         * lib/argp-help.c: "an docum...": s/an/a/
21108         * lib/argp-parse.c: "An vector": s/An/A/
21109         * lib/execute.c: "an native": s/an/a/
21110         * lib/spawn-pipe.c: Likewise.
21111         * lib/gc.h: "an Gc_rc": s/an/a/
21112         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21113         * lib/fts.c: "an stat.st_dev": s/an/a/
21114
21115 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21116
21117         intprops-tests: work around HP-UX 11.23 cc bug with constants
21118         * tests/test-intprops.c (VERIFY): New macro.
21119         (main): Use it, instead of verify, to work around the compiler bug; see
21120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21121
21122         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21123         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21124         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21125         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21126         (_GL_REMAINDER_OVERFLOW): Use it.
21127
21128         intprops-tests: revert unsigned part of previous change
21129         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21130         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21131         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21133
21134 2011-05-19  Bruno Haible  <bruno@clisp.org>
21135
21136         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21137         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21138         strerror_r() returned without filling the buffer.
21139         Reported by Eric Blake.
21140
21141 2011-05-19  Eric Blake  <eblake@redhat.com>
21142
21143         strerror_r: guarantee unchanged errno
21144         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21145         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21146         failure.
21147         * tests/test-strerror_r.c (main): Enhance test.
21148
21149 2011-05-19  Bruno Haible  <bruno@clisp.org>
21150
21151         strerror_r: Reorder #if blocks.
21152         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21153         for consistency with the previous commit.
21154
21155 2011-05-19  Bruno Haible  <bruno@clisp.org>
21156
21157         perror: Avoid clobbering the strerror buffer when possible.
21158         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21159         * lib/strerror.c: Include it.
21160         * modules/strerror (Files): Add lib/strerror-impl.h.
21161         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21162         (my_strerror): New function, defined through lib/strerror-impl.h.
21163         (perror): Use it instead of strerror.
21164         * modules/perror (Files): Add lib/strerror-impl.h.
21165         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21166
21167 2011-05-19  Eric Blake  <eblake@redhat.com>
21168
21169         strerror_r: fix on newer cygwin
21170         * lib/strerror_r.c (strerror_r): Cygwin now has
21171         __xpg_strerror_r, use it.
21172
21173 2011-05-19  Bruno Haible  <bruno@clisp.org>
21174
21175         strerror_r: Avoid clobbering the strerror buffer when possible.
21176         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21177         (sys_nerr, sys_errlist): New declarations.
21178         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21179         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21180         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21181
21182 2011-05-19  Bruno Haible  <bruno@clisp.org>
21183
21184         strerror_r: Fix test failure on mingw.
21185         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21186         EXTEND_STRERROR_R.
21187         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21188         macros from errno.in.h instead.
21189
21190 2011-05-19  Eric Blake  <eblake@redhat.com>
21191
21192         strerror: relax test for Solaris
21193         * tests/test-strerror.c (main): Permit Solaris behavior.
21194         * tests/test-strerror_r.c (main): Likewise.
21195
21196         strerror: enforce POSIX ruling on strerror(0)
21197         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21198         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21199         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21200         * doc/posix-functions/strerror.texi (strerror): Document it.
21201         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21202         * tests/test-strerror.c (main): Strengthen test.
21203         * tests/test-strerror_r.c (main): Likewise.
21204
21205 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21206
21207         intprop-tests: port to older and more-pedantic compilers
21208         * modules/intprops-tests (Files): Add tests/macros.h.
21209         * tests/test-intprops.c: Include macros.h.
21210         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21211         it's no longer documented to expand to an integer constant expression.
21212         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21213         argument is floating point, as it's no longer documented to expand
21214         to an integer constant expression in that case.
21215         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21216         compiler bugs reported by Bruno Haible.  See
21217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21218         (U0, U1): New constants, to work around the same bugs.  Also,
21219         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21220
21221         intprops: work around C compiler bugs
21222         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21223         bug in Sun C 5.11 2010/08/13 and other compilers; see
21224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21225
21226         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21227         * doc/intprops.texi (Integer Type Determination): Fix
21228         documentation for TYPE_IS_INTEGER: it returns an constant
21229         expression, not an integer constant expression.  Fix doc for
21230         TYPE_SIGNED: it returns an integer constant expression only if its
21231         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21232         hardly worth documented that way....)
21233
21234 2011-05-18  Bruno Haible  <bruno@clisp.org>
21235
21236         strerror_r: Avoid clobbering the strerror buffer when possible.
21237         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21238         Handle gnulib defined errno values here. When strerror() returns NULL
21239         or an empty string, return EINVAL.
21240         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21241         gnulib defined errno values here.
21242         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21243
21244 2011-05-18  Eric Blake  <eblake@redhat.com>
21245
21246         fnmatch: avoid compiler warning
21247         * lib/fnmatch_loop.c (FCT): Use correct type.
21248         Reported by Matthias Bolte.
21249
21250 2011-05-13  Jim Meyering  <meyering@redhat.com>
21251
21252         maint.mk: three new prohibit_<HDR>_without_use rules
21253         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21254         (sc_prohibit_stdio-safer_without_use): Likewise.
21255         (sc_prohibit_xfreopen_without_use): Likewise.
21256
21257 2011-05-17  Jim Meyering  <meyering@redhat.com>
21258
21259         announce-gen: fail if the NEWS delta is empty
21260         If there's nothing noteworthy in NEWS, then either you forgot
21261         or you shouldn't be releasing.
21262         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21263
21264 2011-05-17  Pádraig Brady <P@draigBrady.com>
21265
21266         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21267         reserved symbols starting with double underscore from the check.
21268
21269 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21270
21271         intprops: add doc
21272         * doc/intprops.texi: New file, documenting intprops.
21273         * doc/gnulib.texi (Particular Modules): Include it.
21274
21275         verify: add doc to gnulib manual and fix example
21276         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21277         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21278         (Compile-time Assertions): Fix example so it can't overflow.
21279
21280 2011-05-17  Jim Meyering  <meyering@redhat.com>
21281
21282         warnings.m4: don't usurp save_CPPFLAGS variable name
21283         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21284
21285         doc: fix typo
21286         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21287
21288 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21289             Bruno Haible  <bruno@clisp.org>
21290
21291         doc: Tweak recent change.
21292         * README (Portability guidelines): Tweak new text.
21293         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21294         Interix 6.1.
21295
21296 2011-05-16  Eric Blake  <eblake@redhat.com>
21297
21298         inttypes: avoid autoconf warning
21299         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21300         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21301
21302 2011-05-16  Sam Steingold <sds@gnu.org>
21303         and Eric Blake  <eblake@redhat.com>
21304
21305         vc-list-files: accept multiple directory operands
21306         * build-aux/vc-list-files: Iterate over all remaining operands.
21307
21308 2011-05-16  Bruno Haible  <bruno@clisp.org>
21309
21310         Fix confusion regarding deprecated modules.
21311         * modules/calloc (Status, Notice): Mark module as deprecated, not
21312         obsolete.
21313         * modules/fnmatch-posix (Status, Notice): Likewise.
21314         * modules/getdate (Status, Notice): Likewise.
21315         * modules/getopt (Status, Notice): Likewise.
21316         * modules/malloc (Status, Notice): Likewise.
21317         * modules/pipe (Status, Notice): Likewise.
21318         * modules/realloc (Status, Notice): Likewise.
21319         * modules/rename-dest-slash (Status, Notice): Likewise.
21320         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21321         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21322         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21323         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21324         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21325
21326 2011-05-16  Bruno Haible  <bruno@clisp.org>
21327
21328         doc: List the target platforms.
21329         * doc/gnulib-intro.texi (Target Platforms): New section.
21330         * doc/gnulib.texi (Introduction): Update menu.
21331         * README (Portability guidelines): Refer to the new section. Update
21332         statement about oldest supported environment. Remove rationale why
21333         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21334         unportable C89 function.
21335         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21336         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21337
21338 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21339
21340         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21341
21342 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21343
21344         intprops-tests: new module
21345         * modules/intprops-tests, tests/test-intprops.c: New files.
21346
21347         intprops: add safe, portable integer overflow checking
21348         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21349         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21350         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21351         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21352         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21353         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21354         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21355         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21356         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21357         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21358         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21359
21360 2011-05-12  James Youngman  <jay@gnu.org>
21361
21362         Add a test for glibc's Bugzilla bug #12378.
21363         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21364         doesn't allow the literal matching of a lone "[" (which is
21365         required by POSIX).
21366         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21367
21368 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21369
21370         Sync glibc change fixing Bugzilla bug #12378.
21371         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21372         beginning and fall back to matching as normal character if the
21373         string ends before the matching ']' is found.  This is what POSIX
21374         requires.
21375
21376 2011-05-13  Eric Blake  <eblake@redhat.com>
21377
21378         getcwd-lgpl: relax test for FreeBSD
21379         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21380         issue.
21381         * tests/test-getcwd-lgpl.c (main): Relax test.
21382         Reported by Matthias Bolte.
21383
21384 2011-05-11  Eric Blake  <eblake@redhat.com>
21385
21386         test-fflush: silence compiler warning
21387         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21388
21389 2011-05-11  Bruno Haible  <bruno@clisp.org>
21390
21391         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21392         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21393         * modules/canonicalize (Depends-on): Add 'nocrash'.
21394         * modules/canonicalize-lgpl (Depends-on): Likewise.
21395         * doc/posix-functions/realpath.texi: Update platforms list.
21396         Reported by Ryan Schmidt <ryandesign@macports.org>.
21397
21398 2011-05-11  Bruno Haible  <bruno@clisp.org>
21399
21400         group-member: Declare function in <unistd.h>.
21401         * lib/unistd.in.h (group_member): New declaration.
21402         * lib/group-member.h: Remove file.
21403         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21404         * tests/test-unistd-c++.cc: Check signature of group_member.
21405         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21406         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21407         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21408         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21409         HAVE_GROUP_MEMBER.
21410         * modules/group-member (Files): Remove lib/group-member.h.
21411         (Depends-on): Add unistd. Specify conditions.
21412         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21413         (Include): Change to <unistd.h>.
21414         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21415         HAVE_GROUP_MEMBER.
21416         * NEWS: Mention the change.
21417         * lib/euidaccess.c: Don't include group-member.h.
21418
21419 2011-05-11  Bruno Haible  <bruno@clisp.org>
21420
21421         group-member: Document module.
21422         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21423         module.
21424
21425 2011-05-11  Bruno Haible  <bruno@clisp.org>
21426
21427         fclose: Fix mistake earlier today.
21428         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21429
21430 2011-05-11  Eric Blake  <eblake@redhat.com>
21431
21432         fclose: preserve fflush errors
21433         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21434         Reported by Jim Meyering.
21435
21436         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21437         * build-aux/bootstrap (check_versions): When no specific version
21438         is required, merely check that the app produces an exit status
21439         that indicates its existence.
21440
21441         maint.mk: drop redundant check
21442         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21443         the same but better.
21444
21445 2011-05-11  Bruno Haible  <bruno@clisp.org>
21446
21447         fclose: Fix possible link error.
21448         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21449         unregister_shadow_fd. Improve comments.
21450         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21451         Eric Blake.
21452
21453 2011-05-11  Jim Meyering  <meyering@redhat.com>
21454
21455         maint.mk: improve "can not" detection and generalize rule name
21456         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21457         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21458         Use the same technique as in sc_prohibit_doubled_word, so that
21459         we recognize "can not" also when the words are separated by a newline.
21460         Suggested by Eric Blake.
21461         (perl_filename_lineno_text_): Define.  Factored out of...
21462         (prohibit_doubled_word_): ...here.  Use the new definition.
21463         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21464         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21465         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21466
21467 2011-05-10  Eric Blake  <eblake@redhat.com>
21468
21469         fclose: avoid double close race when possible
21470         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21471         all but WINDOWS_SOCKETS.
21472
21473 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21474
21475         openat: correct new comment
21476         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21477
21478 2011-05-10  Jim Meyering  <meyering@redhat.com>
21479
21480         openat: add comments
21481         * lib/openat-proc.c (openat_proc_name): Add comments,
21482         mostly from Eric Blake.
21483
21484 2011-05-09  Eric Blake  <eblake@redhat.com>
21485
21486         openat: reduce syscalls in first probe of /proc
21487         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21488         be a directory.  Simplify the probe for .. bugs.
21489         * modules/openat (Depends-on): Drop same-inode.
21490         Reported by Bastien ROUCARIES.
21491
21492 2011-05-09  Jim Meyering  <meyering@redhat.com>
21493
21494         maint.mk: change semantics/name of tight_scope variables
21495         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21496         Rename variables to align with semantics that make them more useful.
21497
21498         maint.mk: tweak new rule's name not to impinge
21499         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21500         (sc_tight_scope): Use new rule name rather than $@-0.
21501
21502         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21503         * top/maint.mk (sc_tight_scope): New rule.
21504         (sc_tight_scope-0): New rule, ifdef'd out.
21505         (_gl_TS_dir): Default.
21506         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21507         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21508
21509 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21510
21511         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21512         Haible <bruno@clisp.org>.
21513
21514 2011-05-08  Bruno Haible  <bruno@clisp.org>
21515
21516         Comments.
21517         * m4/isnanf.m4: Add comment.
21518         * m4/isnanl.m4: Likewise.
21519
21520 2011-05-08  Bruno Haible  <bruno@clisp.org>
21521
21522         glob: Remove obsolete macro.
21523         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21524
21525 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21526
21527         intprops: Sun C 5.11 supports __typeof__
21528         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21529         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21530         which is new.
21531         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21532
21533         intprops: switch to usual gnulib indenting and naming
21534         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21535         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21536
21537         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21538
21539 2011-05-08  Jim Meyering  <meyering@redhat.com>
21540
21541         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21542         * top/maint.mk (release-prep): Use make's --no-print-directory
21543         option when generating the announcement.  This eliminates the
21544         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21545         generated announcement template.
21546
21547 2011-05-08  Bruno Haible  <bruno@clisp.org>
21548
21549         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21550         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21551         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21552
21553 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21554
21555         ignore-value, verify: Omit include files from lib_SOURCES.
21556         * modules/ignore-value, modules/verify (Makefile.am):
21557         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21558         that leads Automake to duplicate use of am__objects_... variables
21559         in Makefile.in.  See
21560         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21561
21562 2011-05-07  Bruno Haible  <bruno@clisp.org>
21563
21564         fclose: Simplify autoconf macro.
21565         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21566         defined.
21567
21568 2011-05-07  Bruno Haible  <bruno@clisp.org>
21569
21570         canonicalize-lgpl: Fix autoconf macro ordering bug.
21571         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21572         gl_STDLIB_H_DEFAULTS.
21573
21574 2011-05-06  Eric Blake  <eblake@redhat.com>
21575
21576         maintainer-makefile: make sc_po_check easier to tune
21577         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21578         to probe for strings, such as an alternate location for gnulib.
21579
21580         fclose: guarantee behavior on seekable stdin
21581         * modules/fclose (Depends-on): Add fflush.
21582         * doc/posix-functions/fclose.texi (fclose): Document this.
21583         * tests/test-fclose.c (main): Make test for this unconditional.
21584
21585 2011-05-06  Bruno Haible  <bruno@clisp.org>
21586
21587         fflush, fpurge: Relicense under LGPLv2+.
21588         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21589         * modules/fpurge (License): Likewise.
21590         With permission from Eric Blake and Jim Meyering.
21591         Suggested by Eric Blake.
21592
21593 2011-05-06  Karl Berry  <karl@gnu.org>
21594
21595         * MODULES.html.sh (func_all_modules): remove exit.
21596
21597 2011-05-06  Jim Meyering  <meyering@redhat.com>
21598
21599         maint.mk: use info-gnu@ as the default only for a stable release
21600         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21601         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21602         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21603         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21604
21605 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21606
21607         assert-h: new module, which supports C1X-style static_assert
21608         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21609         * lib/verify.h: Revamp so that this can be copied into assert.h,
21610         while retaining the ability to use it standalone as before.
21611         Rename private identifiers so as not to encroach on the
21612         standard C namespace, since this is now used by assert.h.
21613         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21614         the old verify_true.
21615         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21616         the old verify_true.  Use _GL_VERIFY_TYPE.
21617         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21618         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21619         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21620         defined when this file is copied into the replacement assert.h.
21621         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21622         and _Static_assert is not built in.
21623         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21624         defined, and use the new macros mentioned above.
21625         * doc/posix-headers/assert.texi: Document this.
21626
21627 2011-05-05  Bruno Haible  <bruno@clisp.org>
21628
21629         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21630         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21631         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21632         gl_REPLACE_FCLOSE here.
21633         * modules/fflush (Depends-on): Remove fclose.
21634         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21635         combination with module 'fclose'.
21636
21637 2011-05-05  Bruno Haible  <bruno@clisp.org>
21638
21639         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21640         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21641         gl_FUNC_FFLUSH.
21642         (gl_FUNC_FFLUSH): Use it.
21643         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21644         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21645         gl_REPLACE_FSEEKO here.
21646
21647 2011-05-05  Bruno Haible  <bruno@clisp.org>
21648
21649         tzset: Relicense under LGPL.
21650         * modules/tzset (License): Change to LGPL.
21651         No agreement needed; it's a no-op.
21652
21653         strtoimax, strtoumax: Relicense under LGPL.
21654         * modules/strtoimax (License): Change to LGPL.
21655         * modules/strtoumax (License): Likewise.
21656         With permission from Jim Meyering, Paul Eggert:
21657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21659
21660         getgroups: Relicense under LGPL.
21661         * modules/getgroups (License): Change to LGPL.
21662         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21666
21667         nanosleep: Relicense under LGPL.
21668         * modules/nanosleep (License): Change to LGPL.
21669         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21670         Haible:
21671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21675
21676         futimens: Relicense under LGPL.
21677         * modules/futimens (License): Change to LGPL.
21678         With permission from Eric Blake:
21679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21680
21681         fflush: Relicense under LGPL.
21682         * modules/fflush (License): Change to LGPL.
21683         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21687
21688         tmpfile: Relicense under LGPL.
21689         * modules/tmpfile (License): Change to LGPL.
21690         With permission from Ben Pfaff:
21691         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21692
21693         isfinite: Relicense under LGPL.
21694         * modules/isfinite (License): Change to LGPL.
21695         With permission from Ben Pfaff, Bruno Haible:
21696         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21697         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21698
21699         acosl..tanl: Relicense under LGPL.
21700         * modules/acosl (License): Change to LGPL.
21701         * modules/asinl (License): Likewise.
21702         * modules/atanl (License): Likewise.
21703         * modules/cosl (License): Likewise.
21704         * modules/expl (License): Likewise.
21705         * modules/logl (License): Likewise.
21706         * modules/sinl (License): Likewise.
21707         * modules/sqrtl (License): Likewise.
21708         * modules/tanl (License): Likewise.
21709         Source code originally from glibc and Paolo Bonzini. Agreements:
21710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21712
21713 2011-05-05  Bruno Haible  <bruno@clisp.org>
21714
21715         signal: Define sighandler_t.
21716         * lib/signal.in.h (sighandler_t): New type.
21717         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21718         whether sighandler_t is defined.
21719         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21720         * modules/signal (Depends-on): Add extensions.
21721         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21722         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21723         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21724
21725 2011-05-05  Eric Blake  <eblake@redhat.com>
21726
21727         maint: remove useless REPLACE_*_H macros
21728         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21729         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21730         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21731         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21732         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21733         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21734         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21735         * m4/btowc.m4: Update callers.
21736         * m4/dirfd.m4: Likewise.
21737         * m4/duplocale.m4: Likewise.
21738         * m4/fchdir.m4: Likewise.
21739         * m4/fdopendir.m4: Likewise.
21740         * m4/inet_ntop.m4: Likewise.
21741         * m4/inet_pton.m4: Likewise.
21742         * m4/ioctl.m4: Likewise.
21743         * m4/mbrlen.m4: Likewise.
21744         * m4/mbrtowc.m4: Likewise.
21745         * m4/mbsinit.m4: Likewise.
21746         * m4/mbsnrtowcs.m4: Likewise.
21747         * m4/mbsrtowcs.m4: Likewise.
21748         * m4/poll.m4: Likewise.
21749         * m4/setlocale.m4: Likewise.
21750         * m4/wcrtomb.m4: Likewise.
21751         * m4/wcsnrtombs.m4: Likewise.
21752         * m4/wcsrtombs.m4: Likewise.
21753         * m4/wctob.m4: Likewise.
21754         * m4/wcwidth.m4: Likewise.
21755         * modules/posix_spawn: Likewise.
21756         * modules/posix_spawn_file_actions_addclose: Likewise.
21757         * modules/posix_spawn_file_actions_adddup2: Likewise.
21758         * modules/posix_spawn_file_actions_addopen: Likewise.
21759         * modules/posix_spawn_file_actions_destroy: Likewise.
21760         * modules/posix_spawn_file_actions_init: Likewise.
21761         * modules/posix_spawnattr_destroy: Likewise.
21762         * modules/posix_spawnattr_getflags: Likewise.
21763         * modules/posix_spawnattr_getpgroup: Likewise.
21764         * modules/posix_spawnattr_getschedparam: Likewise.
21765         * modules/posix_spawnattr_getschedpolicy: Likewise.
21766         * modules/posix_spawnattr_getsigdefault: Likewise.
21767         * modules/posix_spawnattr_getsigmask: Likewise.
21768         * modules/posix_spawnattr_init: Likewise.
21769         * modules/posix_spawnattr_setflags: Likewise.
21770         * modules/posix_spawnattr_setpgroup: Likewise.
21771         * modules/posix_spawnattr_setschedparam: Likewise.
21772         * modules/posix_spawnattr_setschedpolicy: Likewise.
21773         * modules/posix_spawnattr_setsigdefault: Likewise.
21774         * modules/posix_spawnattr_setsigmask: Likewise.
21775         * modules/posix_spawnp: Likewise.
21776
21777 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21778
21779         Add option to do-release-commit-and-tag to specify branch.
21780         * build-aux/do-release-commit-and-tag: Add --branch.
21781
21782 2011-05-03  Bruno Haible  <bruno@clisp.org>
21783
21784         Avoid unnecessary compilation units, through conditional dependencies.
21785         * modules/accept (Depends-on): Add conditions to the dependencies.
21786         * modules/acosl (Depends-on): Likewise.
21787         * modules/argz (Depends-on): Likewise.
21788         * modules/asinl (Depends-on): Likewise.
21789         * modules/atanl (Depends-on): Likewise.
21790         * modules/atoll (Depends-on): Likewise.
21791         * modules/bind (Depends-on): Likewise.
21792         * modules/btowc (Depends-on): Likewise.
21793         * modules/canonicalize-lgpl (Depends-on): Likewise.
21794         * modules/ceil (Depends-on): Likewise.
21795         * modules/ceilf (Depends-on): Likewise.
21796         * modules/ceill (Depends-on): Likewise.
21797         * modules/chdir-long (Depends-on): Likewise.
21798         * modules/chown (Depends-on): Likewise.
21799         * modules/close (Depends-on): Likewise.
21800         * modules/connect (Depends-on): Likewise.
21801         * modules/cosl (Depends-on): Likewise.
21802         * modules/dirfd (Depends-on): Likewise.
21803         * modules/dprintf (Depends-on): Likewise.
21804         * modules/dprintf-posix (Depends-on): Likewise.
21805         * modules/error (Depends-on): Likewise.
21806         * modules/euidaccess (Depends-on): Likewise.
21807         * modules/expl (Depends-on): Likewise.
21808         * modules/faccessat (Depends-on): Likewise.
21809         * modules/fchdir (Depends-on): Likewise.
21810         * modules/fclose (Depends-on): Likewise.
21811         * modules/fcntl (Depends-on): Likewise.
21812         * modules/fdopendir (Depends-on): Likewise.
21813         * modules/fflush (Depends-on): Likewise.
21814         * modules/floor (Depends-on): Likewise.
21815         * modules/floorf (Depends-on): Likewise.
21816         * modules/floorl (Depends-on): Likewise.
21817         * modules/fnmatch (Depends-on): Likewise.
21818         * modules/fopen (Depends-on): Likewise.
21819         * modules/fprintf-posix (Depends-on): Likewise.
21820         * modules/frexp (Depends-on): Likewise.
21821         * modules/frexp-nolibm (Depends-on): Likewise.
21822         * modules/frexpl (Depends-on): Likewise.
21823         * modules/frexpl-nolibm (Depends-on): Likewise.
21824         * modules/fseek (Depends-on): Likewise.
21825         * modules/fsusage (Depends-on): Likewise.
21826         * modules/ftell (Depends-on): Likewise.
21827         * modules/ftello (Depends-on): Likewise.
21828         * modules/futimens (Depends-on): Likewise.
21829         * modules/getcwd (Depends-on): Likewise.
21830         * modules/getcwd-lgpl (Depends-on): Likewise.
21831         * modules/getdelim (Depends-on): Likewise.
21832         * modules/getdomainname (Depends-on): Likewise.
21833         * modules/getgroups (Depends-on): Likewise.
21834         * modules/gethostname (Depends-on): Likewise.
21835         * modules/getline (Depends-on): Likewise.
21836         * modules/getlogin_r (Depends-on): Likewise.
21837         * modules/getopt-posix (Depends-on): Likewise.
21838         * modules/getpeername (Depends-on): Likewise.
21839         * modules/getsockname (Depends-on): Likewise.
21840         * modules/getsockopt (Depends-on): Likewise.
21841         * modules/getsubopt (Depends-on): Likewise.
21842         * modules/getusershell (Depends-on): Likewise.
21843         * modules/glob (Depends-on): Likewise.
21844         * modules/grantpt (Depends-on): Likewise.
21845         * modules/iconv_open (Depends-on): Likewise.
21846         * modules/iconv_open-utf (Depends-on): Likewise.
21847         * modules/inet_ntop (Depends-on): Likewise.
21848         * modules/inet_pton (Depends-on): Likewise.
21849         * modules/ioctl (Depends-on): Likewise.
21850         * modules/isapipe (Depends-on): Likewise.
21851         * modules/isfinite (Depends-on): Likewise.
21852         * modules/isinf (Depends-on): Likewise.
21853         * modules/lchown (Depends-on): Likewise.
21854         * modules/ldexpl (Depends-on): Likewise.
21855         * modules/link (Depends-on): Likewise.
21856         * modules/linkat (Depends-on): Likewise.
21857         * modules/listen (Depends-on): Likewise.
21858         * modules/logl (Depends-on): Likewise.
21859         * modules/lstat (Depends-on): Likewise.
21860         * modules/mbrlen (Depends-on): Likewise.
21861         * modules/mbrtowc (Depends-on): Likewise.
21862         * modules/mbsinit (Depends-on): Likewise.
21863         * modules/mbsnrtowcs (Depends-on): Likewise.
21864         * modules/mbsrtowcs (Depends-on): Likewise.
21865         * modules/mbtowc (Depends-on): Likewise.
21866         * modules/memcmp (Depends-on): Likewise.
21867         * modules/mkdir (Depends-on): Likewise.
21868         * modules/mkdtemp (Depends-on): Likewise.
21869         * modules/mkfifo (Depends-on): Likewise.
21870         * modules/mkfifoat (Depends-on): Likewise.
21871         * modules/mknod (Depends-on): Likewise.
21872         * modules/mkostemp (Depends-on): Likewise.
21873         * modules/mkostemps (Depends-on): Likewise.
21874         * modules/mkstemp (Depends-on): Likewise.
21875         * modules/mkstemps (Depends-on): Likewise.
21876         * modules/mktime (Depends-on): Likewise.
21877         * modules/nanosleep (Depends-on): Likewise.
21878         * modules/open (Depends-on): Likewise.
21879         * modules/openat (Depends-on): Likewise.
21880         * modules/perror (Depends-on): Likewise.
21881         * modules/poll (Depends-on): Likewise.
21882         * modules/popen (Depends-on): Likewise.
21883         * modules/posix_spawn (Depends-on): Likewise.
21884         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21885         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21886         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21887         * modules/posix_spawnp (Depends-on): Likewise.
21888         * modules/pread (Depends-on): Likewise.
21889         * modules/printf-posix (Depends-on): Likewise.
21890         * modules/ptsname (Depends-on): Likewise.
21891         * modules/putenv (Depends-on): Likewise.
21892         * modules/pwrite (Depends-on): Likewise.
21893         * modules/readline (Depends-on): Likewise.
21894         * modules/readlink (Depends-on): Likewise.
21895         * modules/readlinkat (Depends-on): Likewise.
21896         * modules/recv (Depends-on): Likewise.
21897         * modules/recvfrom (Depends-on): Likewise.
21898         * modules/regex (Depends-on): Likewise.
21899         * modules/remove (Depends-on): Likewise.
21900         * modules/rename (Depends-on): Likewise.
21901         * modules/renameat (Depends-on): Likewise.
21902         * modules/rmdir (Depends-on): Likewise.
21903         * modules/round (Depends-on): Likewise.
21904         * modules/roundf (Depends-on): Likewise.
21905         * modules/roundl (Depends-on): Likewise.
21906         * modules/rpmatch (Depends-on): Likewise.
21907         * modules/select (Depends-on): Likewise.
21908         * modules/send (Depends-on): Likewise.
21909         * modules/sendto (Depends-on): Likewise.
21910         * modules/setenv (Depends-on): Likewise.
21911         * modules/setlocale (Depends-on): Likewise.
21912         * modules/setsockopt (Depends-on): Likewise.
21913         * modules/shutdown (Depends-on): Likewise.
21914         * modules/sigaction (Depends-on): Likewise.
21915         * modules/signbit (Depends-on): Likewise.
21916         * modules/sigprocmask (Depends-on): Likewise.
21917         * modules/sinl (Depends-on): Likewise.
21918         * modules/sleep (Depends-on): Likewise.
21919         * modules/snprintf (Depends-on): Likewise.
21920         * modules/snprintf-posix (Depends-on): Likewise.
21921         * modules/socket (Depends-on): Likewise.
21922         * modules/sprintf-posix (Depends-on): Likewise.
21923         * modules/sqrtl (Depends-on): Likewise.
21924         * modules/stat (Depends-on): Likewise.
21925         * modules/strchrnul (Depends-on): Likewise.
21926         * modules/strdup-posix (Depends-on): Likewise.
21927         * modules/strerror (Depends-on): Likewise.
21928         * modules/strerror_r-posix (Depends-on): Likewise.
21929         * modules/strndup (Depends-on): Likewise.
21930         * modules/strnlen (Depends-on): Likewise.
21931         * modules/strptime (Depends-on): Likewise.
21932         * modules/strsep (Depends-on): Likewise.
21933         * modules/strsignal (Depends-on): Likewise.
21934         * modules/strstr-simple (Depends-on): Likewise.
21935         * modules/strtod (Depends-on): Likewise.
21936         * modules/strtoimax (Depends-on): Likewise.
21937         * modules/strtok_r (Depends-on): Likewise.
21938         * modules/strtoumax (Depends-on): Likewise.
21939         * modules/symlink (Depends-on): Likewise.
21940         * modules/symlinkat (Depends-on): Likewise.
21941         * modules/tanl (Depends-on): Likewise.
21942         * modules/tcgetsid (Depends-on): Likewise.
21943         * modules/tmpfile (Depends-on): Likewise.
21944         * modules/trunc (Depends-on): Likewise.
21945         * modules/truncf (Depends-on): Likewise.
21946         * modules/truncl (Depends-on): Likewise.
21947         * modules/uname (Depends-on): Likewise.
21948         * modules/unlink (Depends-on): Likewise.
21949         * modules/unlockpt (Depends-on): Likewise.
21950         * modules/unsetenv (Depends-on): Likewise.
21951         * modules/usleep (Depends-on): Likewise.
21952         * modules/utimensat (Depends-on): Likewise.
21953         * modules/vasprintf (Depends-on): Likewise.
21954         * modules/vdprintf (Depends-on): Likewise.
21955         * modules/vdprintf-posix (Depends-on): Likewise.
21956         * modules/vfprintf-posix (Depends-on): Likewise.
21957         * modules/vprintf-posix (Depends-on): Likewise.
21958         * modules/vsnprintf (Depends-on): Likewise.
21959         * modules/vsnprintf-posix (Depends-on): Likewise.
21960         * modules/vsprintf-posix (Depends-on): Likewise.
21961         * modules/wcrtomb (Depends-on): Likewise.
21962         * modules/wcscasecmp (Depends-on): Likewise.
21963         * modules/wcscspn (Depends-on): Likewise.
21964         * modules/wcsdup (Depends-on): Likewise.
21965         * modules/wcsncasecmp (Depends-on): Likewise.
21966         * modules/wcsnrtombs (Depends-on): Likewise.
21967         * modules/wcspbrk (Depends-on): Likewise.
21968         * modules/wcsrtombs (Depends-on): Likewise.
21969         * modules/wcsspn (Depends-on): Likewise.
21970         * modules/wcsstr (Depends-on): Likewise.
21971         * modules/wcstok (Depends-on): Likewise.
21972         * modules/wcswidth (Depends-on): Likewise.
21973         * modules/wctob (Depends-on): Likewise.
21974         * modules/wctomb (Depends-on): Likewise.
21975         * modules/wctype (Depends-on): Likewise.
21976         * modules/wcwidth (Depends-on): Likewise.
21977         * modules/write (Depends-on): Likewise.
21978
21979 2011-05-03  Bruno Haible  <bruno@clisp.org>
21980
21981         Support for conditional dependencies.
21982         * doc/gnulib.texi (Module description): Document the syntax of
21983         conditional dependencies.
21984         * gnulib-tool: New option --conditional-dependencies.
21985         (func_usage): Document it.
21986         (cond_dependencies): New variable.
21987         (func_get_automake_snippet_conditional,
21988         func_get_automake_snippet_unconditional): New functions, extracted from
21989         func_get_automake_snippet.
21990         (func_get_automake_snippet): Use them.
21991         (sed_first_32_chars): New variable.
21992         (func_module_shellfunc_name): New function.
21993         (func_module_shellvar_name): New function.
21994         (func_module_conditional_name): New function.
21995         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21996         func_cond_module_condition): New functions.
21997         (func_modules_transitive_closure): Add support for conditional
21998         dependencies.
21999         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22000         conditional automake snippet in an automake conditional.
22001         (func_emit_autoconf_snippets): Emit shell functions that contain the
22002         code for conditional modules.
22003         (func_import, func_create_testdir): Update specification.
22004
22005 2011-05-03  Eric Blake  <eblake@redhat.com>
22006
22007         test-getaddrinfo: report error information
22008         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22009
22010 2011-05-03  Jim Meyering  <meyering@redhat.com>
22011
22012         bootstrap: avoid build failure when $GZIP is set
22013         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22014         program name.  If defined at all, it is supposed to list gzip options.
22015         Reported by Alan Curry in http://debbugs.gnu.org/8609
22016
22017 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22018
22019         readme-release: new module with release instructions
22020         * modules/readme-release: New module.
22021         * top/README-release: New file, from coreutils, grep, diffutils.
22022         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22023
22024 2011-05-02  Eric Blake  <eblake@redhat.com>
22025
22026         fflush: also replace fclose when fixing fflush
22027         * modules/fflush (Depends-on): Add fclose.
22028         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22029         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22030         memstreams with no backing fd.
22031         * doc/posix-functions/fclose.texi (fclose): Document the use of
22032         fflush module to fix the bug.
22033         * tests/test-fclose.c (main): Relax test when fclose is used in
22034         isolation.
22035
22036         fclose: add some tests
22037         * modules/fclose-tests: New test module.
22038         * tests/test-fclose.c: New file.
22039         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22040
22041         fclose: reduced dependencies
22042         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22043         simpler lseek.
22044         * lib/fclose.c (rpl_fclose): Likewise.
22045         Reported by Simon Josefsson.
22046
22047         exit: drop remaining clients
22048         * modules/argmatch (Depends-on): Replace exit with stdlib.
22049         * modules/copy-file (Depends-on): Likewise.
22050         * modules/execute (Depends-on): Likewise.
22051         * modules/exitfail (Depends-on): Likewise.
22052         * modules/obstack (Depends-on): Likewise.
22053         * modules/pagealign_alloc (Depends-on): Likewise.
22054         * modules/pipe-filter-gi (Depends-on): Likewise.
22055         * modules/pipe-filter-ii (Depends-on): Likewise.
22056         * modules/savewd (Depends-on): Likewise.
22057         * modules/spawn-pipe (Depends-on): Likewise.
22058         * modules/wait-process (Depends-on): Likewise.
22059         * modules/xsetenv (Depends-on): Likewise.
22060         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22061         * modules/git-merge-changelog (Depends-on): Likewise.
22062         * modules/long-options (Depends-on): Likewise.
22063         * modules/pt_chown (Depends-on): Likewise.
22064         * modules/sysexits (Depends-on): Likewise.
22065
22066         freading: relax license from LGPLv3+ to LGPLv2+
22067         * modules/freading (License): Relax LGPL version.
22068
22069 2011-05-02  Bruno Haible  <bruno@clisp.org>
22070
22071         fchdir: Remove unused dependencies.
22072         * modules/fchdir (Depends-on): Remove include_next.
22073
22074 2011-05-02  Bruno Haible  <bruno@clisp.org>
22075
22076         gnulib-tool: Refactor.
22077         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22078         from func_emit_autoconf_snippets.
22079         (func_emit_autoconf_snippets): Use it.
22080
22081 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22082
22083         * NEWS: Document removal of 'exit'.
22084         * modules/exit: Remove file.
22085
22086 2011-05-01  Bruno Haible  <bruno@clisp.org>
22087
22088         Update DEPENDENCIES.
22089         * DEPENDENCIES (gettext): Recommend the newest release.
22090         Reported by Simon Josefsson.
22091
22092 2011-05-01  Bruno Haible  <bruno@clisp.org>
22093
22094         gnulib-tool: Reduce code duplication.
22095         * gnulib-tool (func_emit_autoconf_snippets): New function.
22096         (func_import, func_create_testdir): Use it.
22097
22098 2011-04-30  Eric Blake  <eblake@redhat.com>
22099
22100         fclose: don't fail on non-seekable input stream
22101         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22102         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22103         since fflush is allowed to fail in that case.
22104
22105 2011-04-30  Bruno Haible  <bruno@clisp.org>
22106
22107         dup3: cleanup
22108         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22109
22110 2011-04-30  Bruno Haible  <bruno@clisp.org>
22111
22112         netdb: Make it work in C++ mode.
22113         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22114         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22115         module.
22116         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22117         gl_MODULE_INDICATOR_FOR_TESTS.
22118         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22119         * modules/netdb-c++-tests: New file.
22120         * tests/test-netdb-c++.cc: New file.
22121
22122 2011-04-30  Bruno Haible  <bruno@clisp.org>
22123
22124         New modules 'vfscanf', 'vscanf'.
22125         * modules/vfscanf: New file.
22126         * modules/vscanf: New file.
22127         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22128         here.
22129         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22130         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22131
22132 2011-04-30  Bruno Haible  <bruno@clisp.org>
22133
22134         passfd: Add comments.
22135         * lib/passfd.c: Add comments about platforms.
22136
22137 2011-04-30  Bruno Haible  <bruno@clisp.org>
22138
22139         sys_uio: Make <sys/uio.h> self-contained.
22140         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22141         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22142
22143 2011-04-30  Bruno Haible  <bruno@clisp.org>
22144
22145         sys_socket: Ensure 'struct iovec' definition.
22146         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22147         <sys/socket.h>.
22148         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22149
22150 2011-04-30  Bruno Haible  <bruno@clisp.org>
22151
22152         sys_uio: Protect definition of 'struct iovec'.
22153         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22154         it as a C struct.
22155
22156 2011-04-30  Bruno Haible  <bruno@clisp.org>
22157
22158         manywarnings: fix indentation
22159         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22160
22161 2011-04-30  Pádraig Brady <P@draigBrady.com>
22162
22163         manywarnings: add -Wno-missing-field-initializers if needed.
22164         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22165         option if it's needed to allow initialization with { 0, }
22166
22167 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22168
22169         announce-gen: cosmetic improvement
22170         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22171
22172 2011-04-29  Jim Meyering  <meyering@redhat.com>
22173
22174         vc-list-files: indent with spaces, not TABs
22175         * build-aux/vc-list-files: Convert leading TABs to spaces,
22176         to match the style of most other files in gnulib.
22177
22178         announce-gen: indent with spaces, not TABs
22179         * build-aux/announce-gen: Convert all TABs to spaces, to match
22180         the style of most other files in gnulib.
22181
22182 2011-04-29  Eric Blake  <eblake@redhat.com>
22183
22184         quotearg: avoid uninitialized variable use
22185         * lib/quotearg.c (quoting_options_from_style): Initialize
22186         remaining fields, and ensure that custom styles are only used via
22187         quoting_options rather than quoting_style.
22188
22189 2011-04-29  Jim Meyering  <meyering@redhat.com>
22190
22191         maint.mk: remove unused VC-tag variable
22192         * top/maint.mk (VC-tag): Remove unused variable.
22193
22194 2011-04-29  Bruno Haible  <bruno@clisp.org>
22195
22196         netdb: fix gai_strerror replacements
22197         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22198         * modules/netdb: Substitute it.
22199
22200 2011-04-29  Jim Meyering  <meyering@redhat.com>
22201
22202         test-getcwd.c: avoid new set-but-not-used warning
22203         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22204         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22205         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22206         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22207
22208         test-hash.c: avoid a new shadowing warning
22209         * tests/test-hash.c (main): Don't shadow "dup".
22210
22211 2011-04-28  Eric Blake  <eblake@redhat.com>
22212
22213         getaddrinfo: fix gai_strerror signature
22214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22215         and work around mingw with UNICODE defined.
22216         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22217         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22218         * modules/netdb (Makefile.am): Substitute it.
22219         * lib/netdb.in.h (gai_strerror): Declare replacement.
22220         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22221         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22222         the fix.
22223
22224         getsockopt: avoid compiler warning
22225         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22226         Reported by Matthias Bolte.
22227
22228         tests: drop unused link dependency
22229         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22230         * modules/dirent-safer-tests (Makefile.am): Likewise.
22231         * modules/fdopendir-tests (Makefile.am): Likewise.
22232         * modules/mkfifoat-tests (Makefile.am): Likewise.
22233         * modules/openat-safer-tests (Makefile.am): Likewise.
22234         * modules/openat-tests (Makefile.am): Likewise.
22235         * modules/readlinkat-tests (Makefile.am): Likewise.
22236         * modules/symlinkat-tests (Makefile.am): Likewise.
22237         * modules/linkat-tests (Makefile.am): Likewise.
22238         (Depends-on): Switch to filenamecat-lgpl.
22239         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22240         LIBINTL.
22241         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22242         * tests/test-linkat.c (main): Don't require xalloc.
22243
22244         hash, mgetgroups: drop xalloc dependency
22245         * lib/hash.c (includes): Adjust includes.
22246         * lib/mgetgroups.c (includes): Likewise.
22247         (xgetgroups): Move...
22248         * lib/xgetgroups.c: ...to new file.
22249         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22250         * modules/xgetgroups: New file, split from...
22251         * modules/mgetgroups: ...here.
22252         (Depends-on): Add xalloc-oversized.
22253         * modules/hash (Depends-on): Likewise.
22254         * modules/hash-tests (Depends-on): Drop xalloc.
22255         (test_hash_LDADD): Drop unused library.
22256         * tests/test-hash.c (main): Break xalloc dependency.
22257         (includes): Drop unused include.
22258
22259         xalloc-oversized: new module
22260         * modules/xalloc-oversized: New module.
22261         * modules/xalloc (Depends-on): Add it.
22262         * lib/xalloc.h (xalloc_oversized): Move...
22263         * lib/xalloc-oversized.h: ...into new file.
22264
22265         utimecmp: drop dependency on xmalloc
22266         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22267         due to memory pressure.
22268         * modules/utimecmp (Depends-on): Drop xalloc.
22269
22270 2011-04-27  Eric Blake  <eblake@redhat.com>
22271
22272         getcwd: fix mingw bugs
22273         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22274         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22275         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22276
22277 2011-04-27  Bruno Haible  <bruno@clisp.org>
22278
22279         mkstemps: Ensure declaration on MacOS X 10.5.
22280         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22281         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22282         MacOS X.
22283
22284 2011-04-27  Bruno Haible  <bruno@clisp.org>
22285
22286         mkstemp: More documentation.
22287         * doc/posix-functions/mkstemp.texi: Document header file problem on
22288         MacOS X.
22289
22290 2011-04-27  Bruno Haible  <bruno@clisp.org>
22291
22292         mkstemp: Tweak configure message when cross-compiling.
22293         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22294         result as a guess.
22295
22296 2011-04-27  Bruno Haible  <bruno@clisp.org>
22297
22298         clean-temp: Clarify what it does.
22299         * lib/clean-temp.h: Add more comments.
22300         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22301         module.
22302         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22303         * doc/glibc-functions/mkstemps.texi: Likewise.
22304         * doc/glibc-functions/mkostemps.texi: Likewise.
22305
22306 2011-04-27  Eric Blake  <eblake@redhat.com>
22307
22308         fchdir: avoid extra chdir and fix test
22309         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22310         getcwd-lgpl.
22311         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22312         have to be canonical.
22313         (canonicalize_file_name): Drop unused macro.
22314         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22315
22316         filenamecat-lgpl: fix licence
22317         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22318         when it was first created.
22319
22320         linkat, renameat: add missing dependency
22321         * modules/linkat (Depends-on): Require getcwd-lgpl.
22322         * modules/renameat (Depends-on): Likewise.
22323
22324         tests: reduce dependencies
22325         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22326         * tests/test-renameat.c (main): Likewise.
22327         * modules/linkat-tests (Depends-on): Relax dependency.
22328         * modules/renameat-tests (Depends-on): Likewise.
22329         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22330         dependency explicit.
22331
22332         save-cwd: reduce default dependency
22333         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22334         * lib/save-cwd.c: Update comments.
22335         * NEWS: Document the semantic change.
22336
22337         getcwd: enhance tests
22338         * tests/test-getcwd-lgpl.c: New file, taken from...
22339         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22340         repeat long path stress tests from m4 probe.
22341         * modules/getcwd-lgpl-tests: New module.
22342         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22343         * m4/getcwd-abort-bug.m4: Update comment.
22344         * m4/getcwd-path-max.m4: Likewise.
22345
22346         getcwd-lgpl: new module
22347         * modules/getcwd-lgpl: New module.
22348         * lib/getcwd-lgpl.c: New file.
22349         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22350         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22351         * modules/getcwd (configure.ac): Set C witness.
22352         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22353
22354         getcwd: tweak comments
22355         * m4/getcwd-abort-bug.m4: Fix comments.
22356         * m4/getcwd-path-max.m4: Likewise.
22357         * m4/getcwd.m4: Likewise.
22358
22359 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22360         and Eric Blake  <eblake@redhat.com>
22361
22362         mkstemp: replace if system version uses wrong permissions
22363         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22364         read/write mode bits set in file created by mkstemp.
22365         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22366
22367 2011-04-27  Eric Blake  <eblake@redhat.com>
22368
22369         passfd: avoid compiler warning
22370         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22371         Reported by Laine Stump.
22372
22373 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22374
22375         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22376         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22377
22378 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22379         and Eric Blake  <eblake@redhat.com>
22380
22381         mkstemp: mention clean-temp module
22382         * lib/mkstemp.c: Add comment.
22383         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22384
22385 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22386
22387         inttypes: also provide default values for 32-bit tests
22388         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22389         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22390
22391 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22392
22393         strtoumax: remove dependency on strtoimax
22394         This is like the strtoull change of yesterday.
22395         * modules/strtoumax (Files): Add lib/strtoimax.c.
22396         (Depends-on): Remove strtoimax and add verify.
22397
22398         inttypes-incomplete: new module
22399         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22400         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22401         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22402         of gl_INTTYPES_H.
22403         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22404         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22405         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22406         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22407         * modules/strtoumax, modules/xstrtol (Depends-on):
22408         Depend on inttypes-incomplete, not inttypes.
22409         * modules/inttypes-incomplete: New module, containing the contents
22410         of the old modules/inttypes module, except that the Files: section
22411         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22412         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22413         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22414         (Depends-on): Depend only on inttypes-incomplete.
22415         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22416
22417         inttypes: omit now-redundant strtoimax and strtoumax work
22418         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22419         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22420
22421         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22422         This supports apps that need pointers to strtoimax and strtoumax,
22423         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22424         nonexistent functions.  See
22425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22426         et seq.
22427         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22428         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22429         a macro.
22430         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22431
22432 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22433
22434         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22435
22436 2011-04-25  Bruno Haible  <bruno@clisp.org>
22437
22438         strtol, strtoul: Mark modules as obsolete.
22439         * modules/strtol (Status, Notice): New sections.
22440         * modules/strtoul (Status, Notice): New sections.
22441
22442 2011-04-25  Bruno Haible  <bruno@clisp.org>
22443
22444         strtod: Remove check for strtod, unless supporting old platforms.
22445         * modules/strtod-obsolete: New file.
22446         * m4/strtod-obsolete.m4: New file.
22447         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22448         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22449         * modules/strtod (Depends-on): Add strtod-obsolete.
22450         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22451
22452 2011-04-25  Bruno Haible  <bruno@clisp.org>
22453
22454         strcase: Make module obsolete.
22455         * modules/strcase (Status, Notice): New sections.
22456
22457 2011-04-25  Bruno Haible  <bruno@clisp.org>
22458
22459         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22460         * modules/dup2-obsolete: New file.
22461         * m4/dup2-obsolete.m4: New file.
22462         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22463         gl_FUNC_DUP2_OBSOLETE is not also defined.
22464         * modules/dup2 (Depends-on): Add dup2-obsolete.
22465         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22466
22467 2011-04-25  Bruno Haible  <bruno@clisp.org>
22468
22469         strnlen: Avoid memchr related link error on old obsolete platforms.
22470         * modules/memchr-obsolete: New file.
22471         * m4/memchr-obsolete.m4: New file.
22472         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22473         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22474         * modules/memchr (Depends-on): Add memchr-obsolete.
22475         * modules/strnlen (Depends-on): Likewise.
22476         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22477
22478 2011-04-25  Jim Meyering  <meyering@redhat.com>
22479
22480         maint.mk: makefile_at_at_check extend and clean up
22481         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22482         in addition to */Makefile.am.
22483         Exempt legitimate uses of @VAR@ notation, e.g.,
22484         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22485         Remove obsolete coreutils-specific comment.
22486         Prompted by discussion here:
22487         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22488
22489 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22490
22491         strtoul: remove dependency on strtol
22492         This is so that 'configure' need not check for strtol merely because
22493         the application needs strtoul.
22494         * modules/strtoul (Files): Add lib/strtol.c.
22495         (Depends-on): Remove strtol.
22496
22497         strtoull: remove dependency on strtoul
22498         This is like the strtoll change.
22499         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22500         (Depends-on): Remove strtoul.
22501
22502         strtoll: remove dependency on strtol
22503         This is so that 'configure' need not check for strtol merely because
22504         the application needs strtoll.
22505         * modules/strtoll (Files): Add lib/strtol.c.
22506         (Depends-on): Remove strtol.
22507
22508 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22509
22510         inttypes: Move some configure check to module 'imaxdiv'.
22511         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22512         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22513         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22514
22515 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22516
22517         inttypes: Move some configure check to module 'imaxabs'.
22518         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22519         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22520         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22521
22522 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22523
22524         inttypes: Remove configure tests that are not needed since 2009-12-31.
22525         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22526         gl_cv_header_working_inttypes_h.
22527
22528 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22529
22530         * modules/strnlen (Depends-on): Remove memchr.
22531         The strnlen implementation doesn't need the memchr module's fixes; see
22532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22533
22534         strtol: remove dependency on wchar
22535         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22536         * modules/strtol (Depends-on): Remove wchar.
22537
22538 2011-04-21  Eric Blake  <eblake@redhat.com>
22539
22540         passfd: fix test regression on Linux
22541         * modules/passfd-tests (configure.ac): Correct socketpair check.
22542
22543         passfd: speed up configure and drop unused code
22544         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22545         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22546         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22547         Instead of probing at configure for unix_scm_rights_bsd44_way,
22548         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22549         check to a struct member probe.
22550         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22551         (sendfd, recvfd): Update preprocessor checks.
22552         * modules/passfd (Files): Reflect rename, and drop unused file.
22553         (Depends-on): Drop unused dependency.
22554
22555         passfd: allow compilation on mingw
22556         * modules/sys_socket (Depends-on): Add sys_uio.
22557         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22558         iovec and a minimal struct msghdr.
22559         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22560         * tests/test-sys_socket.c (main): Enhance test.
22561         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22562         guaranteed to provide what we need.
22563         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22564         * modules/passfd-tests (Depends-on): Add sys_wait.
22565         * tests/test-passfd.c (main): Skip test on mingw, for now.
22566         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22567         partial 'struct msghdr' implementation.
22568
22569         sys_uio: new module
22570         * modules/sys_uio: New module.
22571         * modules/sys_uio-tests: Likewise.
22572         * lib/sys_uio.in.h: New file.
22573         * m4/sys_uio_h.m4: Likewise.
22574         * tests/test-sys_uio.c: Likewise.
22575         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22576         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22577
22578 2011-04-20  Jim Meyering  <meyering@redhat.com>
22579
22580         useless-if-before-free: avoid false-positive
22581         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22582         disjunct so that it too requires a terminating ";".  Without that,
22583         this script would identify as useless one statement from gcc that
22584         was not:
22585           if (aligned_ptr)
22586             free (((void **) aligned_ptr) [-1]);
22587
22588 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22589
22590         doc: update users.txt.
22591         * users.txt: Add barcode.
22592
22593 2011-04-19  Bruno Haible  <bruno@clisp.org>
22594
22595         ioctl: Remove link dependency on native Windows.
22596         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22597         (gl_close_fn, gl_ioctl_fn): New types.
22598         (struct fd_hook): Renamed from struct close_hook. Change type of
22599         private_close_fn field. Add private_ioctl_fn field.
22600         (close_hook_fn): Add parameter for primary close method.
22601         (execute_close_hooks, execute_all_close_hooks): Likewise.
22602         (ioctl_hook_fn): New type.
22603         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22604         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22605         argument.
22606         (unregister_fd_hook): Renamed from unregister_close_hook.
22607         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22608         Don't include <unistd.h>.
22609         (close): Remove undef.
22610         (anchor): Update.
22611         (execute_close_hooks): Add argument for primary close method.
22612         (execute_all_close_hooks): Likewise.
22613         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22614         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22615         argument. Allow each argument to be NULL.
22616         (unregister_fd_hook): Renamed from unregister_close_hook.
22617         * lib/close.c (rpl_close): Pass 'close' function pointer to
22618         execute_all_close_hooks.
22619         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22620         (primary_ioctl): New function.
22621         (ioctl): Don't call ioctlsocket here. Instead, call
22622         execute_all_ioctl_hooks.
22623         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22624         close method.
22625         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22626         (fd_sockets_hook): Renamed from close_sockets_hook.
22627         (gl_sockets_startup, gl_sockets_cleanup): Update.
22628         * modules/fd-hook: Renamed from modules/close-hook. Update.
22629         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22630         * modules/sockets (Depends-on): Likewise.
22631         * modules/ioctl (Depends-on): Add fd-hook.
22632         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22633         GNULIB_SOCKET.
22634
22635 2011-04-19  Bruno Haible  <bruno@clisp.org>
22636
22637         Move the support of O_NONBLOCK in open() to the 'open' module.
22638         * modules/nonblocking (Depends-on): Remove 'open'.
22639         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22640         gl_cv_have_open_O_NONBLOCK.
22641         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22642         O_NONBLOCK support.
22643         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22644
22645 2011-04-17  Bruno Haible  <bruno@clisp.org>
22646
22647         pipe2: Simplify code.
22648         * lib/pipe2.c (pipe2): Reduce code duplication.
22649
22650 2011-04-17  Bruno Haible  <bruno@clisp.org>
22651
22652         nonblocking: Add comment.
22653         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22654
22655 2011-04-17  Bruno Haible  <bruno@clisp.org>
22656
22657         nonblocking: Add tests for sockets.
22658         * tests/test-nonblocking-socket.sh: New file.
22659         * tests/test-nonblocking-socket-main.c: New file.
22660         * tests/test-nonblocking-socket-child.c: New file.
22661         * tests/test-nonblocking-socket.h: New file.
22662         * tests/socket-server.h: New file.
22663         * tests/socket-client.h: New file.
22664         * modules/nonblocking-socket-tests: New file.
22665         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22666
22667 2011-04-17  Bruno Haible  <bruno@clisp.org>
22668
22669         nonblocking: Add tests for pipes.
22670         * tests/test-nonblocking-pipe.sh: New file.
22671         * tests/test-nonblocking-pipe-main.c: New file.
22672         * tests/test-nonblocking-pipe-child.c: New file.
22673         * tests/test-nonblocking-pipe.h: New file.
22674         * tests/test-nonblocking-writer.h: New file.
22675         * tests/test-nonblocking-reader.h: New file.
22676         * tests/test-nonblocking-misc.h: New file.
22677         * modules/nonblocking-pipe-tests: New file.
22678         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22679
22680 2011-04-16  Bruno Haible  <bruno@clisp.org>
22681
22682         gettext: Clarify the needed programmer actions.
22683         * modules/gettext (Notice): New field.
22684         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22685
22686 2011-04-16  Bruno Haible  <bruno@clisp.org>
22687
22688         strchrnul: Tweak last commit.
22689         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22690         bug.
22691         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22692         as in _GL_FUNCDECL_SYS.
22693         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22694         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22695
22696 2011-04-15  Eric Blake  <eblake@redhat.com>
22697
22698         strchrnul: work around cygwin bug
22699         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22700         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22702         * modules/string (Makefile.am): Substitute it.
22703         * lib/string.in.h (strchrnul): Use it.
22704
22705 2011-04-15  Bruno Haible  <bruno@clisp.org>
22706
22707         Don't require lib/stdio-write.c when only module 'stdio' is used.
22708         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22709         invocation.
22710         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22711
22712 2011-04-14  Bruno Haible  <bruno@clisp.org>
22713
22714         Support non-blocking pipe I/O in read() on native Windows.
22715         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22716         (read): New declaration.
22717         * lib/read.c: New file.
22718         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22719         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22720         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22721         vscanf): New declarations.
22722         * lib/stdio-read.c: New file.
22723         * m4/read.m4: New file.
22724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22725         REPLACE_READ.
22726         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22727         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22728         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22729         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22730         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22731         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22732         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22733         * modules/read: New file.
22734         * modules/nonblocking (Files): Add lib/stdio-read.c.
22735         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22736         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22737         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22738         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22739         * modules/pread (Depends-on): Add read.
22740         * modules/safe-read (Depends-on): Likewise.
22741         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22742         gets, scanf, vfscanf, vscanf): Verify signatures.
22743         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22744         problem with non-blocking pipes.
22745         * doc/posix-functions/fgetc.texi: Likewise.
22746         * doc/posix-functions/fgets.texi: Likewise.
22747         * doc/posix-functions/fread.texi: Likewise.
22748         * doc/posix-functions/fscanf.texi: Likewise.
22749         * doc/posix-functions/getc.texi: Likewise.
22750         * doc/posix-functions/getchar.texi: Likewise.
22751         * doc/posix-functions/gets.texi: Likewise.
22752         * doc/posix-functions/scanf.texi: Likewise.
22753         * doc/posix-functions/vfscanf.texi: Likewise.
22754         * doc/posix-functions/vscanf.texi: Likewise.
22755
22756 2011-04-14  Bruno Haible  <bruno@clisp.org>
22757
22758         Support non-blocking pipe I/O in write() on native Windows.
22759         * lib/write.c (rpl_write): Split a write request that failed merely
22760         because the byte count was larger than the pipe buffer's size.
22761         * doc/posix-functions/write.texi: Mention the problem with large byte
22762         counts.
22763
22764 2011-04-14  Bruno Haible  <bruno@clisp.org>
22765
22766         wchar: Ensure that wchar_t gets defined on uClibc.
22767         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22768         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22769
22770 2011-04-13  Bruno Haible  <bruno@clisp.org>
22771
22772         safe-write, full-read: Avoid unnecessary compilation units.
22773         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22774         (Depends-on): Remove safe-read. Add ssize_t.
22775         * modules/full-read (Files): Add lib/full-write.c.
22776         (Depends-on): Add full-write.
22777
22778 2011-04-13  Bruno Haible  <bruno@clisp.org>
22779
22780         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22781         * modules/pwrite (Depends-on): Add 'write'.
22782
22783 2011-04-13  Bruno Haible  <bruno@clisp.org>
22784
22785         Support non-blocking pipe I/O in write() on native Windows.
22786         * lib/unistd.in.h (write): Enable replacement also if
22787         GNULIB_UNISTD_H_NONBLOCKING is 1.
22788         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22789         (rpl_write): When failing to write on a non-blocking pipe, change
22790         errno from ENOSPC to EAGAIN.
22791         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22792         putchar, puts, vfprintf, vprintf): Enable replacement also if
22793         GNULIB_STDIO_H_NONBLOCKING is 1.
22794         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22795         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
22796         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
22797         CALL_WITH_SIGPIPE_EMULATION.
22798         (CALL_WITH_SIGPIPE_EMULATION): Use them.
22799         * m4/nonblocking.m4: New file.
22800         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
22801         for non-blocking I/O support.
22802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22803         GNULIB_UNISTD_H_NONBLOCKING.
22804         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
22805         required for non-blocking I/O support.
22806         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
22807         * modules/nonblocking (Files): Add m4/nonblocking.m4,
22808         lib/stdio-write.c, m4/asm-underscore.m4.
22809         (Depends-on): Add stdio, unistd.
22810         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
22811         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
22812         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
22813         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
22814         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
22815         problem with non-blocking pipes.
22816         * doc/posix-functions/fputc.texi: Likewise.
22817         * doc/posix-functions/fputs.texi: Likewise.
22818         * doc/posix-functions/fwrite.texi: Likewise.
22819         * doc/posix-functions/printf.texi: Likewise.
22820         * doc/posix-functions/putc.texi: Likewise.
22821         * doc/posix-functions/putchar.texi: Likewise.
22822         * doc/posix-functions/puts.texi: Likewise.
22823         * doc/posix-functions/vfprintf.texi: Likewise.
22824         * doc/posix-functions/vprintf.texi: Likewise.
22825         * doc/posix-functions/write.texi: Likewise.
22826
22827 2011-04-10  Jim Meyering  <meyering@redhat.com>
22828
22829         maint.mk: prohibit doubled words
22830         Detect them also when they're separated by a newline.
22831         There are 3 ways to customize it:
22832           - disable the test on a per file basis, as usual with rules using
22833             $(VC_LIST_EXCEPT)
22834           - replace the default doubled-word-selecting regexp (affects all files)
22835           - ignore a particular file-vs-doubled-word match
22836         I nearly used that last one to ignore the "is is" match in
22837         coreutils' NEWS file, since the text was "ls -is is ..."
22838         To do that, I would have added this line to cfg.mk:
22839           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
22840         but it would have ignored any "is is" match in NEWS.
22841         Low probability, but still...
22842         Instead, I changed the text, slightly:
22843           -  ls -is is now consistent with ls -lis in ignoring values returned
22844           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22845         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22846         (prohibit_doubled_word_): Define.
22847         (sc_prohibit_doubled_word): New rule.
22848         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22849
22850 2011-04-10  Jim Meyering  <meyering@redhat.com>
22851
22852         maint: fix doubled-word typo in comment
22853         * m4/gethostname.m4: s/is is/it is/
22854         * m4/getdomainname.m4: Likewise.
22855
22856 2011-04-10  Jim Meyering  <meyering@redhat.com>
22857
22858         maint: remove doubled word: s/it it/it/
22859         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22860
22861 2011-04-10  Jim Meyering  <meyering@redhat.com>
22862
22863         maint.mk: remove useless semicolon and backslash
22864         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22865         semicolon and backslash.
22866
22867 2011-04-10  Bruno Haible  <bruno@clisp.org>
22868
22869         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22870         * modules/stdint-tests (Depends-on): Add wchar.
22871
22872 2011-04-10  Jim Meyering  <meyering@redhat.com>
22873
22874         maint: remove doubled words in comments, e.g., s/a a/a/
22875         * lib/strptime.c (day_of_the_week): s/the the/the/
22876         * tests/test-chown.h (test_chown): s/a a/a/
22877
22878         test-chown.h: correct a cast
22879         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22880         when the destination is a stat.st_gid.
22881
22882 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22883
22884         getaddrinfo: Fix test for sa_len member.
22885         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22886         include <sys/types.h> before <sys/socket.h>.
22887
22888 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22889
22890         maint: change "can not" to "cannot"
22891         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22892         boundaries.
22893
22894 2011-04-09  Jim Meyering  <meyering@redhat.com>
22895
22896         maint: change "a a" to "a"
22897         * tests/test-lchown.h (test_lchown): s/a a/a/
22898
22899         maint.mk: prohibit \<the the\>
22900         * top/maint.mk (sc_prohibit_the_the): New rule.
22901
22902         maint: fix "the the" in comment
22903         * lib/count-one-bits.h: s/the the/the/
22904
22905         maint: change "can not" to "cannot"
22906         But do not change the occurrences in maintain.texi or in
22907         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22908         * doc/gnulib-tool.texi: s/can not/cannot/
22909         * doc/posix-functions/accept.texi (accept): Likewise.
22910         * doc/posix-functions/socket.texi (socket): Likewise.
22911         * lib/mbrtowc.c: Likewise.
22912
22913         maint.mk: prohibit use of "can not"
22914         * top/maint.mk (sc_prohibit_can_not): New rule.
22915         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22916
22917 2011-04-09  Bruno Haible  <bruno@clisp.org>
22918
22919         careadlinkat: Guard against misuse of careadlinkatcwd.
22920         * lib/careadlinkat.c: Include <stdlib.h>.
22921         (careadlinkatcwd): Check that the fd argument is as expected.
22922
22923 2011-04-09  Bruno Haible  <bruno@clisp.org>
22924
22925         careadlinkat: Use common coding style.
22926         * lib/careadlinkat.c: Move gnulib includes after system includes.
22927
22928 2011-04-09  Bruno Haible  <bruno@clisp.org>
22929
22930         careadlinkat: Clarify specification.
22931         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22932         (careadlinkatcwd): Add comment.
22933         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22934
22935 2011-04-09  Bruno Haible  <bruno@clisp.org>
22936
22937         areadlinkat: Avoid link error on many platforms.
22938         * modules/areadlinkat (Depends-on): Add areadlink.
22939
22940 2011-04-09  Bruno Haible  <bruno@clisp.org>
22941
22942         allocator, careadlinkat: Fix double-inclusion guard.
22943         * lib/allocator.h: Fix double-inclusion guard.
22944         * lib/careadlinkat.h: Likewise.
22945
22946 2011-04-09  Bruno Haible  <bruno@clisp.org>
22947
22948         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22949         * lib/relocwrapper.c: Update dependencies hierarchy.
22950         * build-aux/install-reloc: Update list of files to be compiled.
22951         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22952         lib/allocator.[hc].
22953
22954 2011-04-08  Eric Blake  <eblake@redhat.com>
22955
22956         strftime: silence gnulib-tool warning
22957         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22958
22959 2011-04-08  Bruno Haible  <bruno@clisp.org>
22960
22961         verify: Fix syntax error with GCC 4.6 in C++ mode.
22962         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22963         (HAVE_STATIC_ASSERT): New macro.
22964         (verify_true, verify): Use 'static_assert' if it is supported and
22965         '_Static_assert' is not supported.
22966
22967 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22968
22969         allocator: New module.
22970         * modules/allocator, lib/allocator.c: New files.
22971         * lib/allocator.h (stdlib_allocator): New decl.
22972         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22973         Remove.  Do not include <stdlib.h>.
22974         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22975         * modules/careadlinkat (Files): Remove lib/allocator.h.
22976         (Depends-on): Add allocator.
22977
22978         stdlib: let modules use system malloc, realloc
22979         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22980         if !_GL_USE_STDLIB_ALLOC.
22981         (malloc, realloc): Limit this change to a smaller scope.
22982
22983         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22984         (malloc, realloc): Don't #undef; no longer needed.
22985         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22986         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22987         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22988         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22989         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22990         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22991         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22992         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22993
22994         careadlinkat: rename members to avoid problem
22995         * lib/allocator.h (struct allocator): Rename members from
22996         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22997         and realloc are #define'd.  Reported by Eric Blake in
22998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22999         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23000
23001 2011-04-08  Eric Blake  <eblake@redhat.com>
23002
23003         nonblocking: reduce dependency
23004         * tests/test-nonblocking.c: Only test sockets when in use.
23005         * modules/nonblocking-tests (Depends-on): Drop socket.
23006         (Makefile.am): Link even if sockets are not present.
23007         * modules/pipe2-tests (Makefile.am): Likewise.
23008         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23009
23010         pipe2: fix O_NONBLOCK support on mingw
23011         * modules/pipe2 (Depends-on): Add nonblocking.
23012         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23013         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23014         * tests/test-nonblocking.c (main): Likewise.
23015         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23016
23017         fcntl-h: fix O_ACCMODE on cygwin
23018         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23019         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23020
23021         pipe-filter: drop O_NONBLOCK workarounds
23022         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23023         * modules/pipe-filter-ii (Depends-on): Likewise.
23024         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23025
23026         nonblocking: provide O_NONBLOCK for mingw
23027         * modules/nonblocking (Depends-on): Add open.
23028         (configure.ac): Set new witness macro.
23029         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23030         * modules/fcntl-h (Makefile.am): Substitute it.
23031         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23032         nonblocking module is in use.
23033         * lib/nonblocking.c: Adjust portability test.
23034         * lib/open.c (open): Don't let native open see gnulib flag.
23035         * tests/test-fcntl-h.c (main): Enhance test.
23036         * tests/test-open.h (test_open): Likewise.
23037         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23038
23039         careadlinkat: fix compilation error on mingw
23040         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23041         within struct allocator.
23042
23043 2011-04-06  Eric Blake  <eblake@redhat.com>
23044
23045         binary-io: relicense under LGPLv2+
23046         * modules/binary-io (License): Relax to LGPLv2+.
23047         Requested for libvirt, and required by pipe2.
23048
23049 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23050
23051         verify: use _Static_assert if available
23052         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23053         (verify_true, verify): Use it if available.  This generates better
23054         diagnostics with GCC 4.6.0 and later.
23055
23056 2011-04-05  Bruno Haible  <bruno@clisp.org>
23057
23058         Remove leftover generated .h files after config.status changed.
23059
23060         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23061         GL_GENERATE_ALLOCA_H.
23062         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23063         GL_GENERATE_ALLOCA_H evaluates to false.
23064
23065         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23066         GL_GENERATE_ARGZ_H.
23067         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23068         evaluates to false.
23069
23070         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23071         GL_GENERATE_BYTESWAP_H.
23072         * modules/byteswap (Makefile.am): Remove byteswap.h if
23073         GL_GENERATE_BYTESWAP_H evaluates to false.
23074
23075         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23076         GL_GENERATE_ERRNO_H.
23077         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23078         evaluates to false.
23079
23080         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23081         GL_GENERATE_FLOAT_H.
23082         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23083         evaluates to false.
23084
23085         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23086         GL_GENERATE_FNMATCH_H.
23087         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23088         GL_GENERATE_FNMATCH_H evaluates to false.
23089
23090         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23091         GL_GENERATE_GLOB_H.
23092         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23093         evaluates to false.
23094
23095         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23096         automake conditional GL_GENERATE_ICONV_H.
23097         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23098         evaluates to false.
23099
23100         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23101         GL_GENERATE_NETINET_IN_H.
23102         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23103         GL_GENERATE_NETINET_IN_H evaluates to false.
23104
23105         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23106         conditional GL_GENERATE_PTHREAD_H.
23107         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23108         * modules/pthread (Makefile.am): Remove pthread.h if
23109         GL_GENERATE_PTHREAD_H evaluates to false.
23110
23111         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23112         GL_GENERATE_SCHED_H.
23113         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23114         evaluates to false.
23115
23116         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23117         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23118         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23119         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23120
23121         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23122         GL_GENERATE_STDARG_H.
23123         * modules/stdarg (Makefile.am): Remove stdarg.h if
23124         GL_GENERATE_STDARG_H evaluates to false.
23125
23126         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23127         GL_GENERATE_STDBOOL_H.
23128         * modules/stdbool (Makefile.am): Remove stdbool.h if
23129         GL_GENERATE_STDBOOL_H evaluates to false.
23130
23131         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23132         conditional GL_GENERATE_STDDEF_H.
23133         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23134         * modules/stddef (Makefile.am): Remove stddef.h if
23135         GL_GENERATE_STDDEF_H evaluates to false.
23136
23137         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23138         GL_GENERATE_STDINT_H.
23139         * modules/stdint (Makefile.am): Remove stdint.h if
23140         GL_GENERATE_STDINT_H evaluates to false.
23141
23142         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23143         GL_GENERATE_SYSEXITS_H.
23144         * modules/sysexits (Makefile.am): Remove sysexits.h if
23145         GL_GENERATE_SYSEXITS_H evaluates to false.
23146
23147         Reported by Karl Berry and Ralf Wildenhues.
23148
23149 2011-04-05  Bruno Haible  <bruno@clisp.org>
23150
23151         Ensure to rebuild generated .h files when config.status has changed.
23152         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23153         config.status.
23154         * modules/ctype (Makefile.am): Likewise.
23155         * modules/dirent (Makefile.am): Likewise.
23156         * modules/errno (Makefile.am): Likewise.
23157         * modules/fcntl-h (Makefile.am): Likewise.
23158         * modules/float (Makefile.am): Likewise.
23159         * modules/getopt-posix (Makefile.am): Likewise.
23160         * modules/glob (Makefile.am): Likewise.
23161         * modules/iconv-h (Makefile.am): Likewise.
23162         * modules/inttypes (Makefile.am): Likewise.
23163         * modules/langinfo (Makefile.am): Likewise.
23164         * modules/locale (Makefile.am): Likewise.
23165         * modules/math (Makefile.am): Likewise.
23166         * modules/netdb (Makefile.am): Likewise.
23167         * modules/netinet_in (Makefile.am): Likewise.
23168         * modules/poll-h (Makefile.am): Likewise.
23169         * modules/pthread (Makefile.am): Likewise.
23170         * modules/pty (Makefile.am): Likewise.
23171         * modules/sched (Makefile.am): Likewise.
23172         * modules/search (Makefile.am): Likewise.
23173         * modules/selinux-h (Makefile.am): Likewise.
23174         * modules/signal (Makefile.am): Likewise.
23175         * modules/spawn (Makefile.am): Likewise.
23176         * modules/stdarg (Makefile.am): Likewise.
23177         * modules/stdbool (Makefile.am): Likewise.
23178         * modules/stddef (Makefile.am): Likewise.
23179         * modules/stdint (Makefile.am): Likewise.
23180         * modules/stdio (Makefile.am): Likewise.
23181         * modules/stdlib (Makefile.am): Likewise.
23182         * modules/string (Makefile.am): Likewise.
23183         * modules/strings (Makefile.am): Likewise.
23184         * modules/sys_file (Makefile.am): Likewise.
23185         * modules/sys_ioctl (Makefile.am): Likewise.
23186         * modules/sys_select (Makefile.am): Likewise.
23187         * modules/sys_socket (Makefile.am): Likewise.
23188         * modules/sys_stat (Makefile.am): Likewise.
23189         * modules/sys_time (Makefile.am): Likewise.
23190         * modules/sys_times (Makefile.am): Likewise.
23191         * modules/sys_utsname (Makefile.am): Likewise.
23192         * modules/sys_wait (Makefile.am): Likewise.
23193         * modules/sysexits (Makefile.am): Likewise.
23194         * modules/termios (Makefile.am): Likewise.
23195         * modules/time (Makefile.am): Likewise.
23196         * modules/unistd (Makefile.am): Likewise.
23197         * modules/wchar (Makefile.am): Likewise.
23198         * modules/wctype-h (Makefile.am): Likewise.
23199         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23200
23201 2011-04-05  Bruno Haible  <bruno@clisp.org>
23202
23203         pipe2: Relicense under LGPLv2+.
23204         * modules/pipe2 (License): Change to LGPLv2+.
23205         Requested by Eric Blake, for libvirt.
23206
23207 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23208
23209         bootstrap: compute gnulib_extra_files after updating build_aux
23210         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23211         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23212
23213 2011-04-05  Eric Blake  <eblake@redhat.com>
23214
23215         bootstrap: preserve git whitelist item sorting
23216         * build-aux/bootstrap (sort_patterns): New function.
23217         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23218
23219 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23220
23221         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23222         sc_space_tab check.
23223
23224 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23225
23226         areadlink, areadlinkat: rewrite in terms of careadlinkat
23227         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23228         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23229         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23230         (malloc, realloc): Remove #undefs.
23231         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23232         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23233         readlink, ssize_t, stdint, unistd.
23234         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23235         areadlink, stdint.
23236
23237         careadlinkat: new module
23238         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23239         * modules/careadlinkat: New files, written by me with
23240         a review and feedback from Ben Pfaff in
23241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23242
23243 2011-04-01  Bruno Haible  <bruno@clisp.org>
23244
23245         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23246         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23247         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23248         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23249         Reported by Bruce Korb <bruce.korb@gmail.com>.
23250
23251 2011-04-01  Bruno Haible  <bruno@clisp.org>
23252
23253         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23254         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23255         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23256         * modules/wcpcpy (Depends-on): Add extensions.
23257         * modules/wcpncpy (Depends-on): Likewise.
23258         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23259         systems.
23260         * doc/posix-functions/wcpncpy.texi: Likewise.
23261         * doc/posix-functions/wcwidth.texi: Likewise.
23262
23263 2011-03-31  Eric Blake  <eblake@redhat.com>
23264
23265         nonblocking: fix mingw test failures
23266         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23267         non-blocking flag on regular file.
23268         (get_nonblocking_flag): Set errno on invalid fd.
23269         * tests/test-nonblocking.c (main): Avoid test failure on
23270         directories if fchdir is not active.
23271         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23272
23273 2011-03-31  Bruno Haible  <bruno@clisp.org>
23274
23275         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23276         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23277         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23278         Reported by Simon Josefsson <simon@josefsson.org>.
23279
23280 2011-03-31  Bruno Haible  <bruno@clisp.org>
23281         and Eric Blake  <eblake@redhat.com>
23282
23283         nonblocking: new module
23284         * modules/nonblocking: New module.
23285         * modules/nonblocking-tests: Likewise.
23286         * lib/nonblocking.h: New file.
23287         * lib/nonblocking.c: Likewise.
23288         * tests/test-nonblocking.c: New test.
23289         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23290
23291 2011-03-30  Bruno Haible  <bruno@clisp.org>
23292
23293         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23294         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23295         instead of 'printf' format for GCC >= 4.4.
23296         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23297         (fprintf, printf, vfprintf, vprintf): Declare with
23298         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23299         the system's vfprintf() function.
23300         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23301
23302 2011-03-30  Eric Blake  <eblake@redhat.com>
23303
23304         passfd: fix scoping bug
23305         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23306         before sendmsg/recvmsg.
23307
23308         passfd: standardize coding conventions
23309         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23310         can be learned at compile time.
23311         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23312         ifdefs.
23313         (sendfd, recvfd): Follow gnulib code conventions.
23314
23315         passfd: fix incorrect sendmsg arguments
23316         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23317         incorrect msg_controllen value.
23318         * modules/passfd-tests (Depends-on): Check for alarm.
23319         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23320         Reported by Bastien ROUCARIES.
23321
23322 2011-03-30  Bruno Haible  <bruno@clisp.org>
23323
23324         c-strcasestr: Relicense under LGPLv2+.
23325         * modules/c-strcasestr (License): Change to LGPLv2+.
23326         Requested by Eric Blake, for libvirt.
23327
23328 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23329
23330         * users.txt: Add libidn2.  Fix libtasn1 link.
23331
23332 2011-03-30  Jim Meyering  <meyering@redhat.com>
23333
23334         tests: readlink* ("",... fails with EINVAL on newer kernels
23335         readlink and readlinkat have typically failed with ENOENT for
23336         the invalid, empty file name,  "".  However, with the advent
23337         of linux-2.6.39, they fail with EINVAL.
23338         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23339         when operating on the empty file name.
23340         * tests/test-readlink.h (test_readlink): Likewise.
23341
23342 2011-03-29  Bruno Haible  <bruno@clisp.org>
23343
23344         Relicense some modules under LGPLv2+, for libidn2.
23345         * modules/array-mergesort (License): Change to LGPLv2+.
23346         * modules/c-strcaseeq (License): Likewise.
23347         * modules/striconveh (License): Likewise.
23348         * modules/striconveha (License): Likewise.
23349         * modules/uniconv/base (License): Likewise.
23350         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23351         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23352         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23353         * modules/unictype/base (License): Likewise.
23354         * modules/unictype/bidiclass-of (License): Likewise.
23355         * modules/unictype/category-M (License): Likewise.
23356         * modules/unictype/category-none (License): Likewise.
23357         * modules/unictype/category-of (License): Likewise.
23358         * modules/unictype/category-test (License): Likewise.
23359         * modules/unictype/category-test-withtable (License): Likewise.
23360         * modules/unictype/combining-class (License): Likewise.
23361         * modules/unictype/joiningtype-of (License): Likewise.
23362         * modules/unictype/scripts (License): Likewise.
23363         * modules/uninorm/base (License): Likewise.
23364         * modules/uninorm/canonical-decomposition (License): Likewise.
23365         * modules/uninorm/composition (License): Likewise.
23366         * modules/uninorm/decompose-internal (License): Likewise.
23367         * modules/uninorm/decomposition-table (License): Likewise.
23368         * modules/uninorm/nfc (License): Likewise.
23369         * modules/uninorm/nfd (License): Likewise.
23370         * modules/uninorm/u32-normalize (License): Likewise.
23371         * modules/unistr/base (License): Likewise.
23372         * modules/unistr/u32-cpy (License): Likewise.
23373         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23374         * modules/unistr/u32-to-u8 (License): Likewise.
23375         * modules/unistr/u32-uctomb (License): Likewise.
23376         * modules/unistr/u8-check (License): Likewise.
23377         * modules/unistr/u8-mblen (License): Likewise.
23378         * modules/unistr/u8-mbtouc (License): Likewise.
23379         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23380         * modules/unistr/u8-mbtoucr (License): Likewise.
23381         * modules/unistr/u8-prev (License): Likewise.
23382         * modules/unistr/u8-strlen (License): Likewise.
23383         * modules/unistr/u8-to-u32 (License): Likewise.
23384         * modules/unistr/u8-uctomb (License): Likewise.
23385         * modules/unitypes (License): Likewise.
23386         Requested by Simon Josefsson.
23387
23388 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23389
23390         lib-symbol-visibility: Add a notice.
23391         * modules/lib-symbol-visibility (Notice): New field.
23392
23393 2011-03-29  Bruno Haible  <bruno@clisp.org>
23394
23395         getaddrinfo: Doc fix.
23396         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23397         section "fixed in Gnulib".
23398
23399 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23400
23401         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23402         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23403
23404 2011-03-26  Bruno Haible  <bruno@clisp.org>
23405
23406         unictype/property-byname: Reduce the number of load-time relocations.
23407         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23408         (UC_PROPERTY_INDEX_*): New enumeration values.
23409         (uc_property_byname): Convert an index from the lookup table to an
23410         uc_property_t.
23411         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23412         values.
23413
23414 2011-03-26  Bruno Haible  <bruno@clisp.org>
23415
23416         unictype/property-byname: Allow omitted word separators and aliases.
23417         * lib/unictype/pr_byname.gperf: Add property names without word
23418         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23419         for 'space'.
23420
23421 2011-03-26  Bruno Haible  <bruno@clisp.org>
23422
23423         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23424         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23425         also hyphens to space.
23426         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23427         without spaces.
23428         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23429
23430 2011-03-26  Bruno Haible  <bruno@clisp.org>
23431
23432         unictype/joiningtype-byname: Recognize long names as well.
23433         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23434         a long name.
23435         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23436         unictype/joiningtype_byname.h.
23437         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23438         * lib/unictype/joiningtype_byname.gperf: New file.
23439         * modules/unictype/joiningtype-byname (Files): Add
23440         lib/unictype/joiningtype_byname.gperf.
23441         (Depends-on): Add gperf.
23442         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23443         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23444         long names.
23445
23446         Tests for module 'unictype/joiningtype-longname'.
23447         * modules/unictype/joiningtype-longname-tests: New file.
23448         * tests/unictype/test-joiningtype_longname.c: New file.
23449
23450         New module 'unictype/joiningtype-longname'.
23451         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23452         * lib/unictype/joiningtype_longname.c: New file.
23453         * modules/unictype/joiningtype-longname: New file.
23454         * modules/unictype/joiningtype-all (Depends-on): Add
23455         unictype/joiningtype-longname.
23456
23457 2011-03-26  Bruno Haible  <bruno@clisp.org>
23458
23459         unictype/bidiclass-byname: Recognize long names as well.
23460         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23461         name.
23462         * lib/unictype/bidi_byname.c: Include <string.h>,
23463         unictype/bidi_byname.h.
23464         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23465         * lib/unictype/bidi_byname.gperf: New file.
23466         * modules/unictype/bidiclass-byname (Files): Add
23467         lib/unictype/bidi_byname.gperf.
23468         (Depends-on): Add gperf.
23469         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23470         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23471         long names.
23472
23473         Tests for module 'unictype/bidiclass-longname'.
23474         * modules/unictype/bidiclass-longname-tests: New file.
23475         * tests/unictype/test-bidi_longname.c: New file.
23476
23477         New module 'unictype/bidiclass-longname'.
23478         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23479         * lib/unictype/bidi_longname.c: New file.
23480         * modules/unictype/bidiclass-longname: New file.
23481         * modules/unictype/bidiclass-all (Depends-on): Add
23482         unictype/bidiclass-longname.
23483
23484 2011-03-26  Bruno Haible  <bruno@clisp.org>
23485
23486         unictype/bidi*: Rename modules.
23487         * modules/unictype/bidiclass-all: Renamed from
23488         modules/unictype/bidicategory-all.
23489         * modules/unictype/bidiclass-name: Renamed from
23490         modules/unictype/bidiclass-name.
23491         (Description): Update.
23492         * modules/unictype/bidiclass-name-tests: Renamed from
23493         modules/unictype/bidicategory-name-tests.
23494         * modules/unictype/bidiclass-byname: Renamed from
23495         modules/unictype/bidicategory-byname.
23496         (Description): Update.
23497         * modules/unictype/bidiclass-byname-tests: Renamed from
23498         modules/unictype/bidicategory-byname-tests.
23499         * modules/unictype/bidiclass-of: Renamed from
23500         modules/unictype/bidicategory-of.
23501         (Description): Update.
23502         * modules/unictype/bidiclass-of-tests: Renamed from
23503         modules/unictype/bidicategory-of-tests.
23504         * modules/unictype/bidiclass-test: Renamed from
23505         modules/unictype/bidicategory-test.
23506         (Description): Update.
23507         * modules/unictype/bidiclass-test-tests: Renamed from
23508         modules/unictype/bidicategory-test-tests.
23509         * modules/unictype/bidicategory-all: New file, a simple redirection.
23510         * modules/unictype/bidicategory-name: Likewise.
23511         * modules/unictype/bidicategory-byname: Likewise.
23512         * modules/unictype/bidicategory-of: Likewise.
23513         * modules/unictype/bidicategory-test: Likewise.
23514         * modules/unictype/property-bidi-* (Dependencies): Update.
23515         * lib/unictype/bidi_*.c: Update comment.
23516
23517 2011-03-26  Bruno Haible  <bruno@clisp.org>
23518
23519         unictype/bidi*: Rename functions, part 2.
23520         * modules/unictype/bidicategory-name (configure.ac): Update required
23521         libunistring version.
23522         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23523
23524 2011-03-25  Bruno Haible  <bruno@clisp.org>
23525
23526         New module 'unictype/combining-class-all'.
23527         * modules/unictype/combining-class-all: New file.
23528
23529         Tests for module 'unictype/combining-class-byname'.
23530         * modules/unictype/combining-class-byname-tests: New file.
23531         * tests/unictype/test-combiningclass_byname.c: New file.
23532
23533         New module 'unictype/combining-class-byname'.
23534         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23535         * lib/unictype/combiningclass_byname.c: New file.
23536         * lib/unictype/combiningclass_byname.gperf: New file.
23537         * modules/unictype/combining-class-byname: New file.
23538
23539         Tests for module 'unictype/combining-class-longname'.
23540         * modules/unictype/combining-class-longname-tests: New file.
23541         * tests/unictype/test-combiningclass_longname.c: New file.
23542
23543         New module 'unictype/combining-class-longname'.
23544         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23545         * lib/unictype/combiningclass_longname.c: New file.
23546         * modules/unictype/combining-class-longname: New file.
23547
23548         Tests for module 'unictype/combining-class-name'.
23549         * modules/unictype/combining-class-name-tests: New file.
23550         * tests/unictype/test-combiningclass_name.c: New file.
23551
23552         New module 'unictype/combining-class-name'.
23553         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23554         * lib/unictype/combiningclass_name.c: New file.
23555         * modules/unictype/combining-class-name: New file.
23556
23557 2011-03-25  Bruno Haible  <bruno@clisp.org>
23558
23559         unictype/combining-class: Rename source files.
23560         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23561         of unictype/combining.h.
23562         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23563         Update.
23564         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23565         * modules/unictype/combining-class (Description): Fix.
23566         (Files, Makefile.am): Update.
23567         * tests/unictype/test-combiningclass.c: Renamed from
23568         tests/unictype/test-combining.c.
23569         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23570
23571 2011-03-25  Bruno Haible  <bruno@clisp.org>
23572
23573         unictype: Update list of canonical combining classes.
23574         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23575
23576 2011-03-25  Bruno Haible  <bruno@clisp.org>
23577
23578         unictype/category-byname: Recognize long names as well.
23579         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23580         a long name.
23581         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23582         unictype/categ_byname.h.
23583         (UC_CATEGORY_INDEX_*): New enumeration values.
23584         (uc_general_category_byname): Use uc_general_category_lookup and
23585         convert from index to value.
23586         * lib/unictype/categ_byname.gperf: New file.
23587         * modules/unictype/category-byname (Files): Add
23588         lib/unictype/categ_byname.gperf.
23589         (Depends-on): Add gperf.
23590         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23591         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23592         long names.
23593
23594         Tests for module 'unictype/category-longname'.
23595         * modules/unictype/category-longname-tests: New file.
23596         * tests/unictype/test-categ_longname.c: New file.
23597
23598         New module 'unictype/category-longname'.
23599         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23600         * lib/unictype/categ_longname.c: New file.
23601         * modules/unictype/category-longname: New file.
23602         * modules/unictype/category-all (Depends-on): Add it.
23603
23604 2011-03-25  Bruno Haible  <bruno@clisp.org>
23605
23606         Tests for module 'unictype/category-LC'.
23607         * modules/unictype/category-LC-tests: New file.
23608         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23609
23610         New module 'unictype/category-LC'.
23611         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23612         (UC_CATEGORY_LC): New declaration.
23613         (UC_CASED_LETTER): New macro.
23614         * lib/gen-uni-tables.c (is_category_LC): New function.
23615         (output_categories): Also handle category LC.
23616         (UC_CATEGORY_MASK_LC): New enumeration value.
23617         (general_category_byname): Also handle category LC.
23618         * lib/unictype/categ_LC.c: New file.
23619         * lib/unictype/categ_LC.h: New file, automatically generated.
23620         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23621         category LC.
23622         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23623         * modules/unictype/category-LC: New file.
23624         * modules/unictype/category-byname (Depends-on): Add
23625         unictype/category-LC.
23626         * modules/unictype/category-all (Depends-on): Likewise.
23627
23628 2011-03-25  Eric Blake  <eblake@redhat.com>
23629
23630         xmalloc: revert yesterday's regression
23631         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23632         realloc's underlying behavior (allowing allocation of zero-size
23633         objects, especially if malloc-gnu is also in use).
23634
23635 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23636
23637         maint.mk: add missing version to VC-tag
23638         * top/maint.mk: git tag was missing actual tag name; add it.
23639
23640         valgrind: do leak checking, and exit with code 1 on error (not 0)
23641         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23642         to VALGRIND.
23643
23644 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23645
23646         posix-modules: say what it does.
23647         * posix-modules: Add a line to the --help output saying what it does.
23648
23649 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23650
23651         xmalloc: Do not leak if underlying realloc is C99 compatible.
23652         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23653         This avoids a leak on C99-based systems.  See
23654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23655
23656 2011-03-24  Eric Blake  <eblake@redhat.com>
23657
23658         realloc: document portability problem
23659         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23660         passing 0 size to realloc.
23661
23662 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23663
23664         doc: update users.txt
23665         * users.txt: Add cvsps, tmpwatch
23666
23667 2011-03-23  Matt Rice  <ratmice@gmail.com>
23668
23669         doc: update users.txt
23670         * users.txt: Add gdb.
23671
23672 2011-03-23  Jim Meyering  <meyering@redhat.com>
23673
23674         doc: update users.txt
23675         Looking through matches up to the following URL (there are still
23676         several more pages), I found several projects that use gnulib:
23677         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23678         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23679         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23680
23681 2011-03-22  Bruno Haible  <bruno@clisp.org>
23682
23683         unictype/bidi*: Rename functions.
23684         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23685         uc_bidi_class, uc_is_bidi_class): New declarations.
23686         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23687         uc_bidi_category_byname.
23688         (uc_bidi_category_byname): New function.
23689         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23690         u_bidi_category_name.
23691         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23692         (uc_bidi_category_name): New function.
23693         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23694         uc_bidi_category.
23695         (uc_bidi_category): New function.
23696         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23697         uc_is_bidi_category. Invoke uc_bidi_class.
23698         (uc_is_bidi_category): New function.
23699         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23700         instead of uc_bidi_category_byname.
23701         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23702         instead of uc_bidi_category_name.
23703         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23704         uc_bidi_category.
23705         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23706         instead of uc_is_bidi_category.
23707
23708 2011-03-21  Bruno Haible  <bruno@clisp.org>
23709
23710         New module 'unictype/joininggroup-all'.
23711         * modules/unictype/joininggroup-all: New file.
23712
23713         Tests for module 'unictype/joininggroup-of'.
23714         * modules/unictype/joininggroup-of-tests: New file.
23715         * tests/unictype/test-joininggroup_of.c: New file.
23716         * tests/unictype/test-joininggroup_of.h: New file, automatically
23717         generated by gen-uni-tables.
23718
23719         New module 'unictype/joininggroup-of'.
23720         * modules/unictype/joininggroup-of: New file.
23721         * lib/unictype/joininggroup_of.c: New file.
23722         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23723         gen-uni-tables.
23724
23725         Tests for module 'unictype/joininggroup-byname'.
23726         * modules/unictype/joininggroup-byname-tests: New file.
23727         * tests/unictype/test-joininggroup_byname.c: New file.
23728
23729         New module 'unictype/joininggroup-byname'.
23730         * modules/unictype/joininggroup-byname: New file.
23731         * lib/unictype/joininggroup_byname.c: New file.
23732         * lib/unictype/joininggroup_byname.gperf: New file.
23733
23734         Tests for module 'unictype/joininggroup-name'.
23735         * modules/unictype/joininggroup-name-tests: New file.
23736         * tests/unictype/test-joininggroup_name.c: New file.
23737
23738         New module 'unictype/joininggroup-name'.
23739         * modules/unictype/joininggroup-name: New file.
23740         * lib/unictype/joininggroup_name.c: New file.
23741         * lib/unictype/joininggroup_name.h: New file.
23742
23743         New module 'unictype/joiningtype-all'.
23744         * modules/unictype/joiningtype-all: New file.
23745
23746         Tests for module 'unictype/joiningtype-of'.
23747         * modules/unictype/joiningtype-of-tests: New file.
23748         * tests/unictype/test-joiningtype_of.c: New file.
23749         * tests/unictype/test-joiningtype_of.h: New file, automatically
23750         generated by gen-uni-tables.
23751
23752         New module 'unictype/joiningtype-of'.
23753         * modules/unictype/joiningtype-of: New file.
23754         * lib/unictype/joiningtype_of.c: New file.
23755         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23756         gen-uni-tables.
23757
23758         Tests for module 'unictype/joiningtype-byname'.
23759         * modules/unictype/joiningtype-byname-tests: New file.
23760         * tests/unictype/test-joiningtype_byname.c: New file.
23761
23762         New module 'unictype/joiningtype-byname'.
23763         * modules/unictype/joiningtype-byname: New file.
23764         * lib/unictype/joiningtype_byname.c: New file.
23765
23766         Tests for module 'unictype/joiningtype-name'.
23767         * modules/unictype/joiningtype-name-tests: New file.
23768         * tests/unictype/test-joiningtype_name.c: New file.
23769
23770         New module 'unictype/joiningtype-name'.
23771         * modules/unictype/joiningtype-name: New file.
23772         * lib/unictype/joiningtype_name.c: New file.
23773
23774         unictype: Add support for Arabic shaping properties.
23775         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23776         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23777         declarations.
23778         (UC_JOINING_GROUP_*): New enumeration values.
23779         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23780         declarations.
23781         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23782         (unicode_joining_type): New variable.
23783         (UC_JOINING_GROUP_*): New enumeration values.
23784         (unicode_joining_group): New variable.
23785         (fill_arabicshaping, joining_type_as_c_identifier,
23786         output_joining_type_test, output_joining_type,
23787         joining_group_as_c_identifier, output_joining_group_test,
23788         output_joining_group): New functions.
23789         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23790         fill_arabicshaping and output_joining_type_test, output_joining_type,
23791         output_joining_group_test, output_joining_group.
23792         Reported by Simon Josefsson.
23793
23794 2011-03-21  Jim Meyering  <meyering@redhat.com>
23795
23796         strftime: fix a bug in yesterday's change
23797         * lib/strftime.c (add): Accommodate width's initial value of -1.
23798         Otherwise, nstrftime would copy uninitialized data into
23799         the result buffer.
23800
23801 2011-03-21  Jim Meyering  <meyering@redhat.com>
23802
23803         tests: add strftime-tests module
23804         * tests/test-strftime.c: New file.
23805         * modules/strftime-tests: New module.
23806
23807 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23808
23809         strftime: don't assume a byte count fits in 'int'
23810         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
23811         found this problem by static analysis, using gcc -Wstrict-overflow
23812         (GCC 4.5.2, x86-64).  This reported an optimization that depended
23813         on an integer overflow having undefined behavior, but it turns out
23814         that the argument is a size, which might not fit in 'int' anyway,
23815
23816 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23817
23818         stdio: don't require ignore_value around fwrite
23819
23820         This patch works around libc bug 11959
23821         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
23822         Without this patch, applications must often write
23823         ignore_value (fwrite (...)) even though the ignore_value is
23824         not helpful here.  It's common to write many objects, using
23825         fwrite/printf/etc., and then use ferror to detect output error.
23826
23827         I considered making this patch optional, but decided against it,
23828         because libc is obviously being inconsistent here: there is no
23829         reason libc should insist that user code must inspect fwrite
23830         return's value without also insisting that it inspect printf's,
23831         putchar's, etc.  If user code wants to have a strict style where
23832         all these functions' values are checked (so that ferror need not
23833         be checked), we could add support for that style in a new gnulib
23834         module, but in the meantime it's better to be consistent and to
23835         support common usage.
23836
23837         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
23838         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
23839         that we are compiling in checking mode, and if not C++, and
23840         if not already wrapping fwrite for some other reason.
23841         (fwrite): #define to rpl_fwrite if the latter is defined.
23842
23843 2011-03-20  Bruno Haible  <bruno@clisp.org>
23844
23845         verror: Fix compilation error introduced on 2011-02-13.
23846         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23847         instead of __attribute__.
23848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23849
23850 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23851             Bruno Haible  <bruno@clisp.org>
23852
23853         socklen: do not depend on sys_socket
23854         While trying to modify Emacs to use gnulib's socklen module,
23855         I discovered a circular dependency: socklen depends on sys_socket
23856         and vice versa.  Emacs can use socklen, but it does not need
23857         sys_socket because it has its own substitute for sys/socket.h.
23858         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23859         gl_TYPE_SOCKLEN_T.
23860         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23861         gl_PREREQ_SYS_H_SOCKET.
23862         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23863         gl_PREREQ_SYS_H_SOCKET.
23864         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23865         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23866         * modules/socklen (Depends-on): Do not depend on sys_socket.
23867         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23868
23869 2011-03-20  Jim Meyering  <meyering@redhat.com>
23870
23871         maint.mk: sort file names *after* new transformation
23872         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23873         prefix would have led to an unwarranted failure in GNU parted.
23874         Sort after that transformation.
23875
23876 2011-03-19  Jim Meyering  <meyering@redhat.com>
23877
23878         maint.mk: fix po-file syntax-check rule
23879         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23880         Patch by Bruno Haible.
23881
23882 2011-03-19  Bruno Haible  <bruno@clisp.org>
23883
23884         socklen: Update comment.
23885         * m4/socklen.m4: Update comment about platforms.
23886
23887 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23888             Bruno Haible  <bruno@clisp.org>
23889
23890         inet_ntop, inet_pton: Simplify.
23891         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23892         documented to provide socklen_t and we already depend on sys_socket.
23893         * modules/inet_pton (Depends-on): Likewise.
23894         * lib/arpa_inet.in.h: Adjust comment.
23895
23896 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23897             Bruno Haible  <bruno@clisp.org>
23898
23899         netdb: Simplify.
23900         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23901         documented to provide socklen_t and we already depend on sys_socket.
23902         * lib/netdb.in.h: Adjust comment.
23903
23904 2011-03-19  Bruno Haible  <bruno@clisp.org>
23905
23906         sys_socket, netdb: Document problem with socklen_t.
23907         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23908         platforms.
23909         * doc/posix-headers/netdb.texi: Likewise.
23910
23911 2011-03-18  Eric Blake  <eblake@redhat.com>
23912
23913         maint.mk: let po check work in VPATH build
23914         * top/maint.mk (po_file): Allow cfg.mk override.
23915         (sc_po_check): Allow VPATH use.
23916         Reported by Jiri Denemark.
23917
23918 2011-03-16  Jim Meyering  <meyering@redhat.com>
23919
23920         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23921         Before, you would have had to create one .x-sc_ file per rule in order
23922         to exempt offending files.  Now, you may instead use a Make variable --
23923         usually defined in cfg.mk -- whose name identifies the affected rule.
23924         * top/maint.mk (_sc_excl): Define.
23925         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23926         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23927
23928 2011-03-13  Bruno Haible  <bruno@clisp.org>
23929
23930         ignore-value tests: Avoid warnings.
23931         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23932         empty for gcc < 3.4.
23933
23934 2011-03-13  Bruno Haible  <bruno@clisp.org>
23935
23936         passfd: Fix link error on Solaris.
23937         * modules/passfd (Description): Correct.
23938         (Depends-on): Add socketlib.
23939         (Link): New section.
23940         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23941
23942 2011-03-13  Bruno Haible  <bruno@clisp.org>
23943
23944         passfd: Fix link error on AIX 5.2.
23945         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23946
23947 2011-03-13  Bruno Haible  <bruno@clisp.org>
23948
23949         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23950         * lib/sys_socket.in.h: Include <stddef.h>.
23951         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23952         CMSG_FIRSTHDR. Remove unused variable.
23953
23954 2011-03-13  Bruno Haible  <bruno@clisp.org>
23955
23956         passfd: Fix compilation error on OpenBSD.
23957         * lib/passfd.c: Include <sys/uio.h>.
23958
23959 2011-03-13  Bruno Haible  <bruno@clisp.org>
23960
23961         passfd test: Fix warnings.
23962         * tests/test-passfd.c: Include <sys/wait.h>.
23963         (main): Fix typo.
23964
23965 2011-03-13  Bruno Haible  <bruno@clisp.org>
23966
23967         passfd module, part 4, tweaks.
23968         * tests/test-passfd.c: Reorder includes.
23969         (main): Fix perror and printf calls.
23970
23971 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23972
23973         passfd module, part 4.
23974         * modules/passfd-tests: New file.
23975         * tests/test-passfd.c: New file.
23976
23977 2011-03-13  Jim Meyering  <meyering@redhat.com>
23978
23979         Makefile: rely on GNU make; derive syntax-check rule names
23980         Rather than requiring that each sc_ rule be listed as a dependent
23981         of "check", use features of GNU make to derive the list.
23982         * Makefile (syntax-check-rules): Define.
23983         (check): Depend on the new variable, not the hard-coded list.
23984
23985 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23986             Bruno Haible  <bruno@clisp.org>
23987
23988         passfd module, part 3.
23989         * lib/passfd.h (recvfd): Add a flags argument.
23990         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23991         (recvfd): Add a flags argument.
23992         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23993         exists.
23994         * modules/passfd (Depends-on): Add cloexec.
23995         Suggested by Eric Blake.
23996
23997 2011-03-13  Bruno Haible  <bruno@clisp.org>
23998
23999         passfd module, part 2, tweaks.
24000         * modules/passfd (Files): Reorder.
24001         (Depends-on): Remove errno.
24002         (Include): Remove <sys/socket.h>, <sys/un.h>.
24003         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24004         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24005         specification header. Include <sys/socket.h> always. Don't include
24006         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24007         (sendfd): Clarify that it sets errno when it fails.
24008         (recvfd): Fix specification.
24009
24010 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24011
24012         passfd module, part 2.
24013         * modules/passfd: New file.
24014         * lib/passfd.h: New file.
24015         * lib/passfd.c: New file.
24016
24017 2011-03-12  Bruno Haible  <bruno@clisp.org>
24018
24019         wcswidth, mbswidth: Avoid integer overflow.
24020         * lib/wcswidth.c: Include <limits.h>.
24021         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24022         * lib/mbswidth.c: Include <limits.h>.
24023         (mbsnwidth): Avoid 'int' overflow.
24024         Reported by Jim Meyering.
24025
24026 2011-03-12  Bruno Haible  <bruno@clisp.org>
24027
24028         futimens, utimensat: Avoid endless recursion on Solaris 10.
24029         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24030         Solaris.
24031         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24032         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24033
24034 2011-03-11  Jim Meyering  <meyering@redhat.com>
24035
24036         maint.mk: relax a regexp to accommodate other formatting styles
24037         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24038         between "ngettext" and the following "(".
24039
24040 2011-03-11  Pádraig Brady <P@draigBrady.com>
24041
24042         maint.mk: suppress a false positive warning
24043         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24044         diagnostics are marked with ngettext.
24045
24046 2011-03-10  Eric Blake  <eblake@redhat.com>
24047
24048         wchar: add explicit dependencies, for Tru64
24049         * modules/mbmemcasecoll (Depends-on): Add wchar.
24050         * modules/mbtowc (Depends-on): Likewise.
24051         * modules/vasnprintf (Depends-on): Likewise.
24052         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24053         * modules/wctomb (Depends-on): Likewise.
24054         Reported by Peter O'Gorman.
24055
24056 2011-03-08  Bruno Haible  <bruno@clisp.org>
24057
24058         passfd module, part 1, tweaks.
24059         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24060         Improve indentation. Improve AC_MSG_CHECKING messages.
24061         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24062         gl_SOCKET_FAMILIES.
24063
24064 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24065
24066         passfd module, part 1.
24067         * m4/afunix.m4: New file.
24068         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24069         sockets.
24070
24071 2011-03-08  Bruno Haible  <bruno@clisp.org>
24072
24073         regex-quote: New API.
24074         * lib/regex-quote.h: Include <stdbool.h>.
24075         (struct regex_quote_spec): New type.
24076         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24077         New declarations.
24078         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24079         'const struct regex_quote_spec *' argument.
24080         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24081         (pcre_special): New constant.
24082         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24083         New functions.
24084         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24085         'const struct regex_quote_spec *' argument.
24086         * modules/regex-quote (Depends-on): Add stdbool.
24087         * tests/test-regex-quote.c (check): Update for new API. Add test for
24088         anchored results.
24089         * NEWS: Mention the API change.
24090         Reported by Reuben Thomas and Eric Blake.
24091
24092 2011-03-06  Bruno Haible  <bruno@clisp.org>
24093
24094         regex-quote: Fix creation of POSIX extended regular expressions.
24095         * lib/regex-quote.c (ere_special): Add grouping and alternation
24096         operators.
24097
24098 2011-03-05  Bruno Haible  <bruno@clisp.org>
24099
24100         doc: Improve doc regarding autopoint vs. gnulib.
24101         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24102         disable autopoint while running autoreconf.
24103         Suggested by Ralf Wildenhues.
24104
24105 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24106
24107         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24108         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24109
24110 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24111
24112         parse-duration: remove xalloc.h dependency
24113         * lib/parse-duration.c (parse_period): handle NULL return from
24114         strdup instead of calling xstrdup().
24115         * modules/parse-duration: remove "xalloc" dependency
24116
24117 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24118
24119         bootstrap: honor m4_base when running aclocal
24120         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24121
24122 2011-03-02  Jim Meyering  <meyering@redhat.com>
24123
24124         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24125         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24126         on request from Matt Booth.
24127
24128 2011-03-01  Eric Blake  <eblake@redhat.com>
24129
24130         test-link: work on Hurd
24131         * tests/test-link.h (test_link): Hurd rejects linking directories
24132         with EISDIR instead of the POSIX-mandated EPERM.
24133
24134 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24135
24136         stdio: simplify by moving files to printf-posix, sigpipe
24137         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24138         since this symbol is needed only if printf is replaced.
24139         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24140         Require gl_ASM_SYMBOL_PREFIX.
24141         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24142         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24143         (Depends-on): Add 'raise'.
24144         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24145         * modules/stdio (Files): Remove lib/stdio-write.c,
24146         m4/asm-underscore.m4.
24147         (Depends-on): Remove 'raise'.
24148
24149         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24150         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24151         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24152         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24153
24154 2011-02-28  Bruno Haible  <bruno@clisp.org>
24155
24156         localcharset: Assume ANSI C behaviour of free().
24157         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24158         calling free().
24159         Suggested by Simon Josefsson <simon@josefsson.org>.
24160
24161 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24162             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24163             Bruno Haible  <bruno@clisp.org>  (tiny change)
24164
24165         On Cygwin, use /proc file system instead of win32 API.
24166         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24167         Win32 file names.
24168         (DllMain): Simplify by removing Cygwin specific code.
24169         (find_shared_library_fullname): Use Linux specific implementation also
24170         for Cygwin.
24171         (get_shared_library_fullname): Update accordingly.
24172         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24173         Win32 file names.
24174         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24175         Cygwin specific code.
24176
24177 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24178             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24179
24180         Fix OpenMP flag detection for various Fortran compilers.
24181         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24182         OpenMP-conditional compilation construct, to force compile
24183         failure with missing OpenMP flag.
24184         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24185
24186 2011-02-25  Eric Blake  <eblake@redhat.com>
24187
24188         strstr: expand test coverage
24189         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24190         compilation.
24191         * tests/test-memmem.c (main): Duplicate tests.
24192         * tests/test-strcasestr.c (main): Likewise.
24193         * tests/test-c-strcasestr.c (main): Likewise.
24194
24195 2011-02-25  Jim Meyering  <meyering@redhat.com>
24196
24197         maint.mk: detect missing-NL-at-EOF, too
24198         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24199         it also detects when a file lacks a newline at EOF.
24200         (require_exactly_one_NL_at_EOF_): Renamed from
24201         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24202         since people may well have .x-sc_... file names tied to the
24203         existing name.  Suggested by Eric Blake.
24204
24205 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24206
24207         dirname: move m4/dos.m4 functionality into lib/dosname.h
24208
24209         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24210         extracts symbols from it, puts them into config.h; but it's much
24211         easier to use the symbols directly.  filename.h already does this,
24212         but it disagrees with dos.m4 in some respects.  This patch
24213         introduces a different include file dosname.h that packages up
24214         dos.m4, and then later we can work on merging filename.h and
24215         dosname.h.  Applications that need only the easy-to-configure
24216         symbols should consider including dosname.h rather than dirname.h.
24217         * NEWS: Mention incompatible changes.
24218         * m4/dos.m4: Remove.
24219         * lib/dosname.h, modules/dosname: New files.
24220         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24221         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24222         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24223         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24224         Include dosname.h, not dirname.h.
24225         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24226         Include dosname.h, for definitions of symbols like ISSLASH
24227         that used to be in config.h.
24228         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24229         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24230         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24231         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24232         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24233         * modules/rmdir (Files): Likewise.
24234         * modules/stat (Files): Likewise.
24235         * modules/unlink (Files): Likewise.
24236         * modules/dirname-lgpl (Depends-on): Add dosname.
24237         * modules/lstat (Depends-on): Likewise.
24238         * modules/openat (Depends-on): Likewise.
24239         * modules/rmdir (Depends-on): Likewise.
24240         * modules/savewd (Depends-on): Likewise.
24241         * modules/stat (Depends-on): Likewise.
24242         * modules/unlink (Depends-on): Likewise.
24243         * modules/openat (Depends-on): Remove dirname-lgpl.
24244         * modules/savewd (Depends-on): Likewise.
24245         * tests/test-dirname.c: Do not use removed symbols like
24246         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24247         the remaining symbols, e.g., ISSLASH ('\\').
24248
24249 2011-02-25  Eric Blake  <eblake@redhat.com>
24250
24251         strstr: revert patches that introduced bug and pessimization
24252         * lib/str-two-way.h: Add another reference.
24253         (two_way_short_needle, two_way_long_needle): Revert changes from
24254         2011-02-24; they pessimize search speed.
24255         (critical_factorization): Partially revert changes from
24256         2010-06-22; they violate the requirement that the left half of the
24257         needle be smaller than the period of the needle.
24258
24259 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24260
24261         filenamecat: remove unnecessary dependency on dirname-lgpl
24262         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24263         is no direct dependency, just an indirect one via filenamecat-lgpl.
24264
24265         remove: remove unnecessary use of m4/dos.m4
24266         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24267         * modules/remove (FILES): Remove m4/dos.m4.
24268
24269         * lib/openat-proc.c: Don't include dirname.h; not needed.
24270
24271         backupfile: remove unnecessary use of m4/dos.m4
24272         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24273         of its symbols are used by the backupfile code.  backupfile.c does
24274         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24275         for the rare case of programs that want all their backup file
24276         names to live within 8+3 limits, and dos.m4 doesn't address that.
24277         * modules/backupfile (Files): Remove m4/dos.m4.
24278
24279 2011-02-24  Jim Meyering  <meyering@redhat.com>
24280
24281         strstr: fix a bug whereby strstr would mistakenly return NULL
24282         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24283         in period calculation.
24284         (two_way_long_needle): Likewise.
24285         The original problem was reported by Mike Stump in
24286         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24287         Ralf Wildenhues provided the short needle and haystack.
24288         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24289         Add a more involved test to trigger the bug in two_way_long_needle.
24290
24291 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24292
24293         gnulib-tool: remove use of bold display in help screen
24294         * gnulib-tool (func_usage): Do not use bold display anymore in the
24295         help screen.  That was just meant to be a temporary emphasis for a
24296         backward-incompatible change.
24297
24298 2011-02-23  Bruno Haible  <bruno@clisp.org>
24299
24300         Fix misindentation of preprocessor directives.
24301         * lib/argp-namefrob.h: Reindent preprocessor directives.
24302         * lib/getopt_int.h (struct _getopt_data): Likewise.
24303         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24304         * lib/vasnprintf.c (decode_long_double): Likewise.
24305         * tests/test-argmatch.c: Insert blank lines, for clarity.
24306         * tests/test-exclude.c: Likewise.
24307
24308 2011-02-22  Bruno Haible  <bruno@clisp.org>
24309
24310         ioctl: Fix for MacOS X in 64-bit mode.
24311         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24312         value.
24313         Suggested by Eric Blake.
24314         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24315
24316 2011-02-22  Jim Meyering  <meyering@redhat.com>
24317
24318         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24319         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24320         in lib/.
24321
24322 2011-02-22  Eric Blake  <eblake@redhat.com>
24323
24324         maint: avoid any CDPATH issue
24325         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24326
24327         maint: adjust cpp indentation for my modules, as well
24328         * Makefile (sc_cpp_indent_check): Add my name.
24329         * lib/fbufmode.c: Filter through cppi.
24330         * lib/fpurge.c: Likewise.
24331         * lib/freadable.c: Likewise.
24332         * lib/freading.c: Likewise.
24333         * lib/fwritable.c: Likewise.
24334         * lib/fwriting.c: Likewise.
24335         * lib/sigaction.c: Likewise.
24336
24337 2011-02-22  Jim Meyering  <meyering@redhat.com>
24338
24339         maint: adjust cpp indentation to reflect nesting depth
24340         I.e., in a block of code that begins with an unnested "#if",
24341         put one space between the "#" in column 1 and following token.
24342         For example,
24343         -#include <sys/vfs.h>
24344         +# include <sys/vfs.h>
24345         Do this only in .c files that are part of a module I maintain.
24346         * lib/linkat.c: Filter through cppi.
24347         * lib/nanosleep.c: Likewise.
24348         * lib/openat.c: Likewise.
24349         * lib/openat-die.c: Likewise.
24350         * lib/dup3.c: Likewise.
24351         * lib/fchownat.c: Likewise.
24352         * lib/flock.c: Likewise.
24353         * lib/fsync.c: Likewise.
24354         * lib/fts.c: Likewise.
24355         * lib/getpass.c: Likewise.
24356         * lib/gettimeofday.c: Likewise.
24357         * lib/userspec.c: Likewise.
24358         * Makefile (sc_cpp_indent_check): New rule, to check this.
24359
24360 2011-02-22  Bruno Haible  <bruno@clisp.org>
24361
24362         New module 'wctomb'.
24363         * lib/stdlib.in.h (wctomb): New declaration.
24364         * lib/wctomb.c: New file.
24365         * lib/wctomb-impl.h: New file.
24366         * m4/wctomb.m4: New file.
24367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24368         REPLACE_WCTOMB.
24369         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24370         REPLACE_WCTOMB.
24371         * modules/wctomb: New file.
24372         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24373         * doc/posix-functions/wctomb.texi: Mention the new module.
24374         * modules/wctob (Depends-on): Add wctomb.
24375
24376 2011-02-22  Bruno Haible  <bruno@clisp.org>
24377
24378         New module 'mbtowc'.
24379         * lib/stdlib.in.h (mbtowc): New declaration.
24380         * lib/mbtowc.c: New file.
24381         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24382         * m4/mbtowc.m4: New file.
24383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24384         REPLACE_MBTOWC.
24385         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24386         REPLACE_MBTOWC.
24387         * modules/mbtowc: New file.
24388         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24389         * doc/posix-functions/mbtowc.texi: Mention the new module.
24390         * modules/btowc (Depends-on): Add mbtowc.
24391
24392 2011-02-22  Bruno Haible  <bruno@clisp.org>
24393
24394         wcrtomb: Add more tests for native Windows platforms.
24395         * tests/test-wcrtomb-w32-1.sh: New file.
24396         * tests/test-wcrtomb-w32-2.sh: New file.
24397         * tests/test-wcrtomb-w32-3.sh: New file.
24398         * tests/test-wcrtomb-w32-4.sh: New file.
24399         * tests/test-wcrtomb-w32-5.sh: New file.
24400         * tests/test-wcrtomb-w32.c: New file.
24401         * modules/wcrtomb-tests (Files): Add them.
24402         (Makefile.am): Arrange to run these tests.
24403         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24404         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24405
24406 2011-02-20  Bruno Haible  <bruno@clisp.org>
24407
24408         wcrtomb: Enhance test.
24409         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24410
24411 2011-02-20  Bruno Haible  <bruno@clisp.org>
24412
24413         mbrtowc: Tiny optimization.
24414         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24415
24416 2011-02-20  Jim Meyering  <meyering@redhat.com>
24417
24418         test-exclude.c: remove unmatched #endif
24419         * tests/test-exclude.c: Remove stray #endif, left over from
24420         the change of a week ago.
24421
24422 2011-02-19  Jim Meyering  <meyering@redhat.com>
24423
24424         git-version-gen: skip "-dirty" check when appropriate
24425         * build-aux/git-version-gen: Don't run any git commands when the
24426         version string comes from .tarball-version.  Prior to this, we
24427         would run git update-index --refresh even from a just-unpacked
24428         tarball directory, and that could affect a .git/ directory in a
24429         parent of the build directory.  Reported by Mike Frysinger.
24430
24431 2011-02-19  Bruno Haible  <bruno@clisp.org>
24432
24433         unictype/property-byname: Reduce the size of the 'data' segment.
24434         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24435
24436 2011-02-19  Bruno Haible  <bruno@clisp.org>
24437
24438         unictype/scripts: Reduce the size of the 'data' segment.
24439         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24440         '%pic'.
24441         * lib/unictype/scripts_byname.gperf: Regenerated.
24442
24443 2011-02-19  Bruno Haible  <bruno@clisp.org>
24444
24445         stdint: Update documentation.
24446         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24447
24448 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24449
24450         stdint: omit redundant check for wchar.h
24451         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24452         always tests whether wchar.h exists, so remove the now-redundant test.
24453
24454 2011-02-18  Bruno Haible  <bruno@clisp.org>
24455
24456         stdint: Cut dependency to module 'wchar'.
24457         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24458         include the necessary prerequisites.
24459         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24460         * modules/stdint (Depends-on): Remove wchar.
24461         (Makefile.am): Substitute HAVE_WCHAR_H.
24462         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24463
24464 2011-02-18  Eric Blake  <eblake@redhat.com>
24465
24466         longlong: skip, rather than fail, on cross-compilation
24467         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24468         when cross-compiling; regression from 2011-02-16.
24469
24470 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24471
24472         * NEWS: Mention 2011-02-08 change to stdlib.
24473
24474 2011-02-17  Bruno Haible  <bruno@clisp.org>
24475
24476         getloadavg: Add comments about platforms.
24477         * m4/getloadavg.m4: Add comment.
24478         * lib/getloadavg.c: Likewise.
24479
24480 2011-02-17  Bruno Haible  <bruno@clisp.org>
24481
24482         getloadavg: Fix link error on Solaris 2.6.
24483         * modules/getloadavg (Link): New section.
24484         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24485         linking test-getloadavg.
24486         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24487         getloadavg.
24488
24489 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24490
24491         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24492         It was 'int', but this doesn't match the IRIX 6.5 manual.
24493         Suggested by Bruno Haible in
24494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24495
24496 2011-02-17  Bruno Haible  <bruno@clisp.org>
24497
24498         havelib: Fix comments.
24499         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24500         change.
24501
24502 2011-02-17  Bruno Haible  <bruno@clisp.org>
24503
24504         havelib: Update config.rpath.
24505         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24506
24507 2011-02-17  Bruno Haible  <bruno@clisp.org>
24508
24509         getloadavg test: Add some plausibility checks.
24510         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24511         is improbable.
24512
24513 2011-02-16  Eric Blake  <eblake@redhat.com>
24514
24515         maintainer-makefile: make syntax-check a no-op from tarballs
24516         * top/maint.mk (no-vc-detected): New rule.
24517         (local-checks-available): Use it to avoid hanging if someone tries
24518         'make syntax-check' from a tarball.  Also append to any non-syntax
24519         checks already defined in cfg.mk.
24520
24521 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24522
24523         longlong: tune, particularly for common case of c99
24524
24525         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24526         or running anything if c99, or if unsigned long long int does not
24527         work.  In either case, we know the answer without further tests.
24528         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24529         it at most once, and use its results for both long long int and
24530         unsigned long long int.  This is more likely to be efficient in
24531         the common case where the program wants to check for both long
24532         long int and unsigned long long int.
24533         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24534         since the answer is already known.
24535
24536 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24537
24538         getloadavg: set errno
24539         * lib/getloadavg.c: Set errno when returning -1.  If no other
24540         error number looks appropriate, set it to ENOSYS if the getloadavg
24541         looks like it can't possibly ever work, ENOTSUP otherwise.
24542         Suggested by Bruno Haible in
24543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24544
24545         getloadavg: trim unused parts and speed up 'configure'
24546         * NEWS: Document this.
24547         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24548         always compiled if getloadavg is absent.
24549         Move test code to ...
24550         * tests/test-getloadavg.c: New file, containing previous
24551         contents of test from lib/getloadavg.c.  It also contains
24552         suggestions by Bruno Haible in
24553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24554         * modules/getloadavg-tests: New file.
24555         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24556         Do tests in the same order as they're needed for getloadavg.c.
24557         Omit setgid-related tests that generate symbols KMEM_GROUP,
24558         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24559         Do only the tests that are needed to see whether the system has
24560         getloadavg, moving the other tests into ...
24561         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24562         NLIST_NAME_UNION; nobody should be using it.  Do not define
24563         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24564         relevant, as the user of this module shouldn't care how getloadavg
24565         is implemented.
24566
24567         getloadavg: omit unused var
24568         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24569
24570 2011-02-15  Jim Meyering  <meyering@redhat.com>
24571
24572         doc: update users.txt
24573         * users.txt: Update iwhd's URL.
24574
24575 2011-02-13  Bruno Haible  <bruno@clisp.org>
24576
24577         Consistent macro naming for macros that use GCC __attribute__.
24578         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24579         _ATTRIBUTE_NONNULL_.
24580         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24581         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24582         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24583         ATTRIBUTE_DEPRECATED.
24584         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24585         ATTRIBUTE_NORETURN.
24586         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24587         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24588         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24589         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24590         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24591         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24592         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24593         ATTRIBUTE_SENTINEL.
24594         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24595         ATTRIBUTE_RETURN_CHECK.
24596         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24597         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24598         ATTRIBUTE_NORETURN.
24599         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24600         Reported by Paul Eggert.
24601
24602 2011-02-13  Bruno Haible  <bruno@clisp.org>
24603
24604         Don't interfere with a program's definition of __attribute__.
24605         * lib/argp.h (__attribute__): Remove definition.
24606         (_GL_ATTRIBUTE_FORMAT): New macro.
24607         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24608         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24609         (_GL_ATTRIBUTE_FORMAT): New macro.
24610         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24611         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24612         GCC 3 or newer.
24613         * lib/error.h (__attribute__): Remove definition.
24614         (_GL_ATTRIBUTE_FORMAT): New macro.
24615         (error, error_at_line): Use it.
24616         * lib/hash.h (__attribute__): Remove definition.
24617         (ATTRIBUTE_WUR): Update definition. Define always.
24618         * lib/openat.h (__attribute__): Remove definition.
24619         (ATTRIBUTE_NORETURN): Update definition. Define always.
24620         * lib/sigpipe-die.h (__attribute__): Remove definition.
24621         (ATTRIBUTE_NORETURN): Update definition. Define always.
24622         * lib/vasnprintf.h (__attribute__): Remove definition.
24623         (_GL_ATTRIBUTE_FORMAT): New macro.
24624         (asnprintf, vasnprintf): Use it.
24625         * lib/xalloc.h (__attribute__): Remove definition.
24626         (ATTRIBUTE_NORETURN): Update definition. Define always.
24627         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24628         * lib/xmemdup0.h (__attribute__): Remove definition.
24629         (ATTRIBUTE_NORETURN): Update definition. Define always.
24630         * lib/xprintf.h (__attribute__): Remove definition.
24631         (_GL_ATTRIBUTE_FORMAT): New macro.
24632         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24633         * lib/xstrtol.h (__attribute__): Remove definition.
24634         (ATTRIBUTE_NORETURN): Update definition. Define always.
24635         * lib/xvasprintf.h (__attribute__): Remove definition.
24636         (_GL_ATTRIBUTE_FORMAT): New macro.
24637         (xasprintf, xvasprintf): Use it.
24638         * tests/test-argmatch.c (__attribute__): Remove definition.
24639         (ATTRIBUTE_NORETURN): Update definition. Define always.
24640         * tests/test-exclude.c (__attribute__): Remove definition.
24641         (ATTRIBUTE_NORETURN): Update definition. Define always.
24642         Reported by Paul Eggert.
24643
24644 2011-02-13  Bruno Haible  <bruno@clisp.org>
24645
24646         mbrtowc: Add more tests for native Windows platforms.
24647         * tests/test-mbrtowc-w32-1.sh: New file.
24648         * tests/test-mbrtowc-w32-2.sh: New file.
24649         * tests/test-mbrtowc-w32-3.sh: New file.
24650         * tests/test-mbrtowc-w32-4.sh: New file.
24651         * tests/test-mbrtowc-w32-5.sh: New file.
24652         * tests/test-mbrtowc-w32.c: New file.
24653         * modules/mbrtowc-tests (Files): Add them.
24654         (Makefile.am): Arrange to run these tests.
24655         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24656         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24657
24658 2011-02-13  Bruno Haible  <bruno@clisp.org>
24659
24660         mbrtowc: Work around native Windows bug.
24661         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24662         guess when no suitable locale for testing was found.
24663         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24664
24665 2011-02-13  Bruno Haible  <bruno@clisp.org>
24666
24667         mbsinit: Work around mingw bug.
24668         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24669         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24670         Windows.
24671         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24672
24673 2011-02-13  Bruno Haible  <bruno@clisp.org>
24674
24675         mbsinit: Don't crash for a NULL argument.
24676         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24677         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24678
24679 2011-02-13  Bruno Haible  <bruno@clisp.org>
24680
24681         Don't interfere with a program's definition of __attribute__.
24682         * lib/stdio.in.h (__attribute__): Remove definition.
24683         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24684         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24685         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24686         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24687         * lib/string.in.h (__attribute__): Remove definition.
24688         Reported by Paul Eggert.
24689
24690 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24691
24692         stdlib: don't get in the way of non-GCC __attribute__
24693         See thread starting at
24694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24695         Revert previous stdlib change, installing the following instead:
24696         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24697         to get in the way of a non-GCC compiler that supports __attribute__.
24698         (_GL_ATTRIBUTE_RETURN): New macro.
24699         (_Exit): Use it instead of __attribute__.
24700
24701 2011-02-12  Bruno Haible  <bruno@clisp.org>
24702
24703         quotearg test: Avoid test failure on mingw.
24704         * tests/test-quotearg.sh: Convert the locale identifier from native
24705         Windows syntax to Unix syntax.
24706
24707 2011-02-12  Bruno Haible  <bruno@clisp.org>
24708
24709         setlocale: Prefer gnulib's override over libintl's override.
24710         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24711         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24712         GNULIB_defined_setlocale is set.
24713
24714 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24715
24716         stdlib: support non-GCC __attribute__
24717
24718         Fix a serious and tricky problem encountered when attempting to
24719         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24720         5.5, but it crashed due to memory corruption on Solaris 10 with
24721         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24722         bits that are otherwise zero.  This tagging is optional inside
24723         Emacs but is preferred and is used when __attribute__ ((__aligned
24724         (8))) works, as it does with both recent-enough GCC and with Sun C
24725         5.11.  However, Sun C 5.11 is not GCC and does not #define
24726         __GNUC__ and __GNUC_MINOR__.
24727
24728         When I added the getloadavg module to Emacs, it brought in
24729         stdlib.in.h, which contained this fragment:
24730
24731            #ifndef __attribute__
24732            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24733            #  define __attribute__(Spec)   /* empty */
24734            # endif
24735            #endif
24736
24737         When files that include <stdlib.h> were compiled with Sun C 5.11,
24738         the above code disabled __attribute__ ((__aligned (8))), which
24739         caused variables to not be properly aligned, which eventually led
24740         to the pointer corruption mentioned above.  (This was a bit hard
24741         to diagnose, unfortunately.)
24742
24743         Several "#define __attribute__(X) /* empty */" code snippets need
24744         to be eradicated from Gnulib to work with non-GCC compilers that
24745         support __attribute__.  The Autoconf way to do this is to test for
24746         each kind of attribute that we want support for, and selectively
24747         enable that in source code.
24748
24749         Fix this problem just for stdlib.h, by adding a test for the
24750         __noreturn__ attribute, and change stdlib.in.h to use that test
24751         when needed.  This technique can be easily generalized to the
24752         other *.in.h files and attributes, and a similar technique can be
24753         used for *.h and *.c files.  This patch is enough to solve the
24754         problem for Emacs + getloadavg, and I thought I'd publish it for
24755         feedback before undertaking further, similar fixes in other
24756         modules.
24757
24758         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24759         because it's not needed for stdlib.h.  It merely substitutes the
24760         value directly into stdlib.h.  We may well need to #define it, or
24761         similar symbols, for other modules, but it's nice to also have an
24762         option to not #define it for applications like Emacs that do not
24763         need it.
24764
24765         * lib/stdlib.in.h (__attribute__): Do not #define.
24766         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24767         be defined only if the _Exit module is also used.
24768         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24770         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24771         platforms.
24772         * modules/_Exit (Files): Add m4/attribute.m4.
24773         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24774         * m4/attribute.m4: New file.
24775
24776 2011-02-12  Bruno Haible  <bruno@clisp.org>
24777
24778         wcsrtombs: Work around bug on native Windows.
24779         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24780         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24781         instead of len.
24782         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24783
24784 2011-02-12  Bruno Haible  <bruno@clisp.org>
24785
24786         mbsrtowcs: Work around bug on native Windows.
24787         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24788         against mingw bug.
24789         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24790
24791 2011-02-12  Bruno Haible  <bruno@clisp.org>
24792
24793         Avoid setlocale bugs in tests.
24794         * modules/btowc (Dependencies): Add setlocale.
24795         * modules/c-strcase (Dependencies): Likewise.
24796         * modules/mbmemcasecmp (Dependencies): Likewise.
24797         * modules/mbmemcasecoll (Dependencies): Likewise.
24798         * modules/mbrtowc (Dependencies): Likewise.
24799         * modules/mbscasecmp (Dependencies): Likewise.
24800         * modules/mbscasestr (Dependencies): Likewise.
24801         * modules/mbschr (Dependencies): Likewise.
24802         * modules/mbscspn (Dependencies): Likewise.
24803         * modules/mbsinit (Dependencies): Likewise.
24804         * modules/mbsncasecmp (Dependencies): Likewise.
24805         * modules/mbsnrtowcs (Dependencies): Likewise.
24806         * modules/mbspbrk (Dependencies): Likewise.
24807         * modules/mbspcasecmp (Dependencies): Likewise.
24808         * modules/mbsrchr (Dependencies): Likewise.
24809         * modules/mbsrtowcs (Dependencies): Likewise.
24810         * modules/mbsspn (Dependencies): Likewise.
24811         * modules/mbsstr (Dependencies): Likewise.
24812         * modules/nl_langinfo (Dependencies): Likewise.
24813         * modules/quotearg (Dependencies): Likewise.
24814         * modules/unicase/locale-language (Dependencies): Likewise.
24815         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
24816         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
24817         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
24818         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
24819         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
24820         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
24821         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
24822         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
24823         * modules/vasnprintf-posix (Dependencies): Likewise.
24824         * modules/wcrtomb (Dependencies): Likewise.
24825         * modules/wcsnrtombs (Dependencies): Likewise.
24826         * modules/wcsrtombs (Dependencies): Likewise.
24827
24828 2011-02-12  Bruno Haible  <bruno@clisp.org>
24829
24830         setlocale: Workaround native Windows bug.
24831         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
24832         succeeds but sets LC_CTYPE to "C", report a failure.
24833         * tests/test-setlocale2.sh: New file.
24834         * tests/test-setlocale2.c: New file.
24835         * modules/setlocale-tests (Files): Add the new files.
24836         (Makefile.am): Enable test-setlocale2.sh test.
24837         * doc/posix-functions/setlocale.texi: Mention workaround.
24838
24839 2011-02-11  Bruno Haible  <bruno@clisp.org>
24840
24841         Tests for module 'setlocale'.
24842         * modules/setlocale-tests: New file.
24843         * tests/test-setlocale1.sh: New file.
24844         * tests/test-setlocale1.c: New file.
24845
24846         New module 'setlocale'.
24847         * lib/locale.in.h (setlocale): New declaration.
24848         * lib/setlocale.c: New file, based on
24849         gettext/gettext-runtime/intl/setlocale.c.
24850         * m4/setlocale.m4: New file.
24851         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24852         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24853         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24854         REPLACE_SETLOCALE.
24855         * modules/setlocale: New file.
24856         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24857         * doc/posix-functions/setlocale.texi: Mention the new module.
24858
24859 2011-02-11  Bruno Haible  <bruno@clisp.org>
24860
24861         Prepare for locale dependent tests on mingw.
24862         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24863         because it has the wrong locale encoding.
24864         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24865         French_France.1252 instead of "fr".
24866         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24867         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24868         because it has the wrong locale encoding.
24869         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24870         native Windows, try Turkish_Turkey.65001.
24871         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24872         Chinese_China.54936.
24873
24874         Prepare for locale dependent tests on mingw.
24875         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24876         differently.
24877         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24878         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24879         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24880         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24881
24882 2011-02-11  Eric Blake  <eblake@redhat.com>
24883
24884         strptime: avoid compiler warnings
24885         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24886         compiler warnings about dead code.
24887         Reported by Daniel P. Berrange.
24888
24889 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24890
24891         doc: update users.txt
24892         * users.txt: Add rcs.
24893
24894 2011-02-10  John W. Eaton  <jwe@gnu.org>
24895
24896         doc: update users.txt
24897         * users.txt: Add octave.
24898
24899 2011-02-10  Jim Meyering  <meyering@redhat.com>
24900
24901         doc: update users.txt
24902         * users.txt: Add iwhd.
24903
24904 2011-02-09  Bruno Haible  <bruno@clisp.org>
24905
24906         gnulib-tool: Make copyright notice adjustment more robust.
24907         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24908         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24909         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24910         License".
24911         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24912
24913 2011-02-06  Bruno Haible  <bruno@clisp.org>
24914
24915         New module 'towctrans'.
24916         * modules/towctrans: New file.
24917         * lib/wctype.in.h (towctrans): New declaration.
24918         * lib/towctrans.c: New file.
24919         * lib/towctrans-impl.h: New file.
24920         * m4/towctrans.m4: New file.
24921         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24922         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24923         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24924         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24925         * doc/posix-functions/towctrans.texi: Mention the new module.
24926
24927 2011-02-06  Bruno Haible  <bruno@clisp.org>
24928
24929         New module 'wctrans'.
24930         * modules/wctrans: New file.
24931         * lib/wctype.in.h (wctrans): New declaration.
24932         * lib/wctrans.c: New file.
24933         * lib/wctrans-impl.h: New file.
24934         * m4/wctrans.m4: New file.
24935         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24936         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24937         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24938         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24939         * doc/posix-functions/wctrans.texi: Mention the new module.
24940
24941 2011-02-06  Bruno Haible  <bruno@clisp.org>
24942
24943         New module 'iswctype'.
24944         * modules/iswctype: New file.
24945         * lib/wctype.in.h (iswctype): New declaration.
24946         * lib/iswctype.c: New file.
24947         * lib/iswctype-impl.h: New file.
24948         * m4/iswctype.m4: New file.
24949         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24950         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24951         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24952         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24953         * doc/posix-functions/iswctype.texi: Mention the new module and the
24954         HP-UX 11.00 problem.
24955
24956 2011-02-06  Bruno Haible  <bruno@clisp.org>
24957
24958         New module 'wctype'.
24959         * modules/wctype: Change to represent the wctype() substitute.
24960         * lib/wctype.in.h (wctype): New declaration.
24961         * lib/wctype.c: New file.
24962         * lib/wctype-impl.h: New file.
24963         * m4/wctype.m4: New file.
24964         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24965         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24966         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24967         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24968         * doc/posix-functions/wctype.texi: Mention the new module and the
24969         HP-UX 11.00 problem.
24970
24971 2011-02-06  Bruno Haible  <bruno@clisp.org>
24972
24973         wctype-h: Ensure wctype_t and wctrans_t are defined.
24974         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24975         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24976         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24977         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24978         HAVE_WCTRANS_T.
24979         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24980
24981 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24982
24983         flock: fix license typo
24984
24985         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24986         omitted.
24987
24988 2011-02-08  Bruno Haible  <bruno@clisp.org>
24989
24990         Split large sed scripts, for HP-UX sed.
24991         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24992         to avoid HP-UX limit of 99 commands, in the near future.
24993         * modules/stdlib (Makefile.am): Likewise.
24994         * modules/unistd (Makefile.am): Likewise.
24995         * modules/wchar (Makefile.am): Likewise.
24996         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24997         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24998         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24999
25000 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25001             Bruno Haible  <bruno@clisp.org>
25002
25003         stdlib: improve random_r modularization
25004         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25005         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25006         you also need the random_r module to get this material right.
25007         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25008         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25009         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25010
25011 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25012
25013         stdlib: don't depend on stdint
25014         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25015         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25016         be independent of whether stdint.h is needed.
25017         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25018         here, instead of ...
25019         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25020         struct random_data should be using the random_r module, not just
25021         the stdlib module (which wouldn't make sense: what package needs
25022         just struct random_data without also needing random_r?).
25023         * modules/stdlib (Depends-on): Remove stdint.
25024
25025         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25026         See the thread rooted at
25027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25028         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25029         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25030         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25031         __VMS)); previously it was always included (via fcntl--.h).
25032         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25033         hand; this is good enough for load averages.  Also, do not use
25034         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25035         flags directly if available and don't bother otherwise.  (Packages
25036         that need the extra reliability should use the modules that define
25037         these flags on older platforms that lack them.)
25038         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25039         fcntl-safer.
25040
25041 2011-02-08  Jim Meyering  <meyering@redhat.com>
25042
25043         di-set.h, ino-map.h: add multiple-inclusion guard
25044         Technically, the guard is required only for ino-map.h, due to its
25045         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25046         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25047         * lib/ino-map.h: Likewise.
25048
25049 2011-02-06  Bruno Haible  <bruno@clisp.org>
25050
25051         iswblank: Ensure declaration on glibc systems.
25052         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25053         * modules/iswblank (Dependencies): Add 'extensions'.
25054         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25055
25056 2011-02-06  Bruno Haible  <bruno@clisp.org>
25057
25058         New module 'iswblank'.
25059         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25060         * modules/iswblank: New file.
25061         * modules/wctype-h (Files): Remove lib/iswblank.c.
25062         (Makefile.am): Substitute GNULIB_ISWBLANK.
25063         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25064         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25065         (gl_WCTYPE_H_DEFAULTS): New macro.
25066         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25067         * modules/iswblank-tests: New file.
25068         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25069         * tests/test-wctype-h.c (main): Remove iswblank tests.
25070         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25071         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25072         of 'wctype-h'.
25073         * NEWS: Mention the change.
25074         * modules/mbchar (Depends-on): Add iswblank.
25075
25076 2011-02-08  Bruno Haible  <bruno@clisp.org>
25077
25078         di-set tests: Refactor.
25079         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25080         unnecessary includes.
25081         (ASSERT): Remove macro.
25082         (main): Make C90 compliant by avoiding variable declaration after
25083         statement.
25084         * modules/di-set-tests (Files): Add tests/macros.h.
25085
25086 2011-02-08  Bruno Haible  <bruno@clisp.org>
25087
25088         ino-map tests: Refactor.
25089         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25090         unnecessary includes.
25091         (ASSERT): Remove macro.
25092         (main): Make C90 compliant by avoiding variable declaration after
25093         statement.
25094         * modules/ino-map-tests (Files): Add tests/macros.h.
25095
25096 2011-02-08  Jim Meyering  <meyering@redhat.com>
25097
25098         di-set: add "const" to a cast
25099         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25100         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25101
25102 2011-02-06  Bruno Haible  <bruno@clisp.org>
25103
25104         Rename module 'wctype' to 'wctype-h'.
25105         * modules/wctype-h: Renamed from modules/wctype.
25106         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25107         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25108         (Files, Depends-on, Makefile.am): Update.
25109         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25110         (Files, Makefile.am): Update.
25111         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25112         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25113         * doc/posix-headers/wctype.texi: Update.
25114         * doc/posix-functions/iswalnum.texi: Update.
25115         * doc/posix-functions/iswalpha.texi: Update.
25116         * doc/posix-functions/iswblank.texi: Update.
25117         * doc/posix-functions/iswcntrl.texi: Update.
25118         * doc/posix-functions/iswdigit.texi: Update.
25119         * doc/posix-functions/iswgraph.texi: Update.
25120         * doc/posix-functions/iswlower.texi: Update.
25121         * doc/posix-functions/iswprint.texi: Update.
25122         * doc/posix-functions/iswpunct.texi: Update.
25123         * doc/posix-functions/iswspace.texi: Update.
25124         * doc/posix-functions/iswupper.texi: Update.
25125         * doc/posix-functions/iswxdigit.texi: Update.
25126         * doc/posix-functions/towlower.texi: Update.
25127         * doc/posix-functions/towupper.texi: Update.
25128         * NEWS: Mention the change.
25129         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25130         * modules/mbchar (Dependencies): Likewise.
25131         * modules/mbswidth (Dependencies): Likewise.
25132         * modules/quotearg (Dependencies): Likewise.
25133         * modules/regex (Dependencies): Likewise.
25134         * modules/wcscasecmp (Dependencies): Likewise.
25135         * modules/wcsncasecmp (Dependencies): Likewise.
25136         * modules/wcwidth (Dependencies): Likewise.
25137
25138 2011-02-06  Bruno Haible  <bruno@clisp.org>
25139
25140         New module 'wcswidth'.
25141         * modules/wcswidth: New file.
25142         * lib/wchar.in.h (wcswidth): New declaration.
25143         * lib/wcswidth.c: New file.
25144         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25145         * m4/wcswidth.m4: New file.
25146         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25147         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25148         REPLACE_WCSWIDTH.
25149         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25150         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25151         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25152         * doc/posix-functions/wcswidth.texi: Mention the new module.
25153
25154 2011-02-06  Bruno Haible  <bruno@clisp.org>
25155
25156         New module 'wcstok'.
25157         * modules/wcstok: New file.
25158         * lib/wchar.in.h (wcstok): New declaration.
25159         * lib/wcstok.c: New file.
25160         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25161         * m4/wcstok.m4: New file.
25162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25164         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25165         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25166         * doc/posix-functions/wcstok.texi: Mention the new module.
25167
25168 2011-02-06  Bruno Haible  <bruno@clisp.org>
25169
25170         New module 'wcsstr'.
25171         * modules/wcsstr: New file.
25172         * lib/wchar.in.h (wcsstr): New declaration.
25173         * lib/wcsstr.c: New file.
25174         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25175         * m4/wcsstr.m4: New file.
25176         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25177         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25178         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25179         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25180         * doc/posix-functions/wcsstr.texi: Mention the new module.
25181
25182 2011-02-06  Bruno Haible  <bruno@clisp.org>
25183
25184         New module 'wcspbrk'.
25185         * modules/wcspbrk: New file.
25186         * lib/wchar.in.h (wcspbrk): New declaration.
25187         * lib/wcspbrk.c: New file.
25188         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25189         * m4/wcspbrk.m4: New file.
25190         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25191         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25192         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25193         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25194         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25195
25196 2011-02-06  Bruno Haible  <bruno@clisp.org>
25197
25198         New module 'wcsspn'.
25199         * modules/wcsspn: New file.
25200         * lib/wchar.in.h (wcsspn): New declaration.
25201         * lib/wcsspn.c: New file.
25202         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25203         * m4/wcsspn.m4: New file.
25204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25206         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25207         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25208         * doc/posix-functions/wcsspn.texi: Mention the new module.
25209
25210 2011-02-06  Bruno Haible  <bruno@clisp.org>
25211
25212         New module 'wcscspn'.
25213         * modules/wcscspn: New file.
25214         * lib/wchar.in.h (wcscspn): New declaration.
25215         * lib/wcscspn.c: New file.
25216         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25217         * m4/wcscspn.m4: New file.
25218         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25219         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25220         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25221         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25222         * doc/posix-functions/wcscspn.texi: Mention the new module.
25223
25224 2011-02-06  Bruno Haible  <bruno@clisp.org>
25225
25226         New module 'wcsrchr'.
25227         * modules/wcsrchr: New file.
25228         * lib/wchar.in.h (wcsrchr): New declaration.
25229         * lib/wcsrchr.c: New file.
25230         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25231         * m4/wcsrchr.m4: New file.
25232         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25233         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25234         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25235         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25236         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25237
25238 2011-02-06  Bruno Haible  <bruno@clisp.org>
25239
25240         New module 'wcschr'.
25241         * modules/wcschr: New file.
25242         * lib/wchar.in.h (wcschr): New declaration.
25243         * lib/wcschr.c: New file.
25244         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25245         * m4/wcschr.m4: New file.
25246         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25247         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25248         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25249         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25250         * doc/posix-functions/wcschr.texi: Mention the new module.
25251
25252 2011-02-06  Bruno Haible  <bruno@clisp.org>
25253
25254         New module 'wcsdup'.
25255         * modules/wcsdup: New file.
25256         * lib/wchar.in.h (wcsdup): New declaration.
25257         * lib/wcsdup.c: New file.
25258         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25259         * m4/wcsdup.m4: New file.
25260         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25261         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25262         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25263         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25264         * doc/posix-functions/wcsdup.texi: Mention the new module.
25265
25266 2011-02-06  Bruno Haible  <bruno@clisp.org>
25267
25268         New module 'wcsxfrm'.
25269         * modules/wcsxfrm: New file.
25270         * lib/wchar.in.h (wcsxfrm): New declaration.
25271         * lib/wcsxfrm.c: New file.
25272         * lib/wcsxfrm-impl.h: New file.
25273         * m4/wcsxfrm.m4: New file.
25274         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25275         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25276         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25277         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25278         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25279
25280 2011-02-06  Bruno Haible  <bruno@clisp.org>
25281
25282         New module 'wcscoll'.
25283         * modules/wcscoll: New file.
25284         * lib/wchar.in.h (wcscoll): New declaration.
25285         * lib/wcscoll.c: New file.
25286         * lib/wcscoll-impl.h: New file.
25287         * m4/wcscoll.m4: New file.
25288         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25289         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25290         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25291         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25292         * doc/posix-functions/wcscoll.texi: Mention the new module.
25293
25294 2011-02-06  Bruno Haible  <bruno@clisp.org>
25295
25296         New module 'wcsncasecmp'.
25297         * modules/wcsncasecmp: New file.
25298         * lib/wchar.in.h (wcsncasecmp): New declaration.
25299         * lib/wcsncasecmp.c: New file.
25300         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25301         * m4/wcsncasecmp.m4: New file.
25302         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25303         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25304         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25305         HAVE_WCSNCASECMP.
25306         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25307         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25308
25309 2011-02-06  Bruno Haible  <bruno@clisp.org>
25310
25311         New module 'wcscasecmp'.
25312         * modules/wcscasecmp: New file.
25313         * lib/wchar.in.h (wcscasecmp): New declaration.
25314         * lib/wcscasecmp.c: New file.
25315         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25316         * m4/wcscasecmp.m4: New file.
25317         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25318         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25319         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25320         HAVE_WCSCASECMP.
25321         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25322         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25323
25324 2011-02-05  Bruno Haible  <bruno@clisp.org>
25325
25326         New module 'wcsncmp'.
25327         * modules/wcsncmp: New file.
25328         * lib/wchar.in.h (wcsncmp): New declaration.
25329         * lib/wcsncmp.c: New file.
25330         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25331         * m4/wcsncmp.m4: New file.
25332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25335         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25336         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25337
25338 2011-02-05  Bruno Haible  <bruno@clisp.org>
25339
25340         New module 'wcscmp'.
25341         * modules/wcscmp: New file.
25342         * lib/wchar.in.h (wcscmp): New declaration.
25343         * lib/wcscmp.c: New file.
25344         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25345         * m4/wcscmp.m4: New file.
25346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25349         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25350         * doc/posix-functions/wcscmp.texi: Mention the new module.
25351
25352 2011-02-05  Bruno Haible  <bruno@clisp.org>
25353
25354         New module 'wcsncat'.
25355         * modules/wcsncat: New file.
25356         * lib/wchar.in.h (wcsncat): New declaration.
25357         * lib/wcsncat.c: New file.
25358         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25359         * m4/wcsncat.m4: New file.
25360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25363         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25364         * doc/posix-functions/wcsncat.texi: Mention the new module.
25365
25366 2011-02-05  Bruno Haible  <bruno@clisp.org>
25367
25368         New module 'wcscat'.
25369         * modules/wcscat: New file.
25370         * lib/wchar.in.h (wcscat): New declaration.
25371         * lib/wcscat.c: New file.
25372         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25373         * m4/wcscat.m4: New file.
25374         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25375         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25376         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25377         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25378         * doc/posix-functions/wcscat.texi: Mention the new module.
25379
25380 2011-02-05  Bruno Haible  <bruno@clisp.org>
25381
25382         New module 'wcpncpy'.
25383         * modules/wcpncpy: New file.
25384         * lib/wchar.in.h (wcpncpy): New declaration.
25385         * lib/wcpncpy.c: New file.
25386         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25387         * m4/wcpncpy.m4: New file.
25388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25390         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25391         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25392         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25393
25394 2011-02-05  Bruno Haible  <bruno@clisp.org>
25395
25396         New module 'wcsncpy'.
25397         * modules/wcsncpy: New file.
25398         * lib/wchar.in.h (wcsncpy): New declaration.
25399         * lib/wcsncpy.c: New file.
25400         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25401         * m4/wcsncpy.m4: New file.
25402         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25403         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25404         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25405         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25406         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25407
25408 2011-02-05  Bruno Haible  <bruno@clisp.org>
25409
25410         New module 'wcpcpy'.
25411         * modules/wcpcpy: New file.
25412         * lib/wchar.in.h (wcpcpy): New declaration.
25413         * lib/wcpcpy.c: New file.
25414         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25415         * m4/wcpcpy.m4: New file.
25416         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25417         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25418         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25419         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25420         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25421
25422 2011-02-05  Bruno Haible  <bruno@clisp.org>
25423
25424         New module 'wcscpy'.
25425         * modules/wcscpy: New file.
25426         * lib/wchar.in.h (wcscpy): New declaration.
25427         * lib/wcscpy.c: New file.
25428         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25429         * m4/wcscpy.m4: New file.
25430         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25431         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25432         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25433         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25434         * doc/posix-functions/wcscpy.texi: Mention the new module.
25435
25436 2011-02-05  Bruno Haible  <bruno@clisp.org>
25437
25438         New module 'wcsnlen'.
25439         * modules/wcsnlen: New file.
25440         * lib/wchar.in.h (wcsnlen): New declaration.
25441         * lib/wcsnlen.c: New file.
25442         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25443         * m4/wcsnlen.m4: New file.
25444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25447         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25448         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25449
25450 2011-02-05  Bruno Haible  <bruno@clisp.org>
25451
25452         New module 'wcslen'.
25453         * modules/wcslen: New file.
25454         * lib/wchar.in.h (wcslen): New declaration.
25455         * lib/wcslen.c: New file.
25456         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25457         * m4/wcslen.m4: New file.
25458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25461         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25462         * doc/posix-functions/wcslen.texi: Mention the new module.
25463
25464 2011-02-05  Bruno Haible  <bruno@clisp.org>
25465
25466         New module 'wmemset'.
25467         * modules/wmemset: New file.
25468         * lib/wchar.in.h (wmemset): New declaration.
25469         * lib/wmemset.c: New file.
25470         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25471         * m4/wmemset.m4: New file.
25472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25474         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25475         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25476         * doc/posix-functions/wmemset.texi: Mention the new module.
25477
25478 2011-02-05  Bruno Haible  <bruno@clisp.org>
25479
25480         New module 'wmemmove'.
25481         * modules/wmemmove: New file.
25482         * lib/wchar.in.h (wmemmove): New declaration.
25483         * lib/wmemmove.c: New file.
25484         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25485         * m4/wmemmove.m4: New file.
25486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25488         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25489         HAVE_WMEMMOVE.
25490         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25491         * doc/posix-functions/wmemmove.texi: Mention the new module.
25492
25493 2011-02-05  Bruno Haible  <bruno@clisp.org>
25494
25495         New module 'wmemcpy'.
25496         * modules/wmemcpy: New file.
25497         * lib/wchar.in.h (wmemcpy): New declaration.
25498         * lib/wmemcpy.c: New file.
25499         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25500         * m4/wmemcpy.m4: New file.
25501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25503         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25504         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25505         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25506
25507 2011-02-05  Bruno Haible  <bruno@clisp.org>
25508
25509         New module 'wmemcmp'.
25510         * modules/wmemcmp: New file.
25511         * lib/wchar.in.h (wmemcmp): New declaration.
25512         * lib/wmemcmp.c: New file.
25513         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25514         * m4/wmemcmp.m4: New file.
25515         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25516         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25517         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25518         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25519         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25520
25521 2011-02-07  Jim Meyering  <meyering@redhat.com>
25522
25523         di-set, ino-map: new modules, from coreutils
25524         * lib/di-set.c: New file.
25525         * lib/di-set.h: Likewise.
25526         * lib/ino-map.c: Likewise.
25527         * lib/ino-map.h: Likewise.
25528         * modules/di-set: Likewise.
25529         * modules/di-set-tests: Likewise.
25530         * modules/ino-map: Likewise.
25531         * modules/ino-map-tests: Likewise.
25532         * tests/test-di-set.c: Likewise.
25533         * tests/test-ino-map.c: Likewise.
25534
25535 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25536
25537         getloadavg: merge minor changes from Emacs
25538
25539         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25540         (getloadavg): Use memset, not bzero.
25541
25542         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25543         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25544         clash (bug#86).
25545
25546 2010-11-14  Bruno Haible  <bruno@clisp.org>
25547
25548         Allow multiple gnulib generated replacements to coexist.
25549         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25550         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25551         * lib/langinfo.in.h (nl_item): Likewise.
25552         * lib/math.in.h (_NaN, NAN): Likewise.
25553         * lib/netdb.in.h (struct addrinfo): Likewise.
25554         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25555         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25556         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25557         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25558         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25559         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25560         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25561         pthread_mutexattr_init, pthread_mutexattr_settype,
25562         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25563         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25564         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25565         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25566         * lib/sched.in.h (struct sched_param): Likewise.
25567         * lib/se-selinux.in.h (security_class_t, security_context_t,
25568         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25569         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25570         lsetfilecon, fsetfilecon, security_check_context,
25571         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25572         Likewise.
25573         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25574         Likewise.
25575         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25576         _gl_function_taking_int_returning_void_t, union sigval,
25577         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25578         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25579         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25580         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25581         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25582         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25583         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25584         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25585         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25586         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25587         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25588         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25589         socklen_t, rpl_fd_isset): Likewise.
25590         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25591         * lib/sys_time.in.h (struct timeval): Likewise.
25592         * lib/sys_times.in.h (struct tms): Likewise.
25593         * lib/sys_utsname.in.h (struct utsname):
25594         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25595         * lib/unistd.in.h (getpagesize): Likewise.
25596         * lib/wchar.in.h (mbstate_t): Likewise.
25597         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25598         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25599         towlower, towupper): Likewise.
25600         Reported by Sam Steingold <sds@gnu.org>.
25601
25602 2011-02-05  Eric Blake  <eblake@redhat.com>
25603
25604         unsetenv: work around Haiku issues
25605         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25606         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25607
25608 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25609
25610         libposix: avoid calling error() within libposix
25611         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25612         is defined.
25613
25614 2011-02-05  Eric Blake  <eblake@redhat.com>
25615
25616         strerror_r-posix: port to cygwin
25617         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25618         implementation.
25619         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25620         * tests/test-strerror_r.c (main): Fix test.
25621         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25622         issue.
25623
25624 2011-02-05  Bruno Haible  <bruno@clisp.org>
25625
25626         New module 'wmemchr'.
25627         * modules/wmemchr: New file.
25628         * lib/wchar.in.h (wmemchr): New declaration.
25629         * lib/wmemchr.c: New file.
25630         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25631         * m4/wmemchr.m4: New file.
25632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25634         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25635         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25636         * doc/posix-functions/wmemchr.texi: Mention the new module.
25637
25638 2011-02-04  Eric Blake  <eblake@redhat.com>
25639
25640         fdopendir: detect FreeBSD bug
25641         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25642         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25643
25644 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25645
25646         stdbool: do not define HAVE_STDBOOL_H
25647         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25648         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25649         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25650         imported from the latest Autoconf git.  It was motivated by Emacs,
25651         which uses gnulib but does not need HAVE_STDBOOL_H.
25652
25653 2011-02-04  Bruno Haible  <bruno@clisp.org>
25654
25655         wcsnrtombs: Prepare for new module wwcsnrtombs.
25656         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25657         * lib/wcsnrtombs.c: Include it.
25658         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25659
25660         wcsrtombs: Prepare for new module wwcsrtombs.
25661         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25662         * lib/wcsrtombs.c: Include it.
25663         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25664
25665         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25666         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25667         * lib/mbsnrtowcs.c: Include it.
25668         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25669
25670         mbsrtowcs: Prepare for new module mbsrtowwcs.
25671         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25672         * lib/mbsrtowcs.c: Include it.
25673         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25674
25675 2011-02-04  Bruno Haible  <bruno@clisp.org>
25676
25677         vasnprintf: Reduce use of malloc for small format strings.
25678         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25679         (arguments): Add room for the first 7 arguments.
25680         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25681         (char_directives, u8_directives, u16_directives, u32_directives): Add
25682         room for the first 7 directives.
25683         * lib/printf-parse.c: Include <string.h>.
25684         (PRINTF_PARSE): Change memory handling code so that it uses the first
25685         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25686         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25687         Reported by Pádraig Brady <P@draigbrady.com>.
25688
25689 2011-01-31  Eric Blake  <eblake@redhat.com>
25690
25691         dup2: work around Haiku bug
25692         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25693         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25694         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25695         * tests/test-dup2.c (main): Enhance test.
25696
25697 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25698
25699         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25700         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25701         declared by eglibc 2.11.2.
25702         * lib/stdio.in.h: Likewise.
25703
25704 2011-01-31  Eric Blake  <eblake@redhat.com>
25705
25706         ignore-value: add missing test dependency
25707         * tests/test-ignore-value.c: Revert previous change; stdio.h
25708         provides off_t.
25709         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25710
25711 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25712
25713         mktime: clarify long_int width checking
25714         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25715         the top level, to make it clearer that the assumption about
25716         long_int width is being checked.  See
25717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25718
25719 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25720
25721         ignore-value: Fix self-test.
25722         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25723
25724 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25725
25726         TYPE_MAXIMUM: avoid theoretically undefined behavior
25727         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25728         negative number, which the C Standard says has undefined behavior.
25729         In practice this is not a problem, but might as well do it by the book.
25730         Reported by Rich Felker and Eric Blake; see
25731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25732         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25733         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25735         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25736         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25737         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25738
25739         mktime: #undef mktime before #defining it
25740         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25741
25742         mktime: systematically normalize tm_isdst comparisons
25743         * lib/mktime.c (isdst_differ): New function.
25744         (__mktime_internal): Use it systematically for all isdst comparisons.
25745         This completes the fix for libc BZ #6723, and removes the need for
25746         normalizing tm_isdst.  See
25747         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25748         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25749
25750         mktime: fix some integer overflow issues and sidestep the rest
25751
25752         This was prompted by a bug report by Benjamin Lindner for MinGW
25753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25754         His bug is due to signed integer overflow (0 - INT_MIN), and I
25755         I scanned through mktime.c looking for other integer overflow
25756         problems, fixing all the bugs I found.
25757
25758         Although the C Standard says the resulting code is still not safe
25759         in the presence of integer overflow, in practice it should be good
25760         enough for all real-world two's-complement implementations, except
25761         for debugging environments that deliberately trap on integer
25762         overflow (e.g., gcc -ftrapv).
25763
25764         * lib/mktime.c (WRAPV): New macro.
25765         (SHR): Also check that long_int and time_t shift right in the
25766         usual way, before using the fast-but-unportable method.
25767         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25768         used.  The code already assumed two's complement, so there's
25769         no need to test for alternatives.  All uses removed.
25770         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25771         the C standard.  Problem reported by Rich Felker in
25772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25773         (twos_complement_arithmetic): Also check long_int and time_t.
25774         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25775         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25776         (__mktime_internal): Avoid integer overflow with unary subtraction
25777         in two instances where -1 - X is an adequate replacement for -X,
25778         since the calculations are approximate.
25779
25780 2011-01-29  Eric Blake  <eblake@redhat.com>
25781
25782         mktime: avoid infinite loop
25783         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25784         type; behavior is still undefined but portable to all known targets.
25785         Reported by Rich Felker.
25786
25787 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25788
25789         rename, unlink, same-inode: Relicense.
25790         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25791         * modules/unlink (License): Likewise.
25792         * modules/same-inode (License): Likewise.
25793
25794 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25795
25796         mktime: avoid problems on NetBSD 5 / i386
25797         * lib/mktime.c (long_int): New type.  This works around a problem
25798         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
25799         but time_t is 64 bits, and where I expect the existing code is
25800         wrong in some cases.
25801         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
25802         (ydhms_diff): Bring back the compile-time check for wide-enough
25803         year and yday.
25804
25805         mktime: fix misspelling in comment
25806         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
25807         This merges all recent glibc changes of importance.
25808
25809 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25810
25811         move-if-change: cope with concurrent mv of identical file.
25812         * build-aux/move-if-change (CMPPROG): Accept environment
25813         variable as an override for `cmp'.
25814         (usage): Document CMPPROG.
25815         Adjust comparison to drop stdout.  Cope with failure of mv if
25816         the target file exists and is identical to the source, for
25817         parallel builds.
25818         Report from H.J. Lu against binutils in PR binutils/12283.
25819
25820 2011-01-28  Bruce Korb  <bkorb@gnu.org>
25821
25822         * users.txt: Mention sharutils.
25823
25824 2011-01-28  Simon Josefsson  <simon@josefsson.org>
25825
25826         * users.txt: Mention OATH Toolkit.
25827
25828 2011-01-27  Bruno Haible  <bruno@clisp.org>
25829
25830         Prepare for supporting FreeBSD 10.
25831         * build-aux/config.libpath: Remove handling of freebsd1*.
25832
25833 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
25834
25835         Prepare for supporting FreeBSD 10.
25836         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
25837         match FreeBSD 10.0.
25838
25839 2011-01-27  Bruno Haible  <bruno@clisp.org>
25840
25841         vma-iter, get-rusage-as: Add OpenBSD support.
25842         * modules/vma-iter (configure.ac): Test for mquery.
25843         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25844         * lib/vma-iter.c: Include <sys/mman.h>.
25845         (vma_iterate): Add an implementation based on mquery().
25846         * lib/resource-ext.h (get_rusage_as): Update comments.
25847         * lib/get-rusage-as.c: Likewise.
25848         * lib/get-rusage-data.c: Likewise.
25849
25850 2011-01-26  Karl Berry  <karl@gnu.org>
25851
25852         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25853         variables to make it easier to override the makeinfo program used.
25854
25855 2011-01-26  Eric Blake  <eblake@redhat.com>
25856
25857         fcntl: work around Haiku F_DUPFD bugs
25858         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25859         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25860         cloexec bit on duplication.
25861         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25862
25863 2011-01-26  Bruno Haible  <bruno@clisp.org>
25864
25865         Enable memory leak tests on AIX.
25866         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25867         * tests/test-fprintf-posix3.c (main): Likewise.
25868
25869 2011-01-26  Bruno Haible  <bruno@clisp.org>
25870
25871         Tests for module 'get-rusage-data'.
25872         * modules/get-rusage-data-tests: New file.
25873         * tests/test-get-rusage-data.c: New file.
25874
25875         New module 'get-rusage-data'.
25876         * lib/resource-ext.h (get_rusage_data): New declaration.
25877         * lib/get-rusage-data.c: New file.
25878         * modules/get-rusage-data: New file.
25879
25880 2011-01-25  Bruno Haible  <bruno@clisp.org>
25881
25882         get-rusage-as: Allow for easier testing.
25883         * lib/resource-ext.h (get_rusage_as): Add comment.
25884         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25885         (main): New function for interactive testing.
25886
25887 2011-01-25  Bruno Haible  <bruno@clisp.org>
25888
25889         vma-iter: Treat Haiku like BeOS.
25890         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25891         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25892
25893 2011-01-25  Eric Blake  <eblake@redhat.com>
25894
25895         c-stack: fix regression on cygwin when libsigsegv is present
25896         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25897
25898 2011-01-24  Bruno Haible  <bruno@clisp.org>
25899
25900         vma-iter: Avoid empty intervals.
25901         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25902         on an empty interval.
25903
25904 2011-01-24  Jim Meyering  <meyering@redhat.com>
25905
25906         u64: remove unnecessary #include
25907         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25908
25909 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25910
25911         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25912         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25913
25914 2011-01-23  Bruno Haible  <bruno@clisp.org>
25915
25916         New module 'vma-iter'.
25917         * lib/vma-iter.h: New file.
25918         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25919         * modules/vma-iter: New file.
25920         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25921         for get_rusage_as_via_iterator.
25922         (vma_iterate_callback): New function.
25923         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25924         * modules/get-rusage-as (Depends-on): Add vma-iter.
25925
25926 2011-01-23  Bruno Haible  <bruno@clisp.org>
25927
25928         uninorm: Tweak includes.
25929         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25930         Reported by Jim Meyering.
25931
25932 2011-01-23  Bruno Haible  <bruno@clisp.org>
25933
25934         get-rusage-as: Improve on NetBSD.
25935         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25936         /proc, like on FreeBSD.
25937
25938 2011-01-23  Jim Meyering  <meyering@redhat.com>
25939
25940         xreadlink.h: remove unnecessary #include
25941         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25942
25943         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25944         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25945
25946 2011-01-23  Bruno Haible  <bruno@clisp.org>
25947
25948         get-rusage-as: Fix bug.
25949         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25950         original limit when aborting the first loop.
25951
25952 2011-01-23  Bruno Haible  <bruno@clisp.org>
25953
25954         wctype: Ensure valid C syntax.
25955         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25956         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25957
25958 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25959
25960         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25961         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25962         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25963         as they are needed only for configure's test case.
25964         This removes two unnecessary symbols from config.h.
25965
25966         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25967         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25969         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25970         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25971         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25972         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25973         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25974         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25975         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25976         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25977         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25978         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25979         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25980         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25981         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25982         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25983         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25984
25985 2011-01-21  Eric Blake  <eblake@redhat.com>
25986
25987         maintainer-makefile: work with older git for submodule check
25988         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25989         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25990         Reported by Matthias Bolte.
25991
25992         bootstrap: minor portability fixes
25993         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25994         (usage): Omit leading capital and trailing . on help phrases, per
25995         GNU Coding Standards.
25996         (check_versions, top level): Prefix messages with script name.
25997
25998 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25999
26000         bootstrap: support --no-git option
26001         * build-aux/bootstrap: Add --no-git option, to be used when
26002         --gnulib-srcdir points to the exact desired checkout.
26003
26004 2011-01-21  Eric Blake  <eblake@redhat.com>
26005
26006         strerror_r-posix: work with glibc 2.13
26007         * lib/strerror_r.c (strerror_r): Fix return type.
26008
26009 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26010             Bruno Haible  <bruno@clisp.org>
26011
26012         uN_strstr: New unit tests.
26013         * modules/unistr/u8-strstr-tests: New file.
26014         * modules/unistr/u16-strstr-tests: New file.
26015         * modules/unistr/u32-strstr-tests: New file.
26016         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26017         * tests/unistr/test-u8-strstr.c: New file.
26018         * tests/unistr/test-u16-strstr.c: New file.
26019         * tests/unistr/test-u32-strstr.c: New file.
26020
26021 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26022             Bruno Haible  <bruno@clisp.org>
26023
26024         Make uN_strstr functions O(n) worst-case.
26025         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26026         16-bit and 32-bit unit cases, use the unibyte algorithm from
26027         lib/mbsstr.c.
26028         * lib/unistr/u8-strstr.c: Include <string.h>.
26029         (UNIT_IS_UINT8_T): New macro.
26030         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26031         (U_STRLEN, U_STRNLEN): New macros.
26032         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26033         (U_STRLEN, U_STRNLEN): New macros.
26034         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26035         (configure.ac): Update required libunistring version.
26036         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26037         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26038         malloca.
26039         (configure.ac): Update required libunistring version.
26040         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26041         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26042         malloca.
26043         (configure.ac): Update required libunistring version.
26044
26045 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26046             Bruno Haible  <bruno@clisp.org>
26047
26048         Prepare for faster uN_strstr functions.
26049         * lib/str-kmp.h: Support definable UNITs.
26050         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26051         needle_len argument.
26052         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26053         * lib/mbscasestr.c (mbscasestr): Likewise.
26054
26055 2011-01-21  Pádraig Brady <P@draigBrady.com>
26056
26057         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26058         * tests/test-malloca.c (main): Unset the environment variable
26059         to greatly speed up the test.
26060         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26061         * modules/malloca-tests: Depend on unsetenv.
26062
26063 2011-01-21  Pádraig Brady <P@draigBrady.com>
26064
26065         ignore-value: remove stdint dependency
26066         * lib/ignore-value.h: Remove <stdint.h>
26067         * modules/ignore-value: Remove stdint dependency.
26068
26069 2011-01-21  Jim Meyering  <meyering@redhat.com>
26070
26071         maint.mk: adjust variable name to be consistent with other gl_ vars
26072         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26073         to be lower case.
26074
26075 2011-01-20  Jim Meyering  <meyering@redhat.com>
26076
26077         maint.mk: make "check" depend on public-submodule-commit by default
26078         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26079
26080 2011-01-20  Bruno Haible  <bruno@clisp.org>
26081
26082         mbfile, mbiter: Complete change from 2008-12-21.
26083         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26084         * m4/mbiter.m4 (gl_MBITER): Likewise.
26085
26086 2011-01-20  Jim Meyering  <meyering@redhat.com>
26087
26088         init.sh: insert space between each function name and "()"
26089         * tests/init.sh: Make it a little easier to see that a function's
26090         name is "warn_", and not "warn" when looking at the first part of
26091         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26092
26093 2011-01-20  Jim Meyering  <meyering@redhat.com>
26094
26095         mountlist: clean up code formatting
26096         * lib/mountlist.c (read_file_system_list): Split a long line,
26097         correct bracing style, use NULL in place of "(struct statfs *)0",
26098         don't parenthesize return value, add spaces around "=" and after
26099         ";-in-for-stmt".
26100
26101 2011-01-14  Markus Duft <mduft@gentoo.org>
26102
26103         mountlist: add support for Interix
26104         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26105         Apply statvfs to all entries of /dev/fs.
26106         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26107         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26108
26109 2011-01-20  Jim Meyering  <meyering@redhat.com>
26110
26111         maint.mk: improve the public-submodule-commit rule
26112         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26113         to suppress printing of its commands... unless V=1.
26114         Add git submodule's --quiet option to suppress printing of e.g.,
26115         "Entering gnulib" output.
26116         "cd" into $(srcdir) before running git submodule.
26117
26118 2011-01-20  Bruno Haible  <bruno@clisp.org>
26119
26120         include_next: Fix bug introduced on 2011-01-18.
26121         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26122         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26123         ac_cv_header_... variable if the second argument is not 'check'.
26124         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26125         gl_NEXT_HEADERS_INTERNAL.
26126
26127 2011-01-20  Bruno Haible  <bruno@clisp.org>
26128
26129         Allow the user to avoid the GNULIB_TEST_* macros.
26130         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26131         Suggested by Paul Eggert.
26132
26133 2011-01-14  Jim Meyering  <meyering@redhat.com>
26134
26135         bootstrap: avoid failure when there is no .gitmodules file
26136         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26137         has been assigned to, even when its value is the empty string.
26138         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26139         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26140         Reported by John W. Eaton <jwe@gnu.org>.
26141
26142 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26143
26144         assume <ctype.h>, ..., <time.h> exist
26145         For years gnulib has been assuming the existence of the headers
26146         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26147         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26148         them, since they don't appear to be needed.
26149         * README (Portability guidelines): Document this.
26150         * lib/flock.c: Assume <fcntl.h> exists.
26151         * lib/regex_internal.h: Assume <locale.h> exists.
26152         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26153         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26154         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26155         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26156         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26157         * m4/regex.m4 (gl_REGEX): Likewise.
26158         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26159         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26160         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26161         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26162         * tests/test-argp.c: Likewise.
26163         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26164
26165         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26166         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26167         AA_APPLE_UNIVERSAL_BUILD.  See
26168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26169         * NEWS: Document this.
26170
26171 2011-01-19  Eric Blake  <eblake@redhat.com>
26172
26173         c-stack: assume stack overflow if SA_SIGINFO unsupported
26174         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26175         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26176         sigaction will work.
26177         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26178         behavior match Linux.
26179         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26180
26181         stdbool-tests: accommodate Haiku
26182         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26183
26184         binary-io: fix O_TEXT on Haiku
26185         * modules/binary-io (Depends-on): Add fcntl-h.
26186         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26187         than blindly undefining O_TEXT.
26188         Reported by Scott McCreary.
26189
26190 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26191
26192         include_next: do not check for standard headers like stddef.h
26193
26194         I found this problem when modifying Emacs to use gnulib.
26195         I noticed that it added HAVE_STDDEF_H to config.h, even though
26196         gnulib always assumes <stddef.h> exists as per README and this
26197         symbol is unnecessary.
26198         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26199         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26200         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26201         faster for headers like stddef.h that are known to exist.
26202         (gl_CHECK_NEXT_HEADERS): Use it.
26203         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26204         rather than gl_CHECK_NEXT_HEADERS.
26205         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26206         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26207
26208 2011-01-18  Eric Blake  <eblake@redhat.com>
26209
26210         ansi-c++-opt: skip C++ dependency style if C++ is unused
26211         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26212         tests when we know C++ compilation is not desired.
26213         Reported by Scott McCreary.
26214
26215 2011-01-18  Bruno Haible  <bruno@clisp.org>
26216
26217         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26218         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26219         (main): Perform test also when getrlimit and setrlimit don't exist or
26220         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26221         limiting the address space size using setrlimit, compare the address
26222         space size before and after the the test.
26223         * tests/test-dprintf-posix2.c: Likewise.
26224         * tests/test-fprintf-posix3.sh: Update skip messages.
26225         * tests/test-dprintf-posix2.sh: Likewise.
26226         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26227         * modules/dprintf-posix-tests (Depends-on): Likewise.
26228         Reported by Bruce Korb <bkorb@gnu.org> and
26229         Gary V. Vaughan <gary@gnu.org>.
26230
26231 2011-01-18  Bruno Haible  <bruno@clisp.org>
26232
26233         get-rusage-as: Improvement for Cygwin.
26234         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26235         areas that are merely reserved.
26236
26237 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26238
26239         strftime: remove dependencies on multibyte modules
26240
26241         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26242         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26243         only if __osf__ is defined, and I suspect OSF doesn't need these
26244         other modules.  If my guess is wrong, we'll need to come up with a
26245         variant of strftime that doesn't need the multibyte modules.
26246
26247         I discovered this problem when attempting modify Emacs to use the
26248         strftime module.  With the previous gnulib, this caused Emacs to
26249         need 31 new files, ranging from lib/config.charset to
26250         m4/wint_t.m4.  This was overkill and I expect would be offputting
26251         to the Emacs maintainers.  After this change, only 6 new files are
26252         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26253         stdbool.m4, and tm_gmtoff.m4.
26254
26255         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26256         Suggested by Bruno Haible in
26257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26258         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26259         and do not check for wchar.h.
26260         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26261         (Depends-on): Remove mbrlen, mbsinit, wchar.
26262
26263 2011-01-18  Bruno Haible  <bruno@clisp.org>
26264
26265         Tests for module 'get-rusage-as'.
26266         * modules/get-rusage-as-tests: New file.
26267         * tests/test-get-rusage-as.c: New file.
26268
26269         New module 'get-rusage-as'.
26270         * modules/get-rusage-as: New file.
26271         * lib/resource-ext.h: New file.
26272         * lib/get-rusage-as.c: New file.
26273
26274 2011-01-17  Eric Blake  <eblake@redhat.com>
26275
26276         sigaction: relax license from LGPLv3+ to LGPLv2+
26277         * modules/sigaction (License): Relax to LGPLv2+.
26278
26279 2011-01-14  Bruno Haible  <bruno@clisp.org>
26280
26281         filemode: Make function declarations usable in C++ mode.
26282         * lib/filemode.h: Enclose function declarations in extern "C" block.
26283         Reported by John W. Eaton <jwe@gnu.org>.
26284
26285 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26286
26287         save-cwd: no longer include "xgetcwd.h"
26288         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26289         This avoids a compilation failure in projects that use save-cwd
26290         without also using the xgetcwd module.
26291
26292 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26293
26294         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26295         This is so that a program like Emacs, which needs only dtoastr,
26296         does not have to bother with distributing and compiling ftoastr
26297         and ldtoastr.
26298         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26299         * modules/dtoastr, modules/ldtoastr: New files.
26300         * modules/ftoastr: Now works just for 'float'.
26301         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26302         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26303         dtoastr.c, ldtoastr.c.
26304
26305 2011-01-11  Jim Meyering  <meyering@redhat.com>
26306
26307         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26308         There is no need to work around the lack of the fchdir function,
26309         since gnulib can now provide a replacement when required.
26310         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26311         * modules/save-cwd (Depends-on): Add fchdir.
26312
26313 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26314
26315         openat, save-cwd: avoid xmalloc
26316
26317         This removes a direct (but undocumented) dependency of openat on
26318         xalloc, along with an indirect dependency via save-cwd.  It also
26319         removes a dependency of save-cwd on xgetcwd, and thereby
26320         indirectly on xalloc.  This change causes the openat substitute
26321         to fall back on save_cwd when memory is tight, and for save_cwd to
26322         fail instead of dying when memory is tight, but that's good enough.
26323         Problem and initial idea for fix reported by Bastien Roucaries in
26324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26325
26326         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26327         xalloc.h (for xmalloc).
26328         (openat_proc_name): Use malloc, not xmalloc.
26329         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26330         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26331
26332         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26333         This avoids heap allocation for file names whose lengths are in
26334         the range 512..1023, with the upper bound increasing to at most
26335         4031 depending on the platform's PATH_MAX.  (We do not want
26336         pathmax.h here as it might supply a non-constant PATH_MAX.)
26337         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26338         Perhaps they should be moved to malloca.h?
26339         (OPENAT_BUFFER_SIZE): Use them.
26340
26341 2011-01-10  Bruno Haible  <bruno@clisp.org>
26342
26343         doc: Update users.txt.
26344         * users.txt: Add recutils.
26345
26346 2011-01-09  Karl Berry  <karl@gnu.org>
26347
26348         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26349
26350         * doc/configmake.texi: New file.
26351         * doc/gnulib.texi: Include it.
26352         * modules/configmake: Move documentation from here.
26353
26354 2011-01-09  Bruno Haible  <bruno@clisp.org>
26355
26356         Update to Unicode 6.0.0.
26357         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26358         (get_lbp): Update for Unicode 6.0.0.
26359         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26360         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26361         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26362         U+11001, U+11038..U+11046. Remove U+06DE.
26363         (uc_width): Fix bounds of planes.
26364         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26365         lib/uniwidth/width.c.
26366         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26367         trailing whitespace removed.
26368         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26369         without comments, but with the original copyright notice.
26370         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26371         * lib/unicase/ignorable.h: Likewise.
26372         * lib/unicase/tocasefold.h: Likewise.
26373         * lib/unicase/tolower.h: Likewise.
26374         * lib/unicase/totitle.h: Likewise.
26375         * lib/unicase/toupper.h: Likewise.
26376         * lib/unictype/bidi_of.h: Likewise.
26377         * lib/unictype/blocks.h: Likewise.
26378         * lib/unictype/categ_C.h: Likewise.
26379         * lib/unictype/categ_Cn.h: Likewise.
26380         * lib/unictype/categ_L.h: Likewise.
26381         * lib/unictype/categ_Ll.h: Likewise.
26382         * lib/unictype/categ_Lm.h: Likewise.
26383         * lib/unictype/categ_Lo.h: Likewise.
26384         * lib/unictype/categ_Lu.h: Likewise.
26385         * lib/unictype/categ_M.h: Likewise.
26386         * lib/unictype/categ_Mc.h: Likewise.
26387         * lib/unictype/categ_Me.h: Likewise.
26388         * lib/unictype/categ_Mn.h: Likewise.
26389         * lib/unictype/categ_N.h: Likewise.
26390         * lib/unictype/categ_Nd.h: Likewise.
26391         * lib/unictype/categ_No.h: Likewise.
26392         * lib/unictype/categ_P.h: Likewise.
26393         * lib/unictype/categ_Po.h: Likewise.
26394         * lib/unictype/categ_S.h: Likewise.
26395         * lib/unictype/categ_Sc.h: Likewise.
26396         * lib/unictype/categ_Sk.h: Likewise.
26397         * lib/unictype/categ_Sm.h: Likewise.
26398         * lib/unictype/categ_So.h: Likewise.
26399         * lib/unictype/categ_of.h: Likewise.
26400         * lib/unictype/combining.h: Likewise.
26401         * lib/unictype/ctype_alnum.h: Likewise.
26402         * lib/unictype/ctype_alpha.h: Likewise.
26403         * lib/unictype/ctype_graph.h: Likewise.
26404         * lib/unictype/ctype_lower.h: Likewise.
26405         * lib/unictype/ctype_print.h: Likewise.
26406         * lib/unictype/ctype_punct.h: Likewise.
26407         * lib/unictype/ctype_upper.h: Likewise.
26408         * lib/unictype/decdigit.h: Likewise.
26409         * lib/unictype/digit.h: Likewise.
26410         * lib/unictype/numeric.h: Likewise.
26411         * lib/unictype/pr_alphabetic.h: Likewise.
26412         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26413         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26414         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26415         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26416         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26417         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26418         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26419         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26420         * lib/unictype/pr_case_ignorable.h: Likewise.
26421         * lib/unictype/pr_cased.h: Likewise.
26422         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26423         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26424         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26425         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26426         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26427         * lib/unictype/pr_combining.h: Likewise.
26428         * lib/unictype/pr_composite.h: Likewise.
26429         * lib/unictype/pr_currency_symbol.h: Likewise.
26430         * lib/unictype/pr_decimal_digit.h: Likewise.
26431         * lib/unictype/pr_deprecated.h: Likewise.
26432         * lib/unictype/pr_format_control.h: Likewise.
26433         * lib/unictype/pr_grapheme_base.h: Likewise.
26434         * lib/unictype/pr_grapheme_extend.h: Likewise.
26435         * lib/unictype/pr_grapheme_link.h: Likewise.
26436         * lib/unictype/pr_id_continue.h: Likewise.
26437         * lib/unictype/pr_id_start.h: Likewise.
26438         * lib/unictype/pr_ideographic.h: Likewise.
26439         * lib/unictype/pr_lowercase.h: Likewise.
26440         * lib/unictype/pr_math.h: Likewise.
26441         * lib/unictype/pr_numeric.h: Likewise.
26442         * lib/unictype/pr_other_alphabetic.h: Likewise.
26443         * lib/unictype/pr_other_id_continue.h: Likewise.
26444         * lib/unictype/pr_other_math.h: Likewise.
26445         * lib/unictype/pr_punctuation.h: Likewise.
26446         * lib/unictype/pr_sentence_terminal.h: Likewise.
26447         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26448         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26449         * lib/unictype/pr_unified_ideograph.h: Likewise.
26450         * lib/unictype/pr_uppercase.h: Likewise.
26451         * lib/unictype/pr_xid_continue.h: Likewise.
26452         * lib/unictype/pr_xid_start.h: Likewise.
26453         * lib/unictype/scripts.h: Likewise.
26454         * lib/unictype/scripts_byname.gperf: Likewise.
26455         * lib/unictype/sy_java_ident.h: Likewise.
26456         * lib/unigbrk/gbrkprop.h: Likewise.
26457         * lib/unilbrk/lbrkprop1.h: Likewise.
26458         * lib/unilbrk/lbrkprop2.h: Likewise.
26459         * lib/uninorm/decomposition-table2.h: Likewise.
26460         * lib/uniwbrk/wbrkprop.h: Likewise.
26461         * tests/unicase/test-cased.c: Likewise.
26462         * tests/unicase/test-ignorable.c: Likewise.
26463         * tests/unicase/test-uc_tolower.c: Likewise.
26464         * tests/unicase/test-uc_totitle.c: Likewise.
26465         * tests/unicase/test-uc_toupper.c: Likewise.
26466         * tests/unictype/test-categ_C.c: Likewise.
26467         * tests/unictype/test-categ_Cn.c: Likewise.
26468         * tests/unictype/test-categ_L.c: Likewise.
26469         * tests/unictype/test-categ_Ll.c: Likewise.
26470         * tests/unictype/test-categ_Lm.c: Likewise.
26471         * tests/unictype/test-categ_Lo.c: Likewise.
26472         * tests/unictype/test-categ_Lu.c: Likewise.
26473         * tests/unictype/test-categ_M.c: Likewise.
26474         * tests/unictype/test-categ_Mc.c: Likewise.
26475         * tests/unictype/test-categ_Me.c: Likewise.
26476         * tests/unictype/test-categ_Mn.c: Likewise.
26477         * tests/unictype/test-categ_N.c: Likewise.
26478         * tests/unictype/test-categ_Nd.c: Likewise.
26479         * tests/unictype/test-categ_No.c: Likewise.
26480         * tests/unictype/test-categ_P.c: Likewise.
26481         * tests/unictype/test-categ_Po.c: Likewise.
26482         * tests/unictype/test-categ_S.c: Likewise.
26483         * tests/unictype/test-categ_Sc.c: Likewise.
26484         * tests/unictype/test-categ_Sk.c: Likewise.
26485         * tests/unictype/test-categ_Sm.c: Likewise.
26486         * tests/unictype/test-categ_So.c: Likewise.
26487         * tests/unictype/test-ctype_alnum.c: Likewise.
26488         * tests/unictype/test-ctype_alpha.c: Likewise.
26489         * tests/unictype/test-ctype_graph.c: Likewise.
26490         * tests/unictype/test-ctype_lower.c: Likewise.
26491         * tests/unictype/test-ctype_print.c: Likewise.
26492         * tests/unictype/test-ctype_punct.c: Likewise.
26493         * tests/unictype/test-ctype_upper.c: Likewise.
26494         * tests/unictype/test-decdigit.h: Likewise.
26495         * tests/unictype/test-digit.h: Likewise.
26496         * tests/unictype/test-numeric.h: Likewise.
26497         * tests/unictype/test-pr_alphabetic.c: Likewise.
26498         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26499         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26500         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26501         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26502         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26503         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26504         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26505         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26506         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26507         * tests/unictype/test-pr_cased.c: Likewise.
26508         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26509         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26510         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26511         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26512         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26513         * tests/unictype/test-pr_combining.c: Likewise.
26514         * tests/unictype/test-pr_composite.c: Likewise.
26515         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26516         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26517         * tests/unictype/test-pr_deprecated.c: Likewise.
26518         * tests/unictype/test-pr_format_control.c: Likewise.
26519         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26520         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26521         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26522         * tests/unictype/test-pr_id_continue.c: Likewise.
26523         * tests/unictype/test-pr_id_start.c: Likewise.
26524         * tests/unictype/test-pr_ideographic.c: Likewise.
26525         * tests/unictype/test-pr_lowercase.c: Likewise.
26526         * tests/unictype/test-pr_math.c: Likewise.
26527         * tests/unictype/test-pr_numeric.c: Likewise.
26528         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26529         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26530         * tests/unictype/test-pr_other_math.c: Likewise.
26531         * tests/unictype/test-pr_punctuation.c: Likewise.
26532         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26533         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26534         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26535         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26536         * tests/unictype/test-pr_uppercase.c: Likewise.
26537         * tests/unictype/test-pr_xid_continue.c: Likewise.
26538         * tests/unictype/test-pr_xid_start.c: Likewise.
26539         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26540         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26541         changes.
26542         * lib/unictype/categ_Cc.h: Likewise.
26543         * lib/unictype/categ_Cf.h: Likewise.
26544         * lib/unictype/categ_Co.h: Likewise.
26545         * lib/unictype/categ_Cs.h: Likewise.
26546         * lib/unictype/categ_Lt.h: Likewise.
26547         * lib/unictype/categ_Nl.h: Likewise.
26548         * lib/unictype/categ_Pc.h: Likewise.
26549         * lib/unictype/categ_Pd.h: Likewise.
26550         * lib/unictype/categ_Pe.h: Likewise.
26551         * lib/unictype/categ_Pf.h: Likewise.
26552         * lib/unictype/categ_Pi.h: Likewise.
26553         * lib/unictype/categ_Ps.h: Likewise.
26554         * lib/unictype/categ_Z.h: Likewise.
26555         * lib/unictype/categ_Zl.h: Likewise.
26556         * lib/unictype/categ_Zp.h: Likewise.
26557         * lib/unictype/categ_Zs.h: Likewise.
26558         * lib/unictype/ctype_blank.h: Likewise.
26559         * lib/unictype/ctype_cntrl.h: Likewise.
26560         * lib/unictype/ctype_digit.h: Likewise.
26561         * lib/unictype/ctype_space.h: Likewise.
26562         * lib/unictype/ctype_xdigit.h: Likewise.
26563         * lib/unictype/mirror.h: Likewise.
26564         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26565         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26566         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26567         * lib/unictype/pr_bidi_control.h: Likewise.
26568         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26569         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26570         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26571         * lib/unictype/pr_bidi_pdf.h: Likewise.
26572         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26573         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26574         * lib/unictype/pr_dash.h: Likewise.
26575         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26576         * lib/unictype/pr_diacritic.h: Likewise.
26577         * lib/unictype/pr_extender.h: Likewise.
26578         * lib/unictype/pr_hex_digit.h: Likewise.
26579         * lib/unictype/pr_hyphen.h: Likewise.
26580         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26581         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26582         * lib/unictype/pr_ignorable_control.h: Likewise.
26583         * lib/unictype/pr_iso_control.h: Likewise.
26584         * lib/unictype/pr_join_control.h: Likewise.
26585         * lib/unictype/pr_left_of_pair.h: Likewise.
26586         * lib/unictype/pr_line_separator.h: Likewise.
26587         * lib/unictype/pr_logical_order_exception.h: Likewise.
26588         * lib/unictype/pr_non_break.h: Likewise.
26589         * lib/unictype/pr_not_a_character.h: Likewise.
26590         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26591         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26592         * lib/unictype/pr_other_id_start.h: Likewise.
26593         * lib/unictype/pr_other_lowercase.h: Likewise.
26594         * lib/unictype/pr_other_uppercase.h: Likewise.
26595         * lib/unictype/pr_paired_punctuation.h: Likewise.
26596         * lib/unictype/pr_paragraph_separator.h: Likewise.
26597         * lib/unictype/pr_pattern_syntax.h: Likewise.
26598         * lib/unictype/pr_pattern_white_space.h: Likewise.
26599         * lib/unictype/pr_private_use.h: Likewise.
26600         * lib/unictype/pr_quotation_mark.h: Likewise.
26601         * lib/unictype/pr_radical.h: Likewise.
26602         * lib/unictype/pr_soft_dotted.h: Likewise.
26603         * lib/unictype/pr_space.h: Likewise.
26604         * lib/unictype/pr_titlecase.h: Likewise.
26605         * lib/unictype/pr_variation_selector.h: Likewise.
26606         * lib/unictype/pr_white_space.h: Likewise.
26607         * lib/unictype/pr_zero_width.h: Likewise.
26608         * lib/unictype/sy_c_ident.h: Likewise.
26609         * lib/unictype/sy_c_whitespace.h: Likewise.
26610         * lib/unictype/sy_java_whitespace.h: Likewise.
26611         * lib/uninorm/composition-table.gperf: Likewise.
26612         * lib/uninorm/decomposition-table1.h: Likewise.
26613         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26614         LB8.
26615         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26616         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26617         * modules/unictype/*: Bump version number of expected libunistring
26618         version.
26619
26620 2011-01-09  Bruno Haible  <bruno@clisp.org>
26621
26622         Update to Unicode 5.2.0.
26623         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26624         trailing whitespace removed.
26625
26626 2011-01-09  Bruno Haible  <bruno@clisp.org>
26627
26628         New Unicode character properties, from Unicode 5.2.0.
26629         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26630         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26631         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26632         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26633         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26634         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26635         uc_is_property_cased, uc_is_property_case_ignorable,
26636         uc_is_property_changes_when_lowercased,
26637         uc_is_property_changes_when_uppercased,
26638         uc_is_property_changes_when_titlecased,
26639         uc_is_property_changes_when_casefolded,
26640         uc_is_property_changes_when_casemapped): New declarations.
26641         * lib/unictype/pr_byname.gperf: Add the new properties.
26642         * modules/unictype/property-byname (Depends-on): Depend on the new
26643         properties modules.
26644         * modules/unictype/property-all (Depends-on): Likewise.
26645         * MODULES.html.sh (Unicode string functions): Add
26646         unictype/property-case-ignorable, unictype/property-cased,
26647         unictype/property-changes-when-casefolded,
26648         unictype/property-changes-when-casemapped,
26649         unictype/property-changes-when-lowercased,
26650         unictype/property-changes-when-titlecased,
26651         unictype/property-changes-when-uppercased.
26652
26653         New module 'unictype/property-changes-when-casemapped'.
26654         * modules/unictype/property-changes-when-casemapped: New file.
26655         * lib/unictype/pr_changes_when_casemapped.c: New file.
26656         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26657         generated by gen-uni-tables.
26658         * modules/unictype/property-changes-when-casemapped-tests: New file.
26659         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26660         automatically generated by gen-uni-tables.
26661
26662         New module 'unictype/property-changes-when-casefolded'.
26663         * modules/unictype/property-changes-when-casefolded: New file.
26664         * lib/unictype/pr_changes_when_casefolded.c: New file.
26665         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26666         generated by gen-uni-tables.
26667         * modules/unictype/property-changes-when-casefolded-tests: New file.
26668         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26669         automatically generated by gen-uni-tables.
26670
26671         New module 'unictype/property-changes-when-titlecased'.
26672         * modules/unictype/property-changes-when-titlecased: New file.
26673         * lib/unictype/pr_changes_when_titlecased.c: New file.
26674         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26675         generated by gen-uni-tables.
26676         * modules/unictype/property-changes-when-titlecased-tests: New file.
26677         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26678         automatically generated by gen-uni-tables.
26679
26680         New module 'unictype/property-changes-when-uppercased'.
26681         * modules/unictype/property-changes-when-uppercased: New file.
26682         * lib/unictype/pr_changes_when_uppercased.c: New file.
26683         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26684         generated by gen-uni-tables.
26685         * modules/unictype/property-changes-when-uppercased-tests: New file.
26686         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26687         automatically generated by gen-uni-tables.
26688
26689         New module 'unictype/property-changes-when-lowercased'.
26690         * modules/unictype/property-changes-when-lowercased: New file.
26691         * lib/unictype/pr_changes_when_lowercased.c: New file.
26692         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26693         generated by gen-uni-tables.
26694         * modules/unictype/property-changes-when-lowercased-tests: New file.
26695         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26696         automatically generated by gen-uni-tables.
26697
26698         New module 'unictype/property-case-ignorable'.
26699         * modules/unictype/property-case-ignorable: New file.
26700         * lib/unictype/pr_case_ignorable.c: New file.
26701         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26702         by gen-uni-tables.
26703         * modules/unictype/property-case-ignorable-tests: New file.
26704         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26705         generated by gen-uni-tables.
26706
26707         New module 'unictype/property-cased'.
26708         * modules/unictype/property-cased: New file.
26709         * lib/unictype/pr_cased.c: New file.
26710         * lib/unictype/pr_cased.h: New file, automatically generated by
26711         gen-uni-tables.
26712         * modules/unictype/property-cased-tests: New file.
26713         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26714         gen-uni-tables.
26715
26716 2011-01-09  Bruno Haible  <bruno@clisp.org>
26717
26718         Update to Unicode 5.2.0.
26719         * lib/gen-uni-tables.c (output_predicate, output_category,
26720         output_combclass, output_bidi_category, output_decimal_digit_test,
26721         output_decimal_digit, output_digit_test, output_digit,
26722         output_numeric_test, output_numeric, output_mirror, output_scripts,
26723         output_scripts_byname, output_blocks, output_ident_category): Fix
26724         comment header.
26725         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26726         get_wbp.
26727         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26728         items.
26729         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26730         Changes_When_Lowercased, Changes_When_Uppercased,
26731         Changes_When_Titlecased, Changes_When_Casefolded,
26732         Changes_When_Casemapped.
26733         (is_property_alphabetic, is_property_default_ignorable_code_point):
26734         Update for Unicode 5.2.0.
26735         (is_property_cased, is_property_case_ignorable,
26736         is_property_changes_when_lowercased,
26737         is_property_changes_when_uppercased,
26738         is_property_changes_when_titlecased,
26739         is_property_changes_when_casefolded,
26740         is_property_changes_when_casemapped): New functions.
26741         (output_properties): Output also the properties cased, case_ignorable,
26742         changes_when_lowercased, changes_when_uppercased,
26743         changes_when_titlecased, changes_when_casefolded,
26744         changes_when_casemapped.
26745         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26746         Unicode TR#11 revision 17 -> 19.
26747         (LBP_CP): New enumeration value.
26748         (LBP_*): Adjust values accordingly.
26749         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26750         TR#14 revision 22 -> 24.
26751         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26752         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26753         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26754         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26755         is_WBP_MIDLETTER.
26756         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26757         the code1 and code2 of each composition rule.
26758         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26759         * lib/unicase/ignorable.h: Likewise.
26760         * lib/unicase/tocasefold.h: Likewise.
26761         * lib/unicase/tolower.h: Likewise.
26762         * lib/unicase/totitle.h: Likewise.
26763         * lib/unicase/toupper.h: Likewise.
26764         * lib/unictype/bidi_of.h: Likewise.
26765         * lib/unictype/blocks.h: Likewise.
26766         * lib/unictype/categ_C.h: Likewise.
26767         * lib/unictype/categ_Cf.h: Likewise.
26768         * lib/unictype/categ_Cn.h: Likewise.
26769         * lib/unictype/categ_L.h: Likewise.
26770         * lib/unictype/categ_Ll.h: Likewise.
26771         * lib/unictype/categ_Lm.h: Likewise.
26772         * lib/unictype/categ_Lo.h: Likewise.
26773         * lib/unictype/categ_Lu.h: Likewise.
26774         * lib/unictype/categ_M.h: Likewise.
26775         * lib/unictype/categ_Mc.h: Likewise.
26776         * lib/unictype/categ_Mn.h: Likewise.
26777         * lib/unictype/categ_N.h: Likewise.
26778         * lib/unictype/categ_Nd.h: Likewise.
26779         * lib/unictype/categ_Nl.h: Likewise.
26780         * lib/unictype/categ_No.h: Likewise.
26781         * lib/unictype/categ_P.h: Likewise.
26782         * lib/unictype/categ_Pd.h: Likewise.
26783         * lib/unictype/categ_Po.h: Likewise.
26784         * lib/unictype/categ_S.h: Likewise.
26785         * lib/unictype/categ_Sc.h: Likewise.
26786         * lib/unictype/categ_So.h: Likewise.
26787         * lib/unictype/categ_of.h: Likewise.
26788         * lib/unictype/combining.h: Likewise.
26789         * lib/unictype/ctype_alnum.h: Likewise.
26790         * lib/unictype/ctype_alpha.h: Likewise.
26791         * lib/unictype/ctype_graph.h: Likewise.
26792         * lib/unictype/ctype_lower.h: Likewise.
26793         * lib/unictype/ctype_print.h: Likewise.
26794         * lib/unictype/ctype_punct.h: Likewise.
26795         * lib/unictype/ctype_upper.h: Likewise.
26796         * lib/unictype/decdigit.h: Likewise.
26797         * lib/unictype/digit.h: Likewise.
26798         * lib/unictype/numeric.h: Likewise.
26799         * lib/unictype/pr_alphabetic.h: Likewise.
26800         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26801         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26802         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26803         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26804         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26805         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26806         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26807         * lib/unictype/pr_combining.h: Likewise.
26808         * lib/unictype/pr_composite.h: Likewise.
26809         * lib/unictype/pr_currency_symbol.h: Likewise.
26810         * lib/unictype/pr_dash.h: Likewise.
26811         * lib/unictype/pr_decimal_digit.h: Likewise.
26812         * lib/unictype/pr_deprecated.h: Likewise.
26813         * lib/unictype/pr_diacritic.h: Likewise.
26814         * lib/unictype/pr_extender.h: Likewise.
26815         * lib/unictype/pr_grapheme_base.h: Likewise.
26816         * lib/unictype/pr_grapheme_extend.h: Likewise.
26817         * lib/unictype/pr_grapheme_link.h: Likewise.
26818         * lib/unictype/pr_id_continue.h: Likewise.
26819         * lib/unictype/pr_id_start.h: Likewise.
26820         * lib/unictype/pr_ideographic.h: Likewise.
26821         * lib/unictype/pr_ignorable_control.h: Likewise.
26822         * lib/unictype/pr_logical_order_exception.h: Likewise.
26823         * lib/unictype/pr_lowercase.h: Likewise.
26824         * lib/unictype/pr_numeric.h: Likewise.
26825         * lib/unictype/pr_other_alphabetic.h: Likewise.
26826         * lib/unictype/pr_punctuation.h: Likewise.
26827         * lib/unictype/pr_sentence_terminal.h: Likewise.
26828         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26829         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26830         * lib/unictype/pr_unified_ideograph.h: Likewise.
26831         * lib/unictype/pr_uppercase.h: Likewise.
26832         * lib/unictype/pr_xid_continue.h: Likewise.
26833         * lib/unictype/pr_xid_start.h: Likewise.
26834         * lib/unictype/pr_zero_width.h: Likewise.
26835         * lib/unictype/scripts.h: Likewise.
26836         * lib/unictype/scripts_byname.gperf: Likewise.
26837         * lib/unictype/sy_java_ident.h: Likewise.
26838         * lib/unigbrk/gbrkprop.h: Likewise.
26839         * lib/unilbrk/lbrkprop1.h: Likewise.
26840         * lib/unilbrk/lbrkprop2.h: Likewise.
26841         * lib/unilbrk/lbrktables.h: Likewise.
26842         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
26843         LBP_CP. Implement rule LB30.
26844         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26845         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26846         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26847         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26848         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26849         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26850         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26851         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26852         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26853         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26854         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26855         bits instead of 16 bits in the code1 and code2 of each composition
26856         rule.
26857         (uc_composition): Update for Unicode 5.2.0.
26858         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26859         * lib/uninorm/decomposition-table2.h: Likewise.
26860         * lib/uniwbrk/wbrkprop.h: Likewise.
26861         * tests/unicase/test-cased.c: Likewise.
26862         * tests/unicase/test-ignorable.c: Likewise.
26863         * tests/unicase/test-uc_tolower.c: Likewise.
26864         * tests/unicase/test-uc_totitle.c: Likewise.
26865         * tests/unicase/test-uc_toupper.c: Likewise.
26866         * tests/unictype/test-categ_C.c: Likewise.
26867         * tests/unictype/test-categ_Cf.c: Likewise.
26868         * tests/unictype/test-categ_Cn.c: Likewise.
26869         * tests/unictype/test-categ_L.c: Likewise.
26870         * tests/unictype/test-categ_Ll.c: Likewise.
26871         * tests/unictype/test-categ_Lm.c: Likewise.
26872         * tests/unictype/test-categ_Lo.c: Likewise.
26873         * tests/unictype/test-categ_Lu.c: Likewise.
26874         * tests/unictype/test-categ_M.c: Likewise.
26875         * tests/unictype/test-categ_Mc.c: Likewise.
26876         * tests/unictype/test-categ_Mn.c: Likewise.
26877         * tests/unictype/test-categ_N.c: Likewise.
26878         * tests/unictype/test-categ_Nd.c: Likewise.
26879         * tests/unictype/test-categ_Nl.c: Likewise.
26880         * tests/unictype/test-categ_No.c: Likewise.
26881         * tests/unictype/test-categ_P.c: Likewise.
26882         * tests/unictype/test-categ_Pd.c: Likewise.
26883         * tests/unictype/test-categ_Po.c: Likewise.
26884         * tests/unictype/test-categ_S.c: Likewise.
26885         * tests/unictype/test-categ_Sc.c: Likewise.
26886         * tests/unictype/test-categ_So.c: Likewise.
26887         * tests/unictype/test-ctype_alnum.c: Likewise.
26888         * tests/unictype/test-ctype_alpha.c: Likewise.
26889         * tests/unictype/test-ctype_graph.c: Likewise.
26890         * tests/unictype/test-ctype_lower.c: Likewise.
26891         * tests/unictype/test-ctype_print.c: Likewise.
26892         * tests/unictype/test-ctype_punct.c: Likewise.
26893         * tests/unictype/test-ctype_upper.c: Likewise.
26894         * tests/unictype/test-decdigit.h: Likewise.
26895         * tests/unictype/test-digit.h: Likewise.
26896         * tests/unictype/test-numeric.h: Likewise.
26897         * tests/unictype/test-pr_alphabetic.c: Likewise.
26898         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26899         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26900         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26901         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26902         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26903         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26904         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26905         * tests/unictype/test-pr_combining.c: Likewise.
26906         * tests/unictype/test-pr_composite.c: Likewise.
26907         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26908         * tests/unictype/test-pr_dash.c: Likewise.
26909         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26910         * tests/unictype/test-pr_deprecated.c: Likewise.
26911         * tests/unictype/test-pr_diacritic.c: Likewise.
26912         * tests/unictype/test-pr_extender.c: Likewise.
26913         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26914         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26915         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26916         * tests/unictype/test-pr_id_continue.c: Likewise.
26917         * tests/unictype/test-pr_id_start.c: Likewise.
26918         * tests/unictype/test-pr_ideographic.c: Likewise.
26919         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26920         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26921         * tests/unictype/test-pr_lowercase.c: Likewise.
26922         * tests/unictype/test-pr_numeric.c: Likewise.
26923         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26924         * tests/unictype/test-pr_punctuation.c: Likewise.
26925         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26926         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26927         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26928         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26929         * tests/unictype/test-pr_uppercase.c: Likewise.
26930         * tests/unictype/test-pr_xid_continue.c: Likewise.
26931         * tests/unictype/test-pr_xid_start.c: Likewise.
26932         * tests/unictype/test-pr_zero_width.c: Likewise.
26933         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26934         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26935         changed behaviour: line breaking is now disallowed between a letter
26936         or '=' and '('.
26937         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26938         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26939         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26940         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26941         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26942         lib/uniwidth/width.c.
26943         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26944         without comments, but with the original copyright notice.
26945         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26946         changes.
26947         * lib/unictype/categ_Cc.h: Likewise.
26948         * lib/unictype/categ_Co.h: Likewise.
26949         * lib/unictype/categ_Cs.h: Likewise.
26950         * lib/unictype/categ_Lt.h: Likewise.
26951         * lib/unictype/categ_Me.h: Likewise.
26952         * lib/unictype/categ_Pc.h: Likewise.
26953         * lib/unictype/categ_Pe.h: Likewise.
26954         * lib/unictype/categ_Pf.h: Likewise.
26955         * lib/unictype/categ_Pi.h: Likewise.
26956         * lib/unictype/categ_Ps.h: Likewise.
26957         * lib/unictype/categ_Sk.h: Likewise.
26958         * lib/unictype/categ_Sm.h: Likewise.
26959         * lib/unictype/categ_Z.h: Likewise.
26960         * lib/unictype/categ_Zl.h: Likewise.
26961         * lib/unictype/categ_Zp.h: Likewise.
26962         * lib/unictype/categ_Zs.h: Likewise.
26963         * lib/unictype/ctype_blank.h: Likewise.
26964         * lib/unictype/ctype_cntrl.h: Likewise.
26965         * lib/unictype/ctype_digit.h: Likewise.
26966         * lib/unictype/ctype_space.h: Likewise.
26967         * lib/unictype/ctype_xdigit.h: Likewise.
26968         * lib/unictype/mirror.h: Likewise.
26969         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26970         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26971         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26972         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26973         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26974         * lib/unictype/pr_bidi_control.h: Likewise.
26975         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26976         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26977         * lib/unictype/pr_bidi_pdf.h: Likewise.
26978         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26979         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26980         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26981         * lib/unictype/pr_format_control.h: Likewise.
26982         * lib/unictype/pr_hex_digit.h: Likewise.
26983         * lib/unictype/pr_hyphen.h: Likewise.
26984         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26985         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26986         * lib/unictype/pr_iso_control.h: Likewise.
26987         * lib/unictype/pr_join_control.h: Likewise.
26988         * lib/unictype/pr_left_of_pair.h: Likewise.
26989         * lib/unictype/pr_line_separator.h: Likewise.
26990         * lib/unictype/pr_math.h: Likewise.
26991         * lib/unictype/pr_non_break.h: Likewise.
26992         * lib/unictype/pr_not_a_character.h: Likewise.
26993         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26994         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26995         * lib/unictype/pr_other_id_continue.h: Likewise.
26996         * lib/unictype/pr_other_id_start.h: Likewise.
26997         * lib/unictype/pr_other_lowercase.h: Likewise.
26998         * lib/unictype/pr_other_math.h: Likewise.
26999         * lib/unictype/pr_other_uppercase.h: Likewise.
27000         * lib/unictype/pr_paired_punctuation.h: Likewise.
27001         * lib/unictype/pr_paragraph_separator.h: Likewise.
27002         * lib/unictype/pr_pattern_syntax.h: Likewise.
27003         * lib/unictype/pr_pattern_white_space.h: Likewise.
27004         * lib/unictype/pr_private_use.h: Likewise.
27005         * lib/unictype/pr_quotation_mark.h: Likewise.
27006         * lib/unictype/pr_radical.h: Likewise.
27007         * lib/unictype/pr_soft_dotted.h: Likewise.
27008         * lib/unictype/pr_space.h: Likewise.
27009         * lib/unictype/pr_titlecase.h: Likewise.
27010         * lib/unictype/pr_variation_selector.h: Likewise.
27011         * lib/unictype/pr_white_space.h: Likewise.
27012         * lib/unictype/sy_c_ident.h: Likewise.
27013         * lib/unictype/sy_c_whitespace.h: Likewise.
27014         * lib/unictype/sy_java_whitespace.h: Likewise.
27015         * modules/uni*/*: Bump version number of expected libunistring version.
27016         Reported by Simon Josefsson.
27017
27018 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27019
27020         useless-if-before-free: fix typo in --help and make the internal,
27021         automatic version date update process work once again.
27022         --help output contained a NUL character instead of the
27023         backslash-zero that was intended.  Also, the "must lie within
27024         the first 8 lines" line is on line 9, and hence not getting
27025         automatically updated.
27026         * build-aux/useless-if-before-free: Fix the former by adding a
27027         backslash, and the latter by condensing the three lines of what-it-does
27028         to a single line, leaving one line of slack for the future.
27029
27030 2011-01-09  Bruno Haible  <bruno@clisp.org>
27031
27032         uniwidth/width: Fix width of U+1D173..U+1D17A.
27033         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27034         symbolic_width, output_width_property_test): New functions.
27035         (main): Invoke output_nonspacing_property, output_width_property_test.
27036         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27037         U+1D173..U+1D17A.
27038         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27039         1.
27040         * modules/uniwidth/*: Bump version number of expected libunistring
27041         version.
27042         * modules/unilbrk/*: Likewise.
27043
27044 2011-01-08  Bruno Haible  <bruno@clisp.org>
27045
27046         uninorm tests: Preserve copyright of Unicode data file.
27047         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27048         Mention modifications.
27049
27050 2011-01-08  Bruno Haible  <bruno@clisp.org>
27051
27052         gen-uni-tables: Prepare for Unicode 5.2.0.
27053         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27054         (debug_output_lbp, output_lbp): Update.
27055
27056 2011-01-08  Bruno Haible  <bruno@clisp.org>
27057
27058         unilbrk: Clarify gen-uni-tables.c code.
27059         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27060         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27061         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27062
27063 2011-01-07  Bruno Haible  <bruno@clisp.org>
27064
27065         strtod: Restore errno when successfully parsing Infinity or NaN.
27066         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27067         restore the original errno.
27068
27069 2011-01-07  Bruno Haible  <bruno@clisp.org>
27070
27071         remove test: Avoid failure on HP-UX 11.
27072         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27073
27074 2011-01-07  Bruno Haible  <bruno@clisp.org>
27075
27076         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27077         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27078         error code.
27079
27080 2011-01-07  Pádraig Brady <P@draigBrady.com>
27081
27082         ignore-value: fixup comments, and add Eric Blake
27083         as an author since he rewrote the macros.
27084         * lib/ignore-value.h (ignore_value):  State that
27085         we now support aggregates.  Also specify exactly
27086         when the GCC warn_unused_result feature was added.
27087
27088 2011-01-06  Eric Blake  <eblake@redhat.com>
27089
27090         ignore-value: support aggregate types
27091         * lib/ignore-value.h (ignore_value): Provide separate gcc
27092         definition.
27093         * modules/ignore-value-tests: New test module.
27094         * tests/test-ignore-value.c: New test.
27095
27096         maint.mk: improve sc_prohibit_strcmp regex
27097         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27098         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27099         definition of STRNEQ.
27100
27101         signal: work around Haiku issue with SIGBUS
27102         * lib/siglist.h: Add comment.
27103         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27104         strsignal's favoring of SIGSEGV.
27105         * tests/test-signal.c (main): Avoid test failure.
27106         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27107         Reported by Scott McCreary.
27108
27109         maint.mk: add pre-release check to ensure submodule commits are public
27110         * top/maint.mk (public-submodule-commit): New rule.
27111         (submodule-checks): New variable.
27112         (alpha beta stable): Depend on the variable.
27113
27114 2011-01-05  Pádraig Brady <P@draigBrady.com>
27115         and Jim Meyering  <meyering@redhat.com>
27116
27117         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27118         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27119         (ATTRIBUTE_DEPRECATED): Define.
27120         (_ignore_case): New function.
27121         (ignore_value): New macro, to replace the old function.
27122         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27123         * modules/ignore-value (Depends-on): Add stdint.
27124
27125 2011-01-04  Eric Blake  <eblake@redhat.com>
27126
27127         doc: regenerate INSTALL
27128         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27129         @firstparagraphindent support, now that autoconf dropped it.
27130         (INSTALL_PRELUDE): Reinstate old macro.
27131         * doc/install.texi: Resync from autoconf.
27132         * doc/INSTALL: Reflect recent autoconf update.
27133         * doc/INSTALL.ISO: Likewise.
27134         * doc/INSTALL.UTF-8: Likewise.
27135         Reported by Karl Berry.
27136
27137 2011-01-04  Bruce Korb  <address@hidden>
27138
27139         git-version-gen: avoid a sub-shell
27140         * build-aux/git-version-gen: Redirect stderr in `...` via
27141         "exec 2>...", rather than via an added sub-shell.
27142
27143 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27144
27145         git-version-gen: use (...) rather than sh -c '...'
27146         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27147         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27148
27149 2011-01-03  Jim Meyering  <meyering@redhat.com>
27150
27151         git-version-gen: convert leading TABs to spaces
27152         * build-aux/git-version-gen: Expand leading TABs.
27153
27154         git-version-gen: handle failed "git rev-list"
27155         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27156         from git and proceeding as if it had succeeded but printed no SHA1
27157         checksums, suppress the diagnostic and handle the failure.
27158         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27159
27160         git-version-gen: include command name in one more diagnostic
27161         * build-aux/git-version-gen: When the required .tarball-version file
27162         was missing or unreadable, you might see the diagnostic from "cat",
27163         but no trace of the name of the invoking script.  Now, you still see
27164         the diagnostic from cat, but also get one from "git-version-gen: ".
27165         Inspired by a patch from Bruce Korb.
27166
27167         update-copyright: adjust test to match changed code
27168         * tests/test-update-copyright.sh: Change test's expected output
27169         to match new actual output.
27170
27171 2011-01-02  Bruno Haible  <bruno@clisp.org>
27172
27173         getlogin_r: Avoid test failure on HP-UX 11.
27174         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27175         ERANGE when the second argument is zero.
27176         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27177         portability problem.
27178
27179 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27180
27181         * build-aux/update-copyright: doc Simon's changes
27182
27183 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27184
27185         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27186         environment variable.
27187
27188 2011-01-02  Bruno Haible  <bruno@clisp.org>
27189
27190         unigbrk: Avoid gcc warnings.
27191         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27192         unused variable.
27193         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27194         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27195         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27196         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27197         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27198         Change type of first argument to 'const char *'.
27199         (main): Remove unused variable.
27200         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27201         type of first argument to 'const char *'.
27202         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27203         Likewise.
27204         (main): Change type of variable 's'.
27205         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27206         to 'int'.
27207
27208 2011-01-02  Bruno Haible  <bruno@clisp.org>
27209
27210         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27211         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27212         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27213         bug.
27214         * lib/pwrite.c: Undo 2010-12-31 patch.
27215         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27216
27217 2011-01-02  Bruno Haible  <bruno@clisp.org>
27218
27219         pread: Fix test whether it works.
27220         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27221
27222 2011-01-02  Bruno Haible  <bruno@clisp.org>
27223
27224         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27225         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27226         ends in "6". Don't require a specific month name. Try also the locale
27227         names found on HP-UX 11 and Solaris 7.
27228
27229 2011-01-02  Bruno Haible  <bruno@clisp.org>
27230
27231         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27232         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27233         C linkage.
27234         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27235
27236 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27237
27238         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27239         for consistency, since the "cluster" term is not used elsewhere.
27240         * lib/unigbrk.in.h: Update name.
27241         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27242         * lib/unigbrk/u16-grapheme-next.c: Update name.
27243         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27244         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27245         * lib/unigbrk/u32-grapheme-next.c: Update name.
27246         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27247         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27248         * lib/unigbrk/u8-grapheme-next.c: Update name.
27249         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27250         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27251         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27252         Suggested by Bruno Haible.
27253
27254 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27255
27256         Remove module 'u8-grapheme-len' as too redundant with
27257         'u8-grapheme-next'.
27258         * modules/unigbrk/u8-grapheme-len: Delete file.
27259         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27260         * lib/unigbrk.in.h: Remove prototype for deleted function.
27261         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27262         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27263
27264         Remove module 'u16-grapheme-len' as too redundant with
27265         'u16-grapheme-next'.
27266         * modules/unigbrk/u16-grapheme-len: Delete file.
27267         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27268         * lib/unigbrk.in.h: Remove prototype for deleted function.
27269         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27270         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27271
27272         Remove module 'u32-grapheme-len' as too redundant with
27273         'u32-grapheme-next'.
27274         * modules/unigbrk/u32-grapheme-len: Delete file.
27275         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27276         * lib/unigbrk.in.h: Remove prototype for deleted function.
27277         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27278         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27279
27280         Suggested by Bruno Haible.
27281
27282 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27283
27284         * unigbrk.in.h: Fix typo: "ben" => "been".
27285         Reported by Bruno Haible.
27286
27287 2011-01-01  Jim Meyering  <meyering@redhat.com>
27288
27289         maint: update almost all copyright ranges to include 2011
27290         Run the new "make update-copyright" rule.
27291
27292 2011-01-01  Jim Meyering  <meyering@redhat.com>
27293
27294         maint: update-copyright: exempt doc/INSTALL*
27295         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27296         since they are generated.  Suggested by Bruno Haible.
27297
27298 2011-01-01  Jim Meyering  <meyering@redhat.com>
27299
27300         maint: refine the update-copyright rule
27301         * Makefile (update-copyright): Also exclude any file that includes
27302         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27303         code that merely generates the comment.
27304
27305 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27306
27307         New module 'u8-grapheme-len'.
27308         * modules/unigbrk/u8-grapheme-len: New file.
27309         * modules/unigbrk/u8-grapheme-len-tests: New file.
27310         * lib/unigbrk.in.h: Add prototype for new function.
27311         * lib/unigbrk/u8-grapheme-len.c: New file.
27312         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27313
27314         New module 'u16-grapheme-len'.
27315         * modules/unigbrk/u16-grapheme-len: New file.
27316         * modules/unigbrk/u16-grapheme-len-tests: New file.
27317         * lib/unigbrk.in.h: Add prototype for new function.
27318         * lib/unigbrk/u16-grapheme-len.c: New file.
27319         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27320
27321         New module 'u32-grapheme-len'.
27322         * modules/unigbrk/u32-grapheme-len: New file.
27323         * modules/unigbrk/u32-grapheme-len-tests: New file.
27324         * lib/unigbrk.in.h: Add prototype for new function.
27325         * lib/unigbrk/u32-grapheme-len.c: New file.
27326         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27327
27328         New module 'u8-grapheme-next'.
27329         * modules/unigbrk/u8-grapheme-next: New file.
27330         * modules/unigbrk/u8-grapheme-next-tests: New file.
27331         * lib/unigbrk.in.h: Add prototype for new function.
27332         * lib/unigbrk/u8-grapheme-next.c: New file.
27333         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27334
27335         New module 'u16-grapheme-next'.
27336         * modules/unigbrk/u16-grapheme-next: New file.
27337         * modules/unigbrk/u16-grapheme-next-tests: New file.
27338         * lib/unigbrk.in.h: Add prototype for new function.
27339         * lib/unigbrk/u16-grapheme-next.c: New file.
27340         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27341
27342         New module 'u32-grapheme-next'.
27343         * modules/unigbrk/u32-grapheme-next: New file.
27344         * modules/unigbrk/u32-grapheme-next-tests: New file.
27345         * lib/unigbrk.in.h: Add prototype for new function.
27346         * lib/unigbrk/u32-grapheme-next.c: New file.
27347         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27348
27349         New module 'u8-grapheme-prev'.
27350         * modules/unigbrk/u8-grapheme-prev: New file.
27351         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27352         * lib/unigbrk.in.h: Add prototype for new function.
27353         * lib/unigbrk/u8-grapheme-prev.c: New file.
27354         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27355
27356         New module 'u16-grapheme-prev'.
27357         * modules/unigbrk/u16-grapheme-prev: New file.
27358         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27359         * lib/unigbrk.in.h: Add prototype for new function.
27360         * lib/unigbrk/u16-grapheme-prev.c: New file.
27361         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27362
27363         New module 'u32-grapheme-prev'.
27364         * modules/unigbrk/u32-grapheme-prev: New file.
27365         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27366         * lib/unigbrk.in.h: Add prototype for new function.
27367         * lib/unigbrk/u32-grapheme-prev.c: New file.
27368         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27369
27370         New module 'u8-grapheme-breaks'.
27371         * modules/unigbrk/u8-grapheme-breaks: New file.
27372         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27373         * lib/unigbrk.in.h: Add prototype for new function.
27374         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27375         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27376
27377         New module 'u16-grapheme-breaks'.
27378         * modules/unigbrk/u16-grapheme-breaks: New file.
27379         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27380         * lib/unigbrk.in.h: Add prototype for new function.
27381         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27382         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27383
27384         New module 'u32-grapheme-breaks'.
27385         * modules/unigbrk/u32-grapheme-breaks: New file.
27386         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27387         * lib/unigbrk.in.h: Add prototype for new function.
27388         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27389         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27390
27391         New module 'ulc-grapheme-breaks'.
27392         * modules/unigbrk/ulc-grapheme-breaks: New file.
27393         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27394         * m4/locale-ar.m4: New file.
27395         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27396         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27397         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27398
27399 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27400
27401         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27402         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27403         modified how this file was generated before I initially submitted
27404         the module, but failed to regenerate it.  This meant that several
27405         of the level2 entries were wrong.
27406         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27407         Remove the division-by-2 that is folded into the table now that
27408         gbrkprop.h has been regenerated properly.  Now -1 entries are
27409         handled correctly.
27410
27411         New module 'unigbrk/uc-gbrk-prop-tests'.
27412         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27413         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27414         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27415         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27416
27417 2011-01-01  Bruno Haible  <bruno@clisp.org>
27418
27419         Avoid use of hexadecimal escapes.
27420         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27421         instead of hexadecimal escapes.
27422
27423 2011-01-01  Jim Meyering  <meyering@redhat.com>
27424
27425         maint: new rule to update copyright year ranges
27426         * Makefile (update-copyright): New rule.
27427
27428         maint: indent with TABs in Makefile
27429         * Makefile: Expand leading sequences of spaces to TABs
27430
27431         version-etc: update the copyright year it reports
27432         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27433
27434 2010-12-31  Bruno Haible  <bruno@clisp.org>
27435
27436         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27437         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27438         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27439         zero.
27440
27441 2010-12-31  Bruno Haible  <bruno@clisp.org>
27442
27443         pwrite: Work around HP-UX 11.11 bug.
27444         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27445         works and set REPLACE_PWRITE if not.
27446         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27447         function.
27448         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27449
27450 2010-12-31  Bruno Haible  <bruno@clisp.org>
27451
27452         pread: Work around HP-UX 11 bugs.
27453         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27454         and set REPLACE_PREAD if not.
27455         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27456
27457 2010-12-31  Eric Blake  <eblake@redhat.com>
27458
27459         nl_langinfo: fix YESEXPR on Irix 6.5
27460         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27461         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27462         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27463         it.
27464
27465 2010-12-31  Bruno Haible  <bruno@clisp.org>
27466
27467         iconv: Document HP-UX 11 bug.
27468         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27469
27470 2010-12-31  Bruno Haible  <bruno@clisp.org>
27471
27472         ldexpl: Fix link error on HP-UX 11.
27473         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27474         LDEXPL_LIBM, using $ISNANL_LIBM.
27475
27476 2010-12-31  Eric Blake  <eblake@redhat.com>
27477
27478         ftello: avoid compilation failure with SunStudio c89
27479         * lib/ftello.c (ftello): Use lseek, not llseek.
27480
27481         tests: avoid failing coreutils tests on cygwin
27482         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27483         (create_exe_shims_): Return 0 when skipping.
27484
27485 2010-12-31  Bruno Haible  <bruno@clisp.org>
27486
27487         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27488         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27489
27490 2010-12-31  Bruno Haible  <bruno@clisp.org>
27491
27492         waitpid: Fix link error in C++ mode.
27493         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27494
27495 2010-12-31  Bruno Haible  <bruno@clisp.org>
27496
27497         isnan: Use GCC built-ins when possible.
27498         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27499         __builtin_isnan.
27500         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27501         (isnan): Define using GCC built-ins for GCC >= 4.0.
27502
27503 2010-12-31  Bruno Haible  <bruno@clisp.org>
27504
27505         isnand: Fix mistake.
27506         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27507         __builtin_isnand.
27508
27509 2010-12-31  Bruno Haible  <bruno@clisp.org>
27510
27511         open: Avoid C++ error on HP-UX 11.
27512         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27513
27514 2010-12-31  Bruno Haible  <bruno@clisp.org>
27515
27516         time_r: Add missing declarations on HP-UX 11.
27517         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27518         instead of HAVE_LOCALTIME_R.
27519         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27520         HAVE_LOCALTIME_R always.
27521         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27522         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27523         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27524         HAVE_LOCALTIME_R.
27525         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27526         * doc/posix-functions/localtime_r.texi: Likewise.
27527
27528 2010-12-29  Eric Blake  <eblake@redhat.com>
27529
27530         mountlist: tweak previous commit
27531         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27532         Reported by Paul Eggert.
27533
27534         mountlist: fix local drive detection on cygwin
27535         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27536         that works for cygwin.
27537
27538 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27539
27540         ftoastr, snprintf: ftoastr + snprintf module
27541         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27542         since the snprintf module now should be good enough here.
27543         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27544         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27545         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27546         GNULIB_SNPRINTF only for the test directory, and the latter
27547         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27548         seems to suffice by itself.
27549
27550 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27551
27552         alloca: one step towards thread-safety
27553         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27554         need for a static variable.  All callers changed.  This does not
27555         make the alloca replacement thread-safe, but it's one step.
27556
27557         tests: minor indenting change
27558         * tests/init.sh: Sync from coreutils housekeeping patch
27559         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27560         to keep lines within 80 columns.
27561
27562 2010-12-28  Jim Meyering  <meyering@redhat.com>
27563
27564         regex: don't infloop on persistent failing calloc
27565         * lib/regexec.c (build_trtable): Return failure indication upon
27566         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27567         In glibc, this was fixed for version 2.13:
27568         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27569
27570 2010-12-28  Bruno Haible  <bruno@clisp.org>
27571             Paul Eggert <eggert@cs.ucla.edu>
27572
27573         linkat: Make implementation robust against system behaviour variations.
27574         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27575         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27576         way, and to -2 if it needs a generic runtime test.
27577         * lib/linkat.c (solaris_optimized_link_immediate,
27578         solaris_optimized_link_follow): New functions.
27579         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27580         (check_same_link): Use it.
27581
27582 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27583
27584         New module 'unigbrk/base'.
27585         * modules/unigbrk/base: New file.
27586         * lib/unigbrk.in.h: New file.
27587
27588         New module 'unigbrk/uc-gbrk-prop'.
27589         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27590         * modules/unigbrk/uc-gbrk-prop: New file.
27591         * lib/unigbrk/gbrkprop.h: New file.
27592         * lib/unigbrk/uc-gbrk-prop.c: New file.
27593
27594         New module 'unigbrk/uc-is-grapheme-break'.
27595         * modules/unigbrk/uc-is-grapheme-break: New file.
27596         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27597         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27598         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27599         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27600         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27601
27602         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27603
27604 2010-12-27  Bruno Haible  <bruno@clisp.org>
27605
27606         linkat test: Avoid failure on Solaris 11 2010-11.
27607         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27608
27609 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27610
27611         utimens: work around glibc rounding bug on more platforms
27612         * lib/utimens.c (fdutimens): Work around rounding bug even if
27613         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27614         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27615
27616 2010-12-27  Bruno Haible  <bruno@clisp.org>
27617
27618         select tests: Improve comments.
27619         * tests/test-select.c (do_select): Add comments.
27620
27621 2010-12-27  Bruno Haible  <bruno@clisp.org>
27622
27623         select tests: Safer way of handling timeout.
27624         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27625         at every invocation.
27626
27627 2010-12-27  Bruno Haible  <bruno@clisp.org>
27628
27629         select tests: Use 'bool' where appropriate.
27630         * tests/test-select.c (connect_to_socket): Change argument type to
27631         'bool'.
27632
27633 2010-12-27  Bruno Haible  <bruno@clisp.org>
27634
27635         select tests: Use existing modules.
27636         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27637         (configure.ac): Don't test for unistd.h.
27638         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27639         declared in <unistd.h>.
27640
27641 2010-12-27  Bruno Haible  <bruno@clisp.org>
27642
27643         mbrtowc: Work around a Solaris 7 bug.
27644         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27645         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27646         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27647         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27648         MBRTOWC_NULL_ARG1_BUG.
27649         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27650         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27651         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27652         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27653
27654 2010-12-27  Jim Meyering  <meyering@redhat.com>
27655
27656         read-file.c: tweak syntax
27657         * lib/read-file.c (fread_file): Remove space after "*" in function
27658         definitions.
27659
27660 2010-12-27  Bruno Haible  <bruno@clisp.org>
27661
27662         times test: Avoid gcc warnings on OSF/1.
27663         * tests/test-times.c (main): Cast printf arguments from clock_t to
27664         'long int'.
27665
27666 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27667
27668         utimens: work around glibc rounding bug on older Linux kernels
27669         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27670         on Linux with a glibc whose utimes might not work, then work
27671         around a longstanding glibc bug involving rounding rather than
27672         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27673         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27674
27675 2010-12-26  Bruno Haible  <bruno@clisp.org>
27676
27677         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27678         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27679         _GL_CXXALIAS_SYS.
27680         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27681
27682 2010-12-26  Bruno Haible  <bruno@clisp.org>
27683
27684         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27685         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27686         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27687         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27688         looking for the declaration.
27689         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27690         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27691         problem.
27692         * doc/posix-functions/inet_pton.texi: Likewise.
27693
27694 2010-12-26  Bruno Haible  <bruno@clisp.org>
27695
27696         arpa_inet: Use the common idioms with C++ support.
27697         * lib/arpa_inet.in.h: Include c++defs.h.
27698         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27699         support.
27700         * modules/arpa_inet (Depends-on): Add c++defs.
27701         (Makefile.am): Substitute the contents of c++defs.h.
27702         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27703         * modules/arpa_inet-c++-tests: New file.
27704         * tests/test-arpa_inet-c++.cc: New file.
27705
27706 2010-12-25  Bruno Haible  <bruno@clisp.org>
27707
27708         Fix more C++ link errors on Solaris 8.
27709         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27710         $(LIB_EACCESS).
27711         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27712         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27713         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27714         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27715         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27716
27717 2010-12-25  Bruno Haible  <bruno@clisp.org>
27718
27719         printf-posix: Fix link error when a non-GCC compiler is used.
27720         * lib/stdio.in.h (printf): When not using GCC, override printf
27721         correctly.
27722         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27723
27724 2010-12-25  Bruno Haible  <bruno@clisp.org>
27725
27726         strerror_r-posix: Update doc.
27727         * doc/posix-functions/strerror_r.texi: Update doc about the return
27728         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27729
27730 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27731
27732         utimens: simplify the logic of the previous change
27733         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27734         This should not affect whether the test succeeds or fails.
27735
27736         utimens: configure better on hosts with NFS clock skew
27737         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27738         uses the clock of the local host.  It might use the clock of the
27739         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27741
27742 2010-12-25  Bruno Haible  <bruno@clisp.org>
27743
27744         ptsname test: Avoid failure on Solaris.
27745         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27746         open a pseudo-terminal; don't use BSD-style ptys.
27747         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27748
27749 2010-12-25  Bruno Haible  <bruno@clisp.org>
27750
27751         ptsname: Avoid ERANGE failure on some systems.
27752         * lib/ptsname.c (buffer): Increase size.
27753
27754 2010-12-25  Bruno Haible  <bruno@clisp.org>
27755
27756         rename, renameat: Avoid test failures at NFS mounted locations.
27757         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27758         so that subsequent mkdir calls succeed.
27759
27760 2010-12-25  Bruno Haible  <bruno@clisp.org>
27761
27762         iswblank: Fix C++ link error on Solaris 8.
27763         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27764         _GL_FUNCDECL_SYS.
27765
27766 2010-12-25  Bruno Haible  <bruno@clisp.org>
27767
27768         unistd: Fix C++ link error on Solaris 8.
27769         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27770
27771 2010-12-25  Bruno Haible  <bruno@clisp.org>
27772
27773         readlink doc: Mention an old glibc bug.
27774         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27775
27776 2010-12-25  Bruno Haible  <bruno@clisp.org>
27777
27778         fcntl-h: Fix for use of C++ on glibc systems.
27779         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27780         also on glibc systems in C++ mode.
27781         Reported by Gary V. Vaughan <gary@gnu.org>.
27782
27783 2010-12-25  Bruno Haible  <bruno@clisp.org>
27784
27785         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27786         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27787
27788 2010-12-25  Bruno Haible  <bruno@clisp.org>
27789
27790         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27791         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27792         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27793         test whether truncl works according to ISO C 99 with IEC 60559.
27794         * m4/truncl-ieee.m4: New file.
27795         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
27796         m4/signbit.m4.
27797         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
27798
27799 2010-12-25  Bruno Haible  <bruno@clisp.org>
27800
27801         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27802         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
27803         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
27804         test whether ceill works according to ISO C 99 with IEC 60559.
27805         * m4/ceill-ieee.m4: New file.
27806         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
27807         m4/signbit.m4.
27808         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
27809
27810 2010-12-25  Bruno Haible  <bruno@clisp.org>
27811
27812         Ensure all prerequisites of <wchar.h> are included.
27813         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
27814         before <wchar.h>.
27815         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27816         gl_MBRLEN_NUL_RETVAL): Likewise.
27817         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27818         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
27819         AC_FUNC_MBRTOWC): Likewise.
27820         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27821         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
27822         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27823         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27824         Likewise.
27825         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27826         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
27827         (gl_WCHAR_H): Improve comments.
27828         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
27829
27830 2010-12-25  Bruno Haible  <bruno@clisp.org>
27831
27832         strtok_r: Fix C syntax error in autoconf macro.
27833         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
27834         characters in test program.
27835
27836 2010-12-24  Bruno Haible  <bruno@clisp.org>
27837
27838         ceil, trunc, round: Fix gcc warnings.
27839         * lib/ceil.c (MIN): Undefine before redefining.
27840         * lib/trunc.c (MIN): Likewise.
27841         * lib/round.c (MIN): Likewise.
27842         Include <math.h> first.
27843
27844 2010-12-24  Bruno Haible  <bruno@clisp.org>
27845
27846         select tests: Avoid failures on OSF/1 5.1.
27847         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27848         failure of closing the last socket; it may fail with ECONNRESET.
27849
27850 2010-12-24  Eric Blake  <eblake@redhat.com>
27851
27852         stdint: avoid HP-UX 10.20 preprocessor bug
27853         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27854         than #if.
27855         * tests/test-floor2.c (main): Likewise.
27856         Reported by Peter O'Gorman.
27857
27858         pipe: make obsoletion transition easier
27859         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27860         * modules/pipe (Files): Include revived file.
27861         (Include): Drop reference, to mirror getdate's behavior.
27862
27863 2010-12-24  Bruno Haible  <bruno@clisp.org>
27864
27865         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27866         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27867         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27868         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27869
27870 2010-12-24  Bruno Haible  <bruno@clisp.org>
27871
27872         gethostname: Ensure declaration on NonStop Kernel.
27873         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27874         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27875
27876 2010-12-24  Bruno Haible  <bruno@clisp.org>
27877
27878         sys_select: Ensure all necessary types on NonStop Kernel.
27879         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27880         include <sys/time.h>.
27881         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27882         NonStop Kernel.
27883         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27884
27885 2010-12-24  Bruno Haible  <bruno@clisp.org>
27886
27887         sys_select: Remove unneeded include.
27888         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27889         have <sys/select.h>.
27890
27891 2010-12-24  Bruno Haible  <bruno@clisp.org>
27892
27893         gethostname: Provide a fallback for HOST_NAME_MAX.
27894         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27895         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27896         instead.
27897         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27898
27899 2010-12-24  Bruno Haible  <bruno@clisp.org>
27900
27901         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27902         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27903         (SA_RESTART): Likewise.
27904         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27905
27906 2010-12-24  Bruno Haible  <bruno@clisp.org>
27907
27908         signal: Define NSIG.
27909         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27910         * tests/test-signal.c (nsig): New variable.
27911         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27912
27913 2010-12-24  Bruno Haible  <bruno@clisp.org>
27914
27915         rename, renameat: Avoid test failures on OSF/1 5.1.
27916         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27917         alternative error codes.
27918         * tests/test-renameat.c (main): Likewise.
27919
27920 2010-12-24  Bruno Haible  <bruno@clisp.org>
27921
27922         *printf: Detect large precisions bug on Solaris 10/SPARC.
27923         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27924         by Paul Eggert.
27925         * tests/test-snprintf-posix.h (test_function): Add this test code here
27926         too.
27927         * tests/test-sprintf-posix.h (test_function): Likewise.
27928         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27929         * tests/test-vasprintf-posix.c (test_function): Likewise.
27930         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27931         around by gnulib.
27932         * doc/posix-functions/printf.texi: Likewise.
27933         * doc/posix-functions/snprintf.texi: Likewise.
27934         * doc/posix-functions/sprintf.texi: Likewise.
27935         * doc/posix-functions/vfprintf.texi: Likewise.
27936         * doc/posix-functions/vprintf.texi: Likewise.
27937         * doc/posix-functions/vsnprintf.texi: Likewise.
27938         * doc/posix-functions/vsprintf.texi: Likewise.
27939         * doc/posix-functions/dprintf.texi: Undo last commit.
27940         * doc/posix-functions/vdprintf.texi: Likewise.
27941
27942 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27943
27944         tests: port test-fdutimensat.c to Solaris 8
27945         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27946         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27947         On Solaris 8, it fails with errno == ENOSYS, because there is no
27948         futimens (so it can't use the fd), and there is no lutimens (so it
27949         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27950
27951         vsnprintf: make more consistent with snprintf; doc fixes
27952
27953         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27954         the byte count return problem was promoted from the snprintf-posix
27955         to the snprintf module.
27956         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27957         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27958         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27959         * tests/test-snprintf.c (main): Check the byte count returned.
27960         * tests/test-vsnprintf.c (main): Likewise.
27961
27962 2010-12-23  Eric Blake  <eblake@redhat.com>
27963
27964         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27965         * modules/sigpipe (License): Relax license.
27966
27967 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27968
27969         doc: document Solaris printf bug with large float precisions
27970         * doc/posix-functions/dprintf.texi (dprintf):
27971         * doc/posix-functions/fprintf.texi (fprintf):
27972         * doc/posix-functions/printf.texi (printf):
27973         * doc/posix-functions/snprintf.texi (snprintf):
27974         * doc/posix-functions/sprintf.texi (sprintf):
27975         * doc/posix-functions/vdprintf.texi (vdprintf):
27976         * doc/posix-functions/vfprintf.texi (vfprintf):
27977         * doc/posix-functions/vprintf.texi (vprintf):
27978         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27979         * doc/posix-functions/vsprintf.texi (vsprintf):
27980         Mention that these functions mishandle large floating point
27981         precisions on Solaris 10.  The same bug is also present in Solaris
27982         8, and I assume earlier.  This causes "cd gnulib-tests; make
27983         check" to fail on Solaris 8 (and I assume, later) when building
27984         the latest coreutils, in test-vasprintf-posix's call to
27985         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27986         the wide flavors (e.g., wprintf) so this patch just updates the
27987         documentation for the narrow ones.
27988
27989         test-posixtm.c: add two tests
27990         * tests/test-posixtm.c: Add two tests, to highlight the
27991         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27992         around this bug; this is merely to document it.
27993
27994 2010-12-22  Bruno Haible  <bruno@clisp.org>
27995
27996         getlogin_r: Work around portability problem on OSF/1.
27997         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27998         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27999         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28000         test for a truncated result.
28001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28002         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28003         * modules/getlogin_r (Depends-on): Add memchr.
28004         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28005
28006 2010-12-22  Bruno Haible  <bruno@clisp.org>
28007
28008         ptsname: Avoid test failure on OSF/1 5.1.
28009         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28010         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28011         (same_slave): New function.
28012         (main): Use it to compare ptsname's result with the expected file name.
28013
28014 2010-12-22  Bruno Haible  <bruno@clisp.org>
28015
28016         Port extended stdio modules to HP NonStop Kernel.
28017         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28018         macros.
28019         * lib/fbufmode.c: Update comments.
28020         * lib/fflush.c: Likewise.
28021         * lib/fpurge.c: Likewise.
28022         * lib/freadable.c: Likewise.
28023         * lib/freadahead.c: Likewise.
28024         * lib/freading.c: Likewise.
28025         * lib/freadptr.c: Likewise.
28026         * lib/freadseek.c: Likewise.
28027         * lib/fseeko.c: Likewise.
28028         * lib/fseterr.c: Likewise.
28029         * lib/fwritable.c: Likewise.
28030         * lib/fwriting.c: Likewise.
28031         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28032
28033 2010-12-22  Bruno Haible  <bruno@clisp.org>
28034
28035         ttyname_r: Work around bug on OSF/1 5.1.
28036         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28037         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28038         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28039         present.
28040         * lib/ttyname_r.c (ttyname_r): Update comments.
28041
28042 2010-12-22  Bruno Haible  <bruno@clisp.org>
28043
28044         round: Implement result sign according to IEEE 754.
28045         * lib/round.c (MIN, MINUS_ZERO): New macros.
28046         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28047         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28048         * tests/test-round-ieee.c (main): Likewise.
28049         * tests/test-roundl-ieee.c (main): Likewise.
28050
28051         trunc: Implement result sign according to IEEE 754.
28052         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28053         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28054         * tests/test-trunc2.c: Include minus-zero.h.
28055         (MINUS_ZERO): New macro.
28056         (trunc_reference): Keep in sync with lib/trunc.c.
28057         * tests/test-truncf2.c: Include minus-zero.h.
28058         (MINUS_ZERO): New macro.
28059         (truncf_reference): Keep in sync with lib/trunc.c.
28060         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28061         * tests/test-trunc-ieee.c (main): Likewise.
28062         * tests/test-truncl-ieee.c (main): Likewise.
28063
28064         ceil: Implement result sign according to IEEE 754.
28065         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28066         (FUNC): Return -0.0 for -1 < x < 0.
28067         * tests/test-ceil2.c: Include minus-zero.h.
28068         (MINUS_ZERO): New macro.
28069         (ceil_reference): Keep in sync with lib/ceil.c.
28070         * tests/test-ceilf2.c: Include minus-zero.h.
28071         (MINUS_ZERO): New macro.
28072         (ceilf_reference): Keep in sync with lib/ceil.c.
28073         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28074         * tests/test-ceil-ieee.c (main): Likewise.
28075         * tests/test-ceill-ieee.c (main): Likewise.
28076
28077         floor: Implement result sign according to IEEE 754.
28078         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28079         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28080         * tests/test-floorf2.c (floorf_reference): Likewise.
28081         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28082         * tests/test-floor-ieee.c (main): Likewise.
28083         * tests/test-floorl-ieee.c (main): Likewise.
28084
28085 2010-12-22  Bruno Haible  <bruno@clisp.org>
28086
28087         getaddrinfo: Update doc.
28088         * doc/posix-functions/gai_strerror.texi: Return type is also different
28089         on AIX and HP-UX.
28090
28091 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28092
28093         getaddrinfo, inet_ntop: Update doc for Solaris.
28094         * doc/posix-functions/gai_strerror.texi: Return type is also an
28095         issue on Solaris 9 and earlier.
28096         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28097         on Solaris 10 and earlier.
28098
28099 2010-12-21  Bruno Haible  <bruno@clisp.org>
28100
28101         New module 'roundl-ieee'.
28102         * modules/roundl-ieee: New file.
28103         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28104         test whether roundl works according to ISO C 99 with IEC 60559.
28105         * m4/roundl-ieee.m4: New file.
28106         * modules/roundl-ieee-tests: New file.
28107         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28108         * tests/test-roundl.c (main): Remove signbit tests.
28109         * modules/roundl-tests (Depends-on): Remove signbit.
28110         * doc/posix-functions/roundl.texi: Mention the new module.
28111
28112 2010-12-21  Bruno Haible  <bruno@clisp.org>
28113
28114         New module 'truncl-ieee'.
28115         * modules/truncl-ieee: New file.
28116         * modules/truncl-ieee-tests: New file.
28117         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28118         * tests/test-truncl.c (main): Remove signbit tests.
28119         * modules/truncl-tests (Depends-on): Remove signbit.
28120         * doc/posix-functions/truncl.texi: Mention the new module.
28121
28122 2010-12-21  Bruno Haible  <bruno@clisp.org>
28123
28124         New module 'ceill-ieee'.
28125         * modules/ceill-ieee: New file.
28126         * modules/ceill-ieee-tests: New file.
28127         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28128         * tests/test-ceill.c (main): Remove signbit tests.
28129         * modules/ceill-tests (Depends-on): Remove signbit.
28130         * doc/posix-functions/ceill.texi: Mention the new module.
28131
28132 2010-12-21  Bruno Haible  <bruno@clisp.org>
28133
28134         New module 'floorl-ieee'.
28135         * modules/floorl-ieee: New file.
28136         * modules/floorl-ieee-tests: New file.
28137         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28138         * tests/test-floorl.c (main): Remove signbit tests.
28139         * modules/floorl-tests (Depends-on): Remove signbit.
28140         * doc/posix-functions/floorl.texi: Mention the new module.
28141
28142 2010-12-21  Bruno Haible  <bruno@clisp.org>
28143
28144         New module 'round-ieee'.
28145         * modules/round-ieee: New file.
28146         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28147         whether round works according to ISO C 99 with IEC 60559.
28148         * m4/round-ieee.m4: New file.
28149         * modules/round-ieee-tests: New file.
28150         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28151         * tests/test-round1.c (main): Remove signbit tests.
28152         * modules/round-tests (Depends-on): Remove 'signbit'.
28153         * doc/posix-functions/round.texi: Mention the new module.
28154
28155 2010-12-21  Bruno Haible  <bruno@clisp.org>
28156
28157         New module 'trunc-ieee'.
28158         * modules/trunc-ieee: New file.
28159         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28160         whether trunc works according to ISO C 99 with IEC 60559.
28161         * m4/trunc-ieee.m4: New file.
28162         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28164         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28165         * modules/trunc-ieee-tests: New file.
28166         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28167         * tests/test-trunc1.c (main): Remove signbit tests.
28168         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28169         * doc/posix-functions/trunc.texi: Mention the new module.
28170
28171 2010-12-21  Bruno Haible  <bruno@clisp.org>
28172
28173         New module 'ceil-ieee'.
28174         * modules/ceil-ieee: New file.
28175         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28176         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28177         ISO C 99 with IEC 60559.
28178         * m4/ceil-ieee.m4: New file.
28179         * modules/ceil (Files): Add lib/ceil.c.
28180         (Depends-on): Add 'float'.
28181         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28182         * lib/math.in.h (ceil): New declaration.
28183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28184         REPLACE_CEIL.
28185         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28186         * modules/ceil-ieee-tests: New file.
28187         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28188         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28189         * doc/posix-functions/ceil.texi: Mention the new module.
28190
28191 2010-12-21  Bruno Haible  <bruno@clisp.org>
28192
28193         New module 'floor-ieee'.
28194         * modules/floor-ieee: New file.
28195         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28196         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28197         ISO C 99 with IEC 60559.
28198         * m4/floor-ieee.m4: New file.
28199         * modules/floor (Files): Add lib/floor.c.
28200         (Depends-on): Add 'float'.
28201         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28202         * lib/math.in.h (floor): New declaration.
28203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28204         REPLACE_FLOOR.
28205         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28206         * modules/floor-ieee-tests: New file.
28207         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28208         * tests/test-math-c++.cc: Check the signature of 'floor'.
28209         * doc/posix-functions/floor.texi: Mention the new module.
28210
28211 2010-12-21  Bruno Haible  <bruno@clisp.org>
28212
28213         New module 'roundf-ieee'.
28214         * modules/roundf-ieee: New file.
28215         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28216         test whether roundf works according to ISO C 99 with IEC 60559.
28217         * m4/roundf-ieee.m4: New file.
28218         * modules/roundf-ieee-tests: New file.
28219         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28220         * tests/test-roundf1.c (main): Remove signbit tests.
28221         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28222         * doc/posix-functions/roundf.texi: Mention the new module.
28223
28224 2010-12-21  Bruno Haible  <bruno@clisp.org>
28225
28226         New module 'truncf-ieee'.
28227         * modules/truncf-ieee: New file.
28228         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28229         test whether truncf works according to ISO C 99 with IEC 60559.
28230         * m4/truncf-ieee.m4: New file.
28231         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28233         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28234         * modules/truncf-ieee-tests: New file.
28235         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28236         * tests/test-truncf1.c (main): Remove signbit tests.
28237         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28238         * doc/posix-functions/truncf.texi: Mention the new module.
28239
28240 2010-12-21  Bruno Haible  <bruno@clisp.org>
28241
28242         New module 'ceilf-ieee'.
28243         * modules/ceilf-ieee: New file.
28244         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28245         test whether ceilf works according to ISO C 99 with IEC 60559.
28246         * m4/ceilf-ieee.m4: New file.
28247         * modules/ceilf-ieee-tests: New file.
28248         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28249         * tests/test-ceilf1.c (main): Remove signbit tests.
28250         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28251         * doc/posix-functions/ceilf.texi: Mention the new module.
28252
28253 2010-12-21  Bruno Haible  <bruno@clisp.org>
28254
28255         New module 'floorf-ieee'.
28256         * modules/floorf-ieee: New file.
28257         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28258         test whether floorf works according to ISO C 99 with IEC 60559.
28259         * m4/floorf-ieee.m4: New file.
28260         * modules/floorf-ieee-tests: New file.
28261         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28262         * tests/test-floorf1.c (main): Remove signbit tests.
28263         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28264         * doc/posix-functions/floorf.texi: Mention the new module.
28265
28266 2010-12-21  Bruno Haible  <bruno@clisp.org>
28267
28268         Support for minus zero in autoconf macros.
28269         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28270         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28271         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28272         * tests/minus-zero.h: Update comments.
28273
28274 2010-12-21  Bruno Haible  <bruno@clisp.org>
28275
28276         Tests for module 'ceil'.
28277         * modules/ceil-tests: New file.
28278         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28279         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28280
28281 2010-12-21  Bruno Haible  <bruno@clisp.org>
28282
28283         Tests for module 'floor'.
28284         * modules/floor-tests: New file.
28285         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28286         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28287
28288 2010-12-21  Bruno Haible  <bruno@clisp.org>
28289
28290         math: Fix indentation.
28291         * lib/math.in.h (floorf): Fix indentation.
28292
28293 2010-12-21  Bruno Haible  <bruno@clisp.org>
28294
28295         Fix cross-compilation guesses on Solaris.
28296         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28297         not match "solaris2.10".
28298         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28299         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28300         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28301
28302 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28303
28304         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28305         This fixes a problem observed with the latest coreutils snapshot
28306         that caused a test to fail on Solaris 8.  src/csplit.c's call
28307         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28308         earlier, instead of returning the number of bytes that would have
28309         been generated; this causes csplit to incorrectly report memory
28310         exhaustion.
28311         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28312         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28313         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28314         comments to match.
28315         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28316         Fix typo in matching older versions of Solaris: "solaris2.10"
28317         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28318         only for guessing while cross-compiling.
28319         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28320
28321 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28322
28323         ftoastr: fix comment again
28324         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28325         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28326         Also, simplify example a bit by using flags = 0.
28327
28328 2010-12-20  Bruno Haible  <bruno@clisp.org>
28329
28330         round*, trunc*: Update documentation regarding glibc.
28331         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28332         * doc/posix-functions/round.texi: Likewise.
28333         * doc/posix-functions/roundl.texi: Likewise.
28334         * doc/posix-functions/truncf.texi: Likewise.
28335         * doc/posix-functions/trunc.texi: Likewise.
28336         * doc/posix-functions/truncl.texi: Likewise.
28337
28338 2010-12-20  Bruno Haible  <bruno@clisp.org>
28339
28340         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28341         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28342         * doc/posix-functions/round.texi: Likewise.
28343         * doc/posix-functions/roundl.texi: Likewise.
28344
28345 2010-12-20  Bruno Haible  <bruno@clisp.org>
28346
28347         ttyname_r: Add missing declaration on HP-UX 11.
28348         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28349         HAVE_TTYNAME_R.
28350         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28351         declared. Set HAVE_TTYNAME_R always.
28352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28353         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28354         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28355         HAVE_TTYNAME_R.
28356         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28357
28358 2010-12-20  Bruno Haible  <bruno@clisp.org>
28359
28360         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28361         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28362         * doc/posix-functions/getlogin_r.texi: Likewise.
28363         * tests/test-getlogin.c: Include <errno.h>.
28364         (main): Avoid test failure on HP-UX 11.11.
28365         * tests/test-getlogin_r.c (main): Likewise.
28366
28367 2010-12-20  Bruno Haible  <bruno@clisp.org>
28368
28369         getlogin_r: Add missing declaration on HP-UX 11.
28370         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28371         declared also when it exists as a function.
28372         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28373
28374 2010-12-20  Bruno Haible  <bruno@clisp.org>
28375
28376         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28377         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28378         through wcrtomb.
28379
28380 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28381
28382         ftoastr: fix comment
28383         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28384         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28385
28386 2010-12-19  Bruno Haible  <bruno@clisp.org>
28387
28388         isnan: Ensure it is a macro.
28389         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28390         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28391         Solaris.
28392
28393 2010-12-19  Bruno Haible  <bruno@clisp.org>
28394
28395         ldexpl test: Fix link error on OSF/1 5.1.
28396         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28397
28398 2010-12-19  Bruno Haible  <bruno@clisp.org>
28399
28400         wctype: Make it work in C++ mode on OSF/1 5.1.
28401         * lib/wctype.in.h (iswblank): Declare but not define here.
28402         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28403         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28404         * modules/wctype (Files): Add lib/iswblank.c.
28405
28406 2010-12-19  Bruno Haible  <bruno@clisp.org>
28407
28408         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28409         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28410         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28411
28412 2010-12-19  Bruno Haible  <bruno@clisp.org>
28413
28414         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28415         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28416         _POSIX_PII_SOCKET.
28417         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28418         * doc/posix-functions/recvfrom.texi: Likewise.
28419         * doc/posix-functions/send.texi: Likewise.
28420         * doc/posix-functions/sendto.texi: Likewise.
28421
28422 2010-12-19  Bruno Haible  <bruno@clisp.org>
28423
28424         tcgetsid: Add missing declaration on OSF/1 5.1.
28425         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28426         HAVE_TCGETSID.
28427         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28428         Don't set HAVE_TCGETSID.
28429         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28430         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28431         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28432         HAVE_TCGETSID.
28433         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28434
28435 2010-12-19  Bruno Haible  <bruno@clisp.org>
28436
28437         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28438         * lib/stdio.in.h: During the include_next statement, let recursive
28439         includes of this file include only the system header file.
28440
28441 2010-12-19  Bruno Haible  <bruno@clisp.org>
28442
28443         iconv_open: Fix regression from 2010-12-04.
28444         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28445         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28446
28447 2010-12-19  Bruno Haible  <bruno@clisp.org>
28448
28449         stdbool test: Avoid a gcc warning.
28450         * tests/test-stdbool.c (main): Fail if e1 is false.
28451         Reported by Jim Meyering.
28452
28453 2010-12-19  Jim Meyering  <meyering@redhat.com>
28454
28455         setenv: restore to working order
28456         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28457         mistakenly removed.
28458         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28459         HAVE_SETENV.
28460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28461         HAVE_SETENV.
28462
28463 2010-12-19  Bruno Haible  <bruno@clisp.org>
28464
28465         Document some different function declarations on OSF/1 5.1.
28466         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28467         * doc/posix-functions/inet_ntop.texi: Likewise.
28468         * doc/posix-functions/gethostname.texi: Likewise.
28469         * lib/unistd.in.h (gethostname): Update comment.
28470
28471 2010-12-19  Bruno Haible  <bruno@clisp.org>
28472
28473         doc: Mention vasprintf-posix module.
28474         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28475         the 'vasprintf-posix' module.
28476         * doc/glibc-functions/vasprintf.texi: Likewise.
28477
28478 2010-12-19  Bruno Haible  <bruno@clisp.org>
28479
28480         unsetenv: Add missing declaration on OSF/1 5.1.
28481         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28482         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28483         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28485         not HAVE_UNSETENV.
28486         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28487         HAVE_UNSETENV.
28488         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28489
28490 2010-12-19  Bruno Haible  <bruno@clisp.org>
28491
28492         setenv: Add missing declaration on OSF/1 5.1.
28493         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28494         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28495         declared. Don't set HAVE_SETENV.
28496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28497         not HAVE_SETENV.
28498         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28499         HAVE_SETENV.
28500         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28501
28502 2010-12-19  Bruno Haible  <bruno@clisp.org>
28503
28504         nl_langinfo tests: Avoid gcc warning.
28505         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28506
28507 2010-12-19  Bruno Haible  <bruno@clisp.org>
28508
28509         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28510         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28511         _GL_CXXALIAS_SYS.
28512
28513 2010-12-19  Bruno Haible  <bruno@clisp.org>
28514
28515         stdbool: Relax test.
28516         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28517         address to 'bool' work in static initializer, for compilers other than
28518         GCC.
28519
28520 2010-12-19  Bruno Haible  <bruno@clisp.org>
28521
28522         ftello: Add missing declaration on OSF/1 5.1.
28523         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28524         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28526         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28527         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28528
28529 2010-12-19  Bruno Haible  <bruno@clisp.org>
28530
28531         fseeko: Add missing declaration on OSF/1 5.1.
28532         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28533         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28535         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28536         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28537
28538 2010-12-19  Bruno Haible  <bruno@clisp.org>
28539
28540         fchdir: Add missing declaration on OSF/1 5.1.
28541         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28544         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28545         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28546
28547 2010-12-19  Bruno Haible  <bruno@clisp.org>
28548
28549         relocatable-prog-wrapper: Separate from relocatable-prog.
28550         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28551         uninstall-relocwrapper rule here.
28552         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28553         Reported by Ian Beckwith <ianb@erislabs.net>.
28554
28555 2010-12-19  Bruno Haible  <bruno@clisp.org>
28556
28557         unistr/u8-mbsnlen: Add missing dependency.
28558         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28559         Reported by Ian Beckwith <ianb@erislabs.net>.
28560
28561 2010-12-19  Bruno Haible  <bruno@clisp.org>
28562
28563         iconv: Make it possible again to use this module without 'iconv-h'.
28564         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28565         if it is not defined.
28566         Reported by Ian Beckwith <ianb@erislabs.net>.
28567
28568 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28569
28570         acl: port to Solaris 8 when copying from tmpfs to ufs
28571         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28572         error number.  Problem observed on Solaris 8 with latest
28573         coreutils, with "mv A B", where A is on a tmpfs file system and B
28574         is on a ufs file system.  This caused coreutils' mv/part-symlink
28575         test to fail.
28576
28577         tests: set fail=0 at start
28578         * tests/init.sh (setup_): Move fail=0 initialization here ...
28579         (mktempd_): ... from here, so that tests can rely on fail being
28580         set to 0 initially.  This fixes a problem in coreutils; see:
28581         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28582
28583 2010-12-18  Bruno Haible  <bruno@clisp.org>
28584
28585         memmem-simple: Stylistic changes.
28586         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28587         Fix preprocessor directive indentation.
28588
28589 2010-12-15  Pádraig Brady <P@draigBrady.com>
28590
28591         memmem, memmem-simple: reorganize and expand empty needle check
28592         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28593         functional checks to memmem-simple so that one has a fully functional
28594         memmem by using just this module.
28595         Restrict the performance only check to the memmem module.
28596         Also expand the empty needle check to ensure the correct
28597         pointer is returned, not just a non NULL pointer.
28598         * doc/glibc-functions/memmem.texi: Rearrange the portability
28599         documentation to correlate with the rearranged checks.
28600         Clarify exactly how the memmem and memmem-simple modules
28601         relate to each other.
28602
28603 2010-12-15  Pádraig Brady <P@draigBrady.com>
28604             Bruno Haible  <bruno@clisp.org>
28605
28606         Improve cross-compilation guesses for uClibc.
28607         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28608         that uClibc does not have the glibc bug.
28609         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28610         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28611
28612 2010-12-14  Eric Blake  <eblake@redhat.com>
28613
28614         configmake: provide fallbacks for oldest supported autotools
28615         * m4/configmake.m4: New file.
28616         * modules/configmake (Files): Ship it.
28617         (configure.ac): Use it to guarantee fallbacks.
28618
28619 2010-12-13  Pádraig Brady <P@draigBrady.com>
28620
28621         read-file: Improve handling of large files
28622         * lib/read-file.c (fread_file): Minimize realloc()s
28623         for regular files, and better manage sizes around SIZE_MAX.
28624
28625 2010-12-13  Eric Blake  <eblake@redhat.com>
28626
28627         cloexec, fcntl: relax license
28628         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28629         consent from all contributors.
28630         * modules/fcntl (License): Likewise.
28631
28632 2010-12-10  Bruno Haible  <bruno@clisp.org>
28633
28634         Tests for module 'pipe-posix'.
28635         * modules/pipe-posix-tests: New file.
28636         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28637
28638 2010-12-10  Bruno Haible  <bruno@clisp.org>
28639
28640         pipe-posix: Make it work in C++ mode.
28641         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28642         (pipe): Use common idiom, not a macro definition.
28643         * lib/pipe.c: New file.
28644         * m4/pipe.m4: New file.
28645         * modules/pipe-posix (Description): Enhance.
28646         (Files): Add lib/pipe.c, m4/pipe.m4.
28647         (configure.ac): Invoke gl_FUNC_PIPE.
28648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28649         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28650         * tests/test-unistd-c++.cc: Check the signature of pipe.
28651
28652 2010-12-10  Bruno Haible  <bruno@clisp.org>
28653
28654         Rename module 'pipe' to 'spawn-pipe'.
28655         * modules/spawn-pipe: New file, renamed from modules/pipe.
28656         (Files, configure.ac, Makefile.am): Update.
28657         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28658         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28659         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28660         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28661         "spawn-pipe.h" instead of "pipe.h".
28662         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28663         to gl_SPAWN_PIPE.
28664         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28665         (Files, Makefile.am): Update.
28666         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28667         Update.
28668         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28669         Include "spawn-pipe.h" instead of "pipe.h".
28670         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28671         * lib/javacomp.c: Likewise.
28672         * lib/javaversion.c: Likewise.
28673         * lib/pipe-filter-gi.c: Likewise.
28674         * lib/pipe-filter-ii.c: Likewise.
28675         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28676         * modules/javacomp (Depends-on): Likewise.
28677         * modules/javaversion (Depends-on): Likewise.
28678         * modules/pipe-filter-gi (Depends-on): Likewise.
28679         * modules/pipe-filter-ii (Depends-on): Likewise.
28680         * MODULES.html.sh (Executing programs): Update.
28681         * NEWS: Mention the change.
28682
28683 2010-12-10  Eric Blake  <eblake@redhat.com>
28684
28685         pipe-posix: new module
28686         * modules/pipe-posix: New file.
28687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28688         (gl_UNISTD_H): Check for declaration.
28689         * modules/unistd (Makefile.am): Substitute it.
28690         * lib/unistd.in.h (pipe): Provide it for mingw.
28691         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28692         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28693
28694 2010-12-07  Bruno Haible  <bruno@clisp.org>
28695
28696         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28697         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28698         u8_strcmp_gnu.
28699         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28700
28701 2010-12-06  Bruno Haible  <bruno@clisp.org>
28702
28703         Update internal documentation.
28704         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28705
28706 2010-12-04  Bruno Haible  <bruno@clisp.org>
28707
28708         Put more information about failed tests into the test return codes.
28709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28710         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28711         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28712         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28713         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28714         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28715         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28716         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28717         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28719         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28720         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28721         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28722         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28723         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28724         returns a bit mask.
28725         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28726         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28727         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28728         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28729         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28730         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28731         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28733         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28734         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28735         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28736         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28737         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28738         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28739         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28740         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28741         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28742         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28743         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28744         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28745         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28746         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28747         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28748         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28749         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28750         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28751         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28752         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28753         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28754         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28755         gl_PRINTF_PRECISION): Likewise.
28756         * m4/regex.m4 (gl_REGEX): Likewise.
28757         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28758         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28759         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28760         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28761         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28762         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28763         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28764         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28765         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28766         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28767         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28768         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28769         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28770         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28771         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28772         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28773         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28774         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28776         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28777         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28778         enumerated value.
28779         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28780
28781 2010-12-04  Bruno Haible  <bruno@clisp.org>
28782
28783         Update for Solaris 11 2010-11.
28784         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28785         Express, released in November 2010.
28786
28787 2010-12-04  Bruno Haible  <bruno@clisp.org>
28788
28789         nproc: Relax license.
28790         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28791         and Paul Eggert.
28792         Requested by Ludovic Courtès <ludo@gnu.org>.
28793
28794 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28795
28796         utimecmp: fine-grained src to nearby coarse-grained dest
28797
28798         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
28799         and the source is on a file system with higher-resolution time
28800         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
28801         not work, and the time stamps are close together, the algorithm to
28802         determine the exact resolution from the read-back mtime was buggy:
28803         it had a "!=" where it should have had an "==".  This bug has been
28804         in the code ever since it was introduced to gnulib.
28805         Problem reported by Dan Jacobson in
28806         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
28807
28808 2010-11-30  Bruno Haible  <bruno@clisp.org>
28809
28810         strerror_r-posix: Fix autoconf test.
28811         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
28812
28813 2010-11-28  Bruno Haible  <bruno@clisp.org>
28814             Paul Eggert  <eggert@cs.ucla.edu>
28815
28816         Tests for module 'getdomainname'.
28817         * modules/getdomainname-tests: New file.
28818         * tests/test-getdomainname.c: New file, based on
28819         tests/test-gethostname.c.
28820
28821 2010-11-28  Bruno Haible  <bruno@clisp.org>
28822             Paul Eggert  <eggert@cs.ucla.edu>
28823
28824         getdomainname: Use the system function when possible.
28825         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
28826         (getdomainname): Replace if needed. Provide the declaration if it is
28827         missing. Don't use _GL_CXXALIAS_SYS_CAST.
28828         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
28829         (getdomainname): When the system has getdomainname, call the system
28830         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
28831         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28832         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
28833         found in libnsl. Look for the declaration also in <netdb.h>. Replace
28834         the function if its second argument is of type 'int' or if it is found
28835         in libnsl.
28836         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
28837         <sys/systeminfo.h> and sysinfo().
28838         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
28839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28840         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
28841         HAVE_GETDOMAINNAME.
28842         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
28843         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28844         * doc/glibc-functions/getdomainname.texi: Document the problems with
28845         the getdomainname declaration.
28846
28847 2010-11-28  Bruno Haible  <bruno@clisp.org>
28848
28849         sys_socket: Ensure ss_family field on AIX.
28850         * lib/sys_socket.in.h (ss_family): New macro definition.
28851         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28852         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28853         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28854         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28855         * modules/sys_socket (Makefile.am): Substitute
28856         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28857         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28858
28859 2010-11-27  Bruno Haible  <bruno@clisp.org>
28860
28861         readline: Improve configure output.
28862         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28863         "checking for readline..." result understandable.
28864
28865 2010-11-27  Bruno Haible  <bruno@clisp.org>
28866
28867         *printf-posix: Detect a bug on Solaris 10/x86.
28868         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28869         for floating-point output.
28870         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28871         directive.
28872         * tests/test-snprintf-posix.h (test_function): Likewise.
28873         * tests/test-sprintf-posix.h (test_function): Likewise.
28874         * tests/test-vasprintf-posix.c (test_function): Likewise.
28875         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28876         * doc/posix-functions/printf.texi: Likewise.
28877         * doc/posix-functions/snprintf.texi: Likewise.
28878         * doc/posix-functions/sprintf.texi: Likewise.
28879         * doc/posix-functions/vfprintf.texi: Likewise.
28880         * doc/posix-functions/vprintf.texi: Likewise.
28881         * doc/posix-functions/vsnprintf.texi: Likewise.
28882         * doc/posix-functions/vsprintf.texi: Likewise.
28883         * doc/glibc-functions/obstack_printf.texi: Likewise.
28884         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28885
28886 2010-11-27  Bruno Haible  <bruno@clisp.org>
28887
28888         Fix link error when module libunistring-optional is in use.
28889         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28890         * modules/striconveha-tests (Makefile.am): Likewise.
28891
28892 2010-11-27  Bruno Haible  <bruno@clisp.org>
28893
28894         regex: Mention link dependencies.
28895         * modules/regex (Link): New section.
28896         * modules/rpmatch (Link): Likewise.
28897         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28898
28899 2010-11-27  Bruno Haible  <bruno@clisp.org>
28900
28901         ftoastr: Fix compilation error on Solaris.
28902         * lib/ftoastr.c: Include <config.h>.
28903
28904 2010-11-27  Bruno Haible  <bruno@clisp.org>
28905
28906         getloadavg: Update documentation.
28907         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28908
28909 2010-11-27  Bruno Haible  <bruno@clisp.org>
28910
28911         sys_socket: Fix test whether the functions are declared.
28912         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28913         not <sys/select.h>.
28914
28915 2010-11-27  Bruno Haible  <bruno@clisp.org>
28916
28917         getpass: Make sure to get system declaration on some platforms.
28918         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28919         gl_USE_SYSTEM_EXTENSIONS.
28920         * modules/getpass (Depends-on): Add extensions.
28921
28922 2010-11-26  Bruno Haible  <bruno@clisp.org>
28923
28924         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28925         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28926         'iconv' module is present.
28927         (ICONV_CONST): New macro.
28928         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28929         ICONV_CONST.
28930         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28931         set ICONV_CONST.
28932         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28933         here.
28934         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28935         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28936         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28937         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28938         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28939         present.
28940
28941 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28942
28943         ftoastr: comment fix
28944         * lib/ftoastr.c: "little" -> "little or no" in comment
28945
28946 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28947
28948         stdint: port to GCC 4.3 + OSX + Octave
28949         On this platform, stdint.h is buggy and defines int64_t to long
28950         long int.  The replacement defined it to long int, causing
28951         problems with C++ style name mangling.  Instead, trust the system
28952         definition if INT64_MAX is defined, and likewise for the unsigned
28953         variant.   Problem reported by Jarno Rajahalme in
28954         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28955         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28956         and don't mess with int64_t and INT64_MAX in this case.
28957         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28958
28959 2010-11-24  Bruno Haible  <bruno@clisp.org>
28960
28961         doc: Corrections regarding MacOS X 10.4 and 10.5.
28962         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28963         MacOS X.
28964         Reported by Simon Josefsson.
28965
28966 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28967
28968         Uninstall ".bin" files installed by relocwrapper.
28969         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28970         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28971         unless it is already there.
28972
28973 2010-11-21  Bruno Haible  <bruno@clisp.org>
28974
28975         Update for NetBSD 5.0.
28976         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28977         NetBSD; the test fails on NetBSD 5.0.
28978         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28979         about NetBSD.
28980
28981 2010-11-21  Bruno Haible  <bruno@clisp.org>
28982
28983         Update for HP-UX 11.23 and HP-UX 11.31.
28984         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28985         HP-UX.
28986
28987 2010-11-21  Bruno Haible  <bruno@clisp.org>
28988
28989         Update for MacOS X 10.5.
28990         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28991         MacOS X; the test fails on MacOS X 10.5.8.
28992         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28993         about MacOS X.
28994
28995 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28996
28997         bootstrap: add bootstrap_sync option.
28998         See discussion at
28999         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29000         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29001         * build-aux/bootstrap: Accept --bootstrap-sync to update
29002         bootstrap if it is not identical to the local gnulib's
29003         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29004         enable this by default.  Accept --no-bootstrap-sync to disable
29005         it.
29006
29007 2010-11-20  Bruno Haible  <bruno@clisp.org>
29008
29009         Ensure that <features.h> is included before __GLIBC__ is tested.
29010         * lib/printf-parse.h: Include <features.h>.
29011         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29012         Reported by Mike Frysinger <vapier@gentoo.org>.
29013
29014         Ensure that <features.h> is included before __GLIBC__ is tested.
29015         * lib/wchar.in.h: Include <features.h>.
29016         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29017         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29018         Reported by Mike Frysinger <vapier@gentoo.org>.
29019
29020         Ensure that <features.h> is included before __GLIBC__ is tested.
29021         * lib/arpa_inet.in.h: Include <features.h>.
29022         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29023         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29024         Reported by Mike Frysinger <vapier@gentoo.org>.
29025
29026         Ensure that <features.h> is included before __GLIBC__ is tested.
29027         * build-aux/link-warning.h: Include <features.h>.
29028         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29029         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29030         Reported by Mike Frysinger <vapier@gentoo.org>.
29031
29032         Ensure that <features.h> is included before __GLIBC__ is tested.
29033         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29034         Reported by Mike Frysinger <vapier@gentoo.org>.
29035
29036 2010-11-20  Bruno Haible  <bruno@clisp.org>
29037
29038         memmem: Fix autoconf test.
29039         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29040
29041 2010-11-20  Bruno Haible  <bruno@clisp.org>
29042
29043         Port to uClibc.
29044         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29045         * lib/fcntl.in.h: Likewise.
29046         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29047         * lib/mbrtowc.c (mbrtowc): Likewise.
29048         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29049         * lib/strerror_r.c: Likewise.
29050         * lib/unistr/u8-strnlen.c: Likewise.
29051         * lib/vasnprintf.c (decimal_point_char): Likewise.
29052         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29053         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29054         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29055         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29056         * tests/test-sigaction.c (handler, main): Likewise.
29057         * lib/freading.h: Treat uClibc like a non-glibc platform.
29058         * lib/freading.c: Likewise.
29059         * lib/gettext.h: Likewise.
29060         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29061         Likewise.
29062         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29063         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29064         * lib/propername.c (proper_name_utf8): Likewise.
29065         * lib/spawn.in.h: Likewise.
29066         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29067         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29068         mem_cd_iconveh_internal): Likewise.
29069         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29070         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29071         strstr, strcasestr): Likewise.
29072         * lib/unicodeio.c (unicode_to_mb): Likewise.
29073         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29074         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29075         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29076         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29077         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29078         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29079         * lib/unistr/u8-stpncpy.c: Likewise.
29080         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29081         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29082         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29083         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29084         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29085         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29086         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29087         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29089         Likewise.
29090         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29091         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29092         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29093         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29094         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29095         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29096         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29097         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29098         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29099         * tests/test-striconveha.c (main): Likewise.
29100         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29101         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29102         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29103         * doc/posix-functions/getline.texi: Likewise.
29104         Reported by Mike Frysinger <vapier@gentoo.org>.
29105
29106 2010-11-20  Bruno Haible  <bruno@clisp.org>
29107
29108         nproc: Fix condition.
29109         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29110         HAVE_PTHREAD_AFFINITY_NP.
29111
29112 2010-11-20  Bruno Haible  <bruno@clisp.org>
29113
29114         Fix a comment.
29115         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29116
29117 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29118
29119         ftoastr: don't assume snprintf
29120         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29121         Implement a subset of snprintf here, by using sprintf safely.
29122         * modules/ftoastr (Depends-on): Remove snprintf.
29123
29124 2010-11-19  Jim Meyering  <meyering@redhat.com>
29125
29126         test-rename.h: fix compilation failure
29127         * tests/test-rename.h (test_rename): Add omitted "}".
29128
29129 2010-11-17  Jim Meyering  <meyering@redhat.com>
29130
29131         maint.mk: add a URL discussing the no-@acronym policy
29132         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29133
29134 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29135
29136         ftoastr: depend on snprintf, improve comments
29137         * lib/ftoastr.c: Also mention Loitsch's draft.
29138         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29139         needed in the current implementation, but it might simplify
29140         speeding up the code later.
29141         * modules/ftoastr: Depend on snprintf; this improves portability.
29142         Suggested by Bruno Haible in the same email.
29143
29144         ftoastr: port to hosts lacking strtof and strtold
29145         Problem reported by Bruno Haible in
29146         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29147         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29148         environment and strtold (and presumably strtof) are not available.
29149         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29150         (configure.ac): Require gl_C99_STRTOLD.
29151
29152 2010-11-18  Bruno Haible  <bruno@clisp.org>
29153
29154         c-strtold: Avoid link error on AIX 7.
29155         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29156         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29157         (gl_C_STRTOLD): Test whether strtold_l exists.
29158         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29159
29160 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29161
29162         intprops: new macro INT_BITS_STRLEN_BOUND
29163         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29164         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29165         not exposed.  Also, it uses a slightly tighter bound than before;
29166         though this makes no practical difference, we might as well be as
29167         tight as we easily can.
29168
29169         ftoastr: new module, for lossless conversion of floats to short strings
29170         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29171         * modules/ftoastr: New files.
29172
29173 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29174
29175         bootstrap: port to Solaris sed
29176         * build-aux/bootstrap (get_version): Port to Solaris sed.
29177         See Ralf Wildenhues's note in
29178         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29179
29180 2010-11-14  Jim Meyering  <meyering@redhat.com>
29181
29182         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29183         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29184         and move definition closer to sole use.
29185
29186 2010-11-13  Jim Meyering  <meyering@redhat.com>
29187
29188         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29189         Now we require at least autoconf-2.59, which means the work-around
29190         is no longer needed.
29191         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29192         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29193         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29194         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29195         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29196
29197 2010-11-13  Bruno Haible  <bruno@clisp.org>
29198
29199         rename, renameat: Avoid test failures at NFS mounted locations.
29200         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29201         functions.
29202         (test_rename): Use assert_nonexistent.
29203         * tests/test-rename.c: Include <dirent.h>.
29204         * tests/test-renameat.c: Likewise.
29205         Reported by Gary V. Vaughan <gary@gnu.org>.
29206
29207         rename, renameat: Document Linux bug with NFS
29208         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29209         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29210         * doc/posix-functions/renameat.texi: Likewise.
29211         Suggested by Eric Blake.
29212
29213 2010-11-13  Bruno Haible  <bruno@clisp.org>
29214
29215         rename test: Add comments.
29216         * tests/test-rename.h (test_rename): Add structure and comments.
29217
29218 2010-11-13  Eric Blake  <eblake@redhat.com>
29219
29220         maintainer-makefile: cover a few more files
29221         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29222         scripts generated within C files, for libvirt.
29223
29224 2010-11-13  Bruno Haible  <bruno@clisp.org>
29225
29226         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29227         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29228         character, return the number of bytes that belong together, not always
29229         1.
29230         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29231         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29232         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29233         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29234         number of bytes of an invalid character.
29235         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29236         (main): Invoke it.
29237         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29238         results.
29239         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29240         malformed byte sequences.
29241         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29242         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29243         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29244         Reported by Ben Pfaff and Paolo Bonzini.
29245
29246 2010-11-13  Bruno Haible  <bruno@clisp.org>
29247
29248         openat: Work around glibc bug with fchownat() and empty file names.
29249         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29250         (gl_FUNC_FCHOWNAT): Invoke it.
29251         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29252         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29253         Reported by Gary V. Vaughan <gary@gnu.org>.
29254
29255 2010-11-13  Bruno Haible  <bruno@clisp.org>
29256
29257         openat: Ensure autoconf macro ordering.
29258         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29259         gl_USE_SYSTEM_EXTENSIONS.
29260         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29261
29262 2010-11-13  Bruno Haible  <bruno@clisp.org>
29263
29264         Update comments.
29265         * lib/unistr/u8-check.c: Update file name in comments.
29266         * lib/unistr/u8-mblen.c: Likewise.
29267         * lib/unistr/u8-prev.c: Likewise.
29268         * lib/unistr/u8-strmblen.c: Likewise.
29269         * lib/unistr/u8-strmbtouc.c: Likewise.
29270
29271 2010-11-13  Jim Meyering  <meyering@redhat.com>
29272
29273         tests: avoid test failure on Solaris 10 due to lack of PATH export
29274         * tests/test-update-copyright.sh: Don't forget to export PATH.
29275
29276         init.sh: ensure that IFS is defined, just in case...
29277         * tests/init.sh (setup_): Ensure that IFS is defined,
29278         so that saving and restoring it works as expected.  This
29279         appears to be useful at least for an old version of dash
29280         from a long time ago (RH 6).  See here for details:
29281         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29282
29283         maint.mk: tighten "test a == b" check
29284         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29285         test to files that contain something like #!/bin/sh.
29286         Without this, coreutils would get two false positives in
29287         the comments of C source files.
29288
29289 2010-11-12  Eric Blake  <eblake@redhat.com>
29290
29291         bootstrap: fix typo in previous attempt
29292         * build-aux/bootstrap (buildreq): Correct the grouping.
29293         Reported by Paul Eggert.
29294
29295         maintainer-makefile: prohibit test x == x
29296         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29297         Based on a report by Matthias Bolte.
29298
29299         bootstrap: allow FreeBSD gzip
29300         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29301         which has no '.' and goes to stderr.
29302         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29303         Reported by Matthias Bolte.
29304
29305         maintainer-makefile: check for i18n setup
29306         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29307         will likely work.
29308
29309 2010-11-12  Bruno Haible  <bruno@clisp.org>
29310
29311         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29312         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29313         * lib/nanosleep.c (nanosleep): Likewise.
29314
29315 2010-11-11  Bruno Haible  <bruno@clisp.org>
29316
29317         fcntl-h: Fix for use of C++ on glibc systems.
29318         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29319         also on glibc systems in C++ mode.
29320         Reported by Gary V. Vaughan <gary@gnu.org>.
29321
29322 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29323
29324         mknod: avoid false failure with dash
29325         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29326
29327 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29328
29329         unlink: Fix "is it should" typo in diagnostic.
29330         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29331         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29332
29333 2010-11-11  Bruno Haible  <bruno@clisp.org>
29334
29335         Tests for module 'strerror_r-posix'.
29336         * modules/strerror_r-posix-tests: New file.
29337         * tests/test-strerror_r.c: New file.
29338         * tests/test-string-c++.cc: Check the signature of strerror_r.
29339
29340         New module 'strerror_r-posix'.
29341         * lib/string.in.h (strerror_r): New declaration.
29342         * lib/strerror_r.c: New file.
29343         * m4/strerror_r.m4: New file.
29344         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29345         of strerror_r.
29346         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29347         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29348         * modules/strerror_r-posix: New file.
29349         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29350         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29351         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29352         portability problems.
29353
29354 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29355
29356         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29357         line is also considered for output. Quoted function name in shell
29358         command, so temporary files for functions like MyClass::operator()
29359         are removed correctly without errors.
29360
29361 2010-11-09  Bruno Haible  <bruno@clisp.org>
29362
29363         * doc/posix-functions/strerror.texi: List more failing platforms.
29364
29365         * doc/posix-functions/strerror.texi: Add a comment.
29366
29367 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29368
29369         fdopendir: fix bug on MacOS X when low on file descriptors
29370
29371         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29372         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29373         All callers changed.
29374         (fdopendir): Invoke save_cwd at the top level, not after using
29375         multiple dup() calls to use up file descriptors.  Then retry
29376         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29377         less than the maximum number of open file descriptors, because
29378         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29379         on Mac OS X 10.6.4 for tar 1.24
29380         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29381         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29382         and for tar 1.25
29383         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29384
29385 2010-11-07  Bruno Haible  <bruno@clisp.org>
29386
29387         vasnprintf: Support I flag on glibc systems.
29388         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29389         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29390         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29391         snprintf function.
29392         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29393         glibc systems.
29394         * tests/test-vasnprintf-posix3.c: New file.
29395         * modules/vasnprintf-posix-tests (Files): Add it.
29396         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29397
29398 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29399
29400         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29401         * MODULES.html.sh: For compiler warnings, use name
29402         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29403
29404 2010-11-05  Eric Blake  <eblake@redhat.com>
29405
29406         ceil, floor: avoid spurious failure with icc
29407         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29408         [denormals-as-zero] when optimizing without -mieee-fp option.
29409         * tests/test-floorf2.c (floorf_reference): Likewise.
29410         * tests/test-ceilf1.c (dummy): New function.
29411         (main): Use it to outsmart icc's optimization.
29412         * tests/test-floorf1.c (dummy, main): Likewise.
29413
29414         tests: require working signbit
29415         * modules/ceilf-tests (Depends-on): Add signbit.
29416         * modules/ceill-tests (Depends-on): Likewise.
29417         * modules/floorf-tests (Depends-on): Likewise.
29418         * modules/floorl-tests (Depends-on): Likewise.
29419         * modules/round-tests (Depends-on): Likewise.
29420         * modules/roundf-tests (Depends-on): Likewise.
29421         * modules/roundl-tests (Depends-on): Likewise.
29422         * modules/trunc-tests (Depends-on): Likewise.
29423         * modules/truncf-tests (Depends-on): Likewise.
29424         * modules/truncl-tests (Depends-on): Likewise.
29425
29426         strtod: work around icc bug
29427         * lib/strtod.c (minus_zero): Define to working value.
29428         (strtod): Use it to avoid icc bug.
29429
29430         copysign: enhance tests
29431         * modules/copysign-tests (Files): Add minus-zero.h.
29432         * tests/test-copysign.c (main): Also test zeros.
29433
29434 2010-11-04  Eric Blake  <eblake@redhat.com>
29435
29436         ceil, floor, round, trunc: enhance tests of -0
29437         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29438         * tests/test-ceill.c (main): Likewise.
29439         * tests/test-floorf1.c (main): Likewise.
29440         * tests/test-floorl.c (main): Likewise.
29441         * tests/test-round1.c (main): Likewise.
29442         * tests/test-roundf1.c (main): Likewise.
29443         * tests/test-roundl.c (main): Likewise.
29444         * tests/test-trunc1.c (main): Likewise.
29445         * tests/test-truncf1.c (main): Likewise.
29446         * tests/test-truncl.c (main): Likewise.
29447
29448 2010-11-04  Eric Blake  <eblake@redhat.com>
29449
29450         frexp, tests: work around ICC bug with -zero
29451         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29452         works with more compilers.
29453         * tests/minus-zero.h: New file.
29454         * modules/ceilf-tests (Files): Include it.
29455         * modules/ceill-tests (Files): Likewise.
29456         * modules/floorf-tests (Files): Likewise.
29457         * modules/floorl-tests (Files): Likewise.
29458         * modules/frexp-nolibm-tests (Files): Likewise.
29459         * modules/frexp-tests (Files): Likewise.
29460         * modules/frexpl-nolibm-tests (Files): Likewise.
29461         * modules/frexpl-tests (Files): Likewise.
29462         * modules/isnan-tests (Files): Likewise.
29463         * modules/isnand-nolibm-tests (Files): Likewise.
29464         * modules/isnand-tests (Files): Likewise.
29465         * modules/isnanf-nolibm-tests (Files): Likewise.
29466         * modules/isnanf-tests (Files): Likewise.
29467         * modules/isnanl-nolibm-tests (Files): Likewise.
29468         * modules/isnanl-tests (Files): Likewise.
29469         * modules/round-tests (Files): Likewise.
29470         * modules/roundf-tests (Files): Likewise.
29471         * modules/roundl-tests (Files): Likewise.
29472         * modules/ldexpl-tests (Files): Likewise.
29473         * modules/signbit-tests (Files): Likewise.
29474         * modules/snprintf-posix-tests (Files): Likewise.
29475         * modules/sprintf-posix-tests (Files): Likewise.
29476         * modules/strtod-tests (Files): Likewise.
29477         * modules/trunc-tests (Files): Likewise.
29478         * modules/truncf-tests (Files): Likewise.
29479         * modules/truncl-tests (Files): Likewise.
29480         * modules/vsnprintf-posix-tests (Files): Likewise.
29481         * modules/vsprintf-posix-tests (Files): Likewise.
29482         * modules/vasnprintf-posix-tests (Files): Likewise.
29483         * modules/vasprintf-posix-tests (Files): Likewise.
29484         * tests/test-ceilf1.c (main): Use it.
29485         * tests/test-ceill.c (main): Likewise.
29486         * tests/test-floorf1.c (main): Likewise.
29487         * tests/test-floorl.c (main): Likewise.
29488         * tests/test-frexp.c (main): Likewise.
29489         * tests/test-frexpl.c (main): Likewise.
29490         * tests/test-isnan.c (main): Likewise.
29491         * tests/test-isnand.h (main): Likewise.
29492         * tests/test-isnanf.h (main): Likewise.
29493         * tests/test-isnanl.h (main): Likewise.
29494         * tests/test-ldexpl.c (main): Likewise.
29495         * tests/test-round.c (main): Likewise.
29496         * tests/test-roundf.c (main): Likewise.
29497         * tests/test-roundl.c (main): Likewise.
29498         * tests/test-signbit.c (test_signbitf, test_signbitd)
29499         (test_signbitl): Likewise.
29500         * tests/test-snprintf-posix.h (test_function): Likewise.
29501         * tests/test-sprintf-posix.h (test_function): Likewise.
29502         * tests/test-strtod.c (main): Likewise.
29503         * tests/test-trunc1.c (main): Likewise.
29504         * tests/test-truncf1.c (main): Likewise.
29505         * tests/test-truncl.c (main): Likewise.
29506
29507         isnanl: work around icc bug
29508         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29509
29510 2010-11-03  Eric Blake  <eblake@redhat.com>
29511
29512         tests: fix compiler warnings
29513         * tests/test-getopt.h (test_getopt): Fix condition.
29514         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29515         * tests/test-pipe2.c (main): Likewise.
29516         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29517
29518         utimens: fix broken m4 test
29519         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29520
29521 2010-10-28  Bruno Haible  <bruno@clisp.org>
29522
29523         posix_spawn*, getdtablesize: Relax license.
29524         * modules/posix_spawn (License): Change to LGPLv2+.
29525         * modules/posix_spawnp (License): Likewise.
29526         * modules/posix_spawn-internal (License): Likewise.
29527         * modules/posix_spawnattr_init (License): Likewise.
29528         * modules/posix_spawnattr_getflags (License): Likewise.
29529         * modules/posix_spawnattr_setflags (License): Likewise.
29530         * modules/posix_spawnattr_getpgroup (License): Likewise.
29531         * modules/posix_spawnattr_setpgroup (License): Likewise.
29532         * modules/posix_spawnattr_getschedparam (License): Likewise.
29533         * modules/posix_spawnattr_setschedparam (License): Likewise.
29534         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29535         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29536         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29537         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29538         * modules/posix_spawnattr_getsigmask (License): Likewise.
29539         * modules/posix_spawnattr_setsigmask (License): Likewise.
29540         * modules/posix_spawnattr_destroy (License): Likewise.
29541         * modules/posix_spawn_file_actions_init (License): Likewise.
29542         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29543         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29544         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29545         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29546         * modules/getdtablesize (License): Likewise.
29547         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29548
29549 2010-10-26  Bruno Haible  <bruno@clisp.org>
29550
29551         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29552         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29553         Cygwin and mingw.
29554         Suggested by Eric Blake.
29555
29556 2010-10-26  Bruno Haible  <bruno@clisp.org>
29557
29558         stdio: Work around compilation error due to renameat() on Solaris 10.
29559         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29560         * lib/renameat.c: Don't include <unistd.h> here.
29561         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29562         Reported by Paul Eggert and Eric Blake.
29563
29564 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29565
29566         renameat: port to Solaris 10, which declares renameat in unistd.h
29567
29568         * lib/renameat.c: Include unistd.h before stdio.h, because
29569         Solaris 10 declares renameat in unistd.h.  Problem encountered
29570         when building GNU tar 1.24 on Solaris 10.
29571
29572 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29573
29574         fdopendir: fix C89 compilation
29575         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29576         compilers.
29577
29578 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29579
29580         inttostr: simplify by removing unnecessary redundancy
29581         * lib/anytostr.c: Don't include verify.h.
29582         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29583         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29584         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29585         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29586         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29587         Likewise.
29588         * modules/inttostr (Depends-on): Remove 'verify'.
29589
29590 2010-10-23  Bruno Haible  <bruno@clisp.org>
29591
29592         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29593         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29594         Reported by Eric Blake.
29595
29596 2010-10-23  Bruno Haible  <bruno@clisp.org>
29597
29598         Tests: Fix LOCALE_JA on MirBSD 10.
29599         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29600         to an UTF-8 locale.
29601         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29602         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29603         Reported by Eric Blake.
29604
29605 2010-10-21  Bruno Haible  <bruno@clisp.org>
29606
29607         nl_langinfo test: Avoid test failure on NetBSD 5.
29608         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29609         Reported by Eric Blake.
29610
29611 2010-10-21  Eric Blake  <eblake@redhat.com>
29612
29613         c-stack: work around libsigsegv 2.8 bug
29614         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29615         overflow on at least PowerPC64.
29616
29617 2010-10-17  Bruno Haible  <bruno@clisp.org>
29618
29619         userspec: Drop redundant file.
29620         * modules/userspec (Files): Remove lib/inttostr.h.
29621
29622 2010-10-17  Bruno Haible  <bruno@clisp.org>
29623
29624         nl_langinfo tests: Silence some warnings.
29625         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29626         Reported by Jim Meyering.
29627
29628 2010-10-17  Bruno Haible  <bruno@clisp.org>
29629
29630         Make use of GCC's attribute __alloc_size__.
29631         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29632         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29633         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29634         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29635         __alloc_size__.
29636         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29637         Suggested by Jim Meyering.
29638
29639 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29640
29641         bootstrap: anchor .gitignore entries.
29642         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29643         with...
29644         (insert_vc_ignore): ... this new function, which prepends `/' to
29645         all .gitignore entries before passing them to
29646         insert_sorted_if_absent.
29647
29648 2010-10-16  Bruno Haible  <bruno@clisp.org>
29649
29650         nextafter: Fix configure check.
29651         * modules/nextafter (configure.ac): Correct expected prototype.
29652
29653 2010-10-16  Bruno Haible  <bruno@clisp.org>
29654
29655         termios: Update documentation.
29656         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29657
29658 2010-10-16  Bruno Haible  <bruno@clisp.org>
29659
29660         tests: Make them compile with TinyCC.
29661         * tests/test-strstr.c (main): Remove parentheses around array
29662         initializer.
29663
29664 2010-10-15  Eric Blake  <eblake@redhat.com>
29665
29666         ignore-value: make header idempotent
29667         * lib/ignore-value.h: Add double-inclusion guards.
29668         Reported by Stefan Berger.
29669
29670 2010-10-15  Jim Meyering  <meyering@redhat.com>
29671
29672         GNUmakefile: handle "stable" target, not "major"
29673         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29674         lists in maint.mk and announce-gen.  Without this, "make stable"
29675         would fail to ensure that $(VERSION) is up to date.
29676
29677 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29678
29679         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29680         & co.
29681
29682 2010-10-14  Bruno Haible  <bruno@clisp.org>
29683
29684         vasnprintf: Don't set errno to 0.
29685         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29686         block that sets it to 0.
29687         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29688
29689 2010-10-14  Bruno Haible  <bruno@clisp.org>
29690
29691         socketlib: Fix.
29692         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29693         gl_PREREQ_SYS_H_WINSOCK2.
29694         Reported by Ian Beckwith <ianb@erislabs.net>.
29695
29696 2010-10-13  Jim Meyering  <meyering@redhat.com>
29697
29698         test-select-stdin.c: avoid warn_unused_result warnings
29699         * tests/test-select-stdin.c: Include "macros.h".
29700         ASSERT that read and fflush succeed.
29701
29702 2010-10-13  Jim Meyering  <meyering@redhat.com>
29703
29704         git-version-gen: do require git-VC'd files in cwd
29705         * build-aux/git-version-gen: Reject a git version string
29706         if there are no commits associated with the current directory.
29707         This avoids an unlikely false-positive (unrelated dir whose parent
29708         repository also contains a tag matching v*), as pointed out
29709         by Giuseppe Scrivano in
29710         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29711
29712 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29713
29714         argv-iter: omit nonconforming declaration
29715         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29716         enum arg_iter_err declaration, which doesn't conform to C99.
29717         Solaris 10 cc warns about this.
29718
29719 2010-10-13  Eric Blake  <eblake@redhat.com>
29720
29721         termios: fix compilation on mingw
29722         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29723         (gl_TERMIOS_H): Adjust it on mingw.
29724         * modules/termios (Makefile.am): Substitute new key.
29725         * lib/termios.in.h (includes): Make include_next conditional.
29726         * doc/posix-headers/termios.texi (termios.h): Update
29727         documentation.
29728         Reported by Daniel P. Berrange.
29729
29730 2010-10-13  Jim Meyering  <meyering@redhat.com>
29731
29732         git-version-gen: don't require that .git/ be in the current dir
29733         * build-aux/git-version-gen: Adjust this script so that it works
29734         when run from any working directory beneath the top-level .git/-
29735         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29736         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29737
29738         test-select: avoid warn_unused_result warnings
29739         * tests/test-select.c: Include "macros.h".
29740         ASSERT that each call to read, write, and pipe succeeds.
29741         While not technically required, also check each "close".
29742         * modules/select-tests (Files): Add tests/macros.h.
29743
29744         test-symlinkat: remove declaration of unused local
29745         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29746
29747         test-inttostr: avoid shadowing warnings
29748         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29749         and use malloc rather than the stack for the same reason as
29750         mentioned in the comment justifying the other allocation.
29751
29752 2010-10-11  Bruno Haible  <bruno@clisp.org>
29753
29754         stdlib: Allow multiple gnulib generated replacements to coexist.
29755         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29756         Reported by Sam Steingold <sds@gnu.org>.
29757
29758 2010-10-11  Jim Meyering  <meyering@redhat.com>
29759
29760         fix a documentation typo
29761         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29762
29763 2010-10-11  Eric Blake  <eblake@redhat.com>
29764
29765         futimens: work around Solaris 11 bug
29766         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29767         * tests/test-futimens.h (test_futimens): Enhance, rather than
29768         weaken test.
29769         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29770
29771 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29772
29773         Indentation.
29774         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29775         higher-level operators more to the left.
29776
29777 2010-10-11  Jim Meyering  <meyering@redhat.com>
29778
29779         test-futimens: avoid unwarranted test failure on Solaris 5.11
29780         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29781         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29782         because it tries to dereference the NULL name argument.
29783
29784 2010-10-11  Bruno Haible  <bruno@clisp.org>
29785
29786         Indentation.
29787         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29788         indentation.
29789
29790 2010-10-11  Jim Meyering  <meyering@redhat.com>
29791
29792         spawn.in.h: make indentation consistent with parentheses
29793         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29794         Make indentation consistent with parentheses.
29795
29796 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
29797
29798         Fix mismatched parens in previous commit
29799         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
29800         parens.
29801
29802 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29803
29804         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
29805
29806         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
29807         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
29808         * lib/malloca.c: Include "verify.h".
29809         (verify1): Remove, replacing with a verify call.
29810         * lib/relocwrapper.c (verify1): Likewise.
29811         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
29812         Likewise.
29813         * modules/malloca (Depends-on): Add 'verify'.
29814         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
29815         * modules/vasnprintf (Depends-on): Add 'verify'.
29816         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29817         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29818         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29819         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29820         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29821         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29822         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29823
29824         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
29825
29826         Formerly the style was sometimes 2*X - 1, because the C standard
29827         was wrongly thought to disallow ?: in integral constant expressions.
29828         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
29829         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
29830         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
29831         * lib/stdint.in.h (_verify_intmax_size): Likewise.
29832         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
29833         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
29834         verify that time_t cannot be floating.
29835
29836 2010-10-08  Eric Blake  <eblake@redhat.com>
29837
29838         time: enforce recent POSIX ruling that time_t is integral
29839         * lib/time.in.h (__time_t_must_be_integral): Detect any
29840         problematic systems, allowing the rest of gnulib to assume POSIX.
29841
29842 2010-10-08  Jim Meyering  <meyering@redhat.com>
29843
29844         fdopendir: fix a bug on systems lacking openat and /proc support
29845         OpenBSD 4.7 is one such system.  The most noticeable effect was
29846         failure of any application making nontrivial use of fts: rm, du,
29847         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29848           ./rm: traversal failed: `a': Bad file descriptor
29849         Debugging that, you see that even though FD 6 was closed just
29850         prior to the opendir call in fd_clone_opendir, its resulting
29851         dir->dd_fd was 8, rather than the expected value of 6:
29852
29853         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29854         93                close (fd);
29855         (gdb) n
29856         94                dir = fd_clone_opendir (dupfd);
29857         (gdb) n
29858         95                saved_errno = errno;
29859         (gdb) p dir->dd_fd
29860         $11 = 8
29861
29862         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29863         The problem is that on OpenBSD, fd_clone_opendir has to resort
29864         to using the old-style save/restore CWD mechanism, due to its
29865         lack of openat/proc support, and *that* would steal the FD (6)
29866         that opendir was supposed to use.
29867
29868         The fix is to squirrel away the desired FD so that save_cwd uses a
29869         different one, and then free the dest FD right before calling opendir.
29870         That guarantees opendir will use the required file descriptor.
29871
29872         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29873
29874 2010-10-08  Bruno Haible  <bruno@clisp.org>
29875
29876         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29877         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29878
29879 2010-10-08  Bruno Haible  <bruno@clisp.org>
29880
29881         nanosleep: Make replacement POSIX compliant.
29882         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29883         is out of range.
29884         Reported by Jim Meyering.
29885
29886 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29887
29888         bootstrap: add hook for altering gnulib.mk, for Bison
29889         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29890         the Bison bootstrapping process can rewrite file names and variables
29891         in this file before later parts of 'bootstrap' use the file.
29892         Bison wants to include lib/gnulib.mk from the top-level makefile,
29893         so it needs the file names in this file to be relative to the top
29894         level, not relative to lib; plus it needs variable names to be
29895         rewritten.
29896         (slurp): Use the new function.
29897
29898         bootstrap: reformat for readability
29899         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29900
29901 2010-10-08  Eric Blake  <eblake@redhat.com>
29902
29903         docs: update cygwin progress
29904         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29905         1.7.7.
29906         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29907         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29908         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29909         * doc/posix-functions/carg.texi (carg): Likewise.
29910         * doc/posix-functions/cargf.texi (cargf): Likewise.
29911         * doc/posix-functions/casin.texi (casin): Likewise.
29912         * doc/posix-functions/casinf.texi (casinf): Likewise.
29913         * doc/posix-functions/casinh.texi (casinh): Likewise.
29914         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29915         * doc/posix-functions/catan.texi (catan): Likewise.
29916         * doc/posix-functions/catanf.texi (catanf): Likewise.
29917         * doc/posix-functions/catanh.texi (catanh): Likewise.
29918         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29919         * doc/posix-functions/ccos.texi (ccos): Likewise.
29920         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29921         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29922         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29923         * doc/posix-functions/cexp.texi (cexp): Likewise.
29924         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29925         * doc/posix-functions/cimag.texi (cimag): Likewise.
29926         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29927         * doc/posix-functions/clog.texi (clog): Likewise.
29928         * doc/posix-functions/clogf.texi (clogf): Likewise.
29929         * doc/posix-functions/conj.texi (conj): Likewise.
29930         * doc/posix-functions/conjf.texi (conjf): Likewise.
29931         * doc/posix-functions/cpow.texi (cpow): Likewise.
29932         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29933         * doc/posix-functions/cproj.texi (cproj): Likewise.
29934         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29935         * doc/posix-functions/creal.texi (creal): Likewise.
29936         * doc/posix-functions/crealf.texi (crealf): Likewise.
29937         * doc/posix-functions/csin.texi (csin): Likewise.
29938         * doc/posix-functions/csinf.texi (csinf): Likewise.
29939         * doc/posix-functions/csinh.texi (csinh): Likewise.
29940         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29941         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29942         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29943         * doc/posix-functions/ctan.texi (ctan): Likewise.
29944         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29945         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29946         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29947         * doc/posix-headers/complex.texi (complex.h): Likewise.
29948
29949 2010-10-07  Jim Meyering  <meyering@redhat.com>
29950
29951         parse-datetime: avoid compilation failure on OpenBSD 4.7
29952         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29953         This works around a compilation failure on OpenBSD 4.7:
29954         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29955
29956 2010-10-07  Eric Blake  <eblake@redhat.com>
29957
29958         docs: update cygwin progress
29959         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29960         1.7.6.
29961         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29962         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29963         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29964         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29965         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29966         Likewise.
29967         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29968         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29969         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29970         Likewise.
29971         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29972         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29973         Likewise.
29974         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29975         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29976         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29977         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29978         Likewise.
29979         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29980         Likewise.
29981         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29982
29983         docs: update parse-datetime history
29984         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29985         documentation of this function's history and alternatives.
29986
29987         cygwin: use more robust version check
29988         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29989         exclude an eventual cygwin 1.9.1.
29990         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29991         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29992         (gl_FUNC_STRCASESTR): Likewise.
29993         Reported by Bruno Haible.
29994
29995 2010-10-06  Bruno Haible  <bruno@clisp.org>
29996
29997         string, sys_select: Avoid #including large headers unless necessary.
29998         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29999         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30000         OSF/1, BeOS, Haiku.
30001         Reported by Jim Meyering.
30002
30003 2010-10-05  Eric Blake  <eblake@redhat.com>
30004
30005         memmem, strstr, strcasestr: fix bug with long periodic needle
30006         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30007         periodic needle having false positive.
30008         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30009         and cygwin 1.7.7.
30010         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30011         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30012         (gl_FUNC_STRCASESTR): Likewise.
30013         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30014         * tests/test-memmem.c (main): Expose the bug.
30015         * tests/test-strcasestr.c (main): Likewise.
30016         * tests/test-strstr.c (main): Likewise.
30017         * tests/test-c-strcasestr.c (main): Likewise.
30018         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30019         * doc/posix-functions/strstr.texi (strstr): Likewise.
30020         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30021         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30022
30023 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30024
30025         parse-datetime: do some more renaming
30026         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30027         parse_datetime, not get_date.  Mention the renaming.
30028         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30029         in comments.
30030         * m4/bison.m4: Likewise.
30031
30032 2010-10-05  Eric Blake  <eblake@redhat.com>
30033
30034         parse-datetime: better name than get_date
30035         * NEWS: Reword the deprecation notice.
30036         * modules/get_date: Rename to modules/parse-datetime.
30037         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30038         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30039         * lib/get_date.y: Rename to lib/parse-datetime.y.
30040         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30041         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30042         * doc/getdate.texi: Provide fallback wrapper.
30043         * lib/getdate.h: Move guts, and wrap...
30044         * lib/parse-datetime.h: ...new file.
30045         * lib/parse-datetime.y (get_date): Rename...
30046         (parse_datetime): ...to this.
30047         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30048         (gl_PARSE_DATETIME): ...to this.
30049         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30050         documentation.
30051         * modules/getdate (Files): Provide fallback docs and header.
30052         (Notice, Depends-on): Update references.
30053         * tests/test-parse-datetime.c: Likewise.
30054         * DEPENDENCIES: Likewise.
30055         * MODULES.html.sh (Date and time <time.h>): Likewise.
30056         * doc/parse-datetime.texi (Date input formats)
30057         (Authors of parse_datetime): Likewise.
30058         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30059         (Include): Likewise.
30060         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30061         * gnulib-tool: Likewise.
30062         * m4/bison.m4 (gl_BISON): Likewise.
30063         Suggested by Bruno Haible.
30064
30065 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30066
30067         more ports to Solaris tr, which needs [] around ranges
30068         * gnulib-tool: Solaris tr needs [] around ranges.
30069         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30070         * tests/test-pipe-filter-gi1.c (main): Likewise.
30071         * tests/test-pipe-filter-ii1.c (main): Likewise.
30072
30073 2010-10-05  Eric Blake  <eblake@redhat.com>
30074
30075         bootstrap: fix Solaris regression
30076         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30077         around ranges.
30078         Reported by Pádraig Brady.
30079
30080         bootstrap: work with pkg-config
30081         * build-aux/bootstrap (check_versions): Also transliterate - in
30082         prerequisite name.
30083         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30084         prerequisites that were already found, to avoid confusion.
30085         Reported by Justin Clift.
30086
30087         faccessat: remove unused wrappers
30088         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30089         presence of these wrappers dragged in -lgen on Solaris.
30090         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30091
30092 2010-10-05  Jim Meyering  <meyering@redhat.com>
30093
30094         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30095         * Makefile (sc_pragma_columns): New syntax-check rule.
30096
30097 2010-10-04  Bruno Haible  <bruno@clisp.org>
30098
30099         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30100         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30101         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30102         Reported by Bruce Korb and Eric Blake.
30103
30104 2010-10-04  Bruno Haible  <bruno@clisp.org>
30105
30106         threadlib: Make option --with-libpth-prefix work.
30107         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30108         use $LIBPTH, not just -lpth.
30109
30110 2010-10-04  Bruno Haible  <bruno@clisp.org>
30111
30112         Avoid line length limitation from HP NonStop system header files.
30113         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30114         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30115         * lib/ctype.in.h: Likewise.
30116         * lib/dirent.in.h: Likewise.
30117         * lib/errno.in.h: Likewise.
30118         * lib/fcntl.in.h: Likewise.
30119         * lib/float.in.h: Likewise.
30120         * lib/getopt.in.h: Likewise.
30121         * lib/iconv.in.h: Likewise.
30122         * lib/inttypes.in.h: Likewise.
30123         * lib/langinfo.in.h: Likewise.
30124         * lib/locale.in.h: Likewise.
30125         * lib/math.in.h: Likewise.
30126         * lib/netdb.in.h: Likewise.
30127         * lib/netinet_in.in.h: Likewise.
30128         * lib/poll.in.h: Likewise.
30129         * lib/pthread.in.h: Likewise.
30130         * lib/pty.in.h: Likewise.
30131         * lib/sched.in.h: Likewise.
30132         * lib/se-selinux.in.h: Likewise.
30133         * lib/search.in.h: Likewise.
30134         * lib/signal.in.h: Likewise.
30135         * lib/spawn.in.h: Likewise.
30136         * lib/stdarg.in.h: Likewise.
30137         * lib/stddef.in.h: Likewise.
30138         * lib/stdint.in.h: Likewise.
30139         * lib/stdio.in.h: Likewise.
30140         * lib/stdlib.in.h: Likewise.
30141         * lib/string.in.h: Likewise.
30142         * lib/strings.in.h: Likewise.
30143         * lib/sys_file.in.h: Likewise.
30144         * lib/sys_ioctl.in.h: Likewise.
30145         * lib/sys_select.in.h: Likewise.
30146         * lib/sys_socket.in.h: Likewise.
30147         * lib/sys_stat.in.h: Likewise.
30148         * lib/sys_time.in.h: Likewise.
30149         * lib/sys_times.in.h: Likewise.
30150         * lib/sys_utsname.in.h: Likewise.
30151         * lib/sys_wait.in.h: Likewise.
30152         * lib/sysexits.in.h: Likewise.
30153         * lib/termios.in.h: Likewise.
30154         * lib/time.in.h: Likewise.
30155         * lib/unistd.in.h: Likewise.
30156         * lib/wchar.in.h: Likewise.
30157         * lib/wctype.in.h: Likewise.
30158         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30159         * modules/ctype (Makefile.am): Likewise.
30160         * modules/dirent (Makefile.am): Likewise.
30161         * modules/errno (Makefile.am): Likewise.
30162         * modules/fcntl-h (Makefile.am): Likewise.
30163         * modules/float (Makefile.am): Likewise.
30164         * modules/getopt-posix (Makefile.am): Likewise.
30165         * modules/iconv-h (Makefile.am): Likewise.
30166         * modules/inttypes (Makefile.am): Likewise.
30167         * modules/langinfo (Makefile.am): Likewise.
30168         * modules/locale (Makefile.am): Likewise.
30169         * modules/math (Makefile.am): Likewise.
30170         * modules/netdb (Makefile.am): Likewise.
30171         * modules/netinet_in (Makefile.am): Likewise.
30172         * modules/poll-h (Makefile.am): Likewise.
30173         * modules/pthread (Makefile.am): Likewise.
30174         * modules/pty (Makefile.am): Likewise.
30175         * modules/sched (Makefile.am): Likewise.
30176         * modules/search (Makefile.am): Likewise.
30177         * modules/selinux-h (Makefile.am): Likewise.
30178         * modules/signal (Makefile.am): Likewise.
30179         * modules/spawn (Makefile.am): Likewise.
30180         * modules/stdarg (Makefile.am): Likewise.
30181         * modules/stddef (Makefile.am): Likewise.
30182         * modules/stdint (Makefile.am): Likewise.
30183         * modules/stdio (Makefile.am): Likewise.
30184         * modules/stdlib (Makefile.am): Likewise.
30185         * modules/string (Makefile.am): Likewise.
30186         * modules/strings (Makefile.am): Likewise.
30187         * modules/sys_file (Makefile.am): Likewise.
30188         * modules/sys_ioctl (Makefile.am): Likewise.
30189         * modules/sys_select (Makefile.am): Likewise.
30190         * modules/sys_socket (Makefile.am): Likewise.
30191         * modules/sys_stat (Makefile.am): Likewise.
30192         * modules/sys_time (Makefile.am): Likewise.
30193         * modules/sys_times (Makefile.am): Likewise.
30194         * modules/sys_utsname (Makefile.am): Likewise.
30195         * modules/sys_wait (Makefile.am): Likewise.
30196         * modules/sysexits (Makefile.am): Likewise.
30197         * modules/termios (Makefile.am): Likewise.
30198         * modules/time (Makefile.am): Likewise.
30199         * modules/unistd (Makefile.am): Likewise.
30200         * modules/wchar (Makefile.am): Likewise.
30201         * modules/wctype (Makefile.am): Likewise.
30202
30203 2010-10-04  Bruno Haible  <bruno@clisp.org>
30204
30205         read-file tests: Avoid a test failure on NonStop Kernel.
30206         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30207         a regular file.
30208         Reported by Joachim Schmitz <schmitz@hp.com>.
30209
30210 2010-10-03  Bruno Haible  <bruno@clisp.org>
30211
30212         gnulib-tool: Fixes for --create-testdir with --libtool.
30213         * gnulib-tool (func_get_automake_snippet): Don't augment
30214         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30215         an executable.
30216         (func_create_testdir): Handle module 'alloca' like func_import.
30217         Reported by Bruce Korb <bruce.korb@gmail.com>.
30218
30219 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30220
30221         Avoid some lines longer than 80 characters.
30222         * lib/stdint.in.h: Break long comment lines.
30223         * lib/math.in.h: Likewise.
30224         (_GL_NUM_UINT_WORDS): New macro, for readability.
30225         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30226         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30227         * lib/stdlib.in.h: Likewise.
30228         * lib/spawn.in.h: Likewise.
30229         * lib/sys_socket.in.h: Update an URL.
30230         * lib/sys_stat.in.h: Break long line.
30231
30232 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30233
30234         Improve pmccabe2html.
30235         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30236         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30237         when the sources change. Remove the line in the HTML about "Used
30238         ranges" (which implied that there might be other unused ranges),
30239         rename "Resume" to "Summary" (easier to understand for more users).
30240         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30241         styles, and some unnecessary blank lines.
30242
30243 2010-10-03  Bruno Haible  <bruno@clisp.org>
30244             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30245
30246         acl: Add support for ACLs on NonStop Kernel.
30247         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30248         Check whether the function aclsort() exists.
30249         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30250         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30251         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30252         (acl_nontrivial [HAVE_ACLSORT]: New function.
30253         (file_has_acl): Implement for NonStop Kernel.
30254         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30255         (qset_acl): Implement for NonStop Kernel.
30256         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30257         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30258         (main): Implement for NonStop Kernel.
30259         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30260         Kernel. Handle this flavor.
30261         * tests/test-set-mode-acl.sh: Likewise.
30262         * tests/test-copy-acl.sh: Likewise.
30263         * tests/test-copy-file.sh: Likewise.
30264
30265 2010-10-03  Bruno Haible  <bruno@clisp.org>
30266
30267         Info about ACLs on NonStop Kernel.
30268         * doc/acl-resources.txt: Add info about NonStop Kernel.
30269         References by Joachim Schmitz <schmitz@hp.com>.
30270
30271 2010-10-02  Bruno Haible  <bruno@clisp.org>
30272
30273         Define missing EDQUOT on NonStop Kernel.
30274         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30275         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30276         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30277         missing.
30278         * doc/posix-headers/errno.texi: Mention the NSK bug.
30279         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30280         Reported by Joachim Schmitz <schmitz@hp.com>.
30281
30282 2010-10-02  Bruno Haible  <bruno@clisp.org>
30283
30284         Update doc for POSIX:2008.
30285         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30286         Update URL of POSIX specification.
30287
30288 2010-10-02  Bruno Haible  <bruno@clisp.org>
30289
30290         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30291         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30292         from gnulib, not from Automake.
30293
30294 2010-10-02  Bruno Haible  <bruno@clisp.org>
30295
30296         New module 'system-posix'.
30297         * modules/system-posix: New file.
30298         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30299         module is present.
30300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30301         GNULIB_SYSTEM_POSIX.
30302         * modules/stdlib (Depends-on): Remove sys_wait.
30303         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30304         * doc/posix-functions/system.texi: Mention the new module.
30305         * doc/posix-headers/stdlib.texi: Likewise.
30306         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30307         define test_sys_wait_macros to a no-op.
30308         Reported by Sam Steingold <sds@gnu.org>.
30309
30310 2010-09-30  Bruno Haible  <bruno@clisp.org>
30311
30312         More renaming from 'getdate' to 'get_date'.
30313         * doc/get_date.texi: Renamed from doc/getdate.texi.
30314         * modules/get_date (Files): Update.
30315         * MODULES.html.sh (Date and time <time.h>): Update.
30316         * DEPENDENCIES: Update.
30317         * gnulib-tool: Update comment.
30318         * m4/bison.m4 (gl_BISON): Likewise.
30319         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30320
30321 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30322
30323         bootstrap: support ACLOCAL_FLAGS during aclocal
30324         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30325         can add additional -I dir for third-party .m4 files.
30326
30327 2010-09-30  Eric Blake  <eblake@redhat.com>
30328
30329         bootstrap: use glibtoolize on MacOS
30330         * build-aux/bootstrap (check_versions): Convert libtool into
30331         libtoolize.
30332         (tool search): Move libtool check earlier, and look for
30333         glibtoolize for MacOS.
30334         (gnulib_tool_options): Auto-add --libtool when appropriate.
30335         Reported by Justin Clift.
30336
30337         poll: fix typo that broke test on MacOS
30338         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30339         Reported by Justin Clift.
30340
30341         getdate: rename to get_date
30342         Note: getdate.h is not renamed, to minimize client impact.
30343         * modules/getdate: Mark obsolete.  Move old contents...
30344         * modules/get_date: ...to new module name.
30345         * modules/getdate-tests: Move...
30346         * modules/get_date-tests: ...here.
30347         * m4/getdate.m4: Move...
30348         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30349         * lib/getdate.y: Move...
30350         * lib/get_date.y: ...here.
30351         * tests/test-getdate.c: Move...
30352         * tests/test-get_date.c: ...here.
30353         * doc/posix-functions/getdate.texi (getdate): Update name.
30354         * NEWS: Mention the change.
30355
30356 2010-09-29  Bruno Haible  <bruno@clisp.org>
30357
30358         Separate the module 'waitpid' from the module 'sys_wait'.
30359         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30360         present.
30361         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30362         gl_MODULE_INDICATOR_FOR_TESTS.
30363         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30364         * modules/sys_wait (Depends-on): Remove waitpid.
30365         (Makefile.am): Substitute GNULIB_WAITPID.
30366         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30367         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30368         signature only if the 'waitpid' module is present.
30369         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30370         * NEWS: Mention the change.
30371         * modules/grantpt (Depends-on): Add waitpid.
30372         * modules/wait-process (Depends-on): Likewise.
30373
30374 2010-09-29  Bruno Haible  <bruno@clisp.org>
30375
30376         More tests for module 'sys_wait'.
30377         * modules/sys_wait-c++-tests: New file.
30378         * tests/test-sys_wait-c++.cc: New file.
30379         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30380         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30381
30382 2010-09-29  Bruno Haible  <bruno@clisp.org>
30383
30384         New module 'waitpid'.
30385         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30386         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30387         Don't include <process.h>.
30388         (waitpid): Declare only, using modern idiom.
30389         * m4/waitpid.m4: New file.
30390         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30391         * modules/waitpid: New file.
30392         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30393         (Makefile.am): Update.
30394         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30395
30396 2010-09-28  Bruno Haible  <bruno@clisp.org>
30397
30398         poll: Assume ANSI C.
30399         * lib/poll.c (poll): Use an ANSI C declaration.
30400
30401 2010-09-28  Bruno Haible  <bruno@clisp.org>
30402
30403         poll-h: Create poll.h on all platforms.
30404         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30405         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30406         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30407         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30408         (gl_REPLACE_POLL_H): Don't set POLL_H.
30409         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30410         * modules/poll-h (Depends-on): Add include_next.
30411         (Makefile.am): Create poll.h unconditionally. Substitute also
30412         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30413
30414 2010-09-28  Bruno Haible  <bruno@clisp.org>
30415
30416         Tests for module 'poll-h'.
30417         * modules/poll-h-c++-tests: New file.
30418         * tests/test-poll-h-c++.cc: New file.
30419
30420         Tests for module 'poll-h'.
30421         * modules/poll-h-tests: New file.
30422         * tests/test-poll-h.c: New file.
30423
30424 2010-09-28  Bruno Haible  <bruno@clisp.org>
30425
30426         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30427         * modules/poll-h (Depends-on): Add 'extensions'.
30428
30429 2010-09-28  Bruno Haible  <bruno@clisp.org>
30430
30431         New module 'poll-h'.
30432         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30433         (poll): Use modern idiom.
30434         * modules/poll-h: New file.
30435         * modules/poll (Files): Remove lib/poll.in.h.
30436         (Depends-on): Add poll-h.
30437         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30438         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30439         * m4/poll_h.m4: New file.
30440         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30441         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30442         and invoke gl_REPLACE_POLL_H.
30443         * lib/poll.c: Use common idiom.
30444         * tests/test-poll.c: Likewise.
30445         * doc/posix-headers/poll.texi: Mention the poll-h module.
30446         Suggested by Eric Blake.
30447
30448 2010-09-26  Bruno Haible  <bruno@clisp.org>
30449
30450         sys_wait: Implement WSTOPSIG.
30451         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30452         Reported by Simon Josefsson.
30453
30454 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30455
30456         stdlib, sys_wait: Avoid compilation error on mingw.
30457         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30458
30459 2010-09-26  Bruno Haible  <bruno@clisp.org>
30460
30461         stdlib tests: Avoid code duplication.
30462         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30463         * modules/sys_wait-tests (Files): Likewise.
30464         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30465         * tests/test-stdlib.c: Include test-sys_wait.h.
30466         (main): Invoke test_sys_wait_macros.
30467         * tests/test-sys_wait.c: Include test-sys_wait.h.
30468         (main): Invoke test_sys_wait_macros.
30469
30470 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30471
30472         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30473         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30474         sure Windows sockets are working before calling getaddrinfo.
30475         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30476         * doc/gnulib.texi (Windows sockets): Fix typo.
30477
30478 2010-09-25  Bruno Haible  <bruno@clisp.org>
30479
30480         Tests for module 'regex-quote'.
30481         * modules/regex-quote-tests: New file.
30482         * tests/test-regex-quote.c: New file.
30483
30484         New module 'regex-quote'.
30485         * lib/regex-quote.h: New file.
30486         * lib/regex-quote.c: New file.
30487         * modules/regex-quote: New file.
30488         Suggested by Reuben Thomas <rrt@sc3d.org>.
30489
30490 2010-09-24  Bruno Haible  <bruno@clisp.org>
30491
30492         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30493         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30494
30495 2010-09-23  Bruno Haible  <bruno@clisp.org>
30496
30497         setenv: Relax license.
30498         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30499         Blake.
30500         Requested by Eric Blake.
30501
30502 2010-09-22  Bruno Haible  <bruno@clisp.org>
30503
30504         termios: Relax license.
30505         * modules/termios (License): Change to LGPLv2+.
30506         Requested by Eric Blake.
30507
30508 2010-09-22  Bruno Haible  <bruno@clisp.org>
30509
30510         threadlib: Allow the package to change the default to 'no'.
30511         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30512         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30513         Reported by Paul Eggert.
30514
30515 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30516             Bruno Haible  <bruno@clisp.org>
30517
30518         Fix endless loop in mbmemcasecoll.
30519         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30520         byte.
30521         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30522
30523 2010-09-22  Bruno Haible  <bruno@clisp.org>
30524
30525         Tests for module 'memcoll'.
30526         * modules/memcoll-tests: New file.
30527         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30528
30529         memcoll, xmemcoll: Clarify size vs. length.
30530         * modules/memcoll.c (memcoll0): Clarify specification.
30531         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30532         passed to collate_error.
30533
30534 2010-09-22  Bruno Haible  <bruno@clisp.org>
30535
30536         Tests for module 'memcasecmp'.
30537         * modules/memcasecmp-tests: New file.
30538         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30539
30540 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30541
30542         * lib/pthread.in.h: Add split double-inclusion guard, and include
30543         system <pthread.h> if there is one.  Use @@-style as in other
30544         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30545         pthread.h doesn't.
30546         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30547         (pthread_mutexattr_settype, pthread_mutex_trylock):
30548         New static inline functions, if there's no system <pthread.h>.
30549         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30550         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30551         Approximate with mutexes if the system lacks spinlocks, as in
30552         MacOS.
30553         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30554         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30555         @@-style.  Check for spinlocks separately.
30556         (gl_PTHREAD_DEFAULTS): New macro.
30557         * modules/pthread: Redo to use a more typical style for in.h files.
30558
30559 2010-09-21  Eric Blake  <eblake@redhat.com>
30560
30561         net_if: enhance tests
30562         * tests/test-net_if.c (main): Move signature checks earlier.
30563         Print failures to stderr.
30564         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30565         Document the bug that we do not yet fix.
30566
30567 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30568
30569         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30570         about gnulib, not GSS.
30571
30572 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30573
30574         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30575         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30576         for Emacs.
30577         * build-aux/pmccabe2html: Make Makefile.am example code more
30578         cut-and-paste friendly.
30579
30580 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30581
30582         * tests/test-net_if.c: New file.
30583         * modules/net_if-tests: New file.
30584
30585 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30586
30587         pthread: add pthread_spin_destroy
30588         * lib/pthread.in.h (pthread_spin_destroy): New function.
30589
30590 2010-09-19  Bruno Haible  <bruno@clisp.org>
30591
30592         gnulib-tool: Fix --help output.
30593         * gnulib-tool (func_usage): Fix help message.
30594         Reported by Reuben Thomas <rrt@sc3d.org>.
30595
30596 2010-09-18  Jim Meyering  <meyering@redhat.com>
30597
30598         maint.mk: avoid unexpanded \n in two diagnostics
30599         * top/maint.mk (sc_prohibit_always_true_header_tests):
30600         Don't use a literal \n in a halt=... assignment.  It would not be
30601         expanded, and the two \n bytes would appear in the diagnostic output
30602         rather than the desired newline.  Use halt=$$(printf ... instead.
30603         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30604
30605 2010-09-18  Bruno Haible  <bruno@clisp.org>
30606
30607         netinet_in: Doc tweak.
30608         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30609         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30610
30611 2010-09-18  Jim Meyering  <meyering@redhat.com>
30612
30613         init.sh: correct an outdated comment
30614         * tests/init.sh (create_exe_shims_):  s/function/alias/
30615
30616         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30617         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30618         a file named "*.exe" is removed between the glob expansion and the
30619         processing of that oddly named file.
30620
30621 2010-09-17  Eric Blake  <eblake@redhat.com>
30622
30623         mirbsd: add some more support
30624         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30625         in BSD family.
30626         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30627         devices as OpenBSD.
30628         * m4/host-os.m4 (mirbsd): Add MirBSD.
30629
30630         tests: fix unportable assumption on sys/wait.h
30631         * tests/test-sys_wait.c (main): Relax test.
30632         * tests/test-stdlib.c (main): Likewise.
30633
30634         init.sh: accommodate directory with no .exes
30635         * tests/init.sh: Accomodate directory containing only scripts.
30636
30637         tests: avoid compiler warning
30638         * tests/test-stdlib.c (main): Use the variable.
30639
30640         fdutimens, fdutimensat: update signature, again
30641         * lib/utimens.h (gl_futimens): Delete, and move signature...
30642         (fdutimens): ...here.
30643         (fdutimensat): Rearrange signature.
30644         (lutimensat): Rename variable for clarity.
30645         * lib/fdutimensat.c (fdutimensat): Update signature.
30646         * lib/utimens.c (fdutimens): Likewise.
30647         (gl_futimens): Delete.
30648         (utimens, lutimens): Update callers.
30649         * lib/futimens.c (futimens): Likewise.
30650         * tests/test-fdutimensat.c: Likewise.
30651         * tests/test-utimens.c: Likewise.
30652         * tests/test-futimens.h: Update comment.
30653         * NEWS: Mention this.
30654         Suggested by Paul Eggert.
30655
30656 2010-09-17  Bruno Haible  <bruno@clisp.org>
30657
30658         Take over the maintenance of some older macros from Autoconf.
30659         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30660         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30661         GNU Autoconf.
30662         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30663         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30664
30665 2010-09-17  Eric Blake  <eblake@redhat.com>
30666
30667         fdutimensat: drop atflag validation
30668         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30669         with valid fd, to close a race scenario where futimens is
30670         unsupported and FILE was replaced by a symlink.
30671         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30672         accordingly.
30673         Suggested by Paul Eggert.
30674
30675 2010-09-16  Bruno Haible  <bruno@clisp.org>
30676
30677         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30678         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30679
30680 2010-09-16  Bruno Haible  <bruno@clisp.org>
30681
30682         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30683         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30684         login_tty exists.
30685         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30686
30687 2010-09-16  Bruno Haible  <bruno@clisp.org>
30688
30689         login_tty: Make the replacement code work on BSD systems.
30690         * lib/login_tty.c: Include <sys/ioctl.h>.
30691         (login_tty): Use ioctl TIOCSCTTY when available.
30692         * modules/login_tty (Depends-on): Add sys_ioctl.
30693         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30694
30695 2010-09-16  Bruno Haible  <bruno@clisp.org>
30696
30697         login_tty: Stricter unit test.
30698         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30699         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30700         and tcgetsid() after login_tty.
30701         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30702
30703 2010-09-16  Bruno Haible  <bruno@clisp.org>
30704
30705         New module 'tcgetsid'.
30706         * lib/tcgetsid.c: New file.
30707         * m4/tcgetsid.m4: New file.
30708         * modules/tcgetsid: New file.
30709         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30710         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30711         GNULIB_TCGETSID, HAVE_TCGETSID.
30712         * lib/termios.in.h: Include <sys/types.h>.
30713         (tcgetsid): New declaration.
30714         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30715         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30716         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30717         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30718
30719 2010-09-16  Bruno Haible  <bruno@clisp.org>
30720
30721         Tests for module 'termios'.
30722         * modules/termios-c++-tests: New file.
30723         * modules/termios-tests: New file.
30724         * tests/test-termios-c++.cc: New file.
30725         * tests/test-termios.c: New file.
30726
30727         New module 'termios'.
30728         * modules/termios: New file.
30729         * lib/termios.in.h: New file.
30730         * m4/termios_h.m4: New file.
30731         * doc/posix-headers/termios.texi: Mention the new module.
30732
30733 2010-09-16  Eric Blake  <eblake@redhat.com>
30734
30735         fdutimensat: add an atflag parameter
30736         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30737         * lib/utimens.h (fdutimensat): Update prototype.
30738         * tests/test-fdutimensat.c: Adjust test to match.
30739         * NEWS: Document the change.
30740         Suggested by Paul Eggert.
30741
30742 2010-09-16  Bruno Haible  <bruno@clisp.org>
30743
30744         Fix typos in comments.
30745         * lib/striconveh.h: Fix typo in comment.
30746         * lib/login_tty.c (login_tty): Likewise.
30747
30748 2010-09-15  Bruno Haible  <bruno@clisp.org>
30749
30750         stdlib: clarify MirBSD WEXITSTATUS bug
30751         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30752         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30753
30754 2010-09-15  Eric Blake  <eblake@redhat.com>
30755
30756         stdlib: work around MirBSD WEXITSTATUS bug
30757         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30758         * modules/stdlib (Depends-on): Add sys_wait.
30759         * tests/test-sys_wait.c (main): Enhance test.
30760         * tests/test-stdlib.c (main): Likewise.
30761         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30762
30763         docs: mention MacOS issue with WEXITSTATUS(constant)
30764         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30765         issue.
30766         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30767
30768         strnlen: add tests
30769         * modules/strnlen-tests: New file.
30770         * tests/test-strnlen.c: Likewise.
30771
30772 2010-09-14  Bruno Haible  <bruno@clisp.org>
30773
30774         unistr/base: Avoid link errors when module 'libunistring' is also used.
30775         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30776         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30777         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30778         Declare also when HAVE_LIBUNISTRING is set.
30779         Reported by Pádraig Brady <P@draigbrady.com>.
30780
30781 2010-09-14  Eric Blake  <eblake@redhat.com>
30782
30783         test-rawmemchr: make more robust
30784         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30785         (Depends-on, configure.ac): Add needed prerequisites to use it.
30786         * modules/memchr-tests (Files, Depends-on, configure.ac):
30787         Likewise, to avoid implicit reliance on memchr module prereqs.
30788         * tests/test-memchr.c (main): Ensure proper masking.
30789         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30790         reads.
30791
30792         memchr: detect glibc Alpha bug
30793         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30794         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30795         Alpha.
30796         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
30797         * tests/test-memchr.c (main): Enhance test.
30798         Reported by Nelson H. F. Beebe.
30799
30800 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30801
30802         fts, getcwd, glob: audit for dirfd returning -1
30803         * lib/fts.c (opendir): Remove #define; no longer used.
30804         (opendirat): New arg PDIR_FD.  All callers changed.
30805         (fts_build, _opendir2): Use new opendirat to avoid the need for
30806         dirfd, or for checking whether dirfd returns a negative value.
30807         Don't use opendir; always use openat followed by fdopendir.
30808         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
30809         it.
30810         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
30811         returns -1 here.
30812         * modules/fts (Depends-on): Remove dirfd.
30813         * modules/getcwd (Depends-on): Likewise.
30814
30815 2010-09-13  Eric Blake  <eblake@redhat.com>
30816
30817         float: fix broken MirBSD header
30818         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
30819         * doc/posix-headers/float.texi (float.h): Document it.
30820
30821 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30822
30823         fts: use O_NOFOLLOW to avoid race condition when opening a directory
30824         * lib/fts.c (opendirat): New arg extra_flags.
30825         (__opendir2): Use it to avoid following symlinks when opening
30826         a directory, if symlinks are not supposed to be followed.  See
30827         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
30828
30829         fdopendir: preserve argument fd before returning
30830         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
30831         (fdopendir_with_dup, fd_clone_opendir): New static functions.
30832         (fdopendir): Use them, arranging for FD to be open to the same
30833         directory that it was when it started.  (It might be temporarily
30834         closed while fdopendir is running, so this not thread- or
30835         signal-safe.)  Be careful to do the right thing even when file
30836         descriptors are scarce and dup fails with errno == EMFILE.  See
30837         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
30838
30839 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
30840
30841         regex: Pass the system regex if its only problem is 32-bit regoff_t.
30842         * NEWS: Document change.
30843         * m4/regex.m4: Disable test for regoff_t size.
30844
30845 2010-09-13  Jim Meyering  <meyering@redhat.com>
30846
30847         fts: don't operate on an invalid file descriptor after failed dup
30848         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30849         negative file descriptor.
30850
30851 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30852
30853         savedir: add streamsavedir, deprecate fdsavedir
30854         * NEWS: Mention deprecation of fdsavedir.
30855         * lib/savedir.c (streamsavedir): New extern function, whose name
30856         ends in "savedir" to be consistent with the others.  This differs
30857         from savedirstream in that it doesn't close its argument.  The
30858         next version of GNU tar will use this instead of fdsavedir, to
30859         avoid some race conditions and conserve file descriptors.
30860         (savedirstream): Reimplement as a wrapper around streamsavedir.
30861         (fdsavedir): Add a comment deprecating this function.  As far as
30862         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30863         * lib/savedir.h (streamsavedir): New decl.
30864         (fdsavedir): Add a comment deprecating this.
30865
30866 2010-09-10  Bruno Haible  <bruno@clisp.org>
30867
30868         langinfo: Fix last commit.
30869         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30870         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30871         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30872
30873 2010-09-10  Bruno Haible  <bruno@clisp.org>
30874
30875         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30876         * lib/progreloc.c (O_EXEC): Define fallback.
30877
30878 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30879
30880         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30881         * NEWS: Document recent changes to fcntl-h.
30882         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30883         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30884         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30885         Similarly for O_SEARCH; this last was already true, but not documented.
30886         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30887         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30888         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30889         Likewise.
30890         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30891         is zero, not whether it is defined.
30892         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30893         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30894         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30895
30896 2010-09-10  Bruno Haible  <bruno@clisp.org>
30897
30898         langinfo, nl_langinfo: Fix for IRIX 5.3.
30899         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30900         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30901         HAVE_LANGINFO_YESEXPR.
30902         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30903         HAVE_LANGINFO_YESEXPR.
30904         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30905         HAVE_LANGINFO_T_FMT_AMPM is 0.
30906         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30907         HAVE_LANGINFO_YESEXPR is 0.
30908         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30909         NOEXPR.
30910         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30911         * doc/posix-functions/nl_langinfo.texi: Likewise.
30912         Reported by Eric Blake.
30913
30914 2010-09-10  Bruno Haible  <bruno@clisp.org>
30915
30916         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30917         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30918         on FreeBSD 8.0 and OpenBSD 4.6.
30919         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30920         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30921         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30922         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30923         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30924         ac_includes_default.
30925         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30926
30927 2010-09-09  Eric Blake  <eblake@redhat.com>
30928
30929         strsignal: work around NetBSD bug
30930         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30931         * lib/string.in.h (includes): Likewise.
30932         * doc/posix-functions/strsignal.texi (strsignal): Document the
30933         bug.
30934         Reported by Nelson H. F. Beebe.
30935
30936         gnulib-tool: work with NetBSD /bin/sh
30937         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30938         (func_get_description, func_get_comment, func_get_status)
30939         (func_get_notice, func_get_applicability, func_get_filelist)
30940         (func_get_dependencies, func_get_autoconf_early_snippet)
30941         (func_get_autoconf_snippet, func_get_automake_snippet)
30942         (func_get_include_directive, func_get_link_directive)
30943         (func_get_license, func_get_maintainer, func_import): Avoid
30944         shell syntax errors from parsing syntax extensions.
30945
30946 2010-09-09  Bruno Haible  <bruno@clisp.org>
30947
30948         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30949         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30950         a reliable way to determine whether the 'alias' command works.
30951
30952 2010-09-08  Jim Meyering  <meyering@redhat.com>
30953
30954         init.sh: penalize a set-x-impaired shell; don't disqualify it
30955         * tests/init.sh: Too many shells corrupt application stderr when
30956         you set -x, so we can't afford to disqualify them, since at least
30957         on Irix-6.5, that would disqualify all bourne shells.
30958         Instead, use a two-pass approach.
30959         On the first pass, try to find a shell that meets the stricter
30960         condition that set -x does not corrupt stderr.
30961         If no shell meets the stricter condition, retest each candidate
30962         shell, but without that extra condition.  Finally, when
30963         VERBOSE=yes is requested and set -x might cause trouble, simply
30964         issue a warning and refrain from enabling debug output.
30965
30966 2010-09-08  Eric Blake  <eblake@redhat.com>
30967
30968         unsetenv: fix OpenBSD bug
30969         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30970         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30971         documentation.
30972         Reported by Jim Meyering.
30973
30974         strtod: work around IRIX 6.5 bug
30975         * lib/strtod.c (strtod): Reparse number on shorter string if
30976         exponent parse was invalid.
30977         * tests/test-strtod.c (main): Add check for "0x1p 2".
30978         Reported by Tom G. Christensen.
30979
30980         getopt: optimize previous patch
30981         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30982         empty variable.  Speed up awk script.
30983         Reported by Paolo Bonzini.
30984
30985 2010-09-08  Jim Meyering  <meyering@redhat.com>
30986
30987         test.sh: disqualify shells for which set -x corrupts stderr
30988         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30989         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30990         appear in stderr output.  For example, this command:
30991             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30992         prints "P=1" on those two systems:
30993
30994 2010-09-08  Bruno Haible  <bruno@clisp.org>
30995
30996         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30997         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30998         commands, because some shells ignore redirections when there is an
30999         error in the command lookup.
31000         Reported by Eric Blake.
31001
31002 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31003
31004         * lib/regex.h: Fix a mention of `regex_compile' (should be
31005         `re_compile_pattern').
31006         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31007         (re_set_registers): Correct name of parameter in comment.
31008
31009         * doc/regex.texi: Add documentation for missing syntax flags.
31010         Remove commented-out documentation of defunct syntax option
31011         RE_NO_EMPTY_ALTS.
31012         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31013         Add documentation of re_set_registers.
31014         Document trick to re-use a pattern buffer by setting fastmap manually.
31015         Update documentation of struct re_pattern_buffer per public members.
31016         Uncomment documentation of equivalence class operators and
31017         collating symbol operators, since they are now implemented,
31018         Explain leftmost-longest matching in relation to alternatives.
31019         Tidy documentation of substring matching.
31020         Remove POSIX documentation, which is done better in
31021         glibc, and refer the reader there. Keep BSD API documentation, as
31022         that is not readily available elsewhere.
31023
31024 2010-09-07  Eric Blake  <eblake@redhat.com>
31025
31026         getopt: handle POSIXLY_CORRECT set but not exported
31027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31028         export state of POSIXLY_CORRECT, due to bash set -o posix.
31029         Reported by Dustin J. Mitchell.
31030
31031 2010-09-05  Bruno Haible  <bruno@clisp.org>
31032
31033         gnulib-tool: Highlight the changed options.
31034         * gnulib-tool (func_usage): Display the --import, --add-import,
31035         --remove-import explanations in bold font.
31036
31037 2010-09-06  Karl Berry  <karl@gnu.org>
31038
31039         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31040
31041 2010-09-05  Bruno Haible  <bruno@clisp.org>
31042
31043         uniwidth/width: Update comment.
31044         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31045         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31046
31047 2010-09-05  Bruno Haible  <bruno@clisp.org>
31048
31049         isinf, isnan: Relax license.
31050         * modules/isinf (License): Change from GPL to LGPL, with consent from
31051         Ben Pfaff.
31052         * modules/isnan (License): Likewise.
31053         Requested by Ludovic Courtès.
31054
31055 2010-09-04  Bruno Haible  <bruno@clisp.org>
31056
31057         gnulib-tool: Help migration from --import to --add-import or --update.
31058         * gnulib-tool: Emit a verbose error message when --import is used
31059         without any module name.
31060
31061 2010-09-04  Bruno Haible  <bruno@clisp.org>
31062
31063         Update doc about gnulib-tool.
31064         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31065         'gnulib-tool --update' in more detail.
31066         Reported by Eric Blake.
31067
31068 2010-09-04  Bruno Haible  <bruno@clisp.org>
31069
31070         gnulib-tool: Change --import. New options --add/remove-import.
31071         * gnulib-tool: New options --add-import, --remove-import.
31072         (func_usage): Document them.
31073         (have_associative): Define always.
31074         (func_import): In import mode, don't merge the specified settings with
31075         the cached settings. Implement remove-import mode.
31076         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31077         Explain when to use them versus --import.
31078         (Simple update): Use --add-import instead of --import.
31079         * NEWS: Mention the change.
31080
31081 2010-09-04  Bruno Haible  <bruno@clisp.org>
31082
31083         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31084         separate gnulib.mk.
31085
31086 2010-09-04  Bruno Haible  <bruno@clisp.org>
31087
31088         gnulib-tool: Don't talk about CVS any more.
31089         * gnulib-tool (func_usage, func_import): Write "version control"
31090         instead of CVS.
31091
31092 2010-09-04  Jim Meyering  <meyering@redhat.com>
31093
31094         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31095         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31096         false positives (whose names may be ill-chosen) when searching
31097         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31098         would cause a false-positive.
31099
31100         avoid coreutils "make distcheck" failure
31101         Coreutils tests with an absolute build directory name that contains
31102         a space.  Not quoting this directory name caused a failure.
31103         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31104         * tests/test-vc-list-files-cvs.sh: Likewise.
31105
31106 2010-09-04  Bruno Haible  <bruno@clisp.org>
31107
31108         gnulib-tool: Avoid error when run in a package without Makefile.am.
31109         * gnulib-tool: When collecting the m4dirs in a package that does not
31110         have a Makefile.am, eliminate those directories that contain no
31111         gnulib-cache.m4. Fix expression that counts these directories.
31112
31113 2010-09-04  Bruno Haible  <bruno@clisp.org>
31114
31115         update-copyright test: Improve output when perl is missing or too old.
31116         * tests/test-update-copyright.sh: Move test of Perl version down after
31117         the test whether Perl exists. Provide an explanation relating Perl's
31118         error message to Automake's SKIP: message.
31119
31120 2010-09-04  Bruno Haible  <bruno@clisp.org>
31121
31122         Don't augment PATH in TESTS_ENVIRONMENT.
31123         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31124         set abs_aux_dir instead of augmenting PATH.
31125         * modules/vc-list-files-tests (Makefile.am): Likewise.
31126         * tests/test-update-copyright.sh: Augment PATH here.
31127         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31128         path_prepend_.
31129         * tests/test-vc-list-files-git.sh: Likewise.
31130
31131 2010-09-04  Jim Meyering  <meyering@redhat.com>
31132
31133         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31134         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31135
31136 2010-09-04  Bruno Haible  <bruno@clisp.org>
31137
31138         strdup: Fix compilation error in C++ mode.
31139         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31140         the macro.
31141
31142 2010-09-04  Bruno Haible  <bruno@clisp.org>
31143
31144         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31145         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31146         macro into a function.
31147         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31148
31149 2010-09-04  Bruno Haible  <bruno@clisp.org>
31150
31151         Set PATH_SEPARATOR the same way autoconf does.
31152         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31153         the value of PATH_SEPARATOR the same way autoconf-generated configure
31154         scripts do.
31155         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31156         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31157
31158 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31159
31160         Set PATH_SEPARATOR the same way autoconf does.
31161         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31162         the same way autoconf-generated configure scripts do.
31163         * posix-modules: Likewise.
31164
31165 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31166
31167         hash: fix safe_hasher const typo
31168         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31169         const; otherwise, there is a type error later.
31170
31171 2010-09-02  Jim Meyering  <meyering@redhat.com>
31172
31173         test-update-copyright.sh: require perl 5.8.0
31174         * tests/test-update-copyright.sh: Require 5.8.0,
31175         which Tom G. Christensen has confirmed is adequate,
31176         while 5.6.1 is not.
31177
31178 2010-09-02  Eric Blake  <eblake@redhat.com>
31179
31180         tests: init.sh improvements for re-exec'ing with zsh
31181         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31182         -vx through shell re-exec.
31183         Reported by Tom G. Christensen.
31184
31185         wctype: fix typo in previous commit
31186         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31187         Reported by Ludovic Courtès.
31188
31189 2010-09-02  Jim Meyering  <meyering@redhat.com>
31190
31191         test-update-copyright.sh: skip test if Perl is too old
31192         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31193         Reported by Tom G. Christensen.
31194
31195 2010-09-02  Bruno Haible  <bruno@clisp.org>
31196
31197         wctype: Avoid compilation error on IRIX 6.5.30.
31198         * lib/wctype.in.h (iswblank): Declare with a replacement if
31199         REPLACE_ISWBLANK is set.
31200         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31201         declared. Set REPLACE_ISWBLANK.
31202         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31203         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31204         * doc/posix-headers/wctype.texi: Likewise.
31205         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31206
31207 2010-09-01  Bruno Haible  <bruno@clisp.org>
31208
31209         New module 'socketlib'.
31210         * modules/socketlib: New file.
31211         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31212         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31213         * modules/sockets (Depends-on): Add socketlib.
31214         Suggested by Sam Steingold <sds@gnu.org>.
31215
31216 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31217
31218         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31219
31220         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31221         when one needs search access to a directory but not read access.
31222         On systems where it is available, it works in some cases where
31223         O_RDONLY does not, namely on directories that are searchable but
31224         not readable, and which need only to be searchable.  If O_SEARCH
31225         is not available, fall back to the traditional method of using
31226         O_RDONLY.
31227
31228         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31229         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31230         when opening a directory that needs only to be searchable.
31231         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31232         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31233         * lib/openat-proc.c (openat_proc_name): Likewise.
31234         * lib/openat.c (openat_needs_fchdir): Likewise.
31235         * lib/save-cwd.c (save_cwd): Likewise.
31236         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31237
31238 2010-08-28  Bruno Haible  <bruno@clisp.org>
31239
31240         New module 'host-cpu-c-abi'.
31241         * modules/host-cpu-c-abi: New file.
31242         * m4/host-cpu-c-abi.m4: New file, based on part of
31243         clisp/src/m4/general.m4.
31244         Requested by Sam Steingold <sds@gnu.org>.
31245
31246 2010-08-31  Eric Blake  <eblake@redhat.com>
31247         and Jim Meyering  <meyering@redhat.com>
31248
31249         hash: factor, and guard against misbehaving hasher function
31250         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31251         of table->hasher's return value.  Also protect against a hash value
31252         so large that adding it to table->bucket results in a NULL pointer.
31253         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31254         Use it in place of open-coded check-and-abort.
31255
31256 2010-08-30  Bruno Haible  <bruno@clisp.org>
31257
31258         hash: silence spurious clang warning
31259         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31260         Reported by Eric Blake.
31261
31262 2010-08-30  Eric Blake  <eblake@redhat.com>
31263
31264         strstr, memmem, strcasestr: avoid leaked shell message
31265         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31266         FreeBSD.
31267         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31268         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31269
31270         tests: silence clang warning
31271         * tests/test-malloca.c (do_allocation): Avoid dead store.
31272
31273 2010-08-29  Bruno Haible  <bruno@clisp.org>
31274
31275         gettext: Fix recent mistake.
31276         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31277
31278 2010-08-29  Bruno Haible  <bruno@clisp.org>
31279
31280         selinux-h: Offer a --without-selinux option.
31281         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31282         --without-selinux was specified, skip all tests and define
31283         HAVE_SELINUX_SELINUX_H to 0.
31284         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31285         set LIB_SELINUX to empty.
31286         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31287         gl_LIBSELINUX. If --without-selinux was specified, replace
31288         selinux/context.h.
31289         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31290
31291 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31292             Bruno Haible  <bruno@clisp.org>
31293
31294         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31295         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31296         of HAVE_REALLOC.
31297         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31298         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31299         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31300         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31301
31302 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31303             Bruno Haible  <bruno@clisp.org>
31304
31305         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31306         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31307         HAVE_CALLOC.
31308         * lib/xmalloc.c: Update accordingly.
31309         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31310         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31311         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31312
31313 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31314             Bruno Haible  <bruno@clisp.org>
31315
31316         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31317         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31318         HAVE_MALLOC.
31319         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31320         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31321         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31322
31323 2010-08-29  Bruno Haible  <bruno@clisp.org>
31324
31325         Update modules list.
31326         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31327         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31328         (String handling <string.h>): Add astrxfrm.
31329         (File system functions): Add readlinkat.
31330
31331 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31332
31333         Tests for module 'realloc-gnu'.
31334         * modules/realloc-gnu-tests: New file.
31335         * tests/test-realloc-gnu.c: New file.
31336
31337         Tests for module 'calloc-gnu'.
31338         * modules/calloc-gnu-tests: New file.
31339         * tests/test-calloc-gnu.c: New file.
31340
31341         Tests for module 'malloc-gnu'.
31342         * modules/malloc-gnu-tests: New file.
31343         * tests/test-malloc-gnu.c: New file.
31344
31345 2010-08-28  Bruno Haible  <bruno@clisp.org>
31346
31347         Rename module 'realloc' -> 'realloc-gnu'.
31348         * modules/realloc-gnu: New file, copied from modules/realloc.
31349         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31350         obsolete.
31351         * modules/mgetgroups (Depends-on): Update.
31352         * doc/posix-functions/realloc.texi: Update.
31353         * NEWS: Mention the change.
31354
31355         Rename module 'calloc' -> 'calloc-gnu'.
31356         * modules/calloc-gnu: New file, copied from modules/calloc.
31357         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31358         obsolete.
31359         * doc/posix-functions/calloc.texi: Update.
31360         * NEWS: Mention the change.
31361
31362         Rename module 'malloc' -> 'malloc-gnu'.
31363         * modules/malloc-gnu: New file, copied from modules/malloc.
31364         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31365         obsolete.
31366         * modules/argp (Depends-on): Update.
31367         * modules/regex (Depends-on): Update.
31368         * doc/posix-functions/malloc.texi: Update.
31369         * NEWS: Mention the change.
31370
31371 2010-08-28  Eric Blake  <eblake@redhat.com>
31372
31373         pread, pwrite: add missing dependency
31374         * modules/pread (Depends-on): Add extensions.
31375         * modules/pwrite (Depends-on): Likewise.
31376
31377 2010-08-28  Bruno Haible  <bruno@clisp.org>
31378
31379         unistr/u*-strchr: Fix tests dependencies.
31380         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31381         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31382         Reported by Ian Beckwith <ianb@erislabs.net>.
31383
31384 2010-08-28  Bruno Haible  <bruno@clisp.org>
31385
31386         read-file: Don't occupy too much unused memory.
31387         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31388
31389 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31390             Eric Blake  <eblake@redhat.com>
31391             Bruno Haible  <bruno@clisp.org>
31392
31393         read-file: Avoid memory reallocations with regular files.
31394         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31395         (fread_file): With regular files, use the remaining length as the
31396         initial buffer size.  Check against overflow.
31397         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31398         sys_stat.
31399
31400 2010-08-28  Bruno Haible  <bruno@clisp.org>
31401
31402         ftello: Relax license.
31403         * modules/ftello (License): Relax to LGPLv2+.
31404         Reported by Eric Blake.
31405
31406 2010-08-28  Bruno Haible  <bruno@clisp.org>
31407
31408         Avoid relocwrapper link errors due to gnulib replacement functions.
31409         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31410         function.
31411         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31412
31413 2010-08-28  Bruno Haible  <bruno@clisp.org>
31414
31415         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31416         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31417         defined.
31418         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31419         Suggested by Eric Blake.
31420
31421 2010-08-28  Bruno Haible  <bruno@clisp.org>
31422
31423         sys_socket, netdb: Ensure socklen_t gets defined.
31424         * modules/sys_socket (Depends-on): Add socklen.
31425         * modules/netdb (Depends-on): Likewise.
31426         * modules/getaddrinfo (Depends-on): Remove socklen.
31427         * modules/getsockopt (Depends-on): Likewise.
31428         * modules/setsockopt (Depends-on): Likewise.
31429         * tests/test-sys_socket.c: Check that socklen_t is defined.
31430         * tests/test-netdb.c: Likewise.
31431         * m4/socklen.m4: Update comments.
31432         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31433
31434 2010-08-27  Eric Blake  <eblake@redhat.com>
31435
31436         login_tty: add missing dependency
31437         * modules/login_tty (Depends-on): Add pty.
31438
31439 2010-08-26  Eric Blake  <eblake@redhat.com>
31440
31441         lib-symbol-versions: fix m4 quoting
31442         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31443         format for AC_LINK_IFELSE.
31444
31445         glob: fix compile test
31446         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31447
31448         btowc: fix missing file
31449         * modules/btowc (Files): Also ship locale-fr.m4.
31450
31451         lseek: fix link test
31452         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31453         AC_LINK_IFELSE.
31454
31455         include_next: silence autoconf 2.68 warning
31456         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31457         AC_COMPILE_IFELSE as special.
31458         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31459         autoconf < 2.68.
31460
31461         acl: fix compilation test
31462         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31463         AC_COMPILE_IFELSE.
31464
31465 2010-08-26  Bruno Haible  <bruno@clisp.org>
31466
31467         Modernize AC_TRY_RUN invocations.
31468         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31469         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31470         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31471         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31472         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31473         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31474         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31475         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31476         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31477         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31478         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31479         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31480         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31481         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31482         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31483         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31484         gl_MBRLEN_NUL_RETVAL): Likewise.
31485         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31486         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31487         Likewise.
31488         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31489         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31490         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31491         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31492         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31493         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31494         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31495         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31496         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31497         Likewise.
31498         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31499         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31500         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31501         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31502         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31503         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31504         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31505         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31506         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31508
31509 2010-08-26  Bruno Haible  <bruno@clisp.org>
31510
31511         Modernize AC_TRY_LINK invocations.
31512         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31513         AC_TRY_LINK.
31514         * m4/argp.m4 (gl_ARGP): Likewise.
31515         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31516         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31517         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31518         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31519         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31520         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31521         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31522         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31523         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31524         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31525         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31526         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31527         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31528         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31529         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31530         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31531         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31532         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31533         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31534         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31535         Likewise.
31536         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31537         Likewise.
31538         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31539         Likewise.
31540         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31541         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31542         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31543         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31544         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31545         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31546         * m4/servent.m4 (gl_SERVENT): Likewise.
31547         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31548         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31549         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31550         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31551         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31552         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31553         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31554         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31555         * modules/tsearch-tests (configure.ac): Likewise.
31556
31557 2010-08-26  Bruno Haible  <bruno@clisp.org>
31558
31559         Modernize AC_TRY_COMPILE invocations.
31560         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31561         AC_TRY_COMPILE.
31562         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31563         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31564         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31565         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31566         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31567         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31568         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31569         * m4/lock.m4 (gl_LOCK): Likewise.
31570         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31571         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31572         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31573         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31574         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31575         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31576         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31577         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31578         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31579         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31580         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31581         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31582         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31583         extraneous semicolon.
31584
31585 2010-08-26  Jim Meyering  <meyering@redhat.com>
31586
31587         stat-time: relax license LGPL
31588         * modules/stat-time (License): Change from GPL to LGPL,
31589         with consent from all contributors, for use in libguile.
31590         Requested by Ludovic Courtès.
31591
31592 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31593
31594         poll: return immediately on POLLHUP.
31595         * lib/poll.c (poll): Always set timeout before wait_timeout is
31596         computed.
31597
31598 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31599
31600         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31601         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31602         rmdir ("dir/.//"), unlinkat.
31603
31604 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31605
31606         stdbool: avoid spurious failure with modern xlc
31607         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31608
31609 2010-08-24  Bruno Haible  <bruno@clisp.org>
31610
31611         getloadavg: simplify code
31612         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31613         gl_have_func. Update comments.
31614
31615 2010-08-24  Eric Blake  <eblake@redhat.com>
31616
31617         getloadavg: don't define SVR4 on cygwin
31618         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31619         only define SVR4 when -lkvm is required.
31620         Reported by Yaakov Selkowitz.
31621
31622 2010-08-24  Bruno Haible  <bruno@clisp.org>
31623
31624         priv-set: fix comment
31625         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31626
31627 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31628
31629         priv-set: fix comments
31630         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31631         to match code, as suggested by David Bartley in:
31632         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31633
31634 2010-08-23  Eric Blake  <eblake@redhat.com>
31635
31636         stdbool: avoid rejecting clang
31637         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31638         * tests/test-stdbool.c: Enable more tests if using the system
31639         <stdbool.h> instead of the gnulib replacement.
31640         (main): Move xlc bug test to a runtime test for all compilers.
31641         Reported by Anders Kaseorg.
31642
31643         argz: fix shell quoting issue
31644         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31645         Reported by Charles Wilson.
31646
31647 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31648             Erik Faye-Lund <kusmabite@gmail.com>
31649
31650         poll, select: handle ERROR_BROKEN_PIPE.
31651         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31652         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31653         * lib/select.c (win32_compute_revents): Do not mark a pipe
31654         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31655
31656 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31657
31658         fts: allow compilation with C++
31659         * lib/fts_.h: Specify extern "C" linkage with C++.
31660
31661 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31662
31663         Fix gnulib-tool sed script de-commentation for AIX sed.
31664         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31665         sed.
31666
31667 2010-08-17  Eric Blake  <eblake@redhat.com>
31668
31669         test-stddef: test for (some) offsetof bugs
31670         * tests/test-stddef.c: Enhance test to ensure correct type of
31671         offsetof.
31672         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31673         that we are not fixing at this time.
31674
31675 2010-08-15  Bruno Haible  <bruno@clisp.org>
31676
31677         stpncpy: Allow stpncpy to be defined as a macro.
31678         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31679         if it's already correctly declared.
31680         * lib/string.in.h (stpncpy): Undefine before redefining.
31681         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31682
31683 2010-08-14  Bruno Haible  <bruno@clisp.org>
31684
31685         Rename module 'memxfrm' to 'amemxfrm'.
31686         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31687         (amemxfrm): Renamed from memxfrm.
31688         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31689         (amemxfrm): Renamed from memxfrm.
31690         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31691         * NEWS: Mention the change.
31692         * MODULES.html.sh (String handling <string.h>): Update.
31693         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31694         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31695         * lib/unicase/u16-casexfrm.c: Likewise.
31696         * lib/unicase/u32-casexfrm.c: Likewise.
31697         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31698         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31699         * lib/uninorm/u16-normxfrm.c: Likewise.
31700         * lib/uninorm/u32-normxfrm.c: Likewise.
31701         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31702         memxfrm.
31703         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31704         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31705         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31706         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31707         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31708         Suggested by Paul Eggert.
31709
31710 2010-08-14  Bruno Haible  <bruno@clisp.org>
31711
31712         Tests for module 'astrxfrm'.
31713         * modules/astrxfrm-tests: New file.
31714         * tests/test-astrxfrm.c: New file.
31715
31716         New module 'astrxfrm'.
31717         * lib/astrxfrm.h: New file.
31718         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31719         * modules/astrxfrm: New file.
31720
31721 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31722
31723         regex: Tweak doc.
31724         * doc/regex.texi (Overview): Don't mention regex.c.
31725         (GNU Regular Expression Compiling): Likewise.
31726         (Match-end-of-line Operator): Mention 'not_eol'.
31727
31728 2010-08-14  Brian Gough  <bjg@gnu.org>
31729             Bruno Haible  <bruno@clisp.org>
31730
31731         git-merge-changelog: add doc relating to use with bzr and hg.
31732         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31733
31734 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31735
31736         pthread: fix pthread.h creation for srcdir != builddir
31737         * modules/pthread (Makefile.am): Fix the rule to work also in a
31738         non-srcdir build.
31739
31740 2010-08-13  Karl Berry  <karl@gnu.org>
31741
31742         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31743         * doc/posix-*/*: force line break before @url of POSIX
31744         specifications.
31745         Suggested by Werner Lemberg.
31746
31747 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31748
31749         strtod: fix const diagnostic
31750         * lib/strtod.c (strtod): Don't assign const char * to char *,
31751         as this elicits a warning from GCC when warnings are enabled.
31752
31753 2010-08-10  Pádraig Brady <P@draigbrady.com>
31754         and Eric Blake  <eblake@redhat.com>
31755
31756         copy-acl: ignore ENOTSUP on HP-UX
31757         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31758         so that it is available for HP-UX.
31759         * lib/copy-acl.c (qcopy_acl): Use it.
31760         Reported by Patrick M. Callahan.
31761
31762 2010-08-10  Eric Blake  <eblake@redhat.com>
31763
31764         open, chown: relax license
31765         * modules/open (License): Change to LGPLv2+, with consent by all
31766         authors, for use in augeas.
31767         * modules/chown (License): Likewise.
31768         * modules/lchown (Likewise): Likewise.
31769         Requested by Adam Stokes.
31770
31771 2010-08-09  Karl Berry  <karl@gnu.org>
31772
31773         * build-aux/ar-lib: new file, import from Automake.
31774         * config/srclist.txt: autocheck for updates.
31775
31776 2010-08-09  Eric Blake  <eblake@redhat.com>
31777
31778         readlinkat: adjust client modules
31779         * modules/areadlinkat (Depends-on): Use readlinkat, not
31780         symlinkat.
31781         * modules/areadlinkat-with-size (Depends-on): Likewise.
31782
31783         mknod: be more vocal about danger of running tests as root
31784         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31785         root, since that is just asking for problems.
31786         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31787
31788         readlinkat: split into its own module
31789         * modules/symlinkat: Split readlinkat...
31790         * modules/readlinkat: ...into separate module.
31791         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31792         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31793         * lib/symlinkat.c (readlinkat): Move...
31794         * lib/readlinkat.c: ...into new file.
31795         * modules/symlinkat-tests: Split readlinkat test...
31796         * modules/readlinkat-tests: ...into separate module.
31797         * tests/test-symlinkat.c: Split...
31798         * tests/test-readlinkat.c: ...into new file.
31799         * NEWS: Document the split.
31800         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31801         * lib/unistd.in.h (readlinkat): Likewise.
31802         Suggested by Bruno Haible.
31803
31804 2010-08-08  Bruno Haible  <bruno@clisp.org>
31805
31806         memxfrm: Speed up.
31807         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
31808         that usually only one call to strxfrm is necessary for each string
31809         part.
31810         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31811
31812 2010-08-07  Karl Berry  <karl@gnu.org>
31813
31814         * doc/posix-headers/limits.texi,
31815         * doc/posix-functions/malloc.texi,
31816         * doc/posix-functions/strsignal.texi: missing @item.
31817         * doc/ld-version-script.texi: spurious leading i.
31818         * doc/regex.texi (Interval Operators): no commas inside @var.
31819
31820 2010-08-01  Bruno Haible  <bruno@clisp.org>
31821
31822         Integrate the regex documentation.
31823         * doc/gnulib.texi: Define 'cn' index.
31824         (Regular expressions): New a chapter that includes regex.texi and
31825         regexprops-generic.texi.
31826         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
31827         syntax.
31828
31829         Whitespace cleanup.
31830         * doc/regex.texi: Remove trailing spaces.
31831
31832         Add regex documentation.
31833         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
31834         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
31835         Written by Kathy A. Hargreaves and Karl Berry.
31836
31837 2010-08-01  Bruno Haible  <bruno@clisp.org>
31838
31839         link: Update documentation.
31840         * doc/posix-functions/link.texi: Update regarding Solaris.
31841
31842 2010-07-31  Bruno Haible  <bruno@clisp.org>
31843
31844         Update modules list.
31845         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31846         (String handling <string.h>): Add memcmp2, memxfrm.
31847         (Container data structures): Add xlist, xsublist, xoset.
31848         (Core language properties): Add alignof, unused-parameter.
31849         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31850         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31851         (Unibyte characters <ctype.h>): New section.
31852         (String handling <string.h>): New section.
31853         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31854         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31855         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31856         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31857         tan, tanh, tanl, y0, y1, yn.
31858         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31859         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31860         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31861         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31862         unlockpt, vdprintf, vdprintf-posix.
31863         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31864         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31865         xconcat-filename.
31866         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31867         getdtablesize, pipe2, pipe2-safer.
31868         (Security): New section.
31869         (Networking functions): Add accept4.
31870         (Signal handling): Add sigpipe.
31871         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31872         mbmemcasecoll.
31873         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31874         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31875         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31876         pipe-filter-ii.
31877         (Misc): Add argp-version-etc, login_tty, parse-duration.
31878
31879 2010-07-31  Bruno Haible  <bruno@clisp.org>
31880
31881         Improve doc in MODULES.html.
31882         * modules/linkat (Description): Add the word "function".
31883         * modules/mkfifo (Description): Likewise.
31884         * modules/mknod (Description): Likewise.
31885         * modules/remove (Description): Likewise.
31886         * modules/renameat (Description): Likewise.
31887         * modules/stat (Description): Likewise.
31888         * modules/symlink (Description): Likewise.
31889         * modules/unlink (Description): Likewise.
31890
31891 2010-07-31  Bruno Haible  <bruno@clisp.org>
31892
31893         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31894         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31895         option --enable/disable-c++ instead of --enable/disable-cxx.
31896         * NEWS: Mention the change.
31897
31898 2010-07-31  Bruno Haible  <bruno@clisp.org>
31899
31900         readlink, areadlink: Relax test a bit.
31901         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31902         alternative to ENOTDIR.
31903         * tests/test-areadlink.h (test_areadlink): Likewise.
31904         Reported by Rainer Tammer.
31905
31906 2010-07-31  Bruno Haible  <bruno@clisp.org>
31907
31908         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31909         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31910         character, perform the search using U_STRCHR.
31911         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31912         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31913         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31914         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31915         Suggested by Paolo Bonzini.
31916
31917 2010-07-31  Bruno Haible  <bruno@clisp.org>
31918
31919         unistr/u*-strstr: Fix dependencies.
31920         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31921         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31922         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31923
31924 2010-07-31  Bruno Haible  <bruno@clisp.org>
31925
31926         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31927         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31928         the beginning of the loop.
31929         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31930         cases in 'switch' statement.
31931
31932         unistr/u8-strchr: Fix several bugs.
31933         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31934         the string. When not found, return NULL, not a pointer near the end.
31935
31936         More tests for unistr/u8-strchr.
31937         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31938         that the function does not read past the first occurrence of the byte
31939         being searched.
31940         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31941         * tests/unistr/test-u16-strchr.c (main): New function.
31942         * tests/unistr/test-u32-strchr.c (main): New function.
31943
31944 2010-07-31  Bruno Haible  <bruno@clisp.org>
31945
31946         posix-modules: Ignore backup files of documentation files.
31947         * posix-modules: grep only through files named *.texi.
31948
31949 2010-07-31  Bruno Haible  <bruno@clisp.org>
31950
31951         symlinkat: Fix documentation.
31952         * doc/posix-functions/readlinkat.texi: Fix module name.
31953
31954 2010-07-31  Bruno Haible  <bruno@clisp.org>
31955
31956         fchownat: Replace also when chown has the trailing slash bug.
31957         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31958         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31959         introduced on 2010-04-10.
31960         Reported by Rainer Tammer.
31961
31962 2010-07-31  Bruno Haible  <bruno@clisp.org>
31963
31964         linkat: Work around AIX 7.1 bug.
31965         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31966         whether linkat handles trailing slash correctly. If not, replace linkat
31967         and define LINKAT_TRAILING_SLASH_BUG.
31968         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31969         check whether (fd1,file1) points to a directory if file1 or file2 ends
31970         in a slash. Code taken from lib/link.c.
31971         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31972         Reported by Rainer Tammer.
31973
31974 2010-07-31  Bruno Haible  <bruno@clisp.org>
31975
31976         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31977         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31978         This disables an xlc optimization that was causing wrong test results.
31979         Reported by Rainer Tammer.
31980
31981 2010-07-31  Bruno Haible  <bruno@clisp.org>
31982
31983         iconv: Work around AIX 6.1..7.1 bug.
31984         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31985         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31986         cross-compiling, guess no on all versions of AIX.
31987         Reported by Rainer Tammer.
31988
31989 2010-07-31  Bruno Haible  <bruno@clisp.org>
31990
31991         readlink: Relax test a bit.
31992         * tests/test-readlink.h (test_readlink): Allow different errno value
31993         when readlink is called with a file name that ends in / and refers to
31994         a file.
31995         Suggested by Eric Blake.
31996         Reported by Rainer Tammer.
31997
31998 2010-07-31  Bruno Haible  <bruno@clisp.org>
31999
32000         copysign: Does not require -lm on glibc systems.
32001         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32002         gl_COMMON_DOUBLE_MATHFUNC.
32003         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32004
32005 2010-07-31  Bruno Haible  <bruno@clisp.org>
32006
32007         duplocale: Work around AIX 7.1 bug.
32008         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32009         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32010         * lib/duplocale.c (rpl_duplocale): Update comment.
32011         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32012         Reported by Rainer Tammer.
32013
32014 2010-07-30  Bruno Haible  <bruno@clisp.org>
32015
32016         dirfd: Avoid link error on AIX 7.1.
32017         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32018         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32019         exist, set REPLACE_DIRFD.
32020         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32021         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32022         * doc/posix-functions/dirfd.texi: Update.
32023         Reported by Rainer Tammer.
32024
32025 2010-07-30  Eric Blake  <eblake@redhat.com>
32026
32027         strtod: next round of AIX fixes
32028         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32029         exponent.
32030         * tests/test-strtod.c (main): Enhance tests.
32031         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32032         Reported by Rainer Tammer.
32033
32034         futimens: fix configure check
32035         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32036         Reported by Bruno Haible.
32037
32038 2010-07-30  Bruno Haible  <bruno@clisp.org>
32039
32040         getline: Update regarding AIX.
32041         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32042         Reported by Rainer Tammer.
32043
32044 2010-07-30  Bruno Haible  <bruno@clisp.org>
32045
32046         wcwidth: Drop replacement on AIX 7.
32047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32048         AIX 7.
32049         Reported by Rainer Tammer.
32050
32051 2010-07-30  Bruno Haible  <bruno@clisp.org>
32052
32053         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32054         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32055         a 'char *'.
32056         Reported by Rainer Tammer.
32057
32058 2010-07-30  Bruno Haible  <bruno@clisp.org>
32059
32060         unlink: Update regarding AIX.
32061         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32062         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32063         Reported by Rainer Tammer.
32064
32065 2010-07-30  Bruno Haible  <bruno@clisp.org>
32066
32067         symlink: Update regarding AIX.
32068         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32069         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32070         Reported by Rainer Tammer.
32071
32072 2010-07-30  Bruno Haible  <bruno@clisp.org>
32073
32074         strndup: Update regarding AIX.
32075         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32076         AIX 7.
32077         Reported by Rainer Tammer.
32078
32079 2010-07-30  Bruno Haible  <bruno@clisp.org>
32080
32081         stat: Update regarding AIX.
32082         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32083         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32084         Reported by Rainer Tammer.
32085
32086 2010-07-30  Bruno Haible  <bruno@clisp.org>
32087
32088         truncl: Fix autoconf test.
32089         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32090         whether truncl works.
32091         Reported by Rainer Tammer.
32092
32093 2010-07-30  Bruno Haible  <bruno@clisp.org>
32094
32095         round: Update regarding AIX.
32096         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32097         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32098         Reported by Rainer Tammer.
32099
32100 2010-07-30  Bruno Haible  <bruno@clisp.org>
32101
32102         rename: Update regarding AIX.
32103         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32104         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32105         Reported by Rainer Tammer.
32106
32107 2010-07-30  Bruno Haible  <bruno@clisp.org>
32108
32109         printf.m4: Update regarding AIX.
32110         * m4/printf.m4: Update comments regarding AIX.
32111         Reported by Rainer Tammer.
32112
32113 2010-07-30  Bruno Haible  <bruno@clisp.org>
32114
32115         iconv: Update regarding AIX.
32116         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32117         AIX 7.
32118         Reported by Rainer Tammer.
32119
32120 2010-07-30  Bruno Haible  <bruno@clisp.org>
32121
32122         getopt: Update regarding AIX.
32123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32124         no on AIX.
32125         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32126         Reported by Rainer Tammer.
32127
32128 2010-07-30  Bruno Haible  <bruno@clisp.org>
32129
32130         ldexpl; Update regarding AIX.
32131         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32132         on AIX 7.
32133         Reported by Rainer Tammer.
32134
32135 2010-07-30  Bruno Haible  <bruno@clisp.org>
32136
32137         frexpl: Update regarding AIX.
32138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32139         on AIX 7.
32140         Reported by Rainer Tammer.
32141
32142 2010-07-30  Bruno Haible  <bruno@clisp.org>
32143
32144         open, fopen: Update regarding AIX.
32145         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32146         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32147         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32148         * doc/posix-functions/fopen.texi: Likewise.
32149         Reported by Rainer Tammer.
32150
32151 2010-07-30  Bruno Haible  <bruno@clisp.org>
32152
32153         chown: Update doc regarding AIX.
32154         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32155         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32156         Reported by Rainer Tammer.
32157
32158 2010-07-30  Eric Blake  <eblake@redhat.com>
32159
32160         strtod: fix bug in replacement function on AIX
32161         * lib/strtod.c (strtod): Special case broken "0x" parse in
32162         underlying strtod.
32163         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32164         * doc/posix-functions/strtod.texi (strtod): Likewise.
32165         Reported by Rainer Tammer.
32166
32167 2010-07-30  Bruno Haible  <bruno@clisp.org>
32168
32169         mbrlen: Fix cross-compilation guess for AIX.
32170         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32171         guess. Leftover from 2008-12-22.
32172
32173 2010-07-30  Bruno Haible  <bruno@clisp.org>
32174
32175         mbrtowc: Fix cross-compilation guess for AIX.
32176         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32177         guess. Leftover from 2008-12-21.
32178
32179 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32180
32181         init.sh: work around trap limitation of some shells
32182         * tests/init.sh (setup_): Move exit trap outside of shell function.
32183
32184 2010-07-29  Eric Blake  <eblake@redhat.com>
32185
32186         strtod: aid debugging
32187         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32188         understanding why strtod is rejected.
32189
32190 2010-07-28  Bruno Haible  <bruno@clisp.org>
32191
32192         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32193         * lib/unistr/u8-chr.c: Include <string.h>.
32194         * tests/unistr/test-u8-chr.c: Likewise.
32195         * tests/unistr/test-u16-chr.c: Likewise.
32196         * tests/unistr/test-u32-chr.c: Likewise.
32197         * tests/unistr/test-u8-strchr.c: Likewise.
32198         * tests/unistr/test-u16-strchr.c: Likewise.
32199         * tests/unistr/test-u32-strchr.c: Likewise.
32200         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32201         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32202         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32203         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32204
32205 2010-07-28  Bruno Haible  <bruno@clisp.org>
32206
32207         Use spaces for indentation, not tabs.
32208         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32209
32210 2010-07-27  Bruno Haible  <bruno@clisp.org>
32211
32212         mbspcasecmp: Fix function specification.
32213         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32214         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32215         Reported by Eric Blake <eblake@redhat.com>.
32216
32217 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32218
32219         timespec: use cast and not conditional, as truncation isn't possible
32220         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32221         instead of a conditional.  Comment about the situation in more detail.
32222         This undoes most of the 2009-10-29 patch.
32223
32224 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32225
32226         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32227         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32228         * lib/unistr/u8-strchr.c: Likewise.
32229         * modules/unistr/u8-chr: Depend on memchr.
32230
32231         unistr/u*-strchr: add tests
32232         * modules/unistr/u8-strchr-tests: New file.
32233         * modules/unistr/u16-strchr-tests: New file.
32234         * modules/unistr/u32-strchr-tests: New file.
32235         * tests/unistr/test-strchr.h: New file.
32236         * tests/unistr/test-u8-strchr.c: New file.
32237         * tests/unistr/test-u16-strchr.c: New file.
32238         * tests/unistr/test-u32-strchr.c: New file.
32239
32240         unistr/u*-chr: test multibyte sequences more
32241         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32242         test vector.
32243         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32244         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32245         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32246
32247         unistr/u*-chr: test multibyte sequences
32248         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32249
32250         unistr/u*-chr: prepare for multibyte tests
32251         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32252         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32253         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32254         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32255         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32256         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32257
32258 2010-07-18  Bruno Haible  <bruno@clisp.org>
32259
32260         unistr/u8-strchr: Optimize non-ASCII argument case.
32261         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32262         because the first byte often matches anyway.
32263         Reported by Pádraig Brady <P@draigbrady.com>.
32264
32265 2010-07-15  Karl Berry  <karl@gnu.org>
32266
32267         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32268
32269 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32270
32271         getcwd: on Solaris, work better if ancestors are inaccessible
32272         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32273         buffer and size, try again with a large buffer.  This works better
32274         on Solaris, since its getcwd succeeds even if the path to the root
32275         is inaccessible, and this is helpful in common cases such as .zfs
32276         hidden directories.  Problem reported by J Chapman Flack in
32277         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32278         Use system getcwd if it's declared, not merely if it's partly
32279         working; use the partly-working test only to avoid needless effort
32280         if the system getcwd fails.
32281         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32282         comment that was already obsolete and is now even more obsolete.
32283         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32284         now might call strdup.
32285
32286 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32287
32288         pthread: Add enough so that coreutils/src/sort.c compiles.
32289         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32290         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32291         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32292         Include <sys/types.h>, in case it defines pthread_t.
32293         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32294         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32295         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32296         (pthread_rwlockattr_t, pthread_spinlock_t):
32297         New typedefs, if HAVE_PTHREAD_T is not defined.
32298         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32299         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32300         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32301         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32302         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32303         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32304         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32305         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32306         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32307         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32308         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32309         New macros.
32310         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32311         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32312         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32313         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32314         (pthread_spin_unlock): New dummy functions.
32315         (pthread_create): Return EAGAIN; don't set errno.
32316         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32317         require AC_C_INLINE.
32318         * modules/pthread (Depends-on): Add sched, time.
32319         (pthread.h): Use AM_V_GEN.
32320
32321 2010-07-13  Bruno Haible  <bruno@clisp.org>
32322
32323         striconveh: Don't malloc memory if the result buffer is sufficient.
32324         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32325         buffer if its size is sufficient.
32326         Reported by Ludovic Courtès <ludo@gnu.org>.
32327
32328 2010-07-13  Bruno Haible  <bruno@clisp.org>
32329
32330         strtod: Add safety check.
32331         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32332
32333 2010-07-12  Bruno Haible  <bruno@clisp.org>
32334
32335         Unify tests that set gl_cv_func_ldexpl_no_libm.
32336         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32337         gl_FUNC_LDEXPL.
32338         (gl_FUNC_LDEXPL): Invoke it.
32339         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32340
32341 2010-07-12  Bruno Haible  <bruno@clisp.org>
32342
32343         Unify tests that set gl_cv_func_ldexp_no_libm.
32344         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32345         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32346         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32347         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32348         * modules/strtod (Files): Add m4/ldexp.m4.
32349
32350 2010-07-12  Bruno Haible  <bruno@clisp.org>
32351
32352         Unify tests that set gl_cv_func_frexpl_no_libm.
32353         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32354         gl_FUNC_FREXPL_NO_LIBM.
32355         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32356         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32357
32358 2010-07-12  Bruno Haible  <bruno@clisp.org>
32359
32360         Unify tests that set gl_cv_func_frexp_no_libm.
32361         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32362         gl_FUNC_FREXP_NO_LIBM.
32363         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32364         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32365
32366 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32367
32368         memcoll: clarify sizes versus lengths, document better, and tweak perf
32369         * lib/memcoll.c (strcoll_loop, memcoll0):
32370         Improve quality of descriptive comments.  Name variables
32371         consistently as to whether they are lengths (which do not include
32372         terminating null) versus sizes (which do).
32373         * lib/xmemcoll.c (xmemcoll0): Likewise.
32374         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32375         returned when s1size == 0; this is easier to compile and saves
32376         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32377
32378 2010-07-12  Bruno Haible  <bruno@clisp.org>
32379
32380         Tests for module '_Exit'.
32381         * modules/_Exit-tests: New file.
32382         * tests/test-_Exit.sh: New file.
32383         * tests/test-_Exit.c: New file.
32384
32385         New module '_Exit'.
32386         * lib/stdlib.in.h (__attribute__): New macro.
32387         (_Exit): New declaration.
32388         * lib/_Exit.c: New file.
32389         * m4/_Exit.m4: New file.
32390         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32391         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32392         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32393         * modules/_Exit: New file.
32394         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32395         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32396
32397 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32398
32399         strtod: make it more-accurate typically, and don't require libm
32400         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32401         Include limits.h.  Don't include string.h.
32402         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32403         (locale_isspace): New function, so that no casts are needed to
32404         check whether *s is a space.
32405         (ldexp): Provide an unused dummy if not available.
32406         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32407         (strtod): Use them.  This implementation prefers to use the
32408         underlying strtod if available, falling back on our own code
32409         only to fix known bugs.  This is more likely to produce an
32410         accurate result.  Also, it avoids the use of libm functions.
32411         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32412         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32413         was absent, but it caused a test failure with coreutils.
32414         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32415         with libm.
32416         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32417         * modules/strtod-tests (Makefile.am): Likewise.
32418
32419 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32420             Bruno Haible  <bruno@clisp.org>
32421
32422         unistr/u8-strchr: Optimize ASCII argument case.
32423         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32424
32425 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32426
32427         (x)memcoll: minor tweaks
32428         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32429         is after the type that it qualifies.
32430         (memcoll0): Likewise.
32431         * lib/memcoll.h (memcoll0): Likewise.
32432         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32433         * lib/xmemcoll.h (xmemcoll0): Likewise.
32434         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32435         differs from memcoll in that the NUL byte is part of the argument.
32436         Omit the abort-checks, as performance is a real issue here.  Plus,
32437         the checks were wrong anyway (an off-by-one error).  Omit local
32438         variable 'diff', as it's a bit clearer that way.
32439         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32440         no longer needed.
32441
32442 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32443
32444         (x)memcoll: speedup when input is known to be NUL delimited
32445         * lib/memcoll.c: Include stdlib.
32446         (memcoll0): New function.
32447         (strcoll_loop): New function, refactored for use in both memcoll
32448         and memcoll0.
32449         * lib/memcoll.h (memcoll0): Add prototype.
32450         * lib/xmemcoll.c (xmemcoll0): New function.
32451         (collate_error): New function, refactored for use in both xmemcoll
32452         and xmemcoll0.
32453         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32454         * m4/memcoll.m4: add inline invocation.
32455
32456 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32457
32458         * build-aux/bootstrap: Remove any local translations
32459         from the translation project synchronization directory,
32460         so that local only translations are not distributed.
32461
32462 2010-07-04  Bruno Haible  <bruno@clisp.org>
32463
32464         fsusage: Clarify which code applies to which platforms.
32465         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32466         platform.
32467         * lib/fsusage.c (get_fs_usage): Likewise.
32468
32469 2010-07-04  Bruno Haible  <bruno@clisp.org>
32470
32471         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32472         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32473         Reported by Martin Lambers <marlam@marlam.de>.
32474
32475 2010-07-04  Jim Meyering  <meyering@redhat.com>
32476
32477         hash: once again explicitly disallow insertion of NULL
32478         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32479         inserting a NULL pointer cannot work with these functions.
32480         Add a comment with details.
32481         This reverts part of the 2010-07-01 commit, 5bef1a35
32482         "hash: extend module to deal with non-pointer keys".
32483
32484 2010-07-01  Bruno Haible  <bruno@clisp.org>
32485
32486         stdbool: Update doc.
32487         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32488         Info from Christian Weisgerber <naddy@mips.inka.de>.
32489
32490 2010-07-01  Jim Meyering  <meyering@redhat.com>
32491
32492         hash: extend module to deal with non-pointer keys
32493         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32494         but that allows insertion of non-pointer entries.
32495         Do not disallow an ENTRY value of NULL.
32496         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32497         * lib/hash.h (hash_insert0): Declare.
32498
32499 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32500
32501         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32502         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32503         not present (i.e. with autoconf 2.59 and when using gettextize, not
32504         gnulib), require AC_GNU_SOURCE instead.
32505
32506 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32507
32508         idpriv-drop: Fix tests.
32509         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32510         not to the test-idpriv-droptemp program.
32511
32512 2010-06-29  Bruno Haible  <bruno@clisp.org>
32513
32514         string: Fix syntax error with g++ 2.96.
32515         * lib/string.in.h (__pure__): Remove definition.
32516         (_GL_ATTRIBUTE_PURE): New macro.
32517         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32518         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32519         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32520
32521 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32522
32523         unitypes: Fix bug introduced on 2010-05-18.
32524         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32525
32526 2010-06-22  Eric Blake  <eblake@redhat.com>
32527
32528         memmem: slight optimization
32529         * lib/str-two-way.h (critical_factorization): Update comments.
32530         Reduce work during factorization phase.
32531         Reported by Carlos Bueno <carlos@bueno.org>.
32532
32533 2010-06-21  Bruno Haible  <bruno@clisp.org>
32534
32535         Fix HAVE_CALLOC_POSIX misnomer.
32536         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32537         !HAVE_CALLOC_POSIX.
32538         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32539         HAVE_CALLOC_POSIX.
32540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32541         instead of HAVE_CALLOC_POSIX.
32542         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32543         HAVE_CALLOC_POSIX.
32544
32545         Use modern idiom for calloc() replacement.
32546         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32547         AC_FUNC_CALLOC.
32548         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32549         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32550         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32551         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32552         (gl_REPLACE_CALLOC): New macro.
32553
32554 2010-06-21  Bruno Haible  <bruno@clisp.org>
32555
32556         Fix HAVE_REALLOC_POSIX misnomer.
32557         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32558         !HAVE_REALLOC_POSIX.
32559         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32560         HAVE_REALLOC_POSIX.
32561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32562         instead of HAVE_REALLOC_POSIX.
32563         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32564         HAVE_REALLOC_POSIX.
32565
32566         Use modern idiom for realloc() replacement.
32567         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32568         AC_FUNC_REALLOC.
32569         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32570         Autoconf's AC_FUNC_REALLOC.
32571         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32572         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32573         (gl_REPLACE_REALLOC): New macro.
32574         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32575
32576 2010-06-21  Bruno Haible  <bruno@clisp.org>
32577
32578         Fix HAVE_MALLOC_POSIX misnomer.
32579         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32580         !HAVE_MALLOC_POSIX.
32581         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32582         HAVE_MALLOC_POSIX.
32583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32584         instead of HAVE_MALLOC_POSIX.
32585         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32586         HAVE_MALLOC_POSIX.
32587
32588         Use modern idiom for malloc() replacement.
32589         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32590         AC_FUNC_MALLOC.
32591         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32592         Autoconf's AC_FUNC_MALLOC.
32593         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32594         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32595         (gl_REPLACE_MALLOC): New macro.
32596         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32597
32598 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32599
32600         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32601         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32602         This macro takes 3 arguments, not 4.
32603
32604 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32605
32606         ipv6: fix detection under mingw
32607         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32608         in6_addr.
32609
32610 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32611
32612         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32613         that strtod() works when cross-compiling to a glibc version known
32614         to work.
32615
32616 2010-06-15  Bruno Haible  <bruno@clisp.org>
32617
32618         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32619
32620 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32621
32622         select: Correct timeout.
32623         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32624
32625 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32626
32627         git-version-gen: init shell var to avoid env var influence
32628         * build-aux/git-version-gen (v): Init shell var to empty.
32629
32630 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32631
32632         priv-set: Don't assume that priv.h exists merely because getppriv does.
32633         See Jan Andersen's bug report about AIX 5L in
32634         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32635         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32636         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32637         * lib/priv-set.h: Likewise.
32638         * tests/test-priv-set.c: Likewise.
32639
32640 2010-06-13  Bruno Haible  <bruno@clisp.org>
32641
32642         relocatable: Make it easier to test whether to install wrappers.
32643         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32644         RELOCATABLE_VIA_WRAPPER.
32645
32646 2010-06-13  Bruno Haible  <bruno@clisp.org>
32647
32648         gnulib-tool: Display specified modules and dependencies differently.
32649         * gnulib-tool (func_show_module_list): New function.
32650         (func_import, func_create_testdir): Invoke it.
32651         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32652
32653 2010-06-13  Bruno Haible  <bruno@clisp.org>
32654
32655         gnulib-tool: Align code of func_import and func_create_testdir.
32656         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32657         specified_modules.
32658
32659 2010-06-12  Jim Meyering  <meyering@redhat.com>
32660
32661         test-inttostr: avoid spurious failure on Solaris 9
32662         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32663         to accept "%ju".  Reported by Bruno Haible.
32664
32665 2010-06-11  Jim Meyering  <meyering@redhat.com>
32666
32667         test-sys_socket: mark variables as used more readably
32668         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32669         as "used" explicitly via (void) statement casts.  This is more
32670         readable than using them in an artificial return expression.
32671         Suggestion from Bruno Haible.
32672
32673 2010-06-11  Bruno Haible  <bruno@clisp.org>
32674
32675         Avoid some more warnings from "gcc -Wwrite-strings".
32676         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32677         to 'const char *'.
32678         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32679         * tests/test-c-strcasestr.c (main): Likewise.
32680         * tests/test-mbscasestr1.c (main): Likewise.
32681         * tests/test-mbscasestr2.c (main): Likewise.
32682         * tests/test-memmem.c (main): Likewise.
32683         * tests/test-strstr.c (main): Likewise.
32684         * tests/test-strcasestr.c (main): Likewise.
32685
32686 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32687
32688         init.sh: change framework_failure_ to fail with status 99, not 1
32689         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32690         automake's parallel-tests rule that this is an unexpected failure,
32691         even if the test is listed in XFAIL_TESTS.
32692
32693 2010-06-11  Jim Meyering  <meyering@redhat.com>
32694
32695         test-inttostr: avoid warnings about 4-6KB literal strings
32696         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32697         Include "macros.h", for its definition of ASSERT.
32698         (CK): s/assert/ASSERT/
32699         * modules/inttostr-tests (Files): Add macros.h.
32700
32701         init.sh: don't use $ME_ or skip_ before they are defined
32702         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32703         their first uses.  Also hoist their companions: warn_, fail_,
32704         framework_failure_, $stderr_fileno.  Prompted by a patch from
32705         Stefano Lattarini.
32706
32707         test-sys_socket: avoid set-but-not-used warnings from gcc
32708         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32709         avoid warning about set-but-not-used variables.
32710
32711         test-xvasprintf: avoid 'const' discard warnings
32712         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32713         "const" when assigning from literal strings.
32714         (test_xasprintf): Add "void" in function argument list to placate
32715         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32716
32717         tests: avoid compilation warnings in argmatch and exclude tests...
32718         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32719         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32720         Since it always exits, declare with the "noreturn" attribute.
32721         * tests/test-argmatch.c: Likewise.
32722
32723         tests: avoid 'const' discard warnings in mbsstr tests
32724         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32725         * tests/test-mbsstr2.c (main): Likewise.
32726
32727         test-verify: avoid warning from gcc's -Wmissing-declarations
32728         * tests/test-verify.c (function): Declare to be static.
32729
32730         test-inttostr.c: include <string.h> for use of strcmp
32731         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32732
32733         test-linkat: avoid failed assertion on "other" architectures
32734         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32735         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32736         sparc: https://bugs.launchpad.net/bugs/591968
32737
32738 2010-06-11  Jim Meyering  <meyering@redhat.com>
32739
32740         printf.m4: avoid autoconf's "Expanded Before Required" warning
32741         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32742         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32743         autoconf warning.
32744
32745 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32746
32747         Replacement header templates are now named with ".in", not "_".
32748         * doc/gnulib-intro.texi: Correct.
32749
32750 2010-06-10  Jim Meyering  <meyering@redhat.com>
32751
32752         inttostr-tests: depend on snprintf, not snprintf-posix
32753         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32754         snprintf-posix, to avoid this aclocal failure:
32755           missing file gnulib-tests/vasnprintf.c
32756           configure.ac:45: error: expected source file, required through \
32757           AC_LIBSOURCES, not found
32758
32759 2010-06-10  Jim Meyering  <meyering@redhat.com>
32760
32761         inttostr: add a new function, inttostr, and tests
32762         The namesake function was not available.  The existence of the
32763         template file, inttostr.c makes its addition nontrivial.
32764         * lib/anytostr.c: Rename from inttostr.c.
32765         (anytostr): Rename from inttostr.
32766         * lib/inttostr.c: New file.
32767         * modules/inttostr (Files): Add anytostr.c.
32768         (Makefile.am): Set lib_SOURCES instead of ...
32769         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32770         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32771         * lib/offtostr.c: Likewise.
32772         * lib/uinttostr.c: Likewise.
32773         * lib/umaxtostr.c: Likewise.
32774         * modules/inttostr-tests: New file.
32775         * tests/test-inttostr.c: New file.  Test these functions.
32776
32777 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32778             Bruno Haible  <bruno@clisp.org>
32779
32780         Add "Extending Gnulib" chapter to manual.
32781         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32782         chapter.
32783         (Extending Gnulib): New chapter.
32784         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32785         chapter.
32786
32787 2010-06-09  Bruno Haible  <bruno@clisp.org>
32788
32789         Avoid relocwrapper link errors due to gnulib replacement functions.
32790         * lib/areadlink.c: Use the system's malloc, realloc functions.
32791         (areadlink): Set errno to ENOMEM explicitly.
32792         * modules/areadlink (Depends-on): Remove malloc-posix.
32793         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32794
32795 2010-06-09  Bruno Haible  <bruno@clisp.org>
32796
32797         Avoid relocwrapper link errors due to gnulib replacement functions.
32798         * lib/canonicalize-lgpl.c: Use the system's malloc function.
32799         * lib/malloca.c: Likewise.
32800         * lib/relocatable.c: Likewise.
32801         * lib/progreloc.c: Use the system's malloc, sprintf functions.
32802         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
32803         * lib/setenv.c: Use the system's malloc, realloc functions.
32804         * lib/strerror.c: Use the system's sprintf function.
32805         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32806
32807 2010-06-04  Bruno Haible  <bruno@clisp.org>
32808
32809         Prefer documented low-level autoconf macro names.
32810         * m4/lib-link.m4: Use m4_translit instead of translit.
32811         * m4/environ.m4: Likewise.
32812         * m4/mathfunc.m4: Likewise.
32813         * m4/onceonly.m4: Likewise.
32814         * m4/stdint.m4: Likewise.
32815         Suggested by Eric Blake.
32816
32817 2010-06-04  Martin Lambers  <marlam@marlam.de>
32818             Bruno Haible  <bruno@clisp.org>
32819
32820         havelib: Allow library names with '+' characters.
32821         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32822         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
32823
32824 2010-06-09  Bruno Haible  <bruno@clisp.org>
32825
32826         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
32827         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
32828         realloc failed.
32829
32830 2010-06-08  Peter Simons  <simons@cryp.to>
32831
32832         maint.mk: make the news-check rule more configurable
32833         * top/maint.mk (news-check-lines-spec): New variable.
32834         (news-check): Use "sed -n 1,10p" in place of "head".
32835
32836 2010-06-07  Jim Meyering  <meyering@redhat.com>
32837
32838         do-release-commit-and-tag: fix typo in --help
32839         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
32840
32841         regex: avoid new dead-code warning with gcc-4.6.0
32842         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
32843         if-block containing a while-loop.  It's been unused for at least
32844         5 years.
32845
32846 2010-06-05  Bruno Haible  <bruno@clisp.org>
32847
32848         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32849         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32850
32851 2010-06-04  Bruno Haible  <bruno@clisp.org>
32852
32853         Update to GNU gettext 0.18.1.
32854         * modules/gettext (configure.ac): Require gettext infrastructure from
32855         version 0.18.1.
32856
32857 2010-06-03  Bruno Haible  <bruno@clisp.org>
32858
32859         Don't use AC_LIBOBJ with file names in subdirectories.
32860         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32861         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32862         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32863         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32864         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32865         gl_LIBUNISTRING_LIBSOURCE.
32866         (Makefile.am): Augment lib_SOURCES here, conditionally.
32867         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32868
32869 2010-06-03  Bruno Haible  <bruno@clisp.org>
32870
32871         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32872         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32873         expansion does not end with a newline.
32874         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32875         unnecessary newline.
32876
32877 2010-06-03  Bruno Haible  <bruno@clisp.org>
32878
32879         Reduce dependencies.
32880         * tests/test-quotearg.h: New file, extracted from
32881         tests/test-quotearg.c.
32882         * tests/test-quotearg-simple.c: New file, extracted from
32883         tests/test-quotearg.c.
32884         * tests/test-quotearg.c: Don't include <ctype.h>.
32885         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32886         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32887         use_quote_double_quotes, use_quotearg_colon): Moved to
32888         tests/test-quotearg.h.
32889         (results_g, flag_results, custom_quotes, custom_results): Moved
32890         to tests/test-quotearg-simple.c.
32891         (main): Moved the part that does not depend on gettext to
32892         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32893         performed.
32894         * modules/quotearg-simple: New file.
32895         * modules/quotearg-simple-tests: New file.
32896         * modules/quotearg (Depends-on): Add quotearg-simple.
32897         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32898         (Files): Add tests/test-quotearg.h.
32899         Reported by Paolo Bonzini.
32900
32901 2010-06-03  Bruno Haible  <bruno@clisp.org>
32902
32903         Reduce dependencies.
32904         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32905
32906 2010-06-03  Bruno Haible  <bruno@clisp.org>
32907
32908         time: Undefine more broken macros.
32909         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32910         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32911         Reported by Eric Blake.
32912
32913 2010-06-03  Bruno Haible  <bruno@clisp.org>
32914
32915         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32916         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32917         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32918         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32919         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32920         Reported by Ludovic Courtès <ludo@gnu.org>.
32921
32922 2010-06-02  Eric Blake  <eblake@redhat.com>
32923
32924         time: work with mingw + pthreads-win32 library
32925         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32926         if timespec is defined only in pthread.h.
32927         * modules/time (Makefile.am): Substitute it.
32928         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32929         <pthread.h>, when needed.
32930         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32931         from the library.
32932
32933 2010-05-31  Bruno Haible  <bruno@clisp.org>
32934
32935         Avoid expanding two macros in the wrong order.
32936         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32937         gl_LIBUNISTRING if it is defined.
32938         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32939         autoconf >= 2.64.
32940         Reported by Ludovic Courtès <ludo@gnu.org>.
32941
32942 2010-05-27  Jim Meyering  <meyering@redhat.com>
32943
32944         maint.mk: also prohibit "#undef" of always-defined symbols
32945         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32946         Allow more than one space before the symbol name.
32947         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32948         the regexp uses alternation.
32949
32950 2010-05-26  Eric Blake  <eblake@redhat.com>
32951
32952         maint.mk: avoid echo -e
32953         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32954         Convert all uses of echo -* to printf.
32955         Reported by Matthias Bolte.
32956
32957 2010-05-25  Bruno Haible  <bruno@clisp.org>
32958
32959         Update to GNU gettext 0.18, part 2.
32960         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32961         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32962
32963 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32964
32965         Add missing include in test-pwrite.c.
32966         * tests/test-pwrite.c: Include string.h, for strcmp.
32967
32968 2010-05-24  Bruno Haible  <bruno@clisp.org>
32969
32970         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32971
32972 2010-05-24  Bruno Haible  <bruno@clisp.org>
32973
32974         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32975         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32976         iconveh_error argument.
32977         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32978         U_STRCONV_TO_LOCALE.
32979         * lib/unistr/u16-strcoll.c: Likewise.
32980         * lib/unistr/u32-strcoll.c: Likewise.
32981         * modules/unistr/u8-strcoll (Depends-on): Add
32982         uniconv/u8-strconv-to-enc, localcharset. Remove
32983         uniconv/u8-strconv-to-locale.
32984         (configure.ac): Bump version number.
32985         * modules/unistr/u16-strcoll (Depends-on): Add
32986         uniconv/u16-strconv-to-enc, localcharset. Remove
32987         uniconv/u16-strconv-to-locale.
32988         (configure.ac): Bump version number.
32989         * modules/unistr/u32-strcoll (Depends-on): Add
32990         uniconv/u32-strconv-to-enc, localcharset. Remove
32991         uniconv/u32-strconv-to-locale.
32992         (configure.ac): Bump version number.
32993
32994 2010-05-24  Bruno Haible  <bruno@clisp.org>
32995
32996         Avoid a test failure on NetBSD 5.0.
32997         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32998         an iconv() bug.
32999
33000 2010-05-24  Bruno Haible  <bruno@clisp.org>
33001
33002         Adjust #include directive style.
33003         * modules/regex (Includes): Recommend to write <regex.h>.
33004
33005 2010-05-24  Bruno Haible  <bruno@clisp.org>
33006
33007         regex: Don't require alloca.
33008         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33009         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33010         only inside if (0).
33011
33012 2010-05-23  Jim Meyering  <meyering@redhat.com>
33013
33014         test-renameat.c: include <sys/stat.h>
33015         * tests/test-renameat.c: Include <sys/stat.h>; required for
33016         definition of S_IS* macros.
33017
33018 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33019
33020         Update maintainer documentation for 'relocatable-prog' module.
33021         * doc/relocatable-maint.texi: Update.
33022         Comments by Bruno Haible.
33023
33024 2010-05-23  Bruno Haible  <bruno@clisp.org>
33025
33026         git-merge-changelog: Enable --split-merged-entry by default.
33027         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33028         (usage): Don't mention this option any more.
33029         Reported by Ralf Wildenhues.
33030
33031 2010-05-23  Jim Meyering  <meyering@redhat.com>
33032
33033         test-pwrite: do not leave behind a test file named "out"
33034         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33035         The trivial-looking use of init.sh is really necessary.
33036         It ensures that the temporary file, "out", is created in
33037         a temporary directory, and removed upon termination.
33038         * tests/test-pwrite.sh: Re-add file.
33039         * modules/pwrite-tests: Reference it.
33040
33041 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33042
33043         Fix output redirection buglet in init.sh.
33044         * tests/init.sh: Fix redirection of stderr.
33045
33046 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33047
33048         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33049
33050 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33051
33052         * modules/valgrind-tests: New file.
33053         * m4/valgrind-tests.m4: New file.
33054         * doc/valgrind-tests.texi: New file.
33055         * doc/gnulib.texi (Running self-tests under valgrind): New
33056         section.
33057
33058 2010-05-19  Bruno Haible  <bruno@clisp.org>
33059
33060         Clean up dead code in recent commit.
33061         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33062         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33063         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33064         Suggested by Paolo Bonzini.
33065
33066 2010-05-19  Bruno Haible  <bruno@clisp.org>
33067
33068         Avoid valgrind error reports from libunistring.
33069         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33070         * modules/libunistring (Files): Add it.
33071         * modules/libunistring-optional (Files): Likewise.
33072
33073 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33074             Bruno Haible  <bruno@clisp.org>
33075
33076         New module 'libunistring-optional'.
33077         * modules/libunistring-optional: New file.
33078         * m4/libunistring-base.m4: New file.
33079         * m4/libunistring-optional.m4: New file.
33080         * lib/unicase.in.h: Renamed from lib/unicase.h.
33081         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33082         * lib/unictype.in.h: Renamed from lib/unictype.h.
33083         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33084         * lib/uniname.in.h: Renamed from lib/uniname.h.
33085         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33086         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33087         * lib/unistr.in.h: Renamed from lib/unistr.h.
33088         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33089         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33090         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33091         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33092         gl_LIBUNISTRING. If the library was found, determine the installed
33093         version and set LIBUNISTRING_VERSION.
33094         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33095         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33096         handle a configuration option --with-included-libunistring.
33097         * modules/libunistring (Files): Add m4/absolute-header.m4.
33098         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33099         Add m4/libunistring-base.m4.
33100         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33101         (Makefile.am): Build unicase.h from unicase.in.h.
33102         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33103         Add m4/libunistring-base.m4.
33104         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33105         (Makefile.am): Build uniconv.h from uniconv.in.h.
33106         * modules/unictype/base (Files): Use unictype.in.h instead of
33107         unictype.h. Add m4/libunistring-base.m4.
33108         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33109         (Makefile.am): Build unictype.h from unictype.in.h.
33110         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33111         Add m4/libunistring-base.m4.
33112         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33113         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33114         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33115         Add m4/libunistring-base.m4.
33116         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33117         (Makefile.am): Build uniname.h from uniname.in.h.
33118         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33119         Add m4/libunistring-base.m4.
33120         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33121         (Makefile.am): Build uninorm.h from uninorm.in.h.
33122         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33123         unistdio.h. Add m4/libunistring-base.m4.
33124         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33125         (Makefile.am): Build unistdio.h from unistdio.in.h.
33126         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33127         Add m4/libunistring-base.m4.
33128         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33129         (Makefile.am): Build unistr.h from unistr.in.h.
33130         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33131         Add m4/libunistring-base.m4.
33132         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33133         (Makefile.am): Build unitypes.h from unitypes.in.h.
33134         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33135         Add m4/libunistring-base.m4.
33136         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33137         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33138         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33139         uniwidth.h. Add m4/libunistring-base.m4.
33140         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33141         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33142         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33143         instead of augmenting lib_SOURCES.
33144         * modules/unicase/empty-suffix-context: Likewise.
33145         * modules/unicase/locale-language: Likewise.
33146         * modules/unicase/tolower: Likewise.
33147         * modules/unicase/totitle: Likewise.
33148         * modules/unicase/toupper: Likewise.
33149         * modules/unicase/u8-casecmp: Likewise.
33150         * modules/unicase/u8-casecoll: Likewise.
33151         * modules/unicase/u8-casefold: Likewise.
33152         * modules/unicase/u8-casexfrm: Likewise.
33153         * modules/unicase/u8-ct-casefold: Likewise.
33154         * modules/unicase/u8-ct-tolower: Likewise.
33155         * modules/unicase/u8-ct-totitle: Likewise.
33156         * modules/unicase/u8-ct-toupper: Likewise.
33157         * modules/unicase/u8-is-cased: Likewise.
33158         * modules/unicase/u8-is-casefolded: Likewise.
33159         * modules/unicase/u8-is-lowercase: Likewise.
33160         * modules/unicase/u8-is-titlecase: Likewise.
33161         * modules/unicase/u8-is-uppercase: Likewise.
33162         * modules/unicase/u8-prefix-context: Likewise.
33163         * modules/unicase/u8-suffix-context: Likewise.
33164         * modules/unicase/u8-tolower: Likewise.
33165         * modules/unicase/u8-totitle: Likewise.
33166         * modules/unicase/u8-toupper: Likewise.
33167         * modules/unicase/u16-casecmp: Likewise.
33168         * modules/unicase/u16-casecoll: Likewise.
33169         * modules/unicase/u16-casefold: Likewise.
33170         * modules/unicase/u16-casexfrm: Likewise.
33171         * modules/unicase/u16-ct-casefold: Likewise.
33172         * modules/unicase/u16-ct-tolower: Likewise.
33173         * modules/unicase/u16-ct-totitle: Likewise.
33174         * modules/unicase/u16-ct-toupper: Likewise.
33175         * modules/unicase/u16-is-cased: Likewise.
33176         * modules/unicase/u16-is-casefolded: Likewise.
33177         * modules/unicase/u16-is-lowercase: Likewise.
33178         * modules/unicase/u16-is-titlecase: Likewise.
33179         * modules/unicase/u16-is-uppercase: Likewise.
33180         * modules/unicase/u16-prefix-context: Likewise.
33181         * modules/unicase/u16-suffix-context: Likewise.
33182         * modules/unicase/u16-tolower: Likewise.
33183         * modules/unicase/u16-totitle: Likewise.
33184         * modules/unicase/u16-toupper: Likewise.
33185         * modules/unicase/u32-casecmp: Likewise.
33186         * modules/unicase/u32-casecoll: Likewise.
33187         * modules/unicase/u32-casefold: Likewise.
33188         * modules/unicase/u32-casexfrm: Likewise.
33189         * modules/unicase/u32-ct-casefold: Likewise.
33190         * modules/unicase/u32-ct-tolower: Likewise.
33191         * modules/unicase/u32-ct-totitle: Likewise.
33192         * modules/unicase/u32-ct-toupper: Likewise.
33193         * modules/unicase/u32-is-cased: Likewise.
33194         * modules/unicase/u32-is-casefolded: Likewise.
33195         * modules/unicase/u32-is-lowercase: Likewise.
33196         * modules/unicase/u32-is-titlecase: Likewise.
33197         * modules/unicase/u32-is-uppercase: Likewise.
33198         * modules/unicase/u32-prefix-context: Likewise.
33199         * modules/unicase/u32-suffix-context: Likewise.
33200         * modules/unicase/u32-tolower: Likewise.
33201         * modules/unicase/u32-totitle: Likewise.
33202         * modules/unicase/u32-toupper: Likewise.
33203         * modules/unicase/ulc-casecmp: Likewise.
33204         * modules/unicase/ulc-casecoll: Likewise.
33205         * modules/unicase/ulc-casexfrm: Likewise.
33206         * modules/uniconv/u8-conv-from-enc: Likewise.
33207         * modules/uniconv/u8-conv-to-enc: Likewise.
33208         * modules/uniconv/u8-strconv-from-enc: Likewise.
33209         * modules/uniconv/u8-strconv-from-locale: Likewise.
33210         * modules/uniconv/u8-strconv-to-enc: Likewise.
33211         * modules/uniconv/u8-strconv-to-locale: Likewise.
33212         * modules/uniconv/u16-conv-from-enc: Likewise.
33213         * modules/uniconv/u16-conv-to-enc: Likewise.
33214         * modules/uniconv/u16-strconv-from-enc: Likewise.
33215         * modules/uniconv/u16-strconv-from-locale: Likewise.
33216         * modules/uniconv/u16-strconv-to-enc: Likewise.
33217         * modules/uniconv/u16-strconv-to-locale: Likewise.
33218         * modules/uniconv/u32-conv-from-enc: Likewise.
33219         * modules/uniconv/u32-conv-to-enc: Likewise.
33220         * modules/uniconv/u32-strconv-from-enc: Likewise.
33221         * modules/uniconv/u32-strconv-from-locale: Likewise.
33222         * modules/uniconv/u32-strconv-to-enc: Likewise.
33223         * modules/uniconv/u32-strconv-to-locale: Likewise.
33224         * modules/unictype/bidicategory-byname: Likewise.
33225         * modules/unictype/bidicategory-name: Likewise.
33226         * modules/unictype/bidicategory-of: Likewise.
33227         * modules/unictype/bidicategory-test: Likewise.
33228         * modules/unictype/block-list: Likewise.
33229         * modules/unictype/block-test: Likewise.
33230         * modules/unictype/category-C: Likewise.
33231         * modules/unictype/category-Cc: Likewise.
33232         * modules/unictype/category-Cf: Likewise.
33233         * modules/unictype/category-Cn: Likewise.
33234         * modules/unictype/category-Co: Likewise.
33235         * modules/unictype/category-Cs: Likewise.
33236         * modules/unictype/category-L: Likewise.
33237         * modules/unictype/category-Ll: Likewise.
33238         * modules/unictype/category-Lm: Likewise.
33239         * modules/unictype/category-Lo: Likewise.
33240         * modules/unictype/category-Lt: Likewise.
33241         * modules/unictype/category-Lu: Likewise.
33242         * modules/unictype/category-M: Likewise.
33243         * modules/unictype/category-Mc: Likewise.
33244         * modules/unictype/category-Me: Likewise.
33245         * modules/unictype/category-Mn: Likewise.
33246         * modules/unictype/category-N: Likewise.
33247         * modules/unictype/category-Nd: Likewise.
33248         * modules/unictype/category-Nl: Likewise.
33249         * modules/unictype/category-No: Likewise.
33250         * modules/unictype/category-P: Likewise.
33251         * modules/unictype/category-Pc: Likewise.
33252         * modules/unictype/category-Pd: Likewise.
33253         * modules/unictype/category-Pe: Likewise.
33254         * modules/unictype/category-Pf: Likewise.
33255         * modules/unictype/category-Pi: Likewise.
33256         * modules/unictype/category-Po: Likewise.
33257         * modules/unictype/category-Ps: Likewise.
33258         * modules/unictype/category-S: Likewise.
33259         * modules/unictype/category-Sc: Likewise.
33260         * modules/unictype/category-Sk: Likewise.
33261         * modules/unictype/category-Sm: Likewise.
33262         * modules/unictype/category-So: Likewise.
33263         * modules/unictype/category-Z: Likewise.
33264         * modules/unictype/category-Zl: Likewise.
33265         * modules/unictype/category-Zp: Likewise.
33266         * modules/unictype/category-Zs: Likewise.
33267         * modules/unictype/category-and: Likewise.
33268         * modules/unictype/category-and-not: Likewise.
33269         * modules/unictype/category-byname: Likewise.
33270         * modules/unictype/category-name: Likewise.
33271         * modules/unictype/category-none: Likewise.
33272         * modules/unictype/category-of: Likewise.
33273         * modules/unictype/category-or: Likewise.
33274         * modules/unictype/category-test: Likewise.
33275         * modules/unictype/combining-class: Likewise.
33276         * modules/unictype/ctype-alnum: Likewise.
33277         * modules/unictype/ctype-alpha: Likewise.
33278         * modules/unictype/ctype-blank: Likewise.
33279         * modules/unictype/ctype-cntrl: Likewise.
33280         * modules/unictype/ctype-digit: Likewise.
33281         * modules/unictype/ctype-graph: Likewise.
33282         * modules/unictype/ctype-lower: Likewise.
33283         * modules/unictype/ctype-print: Likewise.
33284         * modules/unictype/ctype-punct: Likewise.
33285         * modules/unictype/ctype-space: Likewise.
33286         * modules/unictype/ctype-upper: Likewise.
33287         * modules/unictype/ctype-xdigit: Likewise.
33288         * modules/unictype/decimal-digit: Likewise.
33289         * modules/unictype/digit: Likewise.
33290         * modules/unictype/mirror: Likewise.
33291         * modules/unictype/numeric: Likewise.
33292         * modules/unictype/property-alphabetic: Likewise.
33293         * modules/unictype/property-ascii-hex-digit: Likewise.
33294         * modules/unictype/property-bidi-arabic-digit: Likewise.
33295         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33296         * modules/unictype/property-bidi-block-separator: Likewise.
33297         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33298         * modules/unictype/property-bidi-common-separator: Likewise.
33299         * modules/unictype/property-bidi-control: Likewise.
33300         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33301         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33302         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33303         * modules/unictype/property-bidi-european-digit: Likewise.
33304         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33305         * modules/unictype/property-bidi-left-to-right: Likewise.
33306         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33307         * modules/unictype/property-bidi-other-neutral: Likewise.
33308         * modules/unictype/property-bidi-pdf: Likewise.
33309         * modules/unictype/property-bidi-segment-separator: Likewise.
33310         * modules/unictype/property-bidi-whitespace: Likewise.
33311         * modules/unictype/property-byname: Likewise.
33312         * modules/unictype/property-combining: Likewise.
33313         * modules/unictype/property-composite: Likewise.
33314         * modules/unictype/property-currency-symbol: Likewise.
33315         * modules/unictype/property-dash: Likewise.
33316         * modules/unictype/property-decimal-digit: Likewise.
33317         * modules/unictype/property-default-ignorable-code-point: Likewise.
33318         * modules/unictype/property-deprecated: Likewise.
33319         * modules/unictype/property-diacritic: Likewise.
33320         * modules/unictype/property-extender: Likewise.
33321         * modules/unictype/property-format-control: Likewise.
33322         * modules/unictype/property-grapheme-base: Likewise.
33323         * modules/unictype/property-grapheme-extend: Likewise.
33324         * modules/unictype/property-grapheme-link: Likewise.
33325         * modules/unictype/property-hex-digit: Likewise.
33326         * modules/unictype/property-hyphen: Likewise.
33327         * modules/unictype/property-id-continue: Likewise.
33328         * modules/unictype/property-id-start: Likewise.
33329         * modules/unictype/property-ideographic: Likewise.
33330         * modules/unictype/property-ids-binary-operator: Likewise.
33331         * modules/unictype/property-ids-trinary-operator: Likewise.
33332         * modules/unictype/property-ignorable-control: Likewise.
33333         * modules/unictype/property-iso-control: Likewise.
33334         * modules/unictype/property-join-control: Likewise.
33335         * modules/unictype/property-left-of-pair: Likewise.
33336         * modules/unictype/property-line-separator: Likewise.
33337         * modules/unictype/property-logical-order-exception: Likewise.
33338         * modules/unictype/property-lowercase: Likewise.
33339         * modules/unictype/property-math: Likewise.
33340         * modules/unictype/property-non-break: Likewise.
33341         * modules/unictype/property-not-a-character: Likewise.
33342         * modules/unictype/property-numeric: Likewise.
33343         * modules/unictype/property-other-alphabetic: Likewise.
33344         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33345         * modules/unictype/property-other-grapheme-extend: Likewise.
33346         * modules/unictype/property-other-id-continue: Likewise.
33347         * modules/unictype/property-other-id-start: Likewise.
33348         * modules/unictype/property-other-lowercase: Likewise.
33349         * modules/unictype/property-other-math: Likewise.
33350         * modules/unictype/property-other-uppercase: Likewise.
33351         * modules/unictype/property-paired-punctuation: Likewise.
33352         * modules/unictype/property-paragraph-separator: Likewise.
33353         * modules/unictype/property-pattern-syntax: Likewise.
33354         * modules/unictype/property-pattern-white-space: Likewise.
33355         * modules/unictype/property-private-use: Likewise.
33356         * modules/unictype/property-punctuation: Likewise.
33357         * modules/unictype/property-quotation-mark: Likewise.
33358         * modules/unictype/property-radical: Likewise.
33359         * modules/unictype/property-sentence-terminal: Likewise.
33360         * modules/unictype/property-soft-dotted: Likewise.
33361         * modules/unictype/property-space: Likewise.
33362         * modules/unictype/property-terminal-punctuation: Likewise.
33363         * modules/unictype/property-test: Likewise.
33364         * modules/unictype/property-titlecase: Likewise.
33365         * modules/unictype/property-unassigned-code-value: Likewise.
33366         * modules/unictype/property-unified-ideograph: Likewise.
33367         * modules/unictype/property-uppercase: Likewise.
33368         * modules/unictype/property-variation-selector: Likewise.
33369         * modules/unictype/property-white-space: Likewise.
33370         * modules/unictype/property-xid-continue: Likewise.
33371         * modules/unictype/property-xid-start: Likewise.
33372         * modules/unictype/property-zero-width: Likewise.
33373         * modules/unictype/scripts: Likewise.
33374         * modules/unictype/syntax-c-ident: Likewise.
33375         * modules/unictype/syntax-c-whitespace: Likewise.
33376         * modules/unictype/syntax-java-ident: Likewise.
33377         * modules/unictype/syntax-java-whitespace: Likewise.
33378         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33379         * modules/unilbrk/u8-width-linebreaks: Likewise.
33380         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33381         * modules/unilbrk/u16-width-linebreaks: Likewise.
33382         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33383         * modules/unilbrk/u32-width-linebreaks: Likewise.
33384         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33385         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33386         * modules/uniname/uniname: Likewise.
33387         * modules/uninorm/canonical-decomposition: Likewise.
33388         * modules/uninorm/composition: Likewise.
33389         * modules/uninorm/decomposing-form: Likewise.
33390         * modules/uninorm/decomposition: Likewise.
33391         * modules/uninorm/filter: Likewise.
33392         * modules/uninorm/nfc: Likewise.
33393         * modules/uninorm/nfd: Likewise.
33394         * modules/uninorm/nfkc: Likewise.
33395         * modules/uninorm/nfkd: Likewise.
33396         * modules/uninorm/u8-normalize: Likewise.
33397         * modules/uninorm/u8-normcmp: Likewise.
33398         * modules/uninorm/u8-normcoll: Likewise.
33399         * modules/uninorm/u8-normxfrm: Likewise.
33400         * modules/uninorm/u16-normalize: Likewise.
33401         * modules/uninorm/u16-normcmp: Likewise.
33402         * modules/uninorm/u16-normcoll: Likewise.
33403         * modules/uninorm/u16-normxfrm: Likewise.
33404         * modules/uninorm/u32-normalize: Likewise.
33405         * modules/uninorm/u32-normcmp: Likewise.
33406         * modules/uninorm/u32-normcoll: Likewise.
33407         * modules/uninorm/u32-normxfrm: Likewise.
33408         * modules/unistdio/u8-asnprintf: Likewise.
33409         * modules/unistdio/u8-asprintf: Likewise.
33410         * modules/unistdio/u8-snprintf: Likewise.
33411         * modules/unistdio/u8-sprintf: Likewise.
33412         * modules/unistdio/u8-u8-asnprintf: Likewise.
33413         * modules/unistdio/u8-u8-asprintf: Likewise.
33414         * modules/unistdio/u8-u8-snprintf: Likewise.
33415         * modules/unistdio/u8-u8-sprintf: Likewise.
33416         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33417         * modules/unistdio/u8-u8-vasprintf: Likewise.
33418         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33419         * modules/unistdio/u8-u8-vsprintf: Likewise.
33420         * modules/unistdio/u8-vasnprintf: Likewise.
33421         * modules/unistdio/u8-vasprintf: Likewise.
33422         * modules/unistdio/u8-vsnprintf: Likewise.
33423         * modules/unistdio/u8-vsprintf: Likewise.
33424         * modules/unistdio/u16-asnprintf: Likewise.
33425         * modules/unistdio/u16-asprintf: Likewise.
33426         * modules/unistdio/u16-snprintf: Likewise.
33427         * modules/unistdio/u16-sprintf: Likewise.
33428         * modules/unistdio/u16-u16-asnprintf: Likewise.
33429         * modules/unistdio/u16-u16-asprintf: Likewise.
33430         * modules/unistdio/u16-u16-snprintf: Likewise.
33431         * modules/unistdio/u16-u16-sprintf: Likewise.
33432         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33433         * modules/unistdio/u16-u16-vasprintf: Likewise.
33434         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33435         * modules/unistdio/u16-u16-vsprintf: Likewise.
33436         * modules/unistdio/u16-vasnprintf: Likewise.
33437         * modules/unistdio/u16-vasprintf: Likewise.
33438         * modules/unistdio/u16-vsnprintf: Likewise.
33439         * modules/unistdio/u16-vsprintf: Likewise.
33440         * modules/unistdio/u32-asnprintf: Likewise.
33441         * modules/unistdio/u32-asprintf: Likewise.
33442         * modules/unistdio/u32-snprintf: Likewise.
33443         * modules/unistdio/u32-sprintf: Likewise.
33444         * modules/unistdio/u32-u32-asnprintf: Likewise.
33445         * modules/unistdio/u32-u32-asprintf: Likewise.
33446         * modules/unistdio/u32-u32-snprintf: Likewise.
33447         * modules/unistdio/u32-u32-sprintf: Likewise.
33448         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33449         * modules/unistdio/u32-u32-vasprintf: Likewise.
33450         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33451         * modules/unistdio/u32-u32-vsprintf: Likewise.
33452         * modules/unistdio/u32-vasnprintf: Likewise.
33453         * modules/unistdio/u32-vasprintf: Likewise.
33454         * modules/unistdio/u32-vsnprintf: Likewise.
33455         * modules/unistdio/u32-vsprintf: Likewise.
33456         * modules/unistdio/ulc-asnprintf: Likewise.
33457         * modules/unistdio/ulc-asprintf: Likewise.
33458         * modules/unistdio/ulc-fprintf: Likewise.
33459         * modules/unistdio/ulc-snprintf: Likewise.
33460         * modules/unistdio/ulc-sprintf: Likewise.
33461         * modules/unistdio/ulc-vasnprintf: Likewise.
33462         * modules/unistdio/ulc-vasprintf: Likewise.
33463         * modules/unistdio/ulc-vfprintf: Likewise.
33464         * modules/unistdio/ulc-vsnprintf: Likewise.
33465         * modules/unistdio/ulc-vsprintf: Likewise.
33466         * modules/unistr/u8-check: Likewise.
33467         * modules/unistr/u8-chr: Likewise.
33468         * modules/unistr/u8-cmp: Likewise.
33469         * modules/unistr/u8-cmp2: Likewise.
33470         * modules/unistr/u8-cpy: Likewise.
33471         * modules/unistr/u8-cpy-alloc: Likewise.
33472         * modules/unistr/u8-endswith: Likewise.
33473         * modules/unistr/u8-mblen: Likewise.
33474         * modules/unistr/u8-mbsnlen: Likewise.
33475         * modules/unistr/u8-mbtouc: Likewise.
33476         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33477         * modules/unistr/u8-mbtoucr: Likewise.
33478         * modules/unistr/u8-move: Likewise.
33479         * modules/unistr/u8-next: Likewise.
33480         * modules/unistr/u8-prev: Likewise.
33481         * modules/unistr/u8-set: Likewise.
33482         * modules/unistr/u8-startswith: Likewise.
33483         * modules/unistr/u8-stpcpy: Likewise.
33484         * modules/unistr/u8-stpncpy: Likewise.
33485         * modules/unistr/u8-strcat: Likewise.
33486         * modules/unistr/u8-strchr: Likewise.
33487         * modules/unistr/u8-strcmp: Likewise.
33488         * modules/unistr/u8-strcoll: Likewise.
33489         * modules/unistr/u8-strcpy: Likewise.
33490         * modules/unistr/u8-strcspn: Likewise.
33491         * modules/unistr/u8-strdup: Likewise.
33492         * modules/unistr/u8-strlen: Likewise.
33493         * modules/unistr/u8-strmblen: Likewise.
33494         * modules/unistr/u8-strmbtouc: Likewise.
33495         * modules/unistr/u8-strncat: Likewise.
33496         * modules/unistr/u8-strncmp: Likewise.
33497         * modules/unistr/u8-strncpy: Likewise.
33498         * modules/unistr/u8-strnlen: Likewise.
33499         * modules/unistr/u8-strpbrk: Likewise.
33500         * modules/unistr/u8-strrchr: Likewise.
33501         * modules/unistr/u8-strspn: Likewise.
33502         * modules/unistr/u8-strstr: Likewise.
33503         * modules/unistr/u8-strtok: Likewise.
33504         * modules/unistr/u8-to-u16: Likewise.
33505         * modules/unistr/u8-to-u32: Likewise.
33506         * modules/unistr/u8-uctomb: Likewise.
33507         * modules/unistr/u16-check: Likewise.
33508         * modules/unistr/u16-chr: Likewise.
33509         * modules/unistr/u16-cmp: Likewise.
33510         * modules/unistr/u16-cmp2: Likewise.
33511         * modules/unistr/u16-cpy: Likewise.
33512         * modules/unistr/u16-cpy-alloc: Likewise.
33513         * modules/unistr/u16-endswith: Likewise.
33514         * modules/unistr/u16-mblen: Likewise.
33515         * modules/unistr/u16-mbsnlen: Likewise.
33516         * modules/unistr/u16-mbtouc: Likewise.
33517         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33518         * modules/unistr/u16-mbtoucr: Likewise.
33519         * modules/unistr/u16-move: Likewise.
33520         * modules/unistr/u16-next: Likewise.
33521         * modules/unistr/u16-prev: Likewise.
33522         * modules/unistr/u16-set: Likewise.
33523         * modules/unistr/u16-startswith: Likewise.
33524         * modules/unistr/u16-stpcpy: Likewise.
33525         * modules/unistr/u16-stpncpy: Likewise.
33526         * modules/unistr/u16-strcat: Likewise.
33527         * modules/unistr/u16-strchr: Likewise.
33528         * modules/unistr/u16-strcmp: Likewise.
33529         * modules/unistr/u16-strcoll: Likewise.
33530         * modules/unistr/u16-strcpy: Likewise.
33531         * modules/unistr/u16-strcspn: Likewise.
33532         * modules/unistr/u16-strdup: Likewise.
33533         * modules/unistr/u16-strlen: Likewise.
33534         * modules/unistr/u16-strmblen: Likewise.
33535         * modules/unistr/u16-strmbtouc: Likewise.
33536         * modules/unistr/u16-strncat: Likewise.
33537         * modules/unistr/u16-strncmp: Likewise.
33538         * modules/unistr/u16-strncpy: Likewise.
33539         * modules/unistr/u16-strnlen: Likewise.
33540         * modules/unistr/u16-strpbrk: Likewise.
33541         * modules/unistr/u16-strrchr: Likewise.
33542         * modules/unistr/u16-strspn: Likewise.
33543         * modules/unistr/u16-strstr: Likewise.
33544         * modules/unistr/u16-strtok: Likewise.
33545         * modules/unistr/u16-to-u32: Likewise.
33546         * modules/unistr/u16-to-u8: Likewise.
33547         * modules/unistr/u16-uctomb: Likewise.
33548         * modules/unistr/u32-check: Likewise.
33549         * modules/unistr/u32-chr: Likewise.
33550         * modules/unistr/u32-cmp: Likewise.
33551         * modules/unistr/u32-cmp2: Likewise.
33552         * modules/unistr/u32-cpy: Likewise.
33553         * modules/unistr/u32-cpy-alloc: Likewise.
33554         * modules/unistr/u32-endswith: Likewise.
33555         * modules/unistr/u32-mblen: Likewise.
33556         * modules/unistr/u32-mbsnlen: Likewise.
33557         * modules/unistr/u32-mbtouc: Likewise.
33558         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33559         * modules/unistr/u32-mbtoucr: Likewise.
33560         * modules/unistr/u32-move: Likewise.
33561         * modules/unistr/u32-next: Likewise.
33562         * modules/unistr/u32-prev: Likewise.
33563         * modules/unistr/u32-set: Likewise.
33564         * modules/unistr/u32-startswith: Likewise.
33565         * modules/unistr/u32-stpcpy: Likewise.
33566         * modules/unistr/u32-stpncpy: Likewise.
33567         * modules/unistr/u32-strcat: Likewise.
33568         * modules/unistr/u32-strchr: Likewise.
33569         * modules/unistr/u32-strcmp: Likewise.
33570         * modules/unistr/u32-strcoll: Likewise.
33571         * modules/unistr/u32-strcpy: Likewise.
33572         * modules/unistr/u32-strcspn: Likewise.
33573         * modules/unistr/u32-strdup: Likewise.
33574         * modules/unistr/u32-strlen: Likewise.
33575         * modules/unistr/u32-strmblen: Likewise.
33576         * modules/unistr/u32-strmbtouc: Likewise.
33577         * modules/unistr/u32-strncat: Likewise.
33578         * modules/unistr/u32-strncmp: Likewise.
33579         * modules/unistr/u32-strncpy: Likewise.
33580         * modules/unistr/u32-strnlen: Likewise.
33581         * modules/unistr/u32-strpbrk: Likewise.
33582         * modules/unistr/u32-strrchr: Likewise.
33583         * modules/unistr/u32-strspn: Likewise.
33584         * modules/unistr/u32-strstr: Likewise.
33585         * modules/unistr/u32-strtok: Likewise.
33586         * modules/unistr/u32-to-u16: Likewise.
33587         * modules/unistr/u32-to-u8: Likewise.
33588         * modules/unistr/u32-uctomb: Likewise.
33589         * modules/uniwbrk/u8-wordbreaks: Likewise.
33590         * modules/uniwbrk/u16-wordbreaks: Likewise.
33591         * modules/uniwbrk/u32-wordbreaks: Likewise.
33592         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33593         * modules/uniwbrk/wordbreak-property: Likewise.
33594         * modules/uniwidth/u8-strwidth: Likewise.
33595         * modules/uniwidth/u8-width: Likewise.
33596         * modules/uniwidth/u16-strwidth: Likewise.
33597         * modules/uniwidth/u16-width: Likewise.
33598         * modules/uniwidth/u32-strwidth: Likewise.
33599         * modules/uniwidth/u32-width: Likewise.
33600         * modules/uniwidth/width: Likewise.
33601         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33602         with $(LIBUNISTRING).
33603         * modules/unicase/ignorable-tests: Likewise.
33604         * modules/unicase/locale-language-tests: Likewise.
33605         * modules/unicase/tolower-tests: Likewise.
33606         * modules/unicase/totitle-tests: Likewise.
33607         * modules/unicase/toupper-tests: Likewise.
33608         * modules/unicase/u8-casecmp-tests: Likewise.
33609         * modules/unicase/u8-casecoll-tests: Likewise.
33610         * modules/unicase/u8-casefold-tests: Likewise.
33611         * modules/unicase/u8-is-cased-tests: Likewise.
33612         * modules/unicase/u8-is-casefolded-tests: Likewise.
33613         * modules/unicase/u8-is-lowercase-tests: Likewise.
33614         * modules/unicase/u8-is-titlecase-tests: Likewise.
33615         * modules/unicase/u8-is-uppercase-tests: Likewise.
33616         * modules/unicase/u8-tolower-tests: Likewise.
33617         * modules/unicase/u8-totitle-tests: Likewise.
33618         * modules/unicase/u8-toupper-tests: Likewise.
33619         * modules/unicase/u16-casecmp-tests: Likewise.
33620         * modules/unicase/u16-casecoll-tests: Likewise.
33621         * modules/unicase/u16-casefold-tests: Likewise.
33622         * modules/unicase/u16-is-cased-tests: Likewise.
33623         * modules/unicase/u16-is-casefolded-tests: Likewise.
33624         * modules/unicase/u16-is-lowercase-tests: Likewise.
33625         * modules/unicase/u16-is-titlecase-tests: Likewise.
33626         * modules/unicase/u16-is-uppercase-tests: Likewise.
33627         * modules/unicase/u16-tolower-tests: Likewise.
33628         * modules/unicase/u16-totitle-tests: Likewise.
33629         * modules/unicase/u16-toupper-tests: Likewise.
33630         * modules/unicase/u32-casecmp-tests: Likewise.
33631         * modules/unicase/u32-casecoll-tests: Likewise.
33632         * modules/unicase/u32-casefold-tests: Likewise.
33633         * modules/unicase/u32-is-cased-tests: Likewise.
33634         * modules/unicase/u32-is-casefolded-tests: Likewise.
33635         * modules/unicase/u32-is-lowercase-tests: Likewise.
33636         * modules/unicase/u32-is-titlecase-tests: Likewise.
33637         * modules/unicase/u32-is-uppercase-tests: Likewise.
33638         * modules/unicase/u32-tolower-tests: Likewise.
33639         * modules/unicase/u32-totitle-tests: Likewise.
33640         * modules/unicase/u32-toupper-tests: Likewise.
33641         * modules/unicase/ulc-casecmp-tests: Likewise.
33642         * modules/unicase/ulc-casecoll-tests: Likewise.
33643         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33644         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33645         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33646         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33647         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33648         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33649         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33650         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33651         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33652         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33653         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33654         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33655         * modules/unictype/bidicategory-byname-tests: Likewise.
33656         * modules/unictype/bidicategory-name-tests: Likewise.
33657         * modules/unictype/bidicategory-of-tests: Likewise.
33658         * modules/unictype/bidicategory-test-tests: Likewise.
33659         * modules/unictype/block-list-tests: Likewise.
33660         * modules/unictype/block-of-tests: Likewise.
33661         * modules/unictype/block-test-tests: Likewise.
33662         * modules/unictype/category-C-tests: Likewise.
33663         * modules/unictype/category-Cc-tests: Likewise.
33664         * modules/unictype/category-Cf-tests: Likewise.
33665         * modules/unictype/category-Cn-tests: Likewise.
33666         * modules/unictype/category-Co-tests: Likewise.
33667         * modules/unictype/category-Cs-tests: Likewise.
33668         * modules/unictype/category-L-tests: Likewise.
33669         * modules/unictype/category-Ll-tests: Likewise.
33670         * modules/unictype/category-Lm-tests: Likewise.
33671         * modules/unictype/category-Lo-tests: Likewise.
33672         * modules/unictype/category-Lt-tests: Likewise.
33673         * modules/unictype/category-Lu-tests: Likewise.
33674         * modules/unictype/category-M-tests: Likewise.
33675         * modules/unictype/category-Mc-tests: Likewise.
33676         * modules/unictype/category-Me-tests: Likewise.
33677         * modules/unictype/category-Mn-tests: Likewise.
33678         * modules/unictype/category-N-tests: Likewise.
33679         * modules/unictype/category-Nd-tests: Likewise.
33680         * modules/unictype/category-Nl-tests: Likewise.
33681         * modules/unictype/category-No-tests: Likewise.
33682         * modules/unictype/category-P-tests: Likewise.
33683         * modules/unictype/category-Pc-tests: Likewise.
33684         * modules/unictype/category-Pd-tests: Likewise.
33685         * modules/unictype/category-Pe-tests: Likewise.
33686         * modules/unictype/category-Pf-tests: Likewise.
33687         * modules/unictype/category-Pi-tests: Likewise.
33688         * modules/unictype/category-Po-tests: Likewise.
33689         * modules/unictype/category-Ps-tests: Likewise.
33690         * modules/unictype/category-S-tests: Likewise.
33691         * modules/unictype/category-Sc-tests: Likewise.
33692         * modules/unictype/category-Sk-tests: Likewise.
33693         * modules/unictype/category-Sm-tests: Likewise.
33694         * modules/unictype/category-So-tests: Likewise.
33695         * modules/unictype/category-Z-tests: Likewise.
33696         * modules/unictype/category-Zl-tests: Likewise.
33697         * modules/unictype/category-Zp-tests: Likewise.
33698         * modules/unictype/category-Zs-tests: Likewise.
33699         * modules/unictype/category-and-not-tests: Likewise.
33700         * modules/unictype/category-and-tests: Likewise.
33701         * modules/unictype/category-byname-tests: Likewise.
33702         * modules/unictype/category-name-tests: Likewise.
33703         * modules/unictype/category-none-tests: Likewise.
33704         * modules/unictype/category-of-tests: Likewise.
33705         * modules/unictype/category-or-tests: Likewise.
33706         * modules/unictype/category-test-withtable-tests: Likewise.
33707         * modules/unictype/combining-class-tests: Likewise.
33708         * modules/unictype/ctype-alnum-tests: Likewise.
33709         * modules/unictype/ctype-alpha-tests: Likewise.
33710         * modules/unictype/ctype-blank-tests: Likewise.
33711         * modules/unictype/ctype-cntrl-tests: Likewise.
33712         * modules/unictype/ctype-digit-tests: Likewise.
33713         * modules/unictype/ctype-graph-tests: Likewise.
33714         * modules/unictype/ctype-lower-tests: Likewise.
33715         * modules/unictype/ctype-print-tests: Likewise.
33716         * modules/unictype/ctype-punct-tests: Likewise.
33717         * modules/unictype/ctype-space-tests: Likewise.
33718         * modules/unictype/ctype-upper-tests: Likewise.
33719         * modules/unictype/ctype-xdigit-tests: Likewise.
33720         * modules/unictype/decimal-digit-tests: Likewise.
33721         * modules/unictype/digit-tests: Likewise.
33722         * modules/unictype/mirror-tests: Likewise.
33723         * modules/unictype/numeric-tests: Likewise.
33724         * modules/unictype/property-alphabetic-tests: Likewise.
33725         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33726         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33727         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33728         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33729         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33730         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33731         * modules/unictype/property-bidi-control-tests: Likewise.
33732         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33733         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33734         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33735         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33736         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33737         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33738         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33739         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33740         * modules/unictype/property-bidi-pdf-tests: Likewise.
33741         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33742         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33743         * modules/unictype/property-byname-tests: Likewise.
33744         * modules/unictype/property-combining-tests: Likewise.
33745         * modules/unictype/property-composite-tests: Likewise.
33746         * modules/unictype/property-currency-symbol-tests: Likewise.
33747         * modules/unictype/property-dash-tests: Likewise.
33748         * modules/unictype/property-decimal-digit-tests: Likewise.
33749         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33750         * modules/unictype/property-deprecated-tests: Likewise.
33751         * modules/unictype/property-diacritic-tests: Likewise.
33752         * modules/unictype/property-extender-tests: Likewise.
33753         * modules/unictype/property-format-control-tests: Likewise.
33754         * modules/unictype/property-grapheme-base-tests: Likewise.
33755         * modules/unictype/property-grapheme-extend-tests: Likewise.
33756         * modules/unictype/property-grapheme-link-tests: Likewise.
33757         * modules/unictype/property-hex-digit-tests: Likewise.
33758         * modules/unictype/property-hyphen-tests: Likewise.
33759         * modules/unictype/property-id-continue-tests: Likewise.
33760         * modules/unictype/property-id-start-tests: Likewise.
33761         * modules/unictype/property-ideographic-tests: Likewise.
33762         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33763         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33764         * modules/unictype/property-ignorable-control-tests: Likewise.
33765         * modules/unictype/property-iso-control-tests: Likewise.
33766         * modules/unictype/property-join-control-tests: Likewise.
33767         * modules/unictype/property-left-of-pair-tests: Likewise.
33768         * modules/unictype/property-line-separator-tests: Likewise.
33769         * modules/unictype/property-logical-order-exception-tests: Likewise.
33770         * modules/unictype/property-lowercase-tests: Likewise.
33771         * modules/unictype/property-math-tests: Likewise.
33772         * modules/unictype/property-non-break-tests: Likewise.
33773         * modules/unictype/property-not-a-character-tests: Likewise.
33774         * modules/unictype/property-numeric-tests: Likewise.
33775         * modules/unictype/property-other-alphabetic-tests: Likewise.
33776         * modules/unictype/property-other-default-ignorable-code-point-tests:
33777         Likewise.
33778         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33779         * modules/unictype/property-other-id-continue-tests: Likewise.
33780         * modules/unictype/property-other-id-start-tests: Likewise.
33781         * modules/unictype/property-other-lowercase-tests: Likewise.
33782         * modules/unictype/property-other-math-tests: Likewise.
33783         * modules/unictype/property-other-uppercase-tests: Likewise.
33784         * modules/unictype/property-paired-punctuation-tests: Likewise.
33785         * modules/unictype/property-paragraph-separator-tests: Likewise.
33786         * modules/unictype/property-pattern-syntax-tests: Likewise.
33787         * modules/unictype/property-pattern-white-space-tests: Likewise.
33788         * modules/unictype/property-private-use-tests: Likewise.
33789         * modules/unictype/property-punctuation-tests: Likewise.
33790         * modules/unictype/property-quotation-mark-tests: Likewise.
33791         * modules/unictype/property-radical-tests: Likewise.
33792         * modules/unictype/property-sentence-terminal-tests: Likewise.
33793         * modules/unictype/property-soft-dotted-tests: Likewise.
33794         * modules/unictype/property-space-tests: Likewise.
33795         * modules/unictype/property-terminal-punctuation-tests: Likewise.
33796         * modules/unictype/property-test-tests: Likewise.
33797         * modules/unictype/property-titlecase-tests: Likewise.
33798         * modules/unictype/property-unassigned-code-value-tests: Likewise.
33799         * modules/unictype/property-unified-ideograph-tests: Likewise.
33800         * modules/unictype/property-uppercase-tests: Likewise.
33801         * modules/unictype/property-variation-selector-tests: Likewise.
33802         * modules/unictype/property-white-space-tests: Likewise.
33803         * modules/unictype/property-xid-continue-tests: Likewise.
33804         * modules/unictype/property-xid-start-tests: Likewise.
33805         * modules/unictype/property-zero-width-tests: Likewise.
33806         * modules/unictype/scripts-tests: Likewise.
33807         * modules/unictype/syntax-c-ident-tests: Likewise.
33808         * modules/unictype/syntax-c-whitespace-tests: Likewise.
33809         * modules/unictype/syntax-java-ident-tests: Likewise.
33810         * modules/unictype/syntax-java-whitespace-tests: Likewise.
33811         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
33812         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
33813         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
33814         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
33815         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
33816         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
33817         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
33818         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
33819         * modules/uniname/uniname-tests: Likewise.
33820         * modules/uninorm/canonical-decomposition-tests: Likewise.
33821         * modules/uninorm/compat-decomposition-tests: Likewise.
33822         * modules/uninorm/composition-tests: Likewise.
33823         * modules/uninorm/decomposing-form-tests: Likewise.
33824         * modules/uninorm/decomposition-tests: Likewise.
33825         * modules/uninorm/filter-tests: Likewise.
33826         * modules/uninorm/nfc-tests: Likewise.
33827         * modules/uninorm/nfd-tests: Likewise.
33828         * modules/uninorm/nfkc-tests: Likewise.
33829         * modules/uninorm/nfkd-tests: Likewise.
33830         * modules/uninorm/u8-normcmp-tests: Likewise.
33831         * modules/uninorm/u8-normcoll-tests: Likewise.
33832         * modules/uninorm/u16-normcmp-tests: Likewise.
33833         * modules/uninorm/u16-normcoll-tests: Likewise.
33834         * modules/uninorm/u32-normcmp-tests: Likewise.
33835         * modules/uninorm/u32-normcoll-tests: Likewise.
33836         * modules/unistdio/u8-asnprintf-tests: Likewise.
33837         * modules/unistdio/u8-vasnprintf-tests: Likewise.
33838         * modules/unistdio/u8-vasprintf-tests: Likewise.
33839         * modules/unistdio/u8-vsnprintf-tests: Likewise.
33840         * modules/unistdio/u8-vsprintf-tests: Likewise.
33841         * modules/unistdio/u16-asnprintf-tests: Likewise.
33842         * modules/unistdio/u16-vasnprintf-tests: Likewise.
33843         * modules/unistdio/u16-vasprintf-tests: Likewise.
33844         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33845         * modules/unistdio/u16-vsprintf-tests: Likewise.
33846         * modules/unistdio/u32-asnprintf-tests: Likewise.
33847         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33848         * modules/unistdio/u32-vasprintf-tests: Likewise.
33849         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33850         * modules/unistdio/u32-vsprintf-tests: Likewise.
33851         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33852         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33853         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33854         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33855         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33856         * modules/unistr/u8-check-tests: Likewise.
33857         * modules/unistr/u8-chr-tests: Likewise.
33858         * modules/unistr/u8-cmp-tests: Likewise.
33859         * modules/unistr/u8-cmp2-tests: Likewise.
33860         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33861         * modules/unistr/u8-cpy-tests: Likewise.
33862         * modules/unistr/u8-mblen-tests: Likewise.
33863         * modules/unistr/u8-mbsnlen-tests: Likewise.
33864         * modules/unistr/u8-mbtouc-tests: Likewise.
33865         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33866         * modules/unistr/u8-mbtoucr-tests: Likewise.
33867         * modules/unistr/u8-move-tests: Likewise.
33868         * modules/unistr/u8-next-tests: Likewise.
33869         * modules/unistr/u8-prev-tests: Likewise.
33870         * modules/unistr/u8-set-tests: Likewise.
33871         * modules/unistr/u8-stpcpy-tests: Likewise.
33872         * modules/unistr/u8-stpncpy-tests: Likewise.
33873         * modules/unistr/u8-strcat-tests: Likewise.
33874         * modules/unistr/u8-strcmp-tests: Likewise.
33875         * modules/unistr/u8-strcoll-tests: Likewise.
33876         * modules/unistr/u8-strcpy-tests: Likewise.
33877         * modules/unistr/u8-strdup-tests: Likewise.
33878         * modules/unistr/u8-strlen-tests: Likewise.
33879         * modules/unistr/u8-strmblen-tests: Likewise.
33880         * modules/unistr/u8-strmbtouc-tests: Likewise.
33881         * modules/unistr/u8-strncat-tests: Likewise.
33882         * modules/unistr/u8-strncmp-tests: Likewise.
33883         * modules/unistr/u8-strncpy-tests: Likewise.
33884         * modules/unistr/u8-strnlen-tests: Likewise.
33885         * modules/unistr/u8-to-u16-tests: Likewise.
33886         * modules/unistr/u8-to-u32-tests: Likewise.
33887         * modules/unistr/u8-uctomb-tests: Likewise.
33888         * modules/unistr/u16-check-tests: Likewise.
33889         * modules/unistr/u16-chr-tests: Likewise.
33890         * modules/unistr/u16-cmp-tests: Likewise.
33891         * modules/unistr/u16-cmp2-tests: Likewise.
33892         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33893         * modules/unistr/u16-cpy-tests: Likewise.
33894         * modules/unistr/u16-mblen-tests: Likewise.
33895         * modules/unistr/u16-mbsnlen-tests: Likewise.
33896         * modules/unistr/u16-mbtouc-tests: Likewise.
33897         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33898         * modules/unistr/u16-mbtoucr-tests: Likewise.
33899         * modules/unistr/u16-move-tests: Likewise.
33900         * modules/unistr/u16-next-tests: Likewise.
33901         * modules/unistr/u16-prev-tests: Likewise.
33902         * modules/unistr/u16-set-tests: Likewise.
33903         * modules/unistr/u16-stpcpy-tests: Likewise.
33904         * modules/unistr/u16-stpncpy-tests: Likewise.
33905         * modules/unistr/u16-strcat-tests: Likewise.
33906         * modules/unistr/u16-strcmp-tests: Likewise.
33907         * modules/unistr/u16-strcoll-tests: Likewise.
33908         * modules/unistr/u16-strcpy-tests: Likewise.
33909         * modules/unistr/u16-strdup-tests: Likewise.
33910         * modules/unistr/u16-strlen-tests: Likewise.
33911         * modules/unistr/u16-strmblen-tests: Likewise.
33912         * modules/unistr/u16-strmbtouc-tests: Likewise.
33913         * modules/unistr/u16-strncat-tests: Likewise.
33914         * modules/unistr/u16-strncmp-tests: Likewise.
33915         * modules/unistr/u16-strncpy-tests: Likewise.
33916         * modules/unistr/u16-strnlen-tests: Likewise.
33917         * modules/unistr/u16-to-u32-tests: Likewise.
33918         * modules/unistr/u16-to-u8-tests: Likewise.
33919         * modules/unistr/u16-uctomb-tests: Likewise.
33920         * modules/unistr/u32-check-tests: Likewise.
33921         * modules/unistr/u32-chr-tests: Likewise.
33922         * modules/unistr/u32-cmp-tests: Likewise.
33923         * modules/unistr/u32-cmp2-tests: Likewise.
33924         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33925         * modules/unistr/u32-cpy-tests: Likewise.
33926         * modules/unistr/u32-mblen-tests: Likewise.
33927         * modules/unistr/u32-mbsnlen-tests: Likewise.
33928         * modules/unistr/u32-mbtouc-tests: Likewise.
33929         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33930         * modules/unistr/u32-mbtoucr-tests: Likewise.
33931         * modules/unistr/u32-move-tests: Likewise.
33932         * modules/unistr/u32-next-tests: Likewise.
33933         * modules/unistr/u32-prev-tests: Likewise.
33934         * modules/unistr/u32-set-tests: Likewise.
33935         * modules/unistr/u32-stpcpy-tests: Likewise.
33936         * modules/unistr/u32-stpncpy-tests: Likewise.
33937         * modules/unistr/u32-strcat-tests: Likewise.
33938         * modules/unistr/u32-strcmp-tests: Likewise.
33939         * modules/unistr/u32-strcoll-tests: Likewise.
33940         * modules/unistr/u32-strcpy-tests: Likewise.
33941         * modules/unistr/u32-strdup-tests: Likewise.
33942         * modules/unistr/u32-strlen-tests: Likewise.
33943         * modules/unistr/u32-strmblen-tests: Likewise.
33944         * modules/unistr/u32-strmbtouc-tests: Likewise.
33945         * modules/unistr/u32-strncat-tests: Likewise.
33946         * modules/unistr/u32-strncmp-tests: Likewise.
33947         * modules/unistr/u32-strncpy-tests: Likewise.
33948         * modules/unistr/u32-strnlen-tests: Likewise.
33949         * modules/unistr/u32-to-u16-tests: Likewise.
33950         * modules/unistr/u32-to-u8-tests: Likewise.
33951         * modules/unistr/u32-uctomb-tests: Likewise.
33952         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33953         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33954         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33955         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33956         * modules/uniwidth/u8-strwidth-tests: Likewise.
33957         * modules/uniwidth/u8-width-tests: Likewise.
33958         * modules/uniwidth/u16-strwidth-tests: Likewise.
33959         * modules/uniwidth/u16-width-tests: Likewise.
33960         * modules/uniwidth/u32-strwidth-tests: Likewise.
33961         * modules/uniwidth/u32-width-tests: Likewise.
33962         * modules/uniwidth/width-tests: Likewise.
33963
33964 2010-05-18  Richard Jones  <rjones@redhat.com>
33965
33966         doc: users.txt: list hivex
33967         * users.txt: Add hivex.
33968
33969 2010-05-18  Richard Jones  <rjones@redhat.com>
33970
33971         doc: users.txt: list febootstrap
33972         * users.txt: Add febootstrap.
33973
33974 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33975
33976         bootstrap: fix an error when gnulib is not used as a git submodule
33977         * build-aux/bootstrap (gnulib_path): If its length is zero then
33978         assign "gnulib" to it.
33979         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33980
33981 2010-05-16  Bruno Haible  <bruno@clisp.org>
33982
33983         Avoid autoconf warnings about AM_ICONV.
33984         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33985         2.64.
33986
33987 2010-05-16  Bruno Haible  <bruno@clisp.org>
33988
33989         absolute-header: Make the macro usable in more situations.
33990         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33991         from gl_ABSOLUTE_HEADER.
33992         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33993
33994 2010-05-16  James Youngman  <jay@gnu.org>
33995
33996         doc: update users.txt
33997         * users.txt: Add CSSC.
33998
33999 2010-05-16  Jim Meyering  <meyering@redhat.com>
34000
34001         init.sh: fix an error in the previous change; add more comments
34002         * tests/init.sh: Compare exit code in loop against 9, not 2.
34003         Patch by Bruno Haible.
34004         Make the two tests more similar by adding an empty "then" clause.
34005         Add comments.
34006
34007         init.sh: avoid unnecessary shell re-exec
34008         * tests/init.sh: Improve the re-exec-required check to first test the
34009         current shell.  If it passes the test, do not search for a shell that
34010         does pass, and do not re-exec.  This test is particularly contorted to
34011         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34012         of $(...) evokes a syntax error and causes immediate shell exit with
34013         status 2.  Bruno Haible reported that the re-exec made it impossible
34014         to single-step through any init.sh-using script.
34015
34016 2010-05-16  Bruno Haible  <bruno@clisp.org>
34017
34018         Fix collision between gnulib's and libintl's printf replacements.
34019         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34020         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34021         (printf): When using GNU C, map the __printf__ function to rpl_printf
34022         via __asm__. When not using GNU C, define rpl_printf instead of
34023         __printf__.
34024         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34025         commit.
34026         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34027         commit.
34028         * m4/asm-underscore.m4: New file.
34029         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34030         * modules/stdio (Files): Add m4/asm-underscore.m4.
34031         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34032         Reported by Ben Pfaff.
34033
34034 2010-05-16  Bruno Haible  <bruno@clisp.org>
34035
34036         verify: Avoid skipping the test on openSUSE 11.0.
34037         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34038
34039 2010-05-13  Bruno Haible  <bruno@clisp.org>
34040
34041         Avoid useless warnings from G++.
34042         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34043         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34044         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34045
34046 2010-05-11  Jim Meyering  <meyering@redhat.com>
34047
34048         maint.mk: tweak preceding change
34049         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34050         regexps tighter by anchoring at EOL, and make the new group "shy"
34051         for slightly decreased overhead.
34052
34053 2010-05-11  Eric Blake  <eblake@redhat.com>
34054
34055         maint.mk: gnulib doesn't guarantee NSIG
34056         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34057
34058 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34059
34060         test-pwrite.c: Remove unused variable declaration.
34061         * tests/test-pwrite.c (main): Remove read_buf declaration.
34062
34063         Remove useless test-pwrite.sh file.
34064         * tests/test-pwrite.sh: Delete file.
34065         * modules/pwrite-tests: Remove references.
34066         Reported by Bruno Haible.
34067
34068 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34069
34070         init.sh: fix a typo
34071         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34072
34073 2010-05-10  Jim Meyering  <meyering@redhat.com>
34074
34075         maint.mk: avoid using a temporary file in the always-defined-macros check
34076         * top/maint.mk (.re-defmac): Remove rule.
34077         (gl_trap_): Remove definition.
34078         (sc_prohibit_always-defined_macros): Rewrite not to create and
34079         depend on a temporary file.  Instead, depend on GNU grep's ability
34080         to read a list of regular expressions from stdin when given "-f -".
34081
34082 2010-05-09  Bruno Haible  <bruno@clisp.org>
34083
34084         Update to GNU gettext 0.18, part 1.
34085         * m4/gettext.m4: Update to GNU gettext 0.18.
34086         * m4/intl.m4: Likewise.
34087         * m4/po.m4: Likewise.
34088         * modules/gettext (Files): Add m4/fcntl-o.m4.
34089         (configure.ac): Require gettext infrastructure from version 0.18.
34090
34091 2010-05-09  Jim Meyering  <meyering@redhat.com>
34092
34093         init.sh: enable MALLOC_PERTURB_
34094         * tests/init.sh: Enable glibc's malloc-perturbing option.
34095
34096         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34097         With my recent change in init.sh from the two-line form:
34098             -#   : ${srcdir=.}
34099             -#   . "$srcdir/init.sh"; path_prepend_ .
34100             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34101         I noticed that using the one-line form would cause this test
34102         to fail with a false-positive, or to stop working altogether,
34103         depending on whether help-version changed or all the tests did.
34104         * top/maint.mk (_hv_regex): Remove this definition.
34105         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34106         (_hv_regex_strong): Use a stronger regex to check for conformance.
34107         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34108         Give a separate diagnostic for lack of conforming use.
34109
34110         maint.mk: prohibit definition of symbols defined by gnulib
34111         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34112         definition of symbols defined by gnulib.
34113
34114 2010-05-09  Bruno Haible  <bruno@clisp.org>
34115
34116         acl: Avoid test failure on Cygwin-hosted mingw.
34117         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34118
34119 2010-05-09  Bruno Haible  <bruno@clisp.org>
34120
34121         error: Use system's fcntl function.
34122         * lib/error.c (fcntl): Undefine.
34123
34124 2010-05-09  Jim Meyering  <meyering@redhat.com>
34125
34126         verify: adjust formatting to be more consistent
34127         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34128         argument-list '('s, and after one comma.
34129
34130 2010-05-09  Bruno Haible  <bruno@clisp.org>
34131
34132         error: More reliable output on mingw.
34133         * lib/error.c: Include <windows.h>.
34134         (is_open): New function.
34135         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34136         defined.
34137
34138 2010-05-09  Bruno Haible  <bruno@clisp.org>
34139
34140         vasnprintf: Fix syntax errors in libintl build on mingw.
34141         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34142         pad_ourselves and prec_ourselves after use.
34143
34144 2010-05-08  Bruno Haible  <bruno@clisp.org>
34145
34146         * lib/config.charset: Update comments for Cygwin 1.7.
34147         * lib/localcharset.c: Likewise.
34148
34149 2010-05-07  Jim Meyering  <meyering@redhat.com>
34150
34151         init.sh: improve comments
34152         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34153         . "${srcdir=.}/init.sh"; path_prepend_ .
34154         Add a note about path_prepend_ and the alternative of using
34155         TESTS_ENVIRONMENT.
34156
34157 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34158
34159         exclude: Unescape hashed patterns in wildcard mode.
34160         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34161         to the hash list.
34162         * tests/test-exclude8.sh: New test case.
34163         * modules/exclude-tests: Add new test.
34164
34165 2010-05-05  Eric Blake  <eblake@redhat.com>
34166
34167         verify: automate tests
34168         * modules/verify-tests: New module.
34169         * tests/test-verify.sh: New file.
34170         * tests/test-verify.c: Guard each negative test with a unique id.
34171         Also avoid warning about unused left hand of comma expressions.
34172
34173 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34174
34175         Further improvements to verify.h, suggested by Eric Blake.
34176         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34177         the GL_* versions, to avoid collision with OpenGL.
34178         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34179         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34180         than testing merely whether it's defined.
34181
34182         Modify verify.h to pacify gcc -Wredundant_decls.
34183         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34184         These use the prefix "GL_" since they're likely to be useful elsewhere.
34185         We may need to break them out into a different .h file.
34186         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34187         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34188         of verify_function__.
34189
34190 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34191
34192         Tests for module pwrite.
34193         * modules/pwrite-tests: New file.
34194         * tests/test-pwrite.sh: New file.
34195         * tests/test-pwrite.c: New file.
34196
34197         New module pwrite.
34198         * lib/unistd.in.h (pwrite): New declaration.
34199         * lib/pwrite.c: New file, from glibc with modifications.
34200         * m4/pwrite.m4: New file.
34201         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34202         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34203         REPLACE_PWRITE.
34204         * modules/pwrite: New file.
34205         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34206         REPLACE_PWRITE.
34207         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34208         * doc/posix-functions/pwrite.texi: Mention the new module.
34209
34210 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34211
34212         pread: Update documentation.
34213         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34214
34215 2010-05-04  Eric Blake  <eblake@redhat.com>
34216
34217         docs: update cygwin progress
34218         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34219         this bug.
34220         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34221         Added in cygwin 1.7.2.
34222         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34223         Likewise.
34224         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34225         Likewise.
34226         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34227         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34228         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34229         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34230         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34231         Mention nproc module.
34232         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34233         bug in cygwin 1.7.5 addition.
34234         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34235         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34236         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34237         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34238         1.7.5.
34239         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34240         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34241         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34242         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34243         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34244         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34245         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34246         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34247         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34248         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34249         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34250         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34251         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34252         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34253         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34254         Likewise.
34255         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34256         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34257         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34258         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34259         Likewise.
34260         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34261         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34262         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34263         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34264         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34265         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34266         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34267         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34268         Likewise.
34269         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34270         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34271         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34272         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34273         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34274         Likewise.
34275         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34276         Likewise.
34277         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34278         Likewise.
34279         * doc/glibc-functions/xdrrec_endofrecord.texi
34280         (xdrrec_endofrecord): Likewise.
34281         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34282         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34283         Likewise.
34284         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34285         Likewise.
34286
34287 2010-05-04  Jim Meyering  <meyering@redhat.com>
34288
34289         gendocs.sh: make its "-s FILE" option more useful
34290         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34291         $PACKAGE to reflect the probably-different basename of "FILE".
34292
34293 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34294
34295         bootstrap: don't ignore download_po_files failure
34296         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34297         failure.
34298
34299 2010-05-03  Jim Meyering  <meyering@redhat.com>
34300
34301         maint.mk: allow to pass options to gendocs.sh
34302         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34303         (gendocs_options_): New overridable variable.
34304
34305         gnu-web-doc-update: don't ignore configure or build failure
34306         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34307
34308         announce-gen: backslash-escape '@'s in --help output
34309         * build-aux/announce-gen: Fix syntax errors.
34310
34311         maint.mk, announce-gen: allow project-specific announcement mail headers
34312         * top/maint.mk (translation_project_): Define default.
34313         (announcement_Cc_, announcement_mail_headers_): Likewise.
34314         (announcement): Invoke announce-gen with new --mail-headers option.
34315         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34316
34317         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34318         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34319         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34320         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34321         line in the "err2" output file when running "make check" in verbose
34322         mode (i.e., with set -x enabled).
34323
34324 2010-05-03  Bruno Haible  <bruno@clisp.org>
34325
34326         wctob: Fix for weird platforms.
34327         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34328         argument value.
34329
34330 2010-05-03  Jim Meyering  <meyering@redhat.com>
34331
34332         maint.mk: prohibit unwarranted use of <strings.h>
34333         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34334         strings.h in a file that does not also use strcasecmp, strncasecmp,
34335         ffs or ffsll.
34336
34337         maint.mk: remove obsolete comments
34338         * top/maint.mk: Remove stale, commented-out rules.
34339
34340 2010-05-02  Bruno Haible  <bruno@clisp.org>
34341
34342         wcwidth: Declare also when it's aliased.
34343         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34344         macro.
34345
34346 2010-05-02  Bruno Haible  <bruno@clisp.org>
34347
34348         Fix regression from 2010-04-25.
34349         * gnulib-tool (func_modules_transitive_closure): Check the status of
34350         all modules, not only of the tests that are of the form foo-tests where
34351         foo is a module.
34352
34353 2010-05-02  Bruno Haible  <bruno@clisp.org>
34354
34355         wctob: Work around nasty Cygwin 1.7.2 bug.
34356         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34357         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34358
34359 2010-05-01  Bruno Haible  <bruno@clisp.org>
34360
34361         fpurge: Sharper test.
34362         * tests/test-fpurge.c (main): Add one more ftell check.
34363         * modules/fpurge-tests (Depends-on): Add ftell.
34364         Suggested by Eric Blake.
34365
34366 2010-05-01  Bruno Haible  <bruno@clisp.org>
34367
34368         ftello: Another test.
34369         * tests/test-ftello3.c: New file.
34370         * modules/ftello-tests (Files): Add it.
34371         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34372         MOSTLYCLEANFILES.
34373
34374         ftell: Another test.
34375         * tests/test-ftell3.c: New file.
34376         * modules/ftell-tests (Files): Add it.
34377         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34378         MOSTLYCLEANFILES.
34379
34380 2010-05-01  Bruno Haible  <bruno@clisp.org>
34381
34382         ftell, ftello: Work around Solaris bug.
34383         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34384         * lib/ftello.c: Include stdio-impl.h.
34385         (ftello): On Solaris, when _IOWRT is set, compute the result without
34386         looking at _IOREAD.
34387         * modules/ftello (Files): Add lib/stdio-impl.h.
34388         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34389         * doc/posix-functions/ftello.texi: Likewise.
34390         Reported by Eric Blake.
34391
34392 2010-05-01  Bruno Haible  <bruno@clisp.org>
34393
34394         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34395         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34396         the _IOWRT flag is also set.
34397
34398 2010-05-01  Bruno Haible  <bruno@clisp.org>
34399
34400         Fix doc about a HP-UX stdio bug.
34401         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34402         * doc/posix-functions/ftello.texi: Likewise.
34403
34404 2010-05-01  Bruno Haible  <bruno@clisp.org>
34405
34406         lseek test: Fix failure on Solaris.
34407         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34408         output.
34409
34410 2010-04-30  Jim Meyering  <meyering@redhat.com>
34411
34412         bootstrap: don't ignore failure to generate po*/Makevars
34413         * build-aux/bootstrap (with_gettext): Don't ignore failure
34414         to create po/Makevars or runtime-po/Makevars.
34415
34416 2010-04-29  Eric Blake  <eblake@redhat.com>
34417
34418         headers: relax license to LGPLv2+
34419         * modules/fcntl-h (License): Relax license.
34420         * modules/getopt-posix (License): Likewise.
34421         * modules/locale (License): Likewise.
34422         * modules/math (License): Likewise.
34423         * modules/pty (License): Likewise.
34424         * modules/sched (License): Likewise.
34425         * modules/search (License): Likewise.
34426         * modules/spawn (License): Likewise.
34427         * modules/stdarg (License): Likewise.
34428         * modules/sysexits (License): Likewise.
34429
34430 2010-04-29  Jim Meyering  <meyering@redhat.com>
34431
34432         inttypes: relax license to LGPLv2+
34433         * modules/inttypes (License): Relax license.
34434
34435 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34436
34437         * top/maint.mk (indent): Run twice to produce idempotent results.
34438
34439 2010-04-28  Bruno Haible  <bruno@clisp.org>
34440
34441         getdate: Generate getdate.c in the source directory.
34442         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34443         MOSTLYCLEANFILES.
34444         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34445
34446 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34447
34448         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34449         is not declared as a const *; avoid warnings in that case.
34450
34451 2010-04-28  Eric Blake  <eblake@redhat.com>
34452
34453         canonicalize-lgpl: avoid compiler warning
34454         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34455         declaration' / 'extraneous semicolon' warning with some compilers.
34456         Reported by Andreas Gruenbacher.
34457
34458 2010-04-28  Jim Meyering  <meyering@redhat.com>
34459
34460         init.sh: ensure a more reliable exit status when exiting via trap
34461         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34462         Inspired by patches from Dmitry V. Levin.
34463         Also trap on signal 3 (SIGQUIT).
34464
34465 2010-04-27  Bruno Haible  <bruno@clisp.org>
34466
34467         Update doc about utimes().
34468         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34469         'utimens' module.
34470         Reported by Andreas Gruenbacher <agruen@suse.de>.
34471
34472 2010-04-27  Eric Blake  <eblake@redhat.com>
34473
34474         full-read, full-write: relax license
34475         * modules/full-read (License): Drop to LGPLv2+.
34476         * modules/full-write (License): Likewise.
34477         * modules/safe-read (License): Likewise.
34478         * modules/safe-write (License): Likewise.
34479
34480         pthread: mention library for linking
34481         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34482
34483 2010-04-27  Jim Meyering  <meyering@redhat.com>
34484
34485         maint.mk: fix a bug introduced in last change
34486         * top/maint.mk (gl_assured_headers_): Now that all names are on
34487         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34488         is not anchored to end of word, it should be adequate.
34489
34490         maint.mk: avoid side-effect in latest syntax-check
34491         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34492         to run commands via $(shell...), and hence to incur cost only when
34493         the new rule is actually run.
34494
34495         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34496         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34497         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34498         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34499         (gl_assured_headers_, az_, AZ_): Define.
34500         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34501
34502 2010-04-26  Jim Meyering  <jim@meyering.net>
34503             Bruno Haible  <bruno@clisp.org>
34504
34505         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34506         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34507         Prompted by an exchange with Gilles Espinasse.
34508
34509 2010-04-26  Jim Meyering  <meyering@redhat.com>
34510
34511         git-version-gen: aesthetic tweak
34512         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34513         so that the command remains on a single line.
34514
34515 2010-04-26  Eric Blake  <eblake@redhat.com>
34516
34517         git-version-gen: allow use on EBCDIC hosts
34518         * build-aux/git-version-gen (dirty): Use literal rather than tying
34519         ourselves to ascii.
34520         Reported by Steve Goetze.
34521
34522 2010-04-25  Bruno Haible  <bruno@clisp.org>
34523
34524         netdb: Add support for GNULIB_POSIXCHECK.
34525         * lib/netdb.in.h: Include warn-on-use.h.
34526         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34527         functions are used when GNULIB_POSIXCHECK is defined and the
34528         getaddrinfo module is not in use.
34529         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34530         freeaddrinfo, gai_strerror, getnameinfo are declared.
34531         * modules/netdb (Depends-on): Add warn-on-use.
34532         (Makefile.am): Include warn-on-use.h in netdb.h.
34533
34534 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34535
34536         build: avoid "make check" failure without .git/ directory
34537         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34538         there is no .git/ directory.
34539
34540 2010-04-25  Bruno Haible  <bruno@clisp.org>
34541
34542         ptsname: Fix misuse of ttyname_r.
34543         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34544         of errno.
34545
34546 2010-04-25  Bruno Haible  <bruno@clisp.org>
34547
34548         ttyname_r: Make it work on Solaris 10.
34549         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34550         if the system function has the POSIX declaration. Test whether the
34551         function fails if the buffer is less than 128 bytes large.
34552         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34553         system's ttyname_r function. Provide a reasonably large buffer.
34554         * modules/ttyname_r (Depends-on): Add extensions.
34555         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34556
34557 2010-04-25  Bruno Haible  <bruno@clisp.org>
34558
34559         Use the 'extensions' module for some more functions on Solaris.
34560         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34561         module.
34562         * doc/posix-functions/ctime_r.texi: Likewise.
34563         * doc/posix-functions/getgrgid_r.texi: Likewise.
34564         * doc/posix-functions/getgrnam_r.texi: Likewise.
34565         * doc/posix-functions/getpwnam_r.texi: Likewise.
34566         * doc/posix-functions/getpwuid_r.texi: Likewise.
34567         * doc/posix-functions/readdir_r.texi: Likewise.
34568         * doc/posix-functions/sigwait.texi: Likewise.
34569         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34570         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34571
34572 2010-04-25  Bruno Haible  <bruno@clisp.org>
34573
34574         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34575         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34576         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34577         * lib/ttyname_r.c: Include <limits.h>.
34578         (ttyname_r): Define using the system's ttyname_r function, if it exists
34579         and not on Solaris.
34580         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34581         set.
34582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34583         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34584         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34585         Reported by Simon Josefsson.
34586
34587 2010-04-25  Bruno Haible  <bruno@clisp.org>
34588
34589         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34590         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34591         * doc/posix-functions/ctime_r.texi: Likewise.
34592         * doc/posix-functions/getgrgid_r.texi: Likewise.
34593         * doc/posix-functions/getgrnam_r.texi: Likewise.
34594         * doc/posix-functions/getlogin_r.texi: Likewise.
34595         * doc/posix-functions/getpwnam_r.texi: Likewise.
34596         * doc/posix-functions/getpwuid_r.texi: Likewise.
34597         * doc/posix-functions/readdir_r.texi: Likewise.
34598         * doc/posix-functions/sigwait.texi: Likewise.
34599         * doc/posix-functions/ttyname_r.texi: Likewise.
34600         Reported by Simon Josefsson.
34601
34602 2010-04-25  Bruno Haible  <bruno@clisp.org>
34603
34604         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34605         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34606         also to --create-testdir.
34607         (func_acceptable): Don't consider the status of *-tests modules here.
34608         (func_modules_transitive_closure): Consider it here, before including a
34609         test module.
34610         (func_import, func_create_testdir): Set inc_all_direct_tests,
34611         inc_all_indirect_tests.
34612         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34613         --create-testdir and --create-megatestdir.
34614
34615 2010-04-25  Bruno Haible  <bruno@clisp.org>
34616
34617         gnulib-tool: Add --without-*-tests options.
34618         * gnulib-tool (func_usage): Document the --without-*-tests options.
34619         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34620         excl_unportable_tests): New variables.
34621         Fail if they are specified with --import or --update.
34622         (func_acceptable): Respect the excl_*_tests variables.
34623         (func_import): Set the excl_*_tests variables to empty.
34624
34625 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34626             Bruno Haible  <bruno@clisp.org>
34627
34628         Work around a MacOS X 10.4 bug with openpty.
34629         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34630         * tests/test-openpty.c (main): Close the master side explicitly.
34631
34632 2010-04-25  Bruno Haible  <bruno@clisp.org>
34633
34634         strnlen: Fix a C++ test error on MacOS X and Solaris.
34635         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34636         the function is not declared.
34637         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34638         Simon Josefsson.
34639
34640 2010-04-24  Bruno Haible  <bruno@clisp.org>
34641
34642         Avoid a gcc warning.
34643         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34644         of correct type for %08lx directive.
34645         Reported by Eric Blake.
34646
34647 2010-04-24  Bruno Haible  <bruno@clisp.org>
34648
34649         vasnprintf: Correct errno value in case of out-of-memory.
34650         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34651         or sprintf. Use the errno value from SNPRINTF or sprintf.
34652         Reported by Ian Beckwith <ianb@erislabs.net>.
34653
34654 2010-04-24  Bruno Haible  <bruno@clisp.org>
34655
34656         ansi-c++-opt: Find correct compiler when cross-compiling.
34657         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34658         AC_CHECK_PROGS.
34659         Reported by Simon Josefsson.
34660
34661 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34662
34663         vc-list-files: Add support for subversion
34664         * build-aux/vc-list-files: Use "svn list" to generate the list of
34665         files controlled by subversion.
34666
34667 2010-04-23  Jim Meyering  <meyering@redhat.com>
34668
34669         vc-list-files tests: convert to use init.sh
34670         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34671         path_prepend_.
34672         Use Exit, not exit.
34673         Use skip_ rather than open coding it.
34674         Remove trap set-up and compare definitions.
34675         * tests/test-vc-list-files-git.sh: Likewise.
34676         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34677
34678 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34679
34680         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34681         backup files.
34682
34683 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34684
34685         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34686
34687 2010-04-20  Eric Blake  <eblake@redhat.com>
34688
34689         tests: be robust to ignored SIGPIPE
34690         * tests/test-select-in.sh: Consume all output.
34691         * tests/test-lseek.sh: Check correct exit status, while avoiding
34692         EPIPE.
34693
34694 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34695             Bruno Haible  <bruno@clisp.org>
34696
34697         visibility: Don't use -fvisibility if it leads to a warning.
34698         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34699         yes, don't pretend that visibility works if it leads to a warning.
34700         Reported by Mike Gran <spk121@yahoo.com>.
34701
34702 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34703
34704         * build-aux/bootstrap: Use "git -h" for testing for supported options
34705         instead of "git --help".  The short-form option only shows a summary,
34706         and doesn't layout the full man page.  Grep for the full option name
34707         in the summary, too.
34708
34709 2010-04-19  Bruno Haible  <bruno@clisp.org>
34710
34711         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34712         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34713         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34714         mention of RELOCATABLE_STRIP.
34715         Reported by Sylvain Beucler <beuc@beuc.net>.
34716
34717 2010-04-19  Bruno Haible  <bruno@clisp.org>
34718
34719         * lib/diffseq.h: Fix typo in comment.
34720         Reported by Eric Blake.
34721
34722 2010-04-19  Bruno Haible  <bruno@clisp.org>
34723
34724         ioctl: Move autoconf macro to a .m4 file.
34725         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34726         * modules/ioctl (Files): Add it.
34727         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34728         Reported by Ian Beckwith <ianb@erislabs.net>.
34729
34730 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34731             Bruno Haible  <bruno@clisp.org>
34732
34733         diffseq: Accommodate use-case with abstract arrays.
34734         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34735         is not defined.
34736         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34737         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34738
34739 2010-04-18  Bruno Haible  <bruno@clisp.org>
34740
34741         * doc/posix-headers/stdbool.texi: More precise wording.
34742
34743 2010-04-17  Jim Meyering  <meyering@redhat.com>
34744
34745         maint.mk: use gnu-style indentation in an embedded perl script
34746         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34747         Rename variable: s/two/last_two_bytes/
34748
34749 2010-04-16  Eric Blake  <eblake@redhat.com>
34750
34751         test-stdbool: skip test that fails with Solaris CC
34752         * tests/test-stdbool.c (f): Skip test that causes compilation
34753         error under buggy C++ compiler.
34754         * lib/stdbool.in.h: Document the limitation.
34755         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34756
34757         setenv: allow compilation with C++
34758         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34759         register keyword.
34760
34761         stdint: allow test to pass with C++
34762         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34763
34764         getopt: allow compilation with C++
34765         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34766         struct.
34767         * lib/getopt.c (_getopt_internal_r): Use correct type.
34768         Reported by Dagobert Michelson, via Joel E. Denny.
34769
34770 2010-04-16  Bruno Haible  <bruno@clisp.org>
34771
34772         Override netdb.h always.
34773         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34774         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34775         Reported by Ludovic Courtès <ludo@gnu.org>.
34776
34777 2010-04-15  Bruno Haible  <bruno@clisp.org>
34778
34779         openpty: Fix mistake from 2010-03-21.
34780         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34781         Reported by Simon Josefsson.
34782
34783 2010-04-15  Eric Blake  <eblake@redhat.com>
34784
34785         test-forkpty: fix expected signature
34786         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34787         Reported by Simon Josefsson.
34788
34789 2010-04-15  Jim Meyering  <meyering@redhat.com>
34790
34791         maint.mk: texinfo_suffix_re_: correct the default regexp
34792         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34793
34794         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34795         make it configurable via texinfo_suffix_re_.
34796
34797 2010-04-14  Eric Blake  <eblake@redhat.com>
34798
34799         strtok_r: relax license to LGPLv2+
34800         * modules/strtok_r (License): Relax license.
34801         Reported by Matthias Bolte.
34802
34803 2010-04-14  Simon Josefsson  <simon@josefsson.org>
34804
34805         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
34806         version 1.4.4 by default instead of requiring the libgcrypt
34807         version used during build.  This makes it possible to use the
34808         application with older but still binary compatible libgcrypt
34809         versions.
34810
34811 2010-04-13  Eric Blake  <eblake@redhat.com>
34812
34813         getopt-gnu: match recent glibc fixes and posix ruling
34814         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
34815         '+' handling, when requesting extensions.
34816         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
34817         'W;' handling.
34818         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
34819         * doc/posix-functions/getopt.texi (getopt): Document this.
34820         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34821         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34822         Likewise.
34823
34824         getopt: merge bug fixes from glibc
34825         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
34826         diagnostics.  Honor '+:' correctly.  Reject ';'.
34827
34828         getopt-posix: detect MacOS bug
34829         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
34830         optind when missing a required argument.
34831         * doc/posix-functions/getopt.texi (getopt): Document the bug.
34832         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34833         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34834         Likewise.
34835
34836         getopt-posix: avoid spurious failure on Solaris
34837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
34838         an indicator that setting optind=1 is sufficient for reset.
34839
34840         getopt-posix: avoid spurious failure on FreeBSD
34841         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
34842         in POSIX mode, since the m4 test uses it.
34843
34844         gnulib-tool: silence warning on BSD sh
34845         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34846
34847 2010-04-13  Jim Meyering  <meyering@redhat.com>
34848
34849         doc: users.txt: GNU patch now uses gnulib
34850         * users.txt: Add patch.
34851
34852 2010-04-12  Jim Meyering  <meyering@redhat.com>
34853
34854         maint.mk: generate more concise timing data for syntax-check rules
34855         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34856         " done" from each line that reports a syntax-check test duration.
34857
34858 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34859
34860         git-version-gen: use "git update-index..." rather than "git status"
34861         * build-aux/git-version-gen: Use git update-index --refresh, not
34862         "git status".  With some versions of git, "git status" would fail
34863         to update the index and result in an unwarranted "-dirty" suffix.
34864
34865 2010-04-11  Jim Meyering  <meyering@redhat.com>
34866
34867         openat: correct formatting (no semantic change)
34868         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34869         Suggested by Bruno Haible.
34870
34871 2010-04-11  Bruno Haible  <bruno@clisp.org>
34872
34873         Stricter declaration checking in testdirs.
34874         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34875         If for_tests is true, augment AM_CPPFLAGS to define
34876         GNULIB_STRICT_CHECKING.
34877         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34878         GNULIB_STRICT_CHECKING is defined, verify that the function is
34879         declared.
34880
34881 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34882             Bruno Haible  <bruno@clisp.org>
34883
34884         libunistring: Improve configure output.
34885         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34886         Don't say "consider installing GNU libunistring" when checking again
34887         with libiconv.
34888
34889 2010-04-11  Bruno Haible  <bruno@clisp.org>
34890
34891         libunistring: Correct value of $LTLIBUNISTRING.
34892         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34893         correct the value of $LTLIBUNISTRING.
34894
34895 2010-04-11  Bruno Haible  <bruno@clisp.org>
34896
34897         havelib: Add static libraries to LIBS in the right order.
34898         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34899         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34900
34901 2010-04-11  Bruno Haible  <bruno@clisp.org>
34902
34903         libunistring: Detect libunistring also when it depends on libiconv.
34904         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34905         the second AC_LIB_HAVE_LINKFLAGS invocation.
34906
34907 2010-04-11  James Youngman  <jay@gnu.org>
34908
34909         close-stream: declare local scalars to be "const"
34910         * lib/close-stream.c (close_stream): Make boolean variables const
34911         to document the fact that we set but do not change them.
34912
34913 2010-04-11  Bruno Haible  <bruno@clisp.org>
34914
34915         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34916
34917 2010-04-11  Jim Meyering  <meyering@redhat.com>
34918
34919         maint.mk: don't include dist-check.mk
34920         * top/maint.mk: Remove bogus include directive.
34921
34922         maint.mk: improve empty-line-at-EOF check
34923         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34924         solution, rather than tail+Perl-based one.  The latter would read
34925         a few kilobytes from the end of each file, and did not handle empty
34926         files properly.
34927
34928         maint.mk: print the elapsed time for each syntax-check rule
34929         * top/maint.mk (sc_m_rules_): Save start time in a file.
34930         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34931         (local-check): Interpose the .z rules
34932
34933 2010-04-11  Jim Meyering  <meyering@redhat.com>
34934
34935         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34936         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34937         empty file with one that ends in an empty line.
34938
34939 2010-04-10  Bruno Haible  <bruno@clisp.org>
34940
34941         mkdir: Make it work on mingw64.
34942         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34943         * lib/mkdir.c: Update comment.
34944         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
34945
34946 2010-04-10  Bruno Haible  <bruno@clisp.org>
34947
34948         Don't override improved macro from newer autoconf.
34949         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34950         autoconf >= 2.62.
34951         Reported by Joel E. Denny <jdenny@clemson.edu>.
34952
34953 2010-04-10  Jim Meyering  <meyering@redhat.com>
34954
34955         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34956         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34957
34958         maint.mk: correct a diagnostic
34959         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34960         in diagnostic; now use $prohibit.
34961
34962 2010-04-10  Bruno Haible  <address@hidden>
34963
34964         fchownat: Fix a C++ test error on Solaris 8.
34965         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34966         the function does not exist.
34967
34968 2010-04-10  Bruno Haible  <bruno@clisp.org>
34969
34970         vasnprintf: Add more tests.
34971         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34972         (test_function): Test converting an invalid wide string.
34973
34974         vasnprintf: Correct handling of unconvertible wide string arguments.
34975         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34976         VASNPRINTF.
34977         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34978         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34979         smaller than the expected maximum need for the directive. Set errno to
34980         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34981         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34982         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34983         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34984         * modules/vasnprintf (Files): Add m4/printf.m4.
34985         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34986
34987 2010-04-10  Bruno Haible  <bruno@clisp.org>
34988
34989         vasnprintf: Fix crash in %ls directive.
34990         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34991         string is passed as argument to %ls, with no precision and no width.
34992         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34993
34994 2010-04-10  Bruno Haible  <bruno@clisp.org>
34995
34996         vasnprintf: Fix multiple test failures on mingw.
34997         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34998         _snprintf, or snwprintf, not _snwprintf.
34999
35000 2010-04-10  Bruno Haible  <bruno@clisp.org>
35001
35002         write: Fix a C++ test error on mingw.
35003         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35004
35005 2010-04-10  Bruno Haible  <bruno@clisp.org>
35006
35007         vasnprintf test: Reduce code duplication.
35008         * tests/test-vasnprintf.c (test_function): New function, extracted from
35009         test_vasnprintf.
35010         (test_vasnprintf, test_asnprintf): Invoke it.
35011
35012 2010-04-10  Bruno Haible  <bruno@clisp.org>
35013
35014         strnlen: Fix warning in C++ mode on MacOS X.
35015         * lib/string.in.h (strnlen): Use the modern idiom.
35016         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35017         defining strnlen as a macro already in <config.h>.
35018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35019         REPLACE_STRNLEN.
35020         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35021         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35022
35023 2010-04-08  James Youngman  <jay@gnu.org>
35024
35025         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35026         the example.
35027
35028 2010-04-09  Jim Meyering  <meyering@redhat.com>
35029
35030         maint.mk: print better diagnostic when there is no $(_hv_file)
35031         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35032         announce that when $(_hv_file) (aka help-version) does not exist.
35033
35034         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35035         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35036         not try to interpret its random input bytes.  Jarno Rajahalme reported
35037         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35038         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35039         (mktempd_): Likewise, just in case.
35040
35041         ftruncate: add two years to projected module removal date: 2012
35042         * m4/ftruncate.m4: Adjust comments.
35043
35044         ftruncate: mark module as obsolete; even MinGW provides it, now
35045         * modules/ftruncate (Status): Obsolete.
35046         (Notice): Say that.
35047         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35048         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35049
35050 2010-04-08  Bruno Haible  <bruno@clisp.org>
35051
35052         Fix side effects from tests-related modules.
35053         * modules/dprintf-posix (Comment): New section.
35054         * modules/fprintf-posix (Comment): Likewise.
35055         * modules/obstack-printf-posix (Comment): Likewise.
35056         * modules/printf-posix (Comment): Likewise.
35057         * modules/snprintf-posix (Comment): Likewise.
35058         * modules/sprintf-posix (Comment): Likewise.
35059         * modules/vasnprintf-posix (Comment): Likewise.
35060         * modules/vasprintf-posix (Comment): Likewise.
35061         * modules/vdprintf-posix (Comment): Likewise.
35062         * modules/vfprintf-posix (Comment): Likewise.
35063         * modules/vprintf-posix (Comment): Likewise.
35064         * modules/vsnprintf-posix (Comment): Likewise.
35065         * modules/vsprintf-posix (Comment): Likewise.
35066         * modules/xprintf-posix (Comment): Likewise.
35067         * modules/xvasprintf-posix (Comment): Likewise.
35068         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35069         * modules/floorf-tests (Depends-on): Likewise.
35070         * modules/round-tests (Depends-on): Likewise.
35071         * modules/roundf-tests (Depends-on): Likewise.
35072         * modules/trunc-tests (Depends-on): Likewise.
35073         * modules/truncf-tests (Depends-on): Likewise.
35074         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35075         'fprintf-posix' module is not present.
35076         * tests/test-floorf2.c (check): Likewise.
35077         * tests/test-trunc2.c (check): Likewise.
35078         * tests/test-truncf2.c (check): Likewise.
35079         * tests/test-round2.c (equal): Likewise.
35080         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35081
35082 2010-04-07  Karl Berry  <karl@gnu.org>
35083
35084         * config/srclist.txt,
35085         * config/srclistvars.sh,
35086         * config/srclist-update: doc fixes.
35087
35088 2010-04-07  Jim Meyering  <meyering@redhat.com>
35089
35090         maint.mk: add a PATH crosschecking syntax-check rule
35091         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35092         Useful if you use a test like the one in help-version (coreutils,
35093         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35094         printed by prog --version.
35095
35096 2010-04-06  Bruno Haible  <bruno@clisp.org>
35097
35098         Fix link error on mingw.
35099         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35100         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35101
35102 2010-04-06  Bruno Haible  <bruno@clisp.org>
35103
35104         Assume rmdir exists.
35105         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35106
35107 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35108
35109         doc: update users.txt
35110         * users.txt: Add gcal.
35111
35112 2010-04-06  Jim Meyering  <meyering@redhat.com>
35113
35114         init.sh: simply unset TMPDIR rather than risking env -i
35115         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35116         although it probably works fine on all Unix-based systems, some
35117         systems (Cygwin?) cannot tolerate a totally cleared environment.
35118         Suggestion from Eric Blake.
35119
35120 2010-04-06  Jim Meyering  <meyering@redhat.com>
35121
35122         init.sh: portability fix: use env's POSIX-specified -i option not -u
35123         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35124         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35125
35126 2010-04-05  Bruno Haible  <bruno@clisp.org>
35127
35128         btowc: Work around Cygwin 1.7.2 bug.
35129         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35130         does not map NUL to 0.
35131         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35132
35133 2010-04-05  Bruno Haible  <bruno@clisp.org>
35134
35135         Make the multithread modules work on Cygwin 1.7.2.
35136         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35137         imported symbols can be declared weak, so that it returns "no" on
35138         Cygwin 1.7.2.
35139
35140 2010-04-05  Bruno Haible  <bruno@clisp.org>
35141
35142         Use the module 'strncat'.
35143         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35144
35145         Tests for module 'strncat'.
35146         * modules/strncat-tests: New file.
35147         * tests/test-strncat.c: New file.
35148
35149         New module 'strncat'.
35150         * lib/string.in.h (strncat): New declaration.
35151         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35152         * m4/strncat.m4: New file, based on m4/memchr.m4.
35153         * modules/strncat: New file.
35154         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35155         is declared.
35156         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35157         REPLACE_STRNCAT.
35158         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35159         REPLACE_STRNCAT.
35160         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35161         module.
35162         * tests/test-string-c++.cc: Check signature of strncat.
35163
35164 2010-04-05  Jim Meyering  <meyering@redhat.com>
35165
35166         xstrtoumax-tests: convert to use init.sh
35167         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35168         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35169         Use Exit, not exit.
35170         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35171
35172         xstrtoimax-tests: convert to use init.sh
35173         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35174         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35175         Use Exit, not exit.
35176         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35177
35178 2010-04-05  Bruno Haible  <bruno@clisp.org>
35179
35180         sys_socket: Avoid #define replacements in C++ mode.
35181         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35182         warning to the function if possible, rather than #defining the symbol
35183         to a dysfunctional alias.
35184
35185 2010-04-05  Bruno Haible  <bruno@clisp.org>
35186
35187         fseeko: Fix C++ test error on mingw.
35188         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35189         gl_FUNC_FSEEKO.
35190         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35191         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35192         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35193         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35194
35195 2010-04-05  Bruno Haible  <bruno@clisp.org>
35196
35197         duplocale: Improve test output.
35198         * tests/test-duplocale.c (main): Print reason for skipped test.
35199
35200 2010-04-05  Bruno Haible  <bruno@clisp.org>
35201
35202         Assume rmdir exists.
35203         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35204         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35205
35206 2010-04-05  Bruno Haible  <bruno@clisp.org>
35207
35208         Fix link error on Solaris 8 with cc.
35209         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35210
35211 2010-04-05  Bruno Haible  <bruno@clisp.org>
35212
35213         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35214         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35215
35216 2010-04-05  Bruno Haible  <bruno@clisp.org>
35217
35218         vasprintf: Update documentation.
35219         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35220
35221 2010-04-05  Bruno Haible  <bruno@clisp.org>
35222
35223         ptsname: Improve test.
35224         * tests/test-ptsname.c (main): Also try the various master names of BSD
35225         systems.
35226
35227 2010-04-05  Bruno Haible  <bruno@clisp.org>
35228
35229         memchr: Avoid a possible C++ test error.
35230         * lib/string.in.h (memchr): Provide declaration if function is missing.
35231         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35232         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35234         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35235
35236 2010-04-05  Bruno Haible  <bruno@clisp.org>
35237
35238         strtok_r: Improve idiom.
35239         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35240         AC_LIBOBJ is used.
35241
35242 2010-04-05  Bruno Haible  <bruno@clisp.org>
35243
35244         strdup: Improve idiom.
35245         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35246         AC_LIBOBJ is used.
35247         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35248         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35249         when AC_LIBOBJ is used.
35250
35251 2010-04-05  Bruno Haible  <bruno@clisp.org>
35252
35253         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35254         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35255         don't set REPLACE_MBSINIT to 1.
35256         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35257         don't set REPLACE_MBRTOWC to 1.
35258         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35259         exist, don't set REPLACE_MBSRTOWCS to 1.
35260         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35261         exist, don't set REPLACE_MBSNRTOWCS to 1.
35262         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35263         don't set REPLACE_WCRTOMB to 1.
35264         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35265         exist, don't set REPLACE_WCSRTOMBS to 1.
35266         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35267         exist, don't set REPLACE_WCSNRTOMBS to 1.
35268
35269 2010-04-05  Bruno Haible  <bruno@clisp.org>
35270
35271         ldexpl: Improve idiom.
35272         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35273         make sure to set HAVE_DECL_LDEXPL to 0.
35274
35275 2010-04-05  Jim Meyering  <meyering@redhat.com>
35276
35277         xstrtol-tests: convert to use init.sh
35278         * modules/xstrtol-tests (Files): Add tests/init.sh.
35279         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35280         Use Exit, not exit.
35281         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35282
35283         atexit-tests: convert to use init.sh
35284         * modules/atexit-tests (Files): Add tests/init.sh.
35285         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35286         Use Exit, not exit.
35287         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35288
35289         init.sh: fix typo
35290         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35291
35292         init.sh: make it easier for a test script to write to the tty, ...
35293         when using automake's parallel-tests mode.
35294         * tests/init.sh (stderr_fileno_): Define overridable variable.
35295         (warn_): New function, to use it.
35296         (fail_, skip_, framework_failure_): Use warn_.
35297
35298 2010-04-04  Bruno Haible  <bruno@clisp.org>
35299
35300         btowc: Avoid warning.
35301         * lib/btowc.c: Include <stdlib.h>.
35302         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35303
35304 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35305             Bruno Haible  <bruno@clisp.org>
35306
35307         wchar: Port to NetBSD 1.5.
35308         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35309         * lib/wctype.in.h (WEOF): Likewise.
35310
35311 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35312             Bruno Haible  <bruno@clisp.org>
35313
35314         Port extended stdio to NetBSD 1.5.
35315         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35316         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35317         older.
35318
35319 2010-04-04  Bruno Haible  <bruno@clisp.org>
35320
35321         string: Remove unused substitution.
35322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35323         HAVE_DECL_STRERROR.
35324         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35325
35326 2010-04-04  Bruno Haible  <bruno@clisp.org>
35327
35328         strtod: Avoid a possible C++ test error.
35329         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35330         set REPLACE_STRTOD.
35331
35332 2010-04-04  Bruno Haible  <bruno@clisp.org>
35333
35334         strerror: Update documentation.
35335         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35336
35337 2010-04-04  Bruno Haible  <bruno@clisp.org>
35338
35339         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35340         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35341         _GL_CXXALIAS_SYS_CAST.
35342
35343 2010-04-04  Bruno Haible  <bruno@clisp.org>
35344
35345         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35346         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35347         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35348         REPLACE_FREXPL to 1.
35349         * doc/posix-functions/frexpl.texi: Update documentation.
35350
35351 2010-04-04  Bruno Haible  <bruno@clisp.org>
35352
35353         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35354         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35355
35356 2010-04-04  Bruno Haible  <bruno@clisp.org>
35357
35358         Implement nanosleep for native Windows.
35359         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35360
35361 2010-04-04  Bruno Haible  <bruno@clisp.org>
35362
35363         math: Fix some C++ test errors on Solaris 8.
35364         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35365
35366 2010-04-04  Bruno Haible  <bruno@clisp.org>
35367
35368         math: Fix some C++ test errors on Cygwin.
35369         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35370         truncl): Provide declaration if the system does not have it.
35371         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35372         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35373         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35374         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35375         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35376         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35377         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35378         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35379         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35380         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35381         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35382         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35383         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35384         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35385         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35386         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35388         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35389         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35390         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35391         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35392         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35393
35394 2010-04-04  Bruno Haible  <bruno@clisp.org>
35395
35396         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35397         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35398         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35399         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35400         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35401         * m4/isinf.m4 (gl_ISINF): Likewise.
35402         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35403
35404 2010-04-04  Bruno Haible  <bruno@clisp.org>
35405
35406         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35407         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35408
35409 2010-04-04  Bruno Haible  <bruno@clisp.org>
35410
35411         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35412         * modules/tmpfile (configure.ac): Update.
35413
35414         tmpfile: Fix C++ test error on mingw.
35415         * lib/stdio.in.h (tmpfile): New declaration.
35416         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35417         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35418         * modules/tmpfile (Depends-on): Add stdio.
35419         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35420         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35421         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35422         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35423         REPLACE_TMPFILE.
35424         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35425
35426 2010-04-04  Bruno Haible  <bruno@clisp.org>
35427
35428         ioctl: Fix C++ test error on mingw.
35429         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35430         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35431         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35432
35433 2010-04-03  Bruno Haible  <bruno@clisp.org>
35434
35435         wcwidth: Fix C++ test error on mingw.
35436         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35437         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35438         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35439
35440 2010-04-03  Bruno Haible  <bruno@clisp.org>
35441
35442         nanosleep: Fix C++ test error on mingw.
35443         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35444         * lib/time.in.h (nanosleep): Use modern idiom.
35445         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35446         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35447         REPLACE_NANOSLEEP to 1.
35448         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35449         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35450
35451 2010-04-03  Bruno Haible  <bruno@clisp.org>
35452
35453         strptime: Fix C++ test error on mingw.
35454         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35455         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35456         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35457         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35458         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35459         not REPLACE_STRPTIME.
35460         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35461         REPLACE_STRPTIME.
35462
35463 2010-04-03  Bruno Haible  <bruno@clisp.org>
35464
35465         timegm: Fix C++ test error on mingw.
35466         * lib/time.in.h (timegm): Use modern idiom.
35467         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35468         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35469         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35470         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35471
35472 2010-04-03  Bruno Haible  <bruno@clisp.org>
35473
35474         timegm: Assume declaration if function exists.
35475         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35476         if it exists. Don't clobber ac_cv_func_timegm.
35477
35478 2010-04-03  Bruno Haible  <bruno@clisp.org>
35479
35480         time_r: Fix C++ test error on mingw.
35481         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35482         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35483         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35484         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35485         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35486
35487 2010-04-03  Bruno Haible  <bruno@clisp.org>
35488
35489         time_r: Minor updates.
35490         * modules/time_r (Description): Mention the provided functions.
35491         * lib/time_r.c: Don't include <string.h>.
35492         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35493         * doc/posix-functions/localtime_r.texi: Likewise.
35494
35495 2010-04-03  Bruno Haible  <bruno@clisp.org>
35496
35497         time: Fix regression introduced on 2010-03-08.
35498         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35499         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35500
35501 2010-04-03  Jim Meyering  <meyering@redhat.com>
35502
35503         maint.mk: don't silently disable project-specific syntax-check rules
35504         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35505         that they need to convert their project-specific syntax-check rules
35506         to use the new _sc_search_regexp.
35507
35508 2010-04-03  Bruno Haible  <bruno@clisp.org>
35509
35510         fchdir: Fix regression introduced on 2010-03-08.
35511         * lib/unistd.in.h (fchdir): Fix declaration.
35512         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35514         REPLACE_FCHDIR.
35515         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35516         REPLACE_FCHDIR.
35517
35518 2010-04-03  Bruno Haible  <bruno@clisp.org>
35519
35520         getpagesize: Fix C++ test error on mingw.
35521         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35522         system does not declare the function.
35523         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35524         declared.
35525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35526         HAVE_DECL_GETPAGESIZE.
35527         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35528
35529 2010-04-03  Bruno Haible  <bruno@clisp.org>
35530
35531         stdio: Make C++ tests work on mingw.
35532         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35533         does not declare the function.
35534
35535 2010-04-03  Bruno Haible  <bruno@clisp.org>
35536
35537         ftello: Fix C++ test error on mingw.
35538         * lib/stdio.in.h (ftello): Use modern idiom.
35539         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35540         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35541         is missing and that it needs to be replaced.
35542         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35544         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35545
35546 2010-04-03  Bruno Haible  <bruno@clisp.org>
35547
35548         fseeko: Fix C++ test error on mingw.
35549         * lib/stdio.in.h (fseeko): Use modern idiom.
35550         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35551         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35552         is missing and that it needs to be replaced.
35553         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35555         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35556
35557 2010-04-03  Bruno Haible  <bruno@clisp.org>
35558
35559         mkstemp: Fix C++ test error on mingw.
35560         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35561         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35562         function is missing and that it needs to be replaced.
35563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35564         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35565
35566 2010-04-03  Bruno Haible  <bruno@clisp.org>
35567
35568         stpncpy: Fix C++ test error on mingw.
35569         * lib/string.in.h (stpncpy): Use modern idiom.
35570         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35571         function is missing and that it needs to be replaced.
35572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35573         REPLACE_STPNCPY.
35574         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35575
35576 2010-04-03  Bruno Haible  <bruno@clisp.org>
35577
35578         sys_stat: Fix C++ test error on mingw.
35579         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35580         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35581
35582 2010-04-03  Bruno Haible  <bruno@clisp.org>
35583
35584         pty: Update doc.
35585         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35586
35587 2010-04-03  Bruno Haible  <bruno@clisp.org>
35588
35589         unistd: Fix C++ test error on mingw.
35590         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35591
35592 2010-04-03  Bruno Haible  <bruno@clisp.org>
35593
35594         Update doc regarding mingw.
35595         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35596         * doc/glibc-functions/login_tty.texi: Likewise.
35597         * doc/glibc-functions/forkpty.texi: Likewise.
35598
35599 2010-04-03  Bruno Haible  <bruno@clisp.org>
35600
35601         stdlib: Avoid compilation failure of c-strtold on mingw.
35602         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35603
35604 2010-04-03  Bruno Haible  <bruno@clisp.org>
35605
35606         locale: Make C++ tests work on Cygwin and mingw.
35607         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35608         cannot provide the function.
35609         Reported by Simon Josefsson.
35610
35611 2010-04-03  Bruno Haible  <bruno@clisp.org>
35612
35613         localename: Port to MacOS X 10.6.
35614         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35615         memory layout of the locales in MacOS X 10.6 as well.
35616         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35617
35618 2010-04-02  Bruno Haible  <bruno@clisp.org>
35619
35620         gnulib-tool: Ensure that long-running tests are executed last.
35621         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35622         running tests after the one for the other tests.
35623
35624 2010-04-02  Bruno Haible  <bruno@clisp.org>
35625
35626         gnulib-tool: Ensure the tests in the main directory are executed first.
35627         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35628         start with the current directory.
35629
35630 2010-04-02  Bruno Haible  <bruno@clisp.org>
35631
35632         Tests for module 'havelib', moved here from GNU gettext.
35633         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35634         modifications.
35635         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35636         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35637         with modifications.
35638         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35639         modifications.
35640         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35641         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35642         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35643         with modifications.
35644         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35645         with modifications.
35646         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35647         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35648         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35649         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35650         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35651         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35652         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35653         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35654         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35655         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35656         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35657         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35658         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35659         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35660         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35661         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35662         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35663         with modifications.
35664         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35665         with modifications.
35666         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35667         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35668         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35669         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35670         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35671         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35672         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35673         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35674         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35675         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35676         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35677         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35678         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35679         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35680         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35681         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35682         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35683         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35684         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35685         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35686         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35687         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35688         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35689         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35690         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35691         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35692         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35693         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35694         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35695         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35696         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35697         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35698         * tests/havelib/rpathx/rpathx.c: New file, from
35699         gettext/autoconf-lib-link.
35700         * tests/havelib/rpathx/Makefile.am: New file, from
35701         gettext/autoconf-lib-link.
35702         * tests/havelib/rpathx/configure.ac: New file, from
35703         gettext/autoconf-lib-link with modifications.
35704         * tests/havelib/rpathy/rpathy.c: New file, from
35705         gettext/autoconf-lib-link.
35706         * tests/havelib/rpathy/Makefile.am: New file, from
35707         gettext/autoconf-lib-link.
35708         * tests/havelib/rpathy/configure.ac: New file, from
35709         gettext/autoconf-lib-link with modifications.
35710         * tests/havelib/rpathz/rpathz.c: New file, from
35711         gettext/autoconf-lib-link.
35712         * tests/havelib/rpathz/Makefile.am: New file, from
35713         gettext/autoconf-lib-link.
35714         * tests/havelib/rpathz/configure.ac: New file, from
35715         gettext/autoconf-lib-link with modifications.
35716         * tests/havelib/rpathlx/usex.c: New file, from
35717         gettext/autoconf-lib-link.
35718         * tests/havelib/rpathlx/Makefile.am: New file, from
35719         gettext/autoconf-lib-link.
35720         * tests/havelib/rpathlx/configure.ac: New file, from
35721         gettext/autoconf-lib-link with modifications.
35722         * tests/havelib/rpathly/usey.c: New file, from
35723         gettext/autoconf-lib-link.
35724         * tests/havelib/rpathly/Makefile.am: New file, from
35725         gettext/autoconf-lib-link.
35726         * tests/havelib/rpathly/configure.ac: New file, from
35727         gettext/autoconf-lib-link with modifications.
35728         * tests/havelib/rpathlz/usez.c: New file, from
35729         gettext/autoconf-lib-link.
35730         * tests/havelib/rpathlz/Makefile.am: New file, from
35731         gettext/autoconf-lib-link.
35732         * tests/havelib/rpathlz/configure.ac: New file, from
35733         gettext/autoconf-lib-link with modifications.
35734         * tests/havelib/rpathlyx/usey.c: New file, from
35735         gettext/autoconf-lib-link.
35736         * tests/havelib/rpathlyx/Makefile.am: New file, from
35737         gettext/autoconf-lib-link.
35738         * tests/havelib/rpathlyx/configure.ac: New file, from
35739         gettext/autoconf-lib-link with modifications.
35740         * tests/havelib/rpathlzyx/usez.c: New file, from
35741         gettext/autoconf-lib-link.
35742         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35743         gettext/autoconf-lib-link.
35744         * tests/havelib/rpathlzyx/configure.ac: New file, from
35745         gettext/autoconf-lib-link with modifications.
35746         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35747         with modifications.
35748
35749 2010-04-02  Bruno Haible  <bruno@clisp.org>
35750
35751         gnulib-tool: Create distributed built sources also for the tests.
35752         * gnulib-tool (func_create_testdir): Also generate distributed built
35753         sources in the tests directory.
35754
35755 2010-04-02  Bruno Haible  <bruno@clisp.org>
35756
35757         gnulib-tool: Obey user's environment variables.
35758         * gnulib-tool (func_create_testdir): When creating built sources,
35759         respect the environment variables for autoconf, automake, etc. given by
35760         the user.
35761
35762 2010-04-02  Bruno Haible  <bruno@clisp.org>
35763
35764         gnulib-tool: Provide the value of --m4-base to modules.
35765         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35766         of gl_m4_base.
35767
35768 2010-04-02  Eric Blake  <eblake@redhat.com>
35769
35770         maint.mk: fix some fallout
35771         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35772         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35773
35774 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35775
35776         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35777         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35778         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35779         (sc_cast_of_x_alloc_return_value): Likewise.
35780         (sc_cast_of_alloca_return_value): Likewise.
35781         (sc_space_tab): Likewise.
35782         (sc_prohibit_atoi_atof): Likewise.
35783         (sc_prohibit_magic_number_exit): Likewise.
35784         (sc_error_exit_success): Likewise.
35785         (sc_file_system): Likewise.
35786         (sc_prohibit_have_config_h): Likewise.
35787         (sc_require_config_h): Likewise.
35788         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35789         (sc_obsolete_symbols): Likewise.
35790         (sc_changelog): Likewise.
35791         (sc_program_name): Likewise.
35792         (sc_the_the): Likewise.
35793         (sc_trailing_blank): Likewise.
35794         (sc_two_space_separator_in_usage): Likewise.
35795         (sc_useless_cpp_parens): Likewise.
35796         (sc_GPL_version): Likewise.
35797         (sc_GFDL_version): Likewise.
35798         (sc_texinfo_acronym): Likewise.
35799         (sc_prohibit_cvs_keyword): Likewise.
35800         (sc_prohibit_stat_st_blocks): Likewise.
35801         (sc_prohibit_S_IS_definition): Likewise.
35802         (sc_redundant_const): Likewise.
35803         (sc_makefile_TAB_only_indentation): Likewise.
35804         (sc_m4_quote_check): Likewise.
35805         (sc_makefile_path_separator_check): Likewise.
35806         (sc_copyright_check): Likewise.
35807         (sc_Wundef_boolean): Likewise.
35808         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
35809
35810         maint.mk: match 0 or more whitespace-before-function-call '('
35811         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
35812         that have zero or two-and-more spaces between the function name
35813         and the open parenthesis.
35814         (sc_error_message_warn_fatal): Likewise.
35815         (sc_error_message_uppercase): Likewise.
35816         (sc_error_message_period): Likewise.
35817
35818 2010-03-31  Eric Blake  <eblake@redhat.com>
35819
35820         maint.mk: check for [ as well as test
35821         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
35822         Based on a libvirt report by Matthias Bolte.
35823
35824         gnumakefile: don't squelch _version output
35825         * top/GNUmakefile (_version): Create one-shot dependency rather
35826         than using $(shell) when version must be regenerated.
35827         (_autoreconf): Run verbosely, by default.
35828
35829         sys_time: avoid compiler warnings
35830         * lib/sys_time.in.h (includes): Ensure gcc pragma is
35831         unconditional, fixing regression from 2010-03-29.
35832         Reported by Simon Josefsson.
35833
35834 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35835
35836         maint.mk: s/_header_without_use/_sc_header_without_use/
35837         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
35838         (sc_prohibit_assert_without_use): Use the new name.
35839         (sc_prohibit_close_stream_without_use): Likewise.
35840         (sc_prohibit_getopt_without_use): Likewise.
35841         (sc_prohibit_quotearg_without_use): Likewise.
35842         (sc_prohibit_quote_without_use): Likewise.
35843         (sc_prohibit_long_options_without_use): Likewise.
35844         (sc_prohibit_inttostr_without_use): Likewise.
35845         (sc_prohibit_ignore_value_without_use): Likewise.
35846         (sc_prohibit_error_without_use): Likewise.
35847         (sc_prohibit_xalloc_without_use): Likewise.
35848         (sc_prohibit_hash_without_use): Likewise.
35849         (sc_prohibit_hash_pjw_without_use): Likewise.
35850         (sc_prohibit_safe_read_without_use): Likewise.
35851         (sc_prohibit_argmatch_without_use): Likewise.
35852         (sc_prohibit_canonicalize_without_use): Likewise.
35853         (sc_prohibit_root_dev_ino_without_use): Likewise.
35854         (sc_prohibit_openat_without_use): Likewise.
35855         (sc_prohibit_c_ctype_without_use): Likewise.
35856         (sc_prohibit_signal_without_use): Likewise.
35857         (sc_prohibit_intprops_without_use): Likewise.
35858
35859 2010-03-30  Eric Blake  <eblake@redhat.com>
35860
35861         maint: improve module indicators
35862         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35863         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35864         columns, and avoid extra macro expansion.
35865
35866         fdopendir: work around FreeBSD bug
35867         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35868         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35869         * modules/dirent (Makefile.am): Substitute it.
35870         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35871         declaration.
35872         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35873         fix.
35874         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35875
35876 2010-03-29  Bruno Haible  <bruno@clisp.org>
35877
35878         Emit #pragma system_header after the inclusion guard, not before.
35879         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35880         guard that spans the entire file, not before. This enables an
35881         optimization in GCC's preprocessor.
35882         * lib/ctype.in.h: Likewise.
35883         * lib/dirent.in.h: Likewise.
35884         * lib/errno.in.h: Likewise.
35885         * lib/float.in.h: Likewise.
35886         * lib/getopt.in.h: Likewise.
35887         * lib/iconv.in.h: Likewise.
35888         * lib/langinfo.in.h: Likewise.
35889         * lib/locale.in.h: Likewise.
35890         * lib/math.in.h: Likewise.
35891         * lib/netdb.in.h: Likewise.
35892         * lib/netinet_in.in.h: Likewise.
35893         * lib/pty.in.h: Likewise.
35894         * lib/sched.in.h: Likewise.
35895         * lib/se-selinux.in.h: Likewise.
35896         * lib/search.in.h: Likewise.
35897         * lib/spawn.in.h: Likewise.
35898         * lib/stdarg.in.h: Likewise.
35899         * lib/stdint.in.h: Likewise.
35900         * lib/string.in.h: Likewise.
35901         * lib/strings.in.h: Likewise.
35902         * lib/sys_file.in.h: Likewise.
35903         * lib/sys_ioctl.in.h: Likewise.
35904         * lib/sys_time.in.h: Likewise.
35905         * lib/sys_times.in.h: Likewise.
35906         * lib/sys_utsname.in.h: Likewise.
35907         * lib/sys_wait.in.h: Likewise.
35908         * lib/sysexits.in.h: Likewise.
35909         * lib/wctype.in.h: Likewise.
35910
35911 2010-03-28  James Youngman  <jay@gnu.org>
35912
35913         save-cwd: don't leak a file descriptor when the caller execs.
35914         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35915         saved file descriptor.
35916         * modules/save-cwd (Depends-on): Depend on cloexec.
35917
35918 2010-03-29  Bruno Haible  <bruno@clisp.org>
35919
35920         Remove vestiges of fts-lgpl module.
35921         * lib/fts_.h: Assume GNULIB_FTS is 1.
35922         * lib/fts.c: Likewise.
35923         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35924
35925 2010-03-28  Bruno Haible  <bruno@clisp.org>
35926
35927         Fix definition of tests witness macro.
35928         * gnulib-tool (func_import): Fix definition of witness macro.
35929
35930 2010-03-28  Bruno Haible  <bruno@clisp.org>
35931
35932         Fix ioctl's protoype on glibc systems.
35933         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35934         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35935         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35936         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35937         signature. If not, arrange to replace the ioctl function.
35938         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35939         REPLACE_IOCTL.
35940         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35941         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35942         Reported by Ludovic Courtès <ludo@gnu.org>.
35943
35944 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35945
35946         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35947         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35948         made it so grep -r --include=GLOB* ... did not work.
35949
35950 2010-03-26  Jim Meyering  <meyering@redhat.com>
35951             Eric Blake  <eblake@redhat.com>
35952
35953         maint.mk: prohibit use of test's -o and -a operators
35954         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35955
35956 2010-03-28  Bruno Haible  <bruno@clisp.org>
35957
35958         Remove unused GNULIB_XYZ macro definitions.
35959         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35960         invocation.
35961
35962 2010-03-28  Bruno Haible  <bruno@clisp.org>
35963
35964         Mark privileged tests modules.
35965         * modules/idpriv-drop-tests (Status): New section.
35966         * modules/idpriv-droptemp-tests (Status): New section.
35967
35968 2010-03-28  Bruno Haible  <bruno@clisp.org>
35969
35970         Split C++ tests into separate tests modules.
35971         * modules/dirent-c++-tests: New file, extracted from
35972         modules/dirent-tests.
35973         * modules/dirent-tests: Depend on it.
35974         * modules/fcntl-h-c++-tests: New file, extracted from
35975         modules/fcntl-h-tests.
35976         * modules/fcntl-h-tests: Depend on it.
35977         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35978         * modules/glob-tests: Depend on it.
35979         * modules/iconv-h-c++-tests: New file, extracted from
35980         modules/iconv-h-tests.
35981         * modules/iconv-h-tests: Depend on it.
35982         * modules/langinfo-c++-tests: New file, extracted from
35983         modules/langinfo-tests.
35984         * modules/langinfo-tests: Depend on it.
35985         * modules/locale-c++-tests: New file, extracted from
35986         modules/locale-tests.
35987         * modules/locale-tests: Depend on it.
35988         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35989         * modules/math-tests: Depend on it.
35990         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35991         * modules/pty-tests: Depend on it.
35992         * modules/search-c++-tests: New file, extracted from
35993         modules/search-tests.
35994         * modules/search-tests: Depend on it.
35995         * modules/signal-c++-tests: New file, extracted from
35996         modules/signal-tests.
35997         * modules/signal-tests: Depend on it.
35998         * modules/spawn-c++-tests: New file, extracted from
35999         modules/spawn-tests.
36000         * modules/spawn-tests: Depend on it.
36001         * modules/stdio-c++-tests: New file, extracted from
36002         modules/stdio-tests.
36003         * modules/stdio-tests: Depend on it.
36004         * modules/stdlib-c++-tests: New file, extracted from
36005         modules/stdlib-tests.
36006         * modules/stdlib-tests: Depend on it.
36007         * modules/string-c++-tests: New file, extracted from
36008         modules/string-tests.
36009         * modules/string-tests: Depend on it.
36010         * modules/sys_ioctl-c++-tests: New file, extracted from
36011         modules/sys_ioctl-tests.
36012         * modules/sys_ioctl-tests: Depend on it.
36013         * modules/sys_select-c++-tests: New file, extracted from
36014         modules/sys_select-tests.
36015         * modules/sys_select-tests: Depend on it.
36016         * modules/sys_socket-c++-tests: New file, extracted from
36017         modules/sys_socket-tests.
36018         * modules/sys_socket-tests: Depend on it.
36019         * modules/sys_stat-c++-tests: New file, extracted from
36020         modules/sys_stat-tests.
36021         * modules/sys_stat-tests: Depend on it.
36022         * modules/sys_time-c++-tests: New file, extracted from
36023         modules/sys_time-tests.
36024         * modules/sys_time-tests: Depend on it.
36025         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36026         * modules/time-tests: Depend on it.
36027         * modules/unistd-c++-tests: New file, extracted from
36028         modules/unistd-tests.
36029         * modules/unistd-tests: Depend on it.
36030         * modules/wchar-c++-tests: New file, extracted from
36031         modules/wchar-tests.
36032         * modules/wchar-tests: Depend on it.
36033         * modules/wctype-c++-tests: New file, extracted from
36034         modules/wctype-tests.
36035         * modules/wctype-tests: Depend on it.
36036         Reported by Simon Josefsson.
36037
36038 2010-03-28  Bruno Haible  <bruno@clisp.org>
36039
36040         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36041         * gnulib-tool (func_exists_module): New function, extracted from
36042         func_verify_module.
36043         (func_verify_module): Use it.
36044         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36045         'foo' only if 'foo' exists.
36046         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36047         module.
36048
36049 2010-03-28  Bruno Haible  <bruno@clisp.org>
36050
36051         gnulib-tool: Add support for special categories of tests.
36052         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36053         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36054         (func_usage): Document them.
36055         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36056         inc_unportable_tests, inc_all_tests): New variables.
36057         (func_acceptable): Consider these variables.
36058         (func_modules_transitive_closure): Make it work when the 'Status' field
36059         consists of multiple words.
36060         (func_import): Store and restore the values of inc_cxx_tests,
36061         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36062         inc_all_tests in gnulib-comp.m4.
36063         (func_create_testdir): Set inc_all_tests to true.
36064         * doc/gnulib.texi (Extra tests modules): New section.
36065         Suggested by Jim Meyering.
36066
36067 2010-03-28  Bruno Haible  <bruno@clisp.org>
36068
36069         ansi-c++-opt: Allow turning off the C++ build by default.
36070         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36071         gl_CXX_CHOICE_DEFAULT_NO is defined.
36072         Requested by Eric Blake.
36073
36074 2010-03-28  Bruno Haible  <bruno@clisp.org>
36075
36076         unistd: Avoid #define replacements in C++ mode.
36077         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36078         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36079         setsockopt, shutdown, select): In C++, attach a warning to the function
36080         if possible, rather than #defining the symbol to a dysfunctional alias.
36081         Reported by John W. Eaton <jwe@gnu.org>.
36082
36083 2010-03-28  Bruno Haible  <bruno@clisp.org>
36084
36085         Fix link errors on mingw.
36086         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36087         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36088         $(LIBSOCKET).
36089         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36090         $(LIBSOCKET).
36091
36092 2010-03-28  Bruno Haible  <bruno@clisp.org>
36093             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36094
36095         lib-ignore: Determine different options for different compilers.
36096         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36097         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36098         Add comments.
36099         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36100         * NEWS: Mention the change.
36101
36102 2010-03-27  Bruno Haible  <bruno@clisp.org>
36103
36104         Remove unused GNULIB_XYZ macro definitions.
36105         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36106         * modules/fseek (configure.ac): Likewise.
36107         * modules/ioctl (configure.ac): Likewise.
36108         * modules/open (configure.ac): Likewise.
36109         * modules/stdlib-safer (configure.ac): Likewise.
36110
36111 2010-03-27  Bruno Haible  <bruno@clisp.org>
36112
36113         Add a remark about certain modules.
36114         * modules/malloc (Comment): New section.
36115         * modules/realloc (Comment): Likewise.
36116         * modules/sigpipe (Comment): Likewise.
36117
36118 2010-03-27  Bruno Haible  <bruno@clisp.org>
36119
36120         Resolve conflict between the two kinds of module indicators.
36121         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36122         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36123         * modules/canonicalize (configure.ac): Invoke
36124         gl_MODULE_INDICATOR_FOR_TESTS.
36125         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36126         GNULIB_XYZ.
36127         * tests/test-dirent-c++.cc: Likewise.
36128         * tests/test-dirent-safer.c: Likewise.
36129         * tests/test-dup2.c: Likewise.
36130         * tests/test-fchdir.c: Likewise.
36131         * tests/test-fcntl-h-c++.cc: Likewise.
36132         * tests/test-getopt.c: Likewise.
36133         * tests/test-getopt.h: Likewise.
36134         * tests/test-langinfo-c++.cc: Likewise.
36135         * tests/test-locale-c++.cc: Likewise.
36136         * tests/test-math-c++.cc: Likewise.
36137         * tests/test-pty-c++.cc: Likewise.
36138         * tests/test-search-c++.cc: Likewise.
36139         * tests/test-signal-c++.cc: Likewise.
36140         * tests/test-spawn-c++.cc: Likewise.
36141         * tests/test-stdio-c++.cc: Likewise.
36142         * tests/test-stdlib-c++.cc: Likewise.
36143         * tests/test-string-c++.cc: Likewise.
36144         * tests/test-sys_ioctl-c++.cc: Likewise.
36145         * tests/test-sys_select-c++.cc: Likewise.
36146         * tests/test-sys_socket-c++.cc: Likewise.
36147         * tests/test-sys_stat-c++.cc: Likewise.
36148         * tests/test-sys_time-c++.cc: Likewise.
36149         * tests/test-time-c++.cc: Likewise.
36150         * tests/test-unistd-c++.cc: Likewise.
36151         * tests/test-wchar-c++.cc: Likewise.
36152         * tests/uninorm/test-u8-nfc.c: Likewise.
36153         * tests/uninorm/test-u8-nfd.c: Likewise.
36154         * tests/uninorm/test-u8-nfkc.c: Likewise.
36155         * tests/uninorm/test-u8-nfkd.c: Likewise.
36156         * tests/uninorm/test-u16-nfc.c: Likewise.
36157         * tests/uninorm/test-u16-nfd.c: Likewise.
36158         * tests/uninorm/test-u16-nfkc.c: Likewise.
36159         * tests/uninorm/test-u16-nfkd.c: Likewise.
36160         * tests/uninorm/test-u32-nfc.c: Likewise.
36161         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36162         * tests/uninorm/test-u32-nfd.c: Likewise.
36163         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36164         * tests/uninorm/test-u32-nfkc.c: Likewise.
36165         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36166         * tests/uninorm/test-u32-nfkd.c: Likewise.
36167         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36168         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36169
36170 2010-03-27  Bruno Haible  <bruno@clisp.org>
36171
36172         Distinguish two kinds of module indicators.
36173         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36174         gl_MODULE_INDICATOR.
36175         (gl_MODULE_INDICATOR): New macro.
36176         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36177         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36178         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36179         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36180         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36181         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36182         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36183         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36184         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36185         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36186         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36187         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36188         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36189         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36190         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36191         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36192         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36193         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36194         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36195         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36196         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36197         * modules/cloexec (configure.ac): Likewise.
36198         * modules/getopt-gnu (configure.ac): Likewise.
36199         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36200         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36201         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36202         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36203
36204 2010-03-27  Bruno Haible  <bruno@clisp.org>
36205
36206         New module description field 'Comment'.
36207         * gnulib-tool: New option --extract-comment.
36208         (func_usage): Document it.
36209         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36210         (func_get_comment): New function.
36211         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36212
36213 2010-03-27  Bruno Haible  <bruno@clisp.org>
36214
36215         Addendum to 2010-02-07 commit.
36216         * gnulib-tool (func_usage): Document --extract-applicability option.
36217
36218 2010-03-27  Bruno Haible  <bruno@clisp.org>
36219
36220         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36221         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36222         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36223         rather than link errors.
36224
36225 2010-03-27  Bruno Haible  <bruno@clisp.org>
36226
36227         Avoid side effects from tests-related modules on the compilation of lib.
36228         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36229         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36230         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36231         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36232         macro.
36233         (func_import): Define a witness macro. Assign it a value that depends
36234         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36235         tests-related modules.
36236         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36237         Reported by Jim Meyering.
36238
36239 2010-03-27  Bruno Haible  <bruno@clisp.org>
36240
36241         Factorize common .m4 code.
36242         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36243         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36244         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36245         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36246         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36247         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36248         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36249         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36250         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36251         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36252         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36253         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36254         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36255         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36256         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36257         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36258         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36259         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36261         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36262         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36263         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36264         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36265         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36266         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36267         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36268         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36269         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36270         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36271         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36272         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36273         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36274
36275 2010-03-27  Bruno Haible  <bruno@clisp.org>
36276
36277         Fix a compilation error on Cygwin with g++ >= 4.3.
36278         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36279         if it is undefined or if we alias it to chmod.
36280         (lstat): Don't warn about the use of this function if it is undefined
36281         or if we alias it to stat.
36282         Reported by Simon Josefsson.
36283
36284 2010-03-27  Bruno Haible  <bruno@clisp.org>
36285
36286         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36287         * modules/getlogin (configure.ac): Update.
36288
36289         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36290         * modules/getlogin_r (configure.ac): Update.
36291
36292         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36293         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36294         * modules/inet_ntop (configure.ac): Update.
36295
36296         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36297         * modules/inet_pton (configure.ac): Update.
36298
36299         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36300         * modules/mbslen (configure.ac): Update.
36301
36302         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36303         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36304         * modules/forkpty (configure.ac): Update.
36305         * modules/openpty (configure.ac): Update.
36306
36307 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36308
36309         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36310         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36311
36312 2010-03-25  Eric Blake  <eblake@redhat.com>
36313
36314         maint: use pragma consistently across replacement headers
36315         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36316         * lib/dirent.in.h (system_header): Likewise.
36317         * lib/errno.in.h (system_header): Likewise.
36318         * lib/float.in.h (system_header): Likewise.
36319         * lib/getopt.in.h (system_header): Likewise.
36320         * lib/iconv.in.h (system_header): Likewise.
36321         * lib/inttypes.in.h (system_header): Likewise.
36322         * lib/langinfo.in.h (system_header): Likewise.
36323         * lib/locale.in.h (system_header): Likewise.
36324         * lib/math.in.h (system_header): Likewise.
36325         * lib/netdb.in.h (system_header): Likewise.
36326         * lib/netinet_in.in.h (system_header): Likewise.
36327         * lib/pty.in.h (system_header): Likewise.
36328         * lib/sched.in.h (system_header): Likewise.
36329         * lib/se-selinux.in.h (system_header): Likewise.
36330         * lib/search.in.h (system_header): Likewise.
36331         * lib/spawn.in.h (system_header): Likewise.
36332         * lib/stdarg.in.h (system_header): Likewise.
36333         * lib/stdint.in.h (system_header): Likewise.
36334         * lib/string.in.h (system_header): Likewise.
36335         * lib/strings.in.h (system_header): Likewise.
36336         * lib/sys_file.in.h (system_header): Likewise.
36337         * lib/sys_ioctl.in.h (system_header): Likewise.
36338         * lib/sys_socket.in.h (system_header): Likewise.
36339         * lib/sys_times.in.h (system_header): Likewise.
36340         * lib/sys_utsname.in.h (system_header): Likewise.
36341         * lib/sys_wait.in.h (system_header): Likewise.
36342         * lib/sysexits.in.h (system_header): Likewise.
36343         * lib/unistd.in.h (system_header): Likewise.
36344         * lib/wctype.in.h (system_header): Likewise.
36345
36346         arpa/inet: fix mingw compilation warning
36347         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36348         Reported by Matthew Bolte.
36349
36350 2010-03-25  Bruno Haible  <bruno@clisp.org>
36351
36352         Avoid collision between gnulib wrapper and libintl wrapper.
36353         * lib/printf.c (printf): Don't define if a printf wrapper is already
36354         defined in intl/printf.c.
36355         Reported by Michel Boaventura <michel@michelboaventura.com>.
36356
36357 2010-03-25  Bruno Haible  <bruno@clisp.org>
36358
36359         Use ANSI C.
36360         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36361
36362 2010-03-25  Bruno Haible  <bruno@clisp.org>
36363
36364         Minor formatting changes.
36365         * lib/acosl.c: Insert space before function argument list.
36366         * lib/argz.c: Likewise.
36367         * lib/asinl.c: Likewise.
36368         * lib/expl.c: Likewise.
36369         * lib/gen-uni-tables.c: Likewise.
36370         * lib/gettext.h: Likewise.
36371         * lib/glthread/lock.h: Likewise.
36372         * lib/tanl.c: Likewise.
36373         * lib/uniname/uniname.c: Likewise.
36374         * tests/test-idpriv-drop.c: Likewise.
36375         * tests/test-idpriv-droptemp.c: Likewise.
36376         * tests/test-lock.c: Likewise.
36377         * tests/test-tls.c: Likewise.
36378         * lib/argp-help.c: Insert space before function-like macro argument
36379         list.
36380         * lib/memcmp.c: Likewise.
36381         * tests/test-base64.c: Likewise.
36382         * lib/localename.c: Insert space before sizeof's argument list.
36383         * lib/safe-alloc.h: Likewise.
36384         * lib/file-set.h: Insert space before macro argument list.
36385         * tests/test-argp.c: Likewise.
36386         * lib/argp-namefrob.h: Insert space before function parameter list.
36387         * lib/getaddrinfo.c: Likewise.
36388         * lib/netdb.in.h: Likewise.
36389         * lib/parse-duration.h: Likewise.
36390         * lib/parse-duration.c: Likewise.
36391         * lib/poll.c: Likewise.
36392         * lib/select.c: Likewise.
36393         * lib/trim.h: Likewise.
36394         * tests/test-usleep.c: Likewise.
36395         * lib/ldexpl.c: Insert space before function parameter list and before
36396         function argument list.
36397         * lib/logl.c: Likewise.
36398         * lib/sqrtl.c: Likewise.
36399         * lib/trim.c: Likewise.
36400         * lib/cosl.c: Use GNU style indentation. Insert space before function
36401         argument list.
36402         * lib/sinl.c: Likewise.
36403         * lib/tsearch.c: Insert space after 'for'.
36404         Reported by Jim Meyering.
36405
36406 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36407
36408         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36409         config header before grepping, as it's not present before
36410         autoreconf/configure are run.  Reported by Simon Josefsson.
36411
36412 2010-03-23  Bruno Haible  <bruno@clisp.org>
36413
36414         pt_chown: Make it work with automake < 1.11.
36415         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36416         Reported by Simon Josefsson.
36417
36418 2010-03-23  Bruno Haible  <bruno@clisp.org>
36419
36420         pt_chown: Don't depend on GPLed modules.
36421         * lib/pt_chown.c: Don't include idpriv.h.
36422         (main): Don't drop privileges.
36423         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36424         Reported by Simon Josefsson.
36425
36426 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36427
36428         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36429         suggestions from karl@freefriends.org (Karl Berry).
36430
36431 2010-03-22  Eric Blake  <eblake@redhat.com>
36432
36433         gethostname: further tweaks
36434         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36435         are overriding gethostname.
36436         Suggested by Bruno Haible.
36437
36438 2010-03-21  Bruno Haible  <bruno@clisp.org>
36439
36440         Fix comments.
36441         * lib/forkpty.c (rpl_forkpty): Fix comment.
36442         * lib/openpty.c (rpl_openpty): Likewise.
36443         Reported by Eric Blake.
36444
36445 2010-03-22  Eric Blake  <eblake@redhat.com>
36446
36447         gethostname: fix build on mingw
36448         * lib/unistd.in.h (includes): Work around fact that mingw
36449         <winsock2.h> re-includes <unistd.h>, by avoiding any
36450         redeclarations if we are being included by <winsock2.h>.
36451         Reported by Matthias Bolte.
36452
36453 2010-03-21  Bruno Haible  <bruno@clisp.org>
36454
36455         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36456         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36457         modifications.
36458         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36459         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36460         provide the replacement.
36461         * modules/forkpty (Depends-on): Add openpty, login_tty.
36462         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36463         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36464         * doc/glibc-functions/forkpty.texi: More supported platforms.
36465         * config/srclist.txt: Add forkpty.c (commented).
36466
36467 2010-03-21  Bruno Haible  <bruno@clisp.org>
36468
36469         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36470         (Makefile.am): Verify that PTY_LIB is defined.
36471
36472         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36473
36474 2010-03-21  Bruno Haible  <bruno@clisp.org>
36475
36476         Tests for module 'login_tty'.
36477         * modules/login_tty-tests: New file.
36478         * tests/test-login_tty.c: New file.
36479
36480         New module 'login_tty'.
36481         * lib/login_tty.c: New file.
36482         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36483         * modules/login_tty: New file.
36484         * doc/glibc-functions/login_tty.texi: Mention the new module.
36485
36486 2010-03-21  Bruno Haible  <bruno@clisp.org>
36487
36488         login_tty: Documentation.
36489         * doc/glibc-functions/login_tty.texi: New file.
36490         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36491
36492 2010-03-21  Bruno Haible  <bruno@clisp.org>
36493
36494         pty: Consistent macro naming.
36495         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36496         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36497         * modules/pty (configure.ac): Update.
36498
36499 2010-03-21  Bruno Haible  <bruno@clisp.org>
36500
36501         Tests for openpty: Make stricter.
36502         * tests/test-openpty.c (main): Add test of canonical processing and
36503         erase.
36504         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36505
36506         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36507         * lib/openpty.c (openpty): New replacement function.
36508         * lib/pty.in.h: Include <termios.h>.
36509         (openpty): Update declaration. Add comments.
36510         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36511         is not declared, arrange to provide the replacement. Check for _getpty
36512         and posix_openpt.
36513         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36514         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36515         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36516         * modules/pty-tests (test_pty_c___LDADD): New variable.
36517         * doc/glibc-functions/openpty.texi: More supported platforms.
36518
36519 2010-03-21  Bruno Haible  <bruno@clisp.org>
36520
36521         setenv: Tweaks.
36522         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36523         the test program.
36524         * doc/posix-functions/setenv.texi: Update platforms list.
36525
36526 2010-03-21  Bruno Haible  <bruno@clisp.org>
36527
36528         New module 'unlockpt'.
36529         * lib/unlockpt.c: New file, from glibc with modifications.
36530         * m4/unlockpt.m4: New file.
36531         * modules/unlockpt: New file.
36532         * lib/stdlib.in.h (unlockpt): New declaration.
36533         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36534         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36535         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36536         HAVE_UNLOCKPT.
36537         * doc/posix-functions/unlockpt.texi: Mention the new module.
36538         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36539         * config/srclist.txt: Add unlockpt.c (commented).
36540
36541 2010-03-21  Jim Meyering  <meyering@redhat.com>
36542
36543         maint.mk: prohibit inclusion of "intprops.h" without use
36544         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36545
36546 2010-03-21  Bruno Haible  <bruno@clisp.org>
36547
36548         New module 'grantpt'.
36549         * lib/grantpt.c: New file, from glibc with modifications.
36550         * m4/grantpt.m4: New file.
36551         * modules/grantpt: New file.
36552         * lib/stdlib.in.h (grantpt): New declaration.
36553         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36554         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36555         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36556         HAVE_GRANTPT.
36557         * doc/posix-functions/grantpt.texi: Mention the new module.
36558         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36559         * config/srclist.txt: Add grantpt.c (commented).
36560
36561 2010-03-21  Bruno Haible  <bruno@clisp.org>
36562
36563         New module 'pt_chown'.
36564         * lib/pt_chown.c: New file, from glibc with modifications.
36565         * lib/pty-private.h: New file, from glibc with modifications.
36566         * modules/pt_chown: New file.
36567         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36568
36569 2010-03-21  Bruno Haible  <bruno@clisp.org>
36570
36571         Tests for module 'ptsname'.
36572         * modules/ptsname-tests: New file.
36573         * tests/test-ptsname.c: New file.
36574
36575         New module 'ptsname'.
36576         * lib/ptsname.c: New file, from glibc with modifications.
36577         * m4/ptsname.m4: New file.
36578         * modules/ptsname: New file.
36579         * lib/stdlib.in.h (ptsname): New declaration.
36580         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36581         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36582         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36583         HAVE_PTSNAME.
36584         * doc/posix-functions/ptsname.texi: Mention the new module.
36585         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36586         * config/srclist.txt: Add ptsname.c (commented).
36587
36588 2010-03-21  Bruno Haible  <bruno@clisp.org>
36589
36590         Tests for module 'ttyname_r'.
36591         * modules/ttyname_r-tests: New file.
36592         * tests/test-ttyname_r.c: New file.
36593
36594         New module 'ttyname_r'.
36595         * lib/ttyname_r.c: New file.
36596         * m4/ttyname_r.m4: New file.
36597         * modules/ttyname_r: New file.
36598         * lib/unistd.in.h (ttyname_r): New declaration.
36599         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36600         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36601         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36602         HAVE_TTYNAME_R.
36603         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36604         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36605
36606 2010-03-20  Bruno Haible  <bruno@clisp.org>
36607
36608         signal: Undefine macro definitions in C++ mode.
36609         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36610         sigfillset): Undefine macro definitions from the system header in C++
36611         mode.
36612         Reported by John W. Eaton <jwe@gnu.org>.
36613
36614 2010-03-20  Bruno Haible  <bruno@clisp.org>
36615
36616         Ensure no #include statements inside extern "C" { ... }.
36617         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36618         contain #include statements.
36619         * lib/time.in.h: Likewise.
36620
36621 2010-03-20  Bruno Haible  <bruno@clisp.org>
36622
36623         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36624         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36625         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36626         Reported by John W. Eaton <jwe@gnu.org>.
36627
36628 2010-03-20  Bruno Haible  <bruno@clisp.org>
36629
36630         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36631         Reported by Jim Meyering.
36632
36633 2010-03-20  Bruno Haible  <bruno@clisp.org>
36634
36635         pipe: Set errno upon failure.
36636         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36637         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36638         errno value in error message.
36639
36640 2010-03-20  Bruno Haible  <bruno@clisp.org>
36641             Jim Meyering  <meyering@redhat.com>
36642
36643         lchown: Avoid "unused variable" warning.
36644         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36645
36646 2010-03-20  Bruno Haible  <bruno@clisp.org>
36647
36648         Work around unlink() bug on MacOS X 10.5.6.
36649         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36650         attempting to unlink a parent directory.
36651         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36652         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36653         activate for the replacement function.
36654         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36655
36656 2010-03-20  Bruno Haible  <bruno@clisp.org>
36657
36658         Fix link errors on Solaris 8.
36659         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36660         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36661
36662 2010-03-19  Jim Meyering  <meyering@redhat.com>
36663
36664         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36665         The _LIBC implementation of build_range_exp correctly honors the
36666         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36667         However, the non-_LIBC implementation would ignore that syntax-bit
36668         flag and return REG_ERANGE unconditionally.
36669         This change makes it honor that flag.
36670         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36671         Make two pointer parameters "const".
36672         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36673         (parse_bracket_exp): Update caller.
36674
36675         regex.m4: correct the reversed range endpoint ([b-a]) test
36676         * m4/regex.m4: When requiring that [b-a] evoke failure,
36677         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36678         test pass once again for x86-based systems.
36679
36680 2010-03-19  Bruno Haible  <bruno@clisp.org>
36681
36682         scandir: Fix link error on Solaris 8.
36683         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36684         macros.
36685
36686 2010-03-19  Bruno Haible  <bruno@clisp.org>
36687
36688         getusershell: Fix documentation.
36689         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36690         module.
36691         * doc/glibc-functions/setusershell.texi: Likewise.
36692
36693         getusershell: Provide declaration, missing on Solaris 9.
36694         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36695         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36696         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36697         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36699         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36700         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36701         HAVE_GETUSERSHELL.
36702         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36703
36704 2010-03-19  Bruno Haible  <bruno@clisp.org>
36705
36706         wctype: Provide iswblank function.
36707         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36708         exists and is fine.
36709         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36710         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36711         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36712         * doc/posix-functions/iswblank.texi: Update.
36713
36714 2010-03-19  Bruno Haible  <bruno@clisp.org>
36715
36716         Tests of module 'pty' in C++ mode.
36717         * modules/pty-tests: New file.
36718         * tests/test-pty-c++.cc: New file.
36719         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36720
36721 2010-03-19  Eric Blake  <eblake@redhat.com>
36722
36723         logb: fix documentation
36724         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36725         1.5 declaration bug.
36726
36727         forkpty, openpty: prefer glibc's const-safe prototype
36728         * lib/forkpty.c (rpl_forkpty): New file.
36729         * lib/openpty.c (rpl_openpty): Likewise.
36730         * modules/forkpty (Files): Distribute it.
36731         * modules/openpty (Files): Likewise.
36732         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36733         check...
36734         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36735         replacement for for non-const BSD signature.
36736         * modules/pty (Makefile.am): Substitute witnesses.
36737         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36738         * tests/test-forkpty.c: Update signature check.
36739         * tests/test-openpty.c: Likewise.
36740         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36741         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36742
36743         forkpty, openpty: split functions into new modules
36744         * modules/pty (Makefile.am): Substitute new witnesses.
36745         (Libraries): Move library detection...
36746         * modules/forkpty: ...into new module.
36747         * modules/openpty: Another new module.
36748         * modules/pty-tests: Rename and split...
36749         * modules/forkpty-tests: ...to this...
36750         * modules/openpty-tests: ...and this.
36751         * tests/test-pty.c: Rename and split...
36752         * tests/test-forkpty.c: ...to this...
36753         * tests/test-openpty.c: ...and this.
36754         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36755         (gl_PTY): Split library searching...
36756         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36757         (gl_FORKPTY, gl_OPENPTY): New macros.
36758         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36759         * NEWS: Mention the split.
36760         * MODULES.html.sh (Misc): Document the modules.
36761         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36762         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36763
36764         pty: improve replacement header
36765         * lib/pty.in.h: New file.
36766         * modules/pty (Files): Ship it.
36767         (Makefile.am): Always build replacement.
36768         * m4/pty.m4: Rename...
36769         * m4/pty_h.m4: ...to this.
36770         (gl_PTY): Modernize setting of witness macros; update check of
36771         forkpty to take proper advantage of cache.
36772         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36773
36774         getopt: avoid compiler warning
36775         * lib/getopt.c (attribute_hidden): Remove unused macro.
36776
36777 2010-03-18  Bruno Haible  <bruno@clisp.org>
36778
36779         Fix link errors on Solaris 8.
36780         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36781         * modules/search-tests (test_search_c___LDADD): Likewise.
36782         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36783         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36784         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36785         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36786         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36787         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36788         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36789
36790 2010-03-18  Bruno Haible  <bruno@clisp.org>
36791
36792         Fix bug introduced on 2010-03-14.
36793         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36794         (gl_SPAWN_H): Require it.
36795         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
36796         Reported by Simon Josefsson.
36797
36798 2010-03-18  Bruno Haible  <bruno@clisp.org>
36799
36800         Fix typo introduced on 2009-12-31.
36801         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
36802         posix_spawn_file_actions_adddup2.
36803
36804 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
36805         and Eric Blake  <eblake@redhat.com>
36806
36807         test-vc-list-files-git: make more robust
36808         * tests/test-vc-list-files-git.sh: Unset problematic environment
36809         variables.  Chain commands together.
36810
36811 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
36812
36813         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
36814         `AC_CHECK_DECL' invocation.
36815
36816 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
36817
36818         * lib/inttostr.c (inttostr): Make sure the invocation of verify
36819         appears before executable statements. Suggested by Petr Sumbera
36820         <Petr.Sumbera@Sun.COM>.
36821
36822 2010-03-14  Bruno Haible  <bruno@clisp.org>
36823
36824         * tests/test-flock.c (test_exclusive): Comment out a test that causes
36825         portability problems. Instead use a simpler test.
36826         (main): Check that invalid arguments are rejected only on Linux.
36827
36828 2010-03-14  Bruno Haible  <bruno@clisp.org>
36829
36830         Fix bug introduced on 2009-12-31.
36831         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36832         gl_PREREQ_SYS_H_WINSOCK2 always.
36833         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
36834         SYS_SOCKET_H variable.
36835         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
36836         Update comments.
36837         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
36838         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36839         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36840         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36841         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
36842
36843 2010-03-14  Bruno Haible  <bruno@clisp.org>
36844
36845         Fix values returned by sinl, cosl.
36846         * lib/trigl.h: Add specification comments.
36847         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36848         that combines the values from the precomputed table with the values of
36849         the Chebyshev polynomials.
36850
36851 2010-03-14  Bruno Haible  <bruno@clisp.org>
36852
36853         Fix compilation error when modules 'posix_spawn[p]' are not used.
36854         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36855         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36856
36857 2010-03-14  Bruno Haible  <bruno@clisp.org>
36858
36859         Fix compilation error on mingw when module 'time_r' is not used.
36860         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36861         is 1.
36862         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36863         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36864         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36865         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36866
36867 2010-03-14  Bruno Haible  <bruno@clisp.org>
36868
36869         Fix compilation error with Sun C.
36870         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36871         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36872         instead of GCC specific ULONG_LONG_MAX.
36873         * lib/xstrtoll.c: Likewise.
36874         * lib/xstrtoull.c: Likewise.
36875
36876 2010-03-13  Bruno Haible  <bruno@clisp.org>
36877
36878         Allow the user to disable C++ code and tests.
36879         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36880         (gl_PROG_ANSI_CXX): Require it.
36881
36882 2010-03-13  Bruno Haible  <bruno@clisp.org>
36883
36884         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36885         cases.
36886
36887 2010-03-13  Bruno Haible  <bruno@clisp.org>
36888
36889         Test that gnulib does not break the standard C++ headers.
36890         * tests/test-locale-c++2.cc: New file.
36891         * modules/locale-tests (Files): Add it.
36892         (Makefile.am): Compile it for test-locale-c++.
36893         * tests/test-math-c++2.cc: New file.
36894         * modules/math-tests (Files): Add it.
36895         (Makefile.am): Compile it for test-math-c++.
36896         * tests/test-signal-c++2.cc: New file.
36897         * modules/signal-tests (Files): Add it.
36898         (Makefile.am): Compile it for test-signal-c++.
36899         * tests/test-stdio-c++2.cc: New file.
36900         * modules/stdio-tests (Files): Add it.
36901         (Makefile.am): Compile it for test-stdio-c++.
36902         * tests/test-stdlib-c++2.cc: New file.
36903         * modules/stdlib-tests (Files): Add it.
36904         (Makefile.am): Compile it for test-stdlib-c++.
36905         * tests/test-string-c++2.cc: New file.
36906         * modules/string-tests (Files): Add it.
36907         (Makefile.am): Compile it for test-string-c++.
36908         * tests/test-time-c++2.cc: New file.
36909         * modules/time-tests (Files): Add it.
36910         (Makefile.am): Compile it for test-time-c++.
36911         Reported by John W. Eaton <jwe@gnu.org>.
36912
36913 2010-03-13  Bruno Haible  <bruno@clisp.org>
36914
36915         * gnulib-tool (func_usage): Clarify which options are available for
36916         --create-testdir and --create-megatestdir.
36917
36918 2010-03-13  Bruno Haible  <bruno@clisp.org>
36919
36920         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36921         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36922         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36923         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36924         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36925         when appropriate.
36926         Reported by Jim Meyering.
36927
36928 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36929
36930         * gnulib-tool (func_import): Explain origin of code.
36931
36932 2010-03-12  Bruno Haible  <bruno@clisp.org>
36933
36934         Fix problem with automake's definition of CXXLINK.
36935         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36936         Reported by Simon Josefsson and Ludovic Courtès.
36937
36938 2010-03-12  Bruno Haible  <bruno@clisp.org>
36939
36940         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36941         stable releases.
36942
36943 2010-03-11  Bruno Haible  <bruno@clisp.org>
36944
36945         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36946         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36947         whether the system provides one variant or multiple variants of the
36948         function.
36949         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36950         C++ compilers.
36951         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36952         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36953         Reported by Jim Meyering.
36954
36955 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36956
36957         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36958
36959 2010-03-08  Bruno Haible  <bruno@clisp.org>
36960
36961         gnulib-tool: Add support for --libtool in --create-testdir.
36962         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36963         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36964
36965 2010-03-08  Eric Blake  <eblake@redhat.com>
36966
36967         gnulib-tool.texi: mention possibility of git submodule
36968         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36969         submodules.
36970         * doc/.gitignore: Ignore another generated file.
36971
36972 2010-03-08  Karl Berry  <karl@gnu.org>
36973
36974         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36975         of committing gnulib files while skipping others.
36976
36977 2010-03-07  Bruno Haible  <bruno@clisp.org>
36978
36979         Tests of module 'wctype' in C++ mode.
36980         * tests/test-wctype-c++.cc: New file.
36981         * modules/wctype-tests (Files): Add it and tests/signature.h.
36982         (Depends-on): Add ansi-c++-opt.
36983         (Makefile.am): Arrange to compile and run test-wctype-c++.
36984
36985         Tests of module 'wchar' in C++ mode.
36986         * tests/test-wchar-c++.cc: New file.
36987         * modules/wchar-tests (Files): Add it and tests/signature.h.
36988         (Depends-on): Add ansi-c++-opt.
36989         (Makefile.am): Arrange to compile and run test-wchar-c++.
36990         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36991         gl_MODULE_INDICATOR.
36992
36993         Tests of module 'unistd' in C++ mode.
36994         * tests/test-unistd-c++.cc: New file.
36995         * modules/unistd-tests (Files): Add it and tests/signature.h.
36996         (Depends-on): Add ansi-c++-opt.
36997         (Makefile.am): Arrange to compile and run test-unistd-c++.
36998         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36999         gl_MODULE_INDICATOR.
37000
37001         Tests of module 'time' in C++ mode.
37002         * tests/test-time-c++.cc: New file.
37003         * modules/time-tests (Files): Add it and tests/signature.h.
37004         (Depends-on): Add ansi-c++-opt.
37005         (Makefile.am): Arrange to compile and run test-time-c++.
37006         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37007
37008         Tests of module 'sys_time' in C++ mode.
37009         * tests/test-sys_time-c++.cc: New file.
37010         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37011         (Depends-on): Add ansi-c++-opt.
37012         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37013         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37014         gl_MODULE_INDICATOR.
37015
37016         Tests of module 'sys_stat' in C++ mode.
37017         * tests/test-sys_stat-c++.cc: New file.
37018         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37019         (Depends-on): Add ansi-c++-opt.
37020         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37021         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37022         gl_MODULE_INDICATOR.
37023
37024         Tests of module 'sys_socket' in C++ mode.
37025         * tests/test-sys_socket-c++.cc: New file.
37026         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37027         (Depends-on): Add ansi-c++-opt.
37028         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37029         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37030         gl_MODULE_INDICATOR.
37031
37032         Tests of module 'sys_select' in C++ mode.
37033         * tests/test-sys_select-c++.cc: New file.
37034         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37035         (Depends-on): Add ansi-c++-opt.
37036         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37037         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37038         gl_MODULE_INDICATOR.
37039
37040         Tests of module 'sys_ioctl' in C++ mode.
37041         * tests/test-sys_ioctl-c++.cc: New file.
37042         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37043         (Depends-on): Add ansi-c++-opt.
37044         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37045         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37046         gl_MODULE_INDICATOR.
37047
37048         Tests of module 'string' in C++ mode.
37049         * tests/test-string-c++.cc: New file.
37050         * modules/string-tests (Files): Add it and tests/signature.h.
37051         (Depends-on): Add ansi-c++-opt.
37052         (Makefile.am): Arrange to compile and run test-string-c++.
37053         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37054         gl_MODULE_INDICATOR.
37055
37056         Tests of module 'stdlib' in C++ mode.
37057         * tests/test-stdlib-c++.cc: New file.
37058         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37059         (Depends-on): Add ansi-c++-opt.
37060         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37061         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37062         gl_MODULE_INDICATOR.
37063
37064         Tests of module 'stdio' in C++ mode.
37065         * tests/test-stdio-c++.cc: New file.
37066         * modules/stdio-tests (Files): Add it and tests/signature.h.
37067         (Depends-on): Add ansi-c++-opt.
37068         (Makefile.am): Arrange to compile and run test-stdio-c++.
37069         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37070         gl_MODULE_INDICATOR.
37071
37072         Tests of module 'spawn' in C++ mode.
37073         * tests/test-spawn-c++.cc: New file.
37074         * modules/spawn-tests (Files): Add it and tests/signature.h.
37075         (Depends-on): Add ansi-c++-opt.
37076         (Makefile.am): Arrange to compile and run test-spawn-c++.
37077         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37078         gl_MODULE_INDICATOR.
37079
37080         Tests of module 'signal' in C++ mode.
37081         * tests/test-signal-c++.cc: New file.
37082         * modules/signal-tests (Files): Add it and tests/signature.h.
37083         (Depends-on): Add ansi-c++-opt.
37084         (Makefile.am): Arrange to compile and run test-signal-c++.
37085         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37086         gl_MODULE_INDICATOR.
37087
37088         Tests of module 'search' in C++ mode.
37089         * tests/test-search-c++.cc: New file.
37090         * modules/search-tests (Files): Add it and tests/signature.h.
37091         (Depends-on): Add ansi-c++-opt.
37092         (Makefile.am): Arrange to compile and run test-search-c++.
37093         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37094         gl_MODULE_INDICATOR.
37095
37096         Tests of module 'math' in C++ mode.
37097         * tests/test-math-c++.cc: New file.
37098         * modules/math-tests (Files): Add it and tests/signature.h.
37099         (Depends-on): Add ansi-c++-opt.
37100         (Makefile.am): Arrange to compile and run test-math-c++.
37101         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37102
37103         Tests of module 'locale' in C++ mode.
37104         * tests/test-locale-c++.cc: New file.
37105         * modules/locale-tests (Files): Add it and tests/signature.h.
37106         (Depends-on): Add ansi-c++-opt.
37107         (Makefile.am): Arrange to compile and run test-locale-c++.
37108         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37109         gl_MODULE_INDICATOR.
37110
37111         Tests of module 'langinfo' in C++ mode.
37112         * tests/test-langinfo-c++.cc: New file.
37113         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37114         (Depends-on): Add ansi-c++-opt.
37115         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37116         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37117         gl_MODULE_INDICATOR.
37118
37119         Tests of module 'iconv-h' in C++ mode.
37120         * tests/test-iconv-h-c++.cc: New file.
37121         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37122         (Depends-on): Add ansi-c++-opt.
37123         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37124
37125         Tests of module 'glob' in C++ mode.
37126         * tests/test-glob-c++.cc: New file.
37127         * modules/glob-tests (Files): Add it.
37128         (Depends-on): Add ansi-c++-opt.
37129         (Makefile.am): Arrange to compile and run test-glob-c++.
37130
37131         Tests of module 'fcntl-h' in C++ mode.
37132         * tests/test-fcntl-h-c++.cc: New file.
37133         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37134         (Depends-on): Add ansi-c++-opt.
37135         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37136         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37137         gl_MODULE_INDICATOR.
37138
37139         Tests of module 'dirent' in C++ mode.
37140         * tests/test-dirent-c++.cc: New file.
37141         * modules/dirent-tests (Files): Add it and tests/signature.h.
37142         (Depends-on): Add ansi-c++-opt.
37143         (Makefile.am): Arrange to compile and run test-dirent-c++.
37144         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37145         gl_MODULE_INDICATOR.
37146
37147         New module 'ansi-c++-opt'.
37148         * modules/ansi-c++-opt: New file.
37149         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37150
37151         Document C++ namespace mode.
37152         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37153
37154         wctype: Avoid #define replacements in C++ mode.
37155         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37156         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37157         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37158         In C++, define a namespaced alias symbol.
37159         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37160         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37161         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37162         rule.
37163
37164         wchar: Avoid #define replacements in C++ mode.
37165         * lib/wchar.in.h: Include c++defs.h.
37166         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37167         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37168         symbol.
37169         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37170         * modules/wchar (Depends-on): Add c++defs.
37171         (Makefile.am): Update wchar.h rule.
37172
37173         unistd: Avoid #define replacements in C++ mode.
37174         * lib/unistd.in.h: Include c++defs.h.
37175         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37176         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37177         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37178         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37179         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37180         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37181         symbol.
37182         (environ): Update.
37183         * modules/unistd (Depends-on): Add c++defs.
37184         (Makefile.am): Update unistd.h rule.
37185
37186         time: Avoid #define replacements in C++ mode.
37187         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37188         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37189         define a namespaced alias symbol.
37190         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37191         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37192         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37193         * modules/time (Depends-on): Add c++defs, warn-on-use.
37194         (Makefile.am): Update time.h rule.
37195         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37196         * modules/nanosleep (configure.ac): Likewise.
37197         * modules/strptime (configure.ac): Likewise.
37198         * modules/timegm (configure.ac): Likewise.
37199
37200         sys_time: Avoid #define replacements in C++ mode.
37201         * lib/sys_time.in.h: Include c++defs.h.
37202         (gettimeofday): In C++, define a namespaced alias symbol.
37203         * modules/sys_time (Depends-on): Add c++defs.
37204         (Makefile.am): Update sys/time.h rule.
37205
37206         sys_stat: Avoid #define replacements in C++ mode.
37207         * lib/sys_stat.in.h: Include c++defs.h.
37208         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37209         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37210         namespaced alias symbol.
37211         In C++, define a namespaced alias symbol.
37212         * modules/sys_stat (Depends-on): Add c++defs.
37213         (Makefile.am): Update sys/stat.h rule.
37214
37215         sys_socket: Avoid #define replacements in C++ mode.
37216         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37217         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37218         definitions also when the system has a <sys/socket.h>.
37219         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37220         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37221         In C++, define a namespaced alias symbol.
37222         * modules/sys_socket (Depends-on): Add c++defs.
37223         (Makefile.am): Update sys/socket.h rule.
37224
37225         sys_select: Avoid #define replacements in C++ mode.
37226         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37227         definitions also when the system has a <sys/select.h>.
37228         (select): In C++, define a namespaced alias symbol.
37229         * modules/sys_select (Depends-on): Add c++defs.
37230         (Makefile.am): Update sys/select.h rule.
37231
37232         sys_ioctl: Avoid #define replacements in C++ mode.
37233         * lib/sys_ioctl.in.h: Include c++defs.h.
37234         (ioctl): In C++, define a namespaced alias symbol.
37235         * modules/sys_ioctl (Depends-on): Add c++defs.
37236         (Makefile.am): Update sys/ioctl.h rule.
37237
37238         string: Avoid #define replacements in C++ mode.
37239         * lib/string.in.h: Include c++defs.h.
37240         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37241         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37242         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37243         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37244         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37245         * modules/string (Depends-on): Add c++defs.
37246         (Makefile.am): Update string.h rule.
37247
37248         stdlib: Avoid #define replacements in C++ mode.
37249         * lib/stdlib.in.h: Include c++defs.h.
37250         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37251         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37252         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37253         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37254         symbol.
37255         * modules/stdlib (Depends-on): Add c++defs.
37256         (Makefile.am): Update stdlib.h rule.
37257
37258         stdio: Avoid #define replacements in C++ mode.
37259         * lib/stdio.in.h: Include c++defs.h.
37260         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37261         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37262         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37263         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37264         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37265         namespaced alias symbol.
37266         * modules/stdio (Depends-on): Add c++defs.
37267         (Makefile.am): Update stdio.h rule.
37268
37269         spawn: Avoid #define replacements in C++ mode.
37270         * lib/spawn.in.h: Include c++defs.h.
37271         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37272         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37273         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37274         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37275         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37276         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37277         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37278         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37279         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37280         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37281         In C++, define a namespaced alias symbol.
37282         * modules/spawn (Depends-on): Add c++defs.
37283         (Makefile.am): Update spawn.h rule.
37284
37285         signal: Avoid #define replacements in C++ mode.
37286         * lib/signal.in.h: Include c++defs.h.
37287         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37288         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37289         namespaced alias symbol.
37290         * modules/signal (Depends-on): Add c++defs.
37291         (Makefile.am): Update signal.h rule.
37292
37293         search: Avoid #define replacements in C++ mode.
37294         * lib/search.in.h: Include c++defs.h.
37295         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37296         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37297         symbol.
37298         * modules/search (Depends-on): Add c++defs.
37299         (Makefile.am): Update search.h rule.
37300
37301         math: Avoid #define replacements in C++ mode.
37302         * lib/math.in.h: Include c++defs.h.
37303         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37304         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37305         trunc, truncl): In C++, define a namespaced alias symbol.
37306         * modules/math (Depends-on): Add c++defs.
37307         (Makefile.am): Update math.h rule.
37308
37309         locale: Avoid #define replacements in C++ mode.
37310         * lib/locale.in.h: Include c++defs.h.
37311         (duplocale): In C++, define a namespaced alias symbol.
37312         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37313         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37314         * modules/locale (Depends-on): Add c++defs.
37315         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37316
37317         langinfo: Avoid #define replacements in C++ mode.
37318         * lib/langinfo.in.h: Include c++defs.h.
37319         (nl_langinfo): In C++, define a namespaced alias symbol.
37320         * modules/langinfo (Depends-on): Add c++defs.
37321         (Makefile.am): Update langinfo.h rule.
37322
37323         iconv-h: Avoid #define replacements in C++ mode.
37324         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37325         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37326         symbol.
37327         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37328         whenever iconv is present.
37329         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37330         (Makefile.am): Update iconv.h rule.
37331
37332         glob: Avoid #define replacements in C++ mode.
37333         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37334         (_gl_glob_errfunc_fn): New type.
37335         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37336         symbol.
37337         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37338         (Makefile.am): Update glob.h rule.
37339
37340         fcntl-h: Avoid #define replacements in C++ mode.
37341         * lib/fcntl.in.h: Include c++defs.h.
37342         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37343         * modules/fcntl-h (Depends-on): Add c++defs.
37344         (Makefile.am): Update fcntl.h rule.
37345
37346         dirent: Avoid #define replacements in C++ mode.
37347         * lib/dirent.in.h: Include c++defs.h.
37348         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37349         namespaced alias symbol.
37350         (dirfd): Update declaration.
37351         * modules/dirent (Depends-on): Add c++defs.
37352         (Makefile.am): Update dirent.h rule.
37353
37354         ctype: Make it usable in C++ code.
37355         * lib/ctype.in.h: Include c++defs.h.
37356         (isblank): Declare as extern "C".
37357         * modules/ctype (Depends-on): Add c++defs.
37358         (Makefile.am): Update ctype.h rule.
37359
37360         New module 'c++defs'.
37361         * modules/c++defs: New file.
37362         * build-aux/c++defs.h: New file.
37363         Reported by John W. Eaton <jwe@gnu.org>.
37364
37365 2010-03-07  Bruno Haible  <bruno@clisp.org>
37366
37367         logb: Provide missing declaration for Cygwin.
37368         * lib/math.in.h (logb): New declaration.
37369         * m4/logb.m4: New file.
37370         * modules/logb (Files): Add m4/logb.m4.
37371         (Depends-on): Add math.
37372         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37373         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37375         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37376         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37377
37378 2010-03-07  Bruno Haible  <bruno@clisp.org>
37379
37380         Fix test-cond link error.
37381         * tests/test-cond.c: Include <stdio.h>.
37382
37383 2010-03-07  Bruno Haible  <bruno@clisp.org>
37384
37385         Fix test-dirent-safer link error.
37386         * modules/dirent-safer-tests (Makefile.am): Define
37387         test_dirent_safer_LDADD.
37388
37389 2010-03-07  Bruno Haible  <bruno@clisp.org>
37390
37391         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37392         among default module list.
37393
37394 2010-03-07  Bruno Haible  <bruno@clisp.org>
37395
37396         Fix link error on platforms with GNU libiconv.
37397         * modules/unistr/u8-strcoll-tests (Makefile): Define
37398         test_u8_strcoll_LDADD.
37399         * modules/unistr/u16-strcoll-tests (Makefile): Define
37400         test_u16_strcoll_LDADD.
37401         * modules/unistr/u32-strcoll-tests (Makefile): Define
37402         test_u32_strcoll_LDADD.
37403
37404 2010-03-07  Bruno Haible  <bruno@clisp.org>
37405
37406         Use POSIX declarations for socket functions.
37407         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37408         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37409         rpl_sendto): Change declaration to match POSIX.
37410         * lib/connect.c (rpl_connect): Likewise.
37411         * lib/accept.c (rpl_accept): Likewise.
37412         * lib/bind.c (rpl_bind): Likewise.
37413         * lib/getpeername.c (rpl_getpeername): Likewise.
37414         * lib/getsockname.c (rpl_getsockname): Likewise.
37415         * lib/recv.c (rpl_recv): Likewise.
37416         * lib/send.c (rpl_send): Likewise.
37417         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37418         * lib/sendto.c (rpl_sendto): Likewise.
37419
37420 2010-03-06  Bruno Haible  <bruno@clisp.org>
37421
37422         Clarify access, euidaccess, faccessat.
37423         * doc/posix-functions/faccessat.texi: Mention security problem under
37424         "Other problems", not "Portability problems".
37425         * doc/posix-functions/access.texi: Likewise. Mention a related security
37426         problem.
37427         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37428         * lib/euidaccess.c: Add comments about platforms.
37429         * lib/unistd.in.h (access, euidaccess): Add warnings.
37430
37431 2010-03-07  Bruno Haible  <bruno@clisp.org>
37432
37433         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37434         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37435         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37436         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37437         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37438         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37439         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37440         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37441         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37442         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37443         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37444         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37445         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37446         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37447         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37448         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37449         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37450         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37451         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37452         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37453         Likewise.
37454         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37455         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37456         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37457         Likewise.
37458         * tests/test-spawn.c (main): Make it work when
37459         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37460
37461 2010-03-07  Bruno Haible  <bruno@clisp.org>
37462
37463         Fix incorrect Makefile.am generation in German locale.
37464         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37465         Execute sed command with character range in C locale.
37466
37467 2010-03-06  Bruno Haible  <bruno@clisp.org>
37468
37469         Tests for module 'iconv-h'.
37470         * modules/iconv-h-tests: New file.
37471         * tests/test-iconv-h.c: New file.
37472
37473         New module 'iconv-h'.
37474         * modules/iconv-h: New file.
37475         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37476         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37477         (configure.ac): Remove gl_ICONV_H.
37478         (Makefile.am): Remove rule for iconv.h.
37479
37480 2010-03-06  Bruno Haible  <bruno@clisp.org>
37481
37482         More consistent naming of *.m4 files.
37483         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37484         * modules/wctype (Files): Update.
37485
37486         More consistent naming of *.m4 files.
37487         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37488         * modules/wchar (Files): Update.
37489
37490 2010-03-06  Jim Meyering  <meyering@redhat.com>
37491
37492         euidaccess: relax license to LGPLv2+
37493         * modules/euidaccess (License): Relax to LGPLv2+.
37494
37495 2010-03-06  Bruno Haible  <bruno@clisp.org>
37496
37497         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37498         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37499         (Makefile.am): Augment lib_SOURCES instead.
37500
37501 2010-03-04  Jim Meyering  <meyering@redhat.com>
37502
37503         utime: remove obsolete module
37504         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37505         unnecessary for years, and has been marked as obsolete for 10 months.
37506         * modules/utime: Remove file.
37507         * lib/utime.c: Remove file.
37508         * m4/utime.m4: Remove file.
37509         * m4/utimes-null.m4: Remove file.
37510         * doc/posix-functions/utime.texi (utime): Remove reference to
37511         the module.  Move the sole "fixed by gnulib" item into the
37512         "problems not fixed by Gnulib" list.
37513         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37514
37515 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37516
37517         * modules/exit (License): Relax license to LGPLv2+.
37518         (Status): Mark as obsolete.
37519         * NEWS: Mention deprecated 'exit' module.
37520         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37521         of now obsolete 'exit'.
37522
37523 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37524
37525         fts-lgpl: remove unused module
37526         * modules/fts-lgpl: Remove.
37527         * MODULES.html.sh (func_all_modules): Adjust.
37528         * check-module (find_included_lib_files): Adjust.
37529         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37530
37531 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37532
37533         copy-acl: enhance Solaris ACL error handling
37534         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37535         * lib/set-mode-acl.c (qset_acl): Likewise.
37536
37537 2010-03-02  Bruno Haible  <bruno@clisp.org>
37538
37539         spawn: Don't override the system defined values on FreeBSD 8.
37540         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37541         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37542         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37543         if HAVE_POSIX_SPAWN is 1.
37544         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37545
37546 2010-03-01  Bruno Haible  <bruno@clisp.org>
37547
37548         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37549         regarding Automake.
37550
37551 2010-02-25  Bruno Haible  <bruno@clisp.org>
37552
37553         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37554         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37555         setting, not afterwards.
37556         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37557
37558 2010-02-24  Eric Blake  <eblake@redhat.com>
37559
37560         bootstrap, git-version-gen: use timestamp
37561         * build-aux/git-version-gen (scriptversion): Force UTC.
37562         * build-aux/bootstrap (scriptversion): New variable.
37563
37564         bootstrap: allow older git
37565         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37566         older than 1.6.4.  Requested by the libvirt project.
37567
37568 2010-02-23  Eric Blake  <eblake@redhat.com>
37569
37570         warn-on-use: work with old autoconf
37571         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37572         AS_VAR semantics of autoconf 2.60.
37573         Reported by Bruno Haible.
37574
37575         bootstrap: improve some comments
37576         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37577         clarification comments.
37578
37579         gettimeofday: provide correct function
37580         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37581         when replacement is declared, otherwise provide gettimeofday.
37582         Reported by Michael Goffioul.
37583
37584 2010-02-23  Jim Meyering  <meyering@redhat.com>
37585
37586         lib-ignore: relax license to "unlimited", not LGPLv2+
37587         * modules/lib-ignore (License): Relax to "unlimited".
37588
37589 2010-02-23  Jim Meyering  <meyering@redhat.com>
37590
37591         lib-ignore: relax license to LGPLv2+
37592         * modules/lib-ignore (License): Relax to LGPLv2+.
37593
37594 2010-02-22  Eric Blake  <eblake@redhat.com>
37595
37596         lseek: avoid bash 3.2 broken pipe bug
37597         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37598         warning from bash 3.2.
37599         Reported by Ben Pfaff, with analysis from Bruno Haible.
37600
37601         bootstrap: support non-FSF copyright holder
37602         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37603         bootstrap.conf override of COPYRIGHT_HOLDER.
37604         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37605
37606         bootstrap: interoperate with gettext 0.14.1
37607         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37608
37609         bootstrap: allow for alternate submodule location
37610         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37611         hardcoding submodule location.
37612         (gnulib_mk): Allow direct use of Makefile.am.
37613
37614         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37615         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37616         rather than reconfiguring where the submodule points.
37617
37618         gettimeofday: restore support for platforms that lack function
37619         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37620         replacement if function is missing.
37621         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37622         * modules/sys_time (Makefile.am): Substitute it.
37623         * lib/sys_time.in.h (gettimeofday): Check it.
37624         Reported by Michael Goffioul.
37625
37626 2010-02-21  Bruno Haible  <bruno@clisp.org>
37627
37628         * lib/stdio.in.h (obstack_printf): Fix typo.
37629
37630 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37631
37632         vc-list-files: use bzr ls's -R option
37633         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37634         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37635
37636 2010-02-21  Jim Meyering  <meyering@redhat.com>
37637
37638         init.sh: fix EXEEXT shims to work also for names like test-prog
37639         * tests/init.sh: Re-exec a better shell, when needed.
37640         If the current shell lacks support for posix $(...), an init.sh-using
37641         test will now try to find a shell that supports that.  If EXEEXT is
37642         nonempty, we also require support for hyphen-in-alias-name and shell
37643         substitutions like ${var#glob}.  Failure to find such a shell results
37644         in a skipped test.
37645
37646 2010-02-21  Bruno Haible  <bruno@clisp.org>
37647
37648         Really work around around "broken pipe" error message from bash 3.2.
37649         * gnulib-tool (func_reset_sigpipe): Remove function.
37650         (echo): In bash 3.2, define to a function that uses printf.
37651         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37652
37653 2010-02-20  Bruno Haible  <bruno@clisp.org>
37654
37655         Restore support for automake 1.9.6 with autoconf 2.61.
37656         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37657         Reported by James Youngman <jay@gnu.org>.
37658
37659 2010-02-20  Bruno Haible  <bruno@clisp.org>
37660
37661         Improve *printf warning condition.
37662         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37663         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37664         and the function is overridden due to SIGPIPE emulation.
37665
37666 2010-02-20  Bruno Haible  <bruno@clisp.org>
37667
37668         * lib/stdio.in.h: Tweak comments.
37669
37670 2010-02-19  Bruno Haible  <bruno@clisp.org>
37671
37672         Make it easier to find modules. New gnulib-tool option '--find'.
37673         * gnulib-tool: New option --find.
37674         (func_usage): Document it.
37675         (func_sanitize_modulelist): New function, extracted from
37676         func_all_modules.
37677         (func_all_modules): Invoke it.
37678         * doc/gnulib-tool.texi (Which modules?): New node.
37679
37680 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37681
37682         * lib/sys_select.in.h: Provide select replacement even if
37683         sys/select.h exists on a system, for Interix.
37684
37685 2010-02-18  Jim Meyering  <meyering@redhat.com>
37686
37687         init.sh: don't use $(...) just yet
37688         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37689         to accommodate e.g., Solaris' /bin/sh.
37690
37691 2010-02-17  Bruno Haible  <bruno@clisp.org>
37692
37693         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37694         Reported by Ludovic Courtès <ludo@gnu.org>.
37695
37696 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37697
37698         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37699         linking with -lintl.
37700
37701 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37702
37703         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37704         if not provided by the system's netdb.h.  Reported by
37705         ludo@gnu.org (Ludovic Courtès).
37706
37707 2010-02-15  Jim Meyering  <meyering@redhat.com>
37708
37709         init.sh: improve portability and efficiency
37710         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37711         "dummy" in a for loop.
37712         Use '!', not '^' to select the complement of a character set used
37713         in a "case" statement.
37714         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37715         Suggestions from Eric Blake.
37716
37717         init.sh: automatically accommodate programs with the .exe suffix
37718         Automatically arrange for an invocation of "prog" to execute the
37719         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37720         may use the simpler "prog", yet still work when built on a system
37721         that requires specifying the added suffix.
37722         Do this by constructing a function named "prog" that invokes
37723         "prog.exe" for each .exe file in selected directories.
37724         * tests/init.sh (find_exe_basenames_): New function.
37725         (create_exe_shim_functions_): New function.
37726         (path_prepend_): Use it.
37727
37728         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37729         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37730         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37731
37732 2010-02-14  Jim Meyering  <meyering@redhat.com>
37733
37734         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37735         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37736         (sc_prohibit_hash_pjw_without_use): New rule.
37737
37738         maint.mk: allow the default upload destination dir to be overridden
37739         * top/maint.mk (upload_dest_dir_): Define with a default that
37740         preserves the status quo.
37741         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37742         Reported by Peter Simons.
37743
37744         maint.mk: prohibit inclusion of "hash.h" without_use
37745         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37746
37747 2010-02-10  Jim Meyering  <meyering@redhat.com>
37748
37749         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37750         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37751
37752 2010-02-09  Eric Blake  <ebb9@byu.net>
37753         and Bruno Haible  <bruno@clisp.org>
37754
37755         obstack-printf-posix: ensure declaration
37756         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37757         extracted from gl_FUNC_OBSTACK_PRINTF.
37758         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37759         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37760         Likewise.
37761         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37762         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37763         0.
37764
37765 2010-02-08  Bruno Haible  <bruno@clisp.org>
37766
37767         gnulib-tool: Fix typo in 2010-02-07 commit.
37768         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37769         Reported by Eric Blake.
37770
37771 2010-02-07  Bruno Haible  <bruno@clisp.org>
37772
37773         gnulib-tool: Fix up caching patches.
37774         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37775         option --no-cache. Use associative arrays when supported by the shell.
37776         (sed_comments): New variable.
37777         (modcache): Renamed from do_cache.
37778         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37779         abbreviate unnecessarily.
37780         (have_associative): New variable.
37781         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37782         way also for ksh and zsh.
37783         (func_init_sed_convert_to_cache_statements): New function, extracted
37784         from func_cache_lookup_module. Add support for associative arrays.
37785         Don't set the c_MODULE_cached variable here. Ignore all lines before
37786         the first field header. Remove only the final newline, not all trailing
37787         newlines. Support empty fields correctly. Limit the use of 'eval' to
37788         assignments.
37789         (func_get_description, func_get_status, func_get_notice,
37790         func_get_applicability, func_get_filelist, func_get_dependencies,
37791         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37792         func_get_automake_snippet, func_get_include_directive,
37793         func_get_link_directive, func_get_license, func_get_maintainer):
37794         Update documentation. List the unoptimized code first. Add support for
37795         associative arrays. Limit the use of 'eval' to assignments.
37796         (func_get_applicability): Undo stylistic pessimisations.
37797         (func_get_automake_snippet, func_get_include_directive): Reduce code
37798         duplication.
37799         (func_modules_transitive_closure, func_modules_add_dummy,
37800         func_modules_notice, func_modules_to_filelist, func_add_file,
37801         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
37802         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
37803         func_create_testdir, func_create_megatestdir): Update documentation.
37804
37805 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37806
37807         * gnulib-tool (func_cache_lookup_module): Store the module name
37808         belonging to the cache variable; error out if two different
37809         module names map to the same cache variable name.
37810
37811 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37812
37813         gnulib-tool: Make caching optional.
37814         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
37815         Update matching short versions of --no-changelog.
37816         (func_usage): Update.
37817         (sed_extract_cache_prog): Renamed from ...
37818         (sed_extract_prog): ... this; revert to old extraction script.
37819         (func_get_description, func_get_status)
37820         (func_get_notice, func_get_applicability, func_get_filelist)
37821         (func_get_dependencies, func_get_autoconf_early_snippet)
37822         (func_get_autoconf_snippet, func_get_automake_snippet)
37823         (func_get_include_directive, func_get_link_directive)
37824         (func_get_license, func_get_maintainer): If $do_cache is false,
37825         use old, non-caching extraction scripts.
37826         Suggestion by Bruno Haible.
37827
37828 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37829
37830         gnulib-tool: cache module metainformation.
37831         * gnulib-tool (sed_extract_prog): Match newline before each
37832         header, and rewrite header to a shell variable suffix.
37833         (func_cache_var, func_cache_lookup_module): New functions,
37834         to turn a module name into a cache variable prefix, and to
37835         look up and cache module metainformation.
37836         (func_get_description, func_get_status)
37837         (func_get_notice, func_get_applicability, func_get_filelist)
37838         (func_get_dependencies, func_get_autoconf_early_snippet)
37839         (func_get_autoconf_snippet, func_get_automake_snippet)
37840         (func_get_include_directive, func_get_link_directive)
37841         (func_get_license, func_get_maintainer): Use
37842         func_cache_lookup_module.
37843
37844 2010-02-07  Bruno Haible  <bruno@clisp.org>
37845
37846         fnctl: Fix missing dependency.
37847         * modules/fcntl (Depends-on): Add getdtablesize.
37848         Reported by John W. Eaton <jwe@gnu.org>.
37849
37850 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37851
37852         Argp: fix recognition of short alias options.
37853
37854         * lib/argp-parse.c (convert_options): Fix improper use of
37855         `|' between character values.
37856         * tests/test-argp.c (group1_option): New alias option
37857         --read (-r).
37858         (group1_parser): Special handling for 'r'.
37859         (test15): New test case.
37860         (test_fun): Add test15.
37861         * tests/test-argp-2.sh: Update expected --help and --usage
37862         outputs.
37863
37864 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37865
37866         * tests/test-argp.c: Fix indentation.
37867
37868 2010-02-04  Eric Blake  <ebb9@byu.net>
37869
37870         gettimeofday: expose type of second argument
37871         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37872         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37873         * tests/test-gettimeofday.c: Use it to silence warning.
37874         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37875         the issue.
37876
37877 2010-02-03  Jim Meyering  <meyering@redhat.com>
37878
37879         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37880         * lib/regcomp.c (TYPE_SIGNED): Define.
37881         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37882
37883         regcomp.c: avoid a new -Wshadow warning
37884         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37885
37886 2010-02-01  Jim Meyering  <meyering@redhat.com>
37887
37888         removing useless parentheses in cpp #define directives
37889         For motivation, see commit c0221df4, "define STREQ(a,b)
37890         consistently, removing useless parentheses"
37891         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37892         * lib/mountlist.c (MNT_IGNORE): Likewise.
37893         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37894
37895 2010-02-01  Eric Blake  <ebb9@byu.net>
37896
37897         sys_time: use link-warning
37898         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37899         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37900         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37901         * modules/sys_time (Depends-on): Add warn-on-use.
37902         (Makefile.am): Always build replacement.
37903         (configure.ac): Update substitutions.
37904         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37905         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37906         bother with SYS_TIME_H.
37907         * modules/gettimeofday (configure.ac): Declare indicator.
37908         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37909         in use.
37910
37911         closein-tests: silence compiler warning
37912         * tests/test-closein.c (main): Ignore fread result.
37913         * modules/closein-tests (Depends-on): Add ignore-value.
37914
37915         tests: silence warning about system return
37916         * tests/test-areadlink-with-size.c (main): Ignore system result.
37917         * tests/test-areadlink.c (main): Likewise.
37918         * tests/test-areadlinkat-with-size.c (main): Likewise.
37919         * tests/test-areadlinkat.c (main): Likewise.
37920         * tests/test-canonicalize-lgpl.c (main): Likewise.
37921         * tests/test-canonicalize.c (main): Likewise.
37922         * tests/test-chown.c (main): Likewise.
37923         * tests/test-fchownat.c (main): Likewise.
37924         * tests/test-fdutimensat.c (main): Likewise.
37925         * tests/test-fstatat.c (main): Likewise.
37926         * tests/test-futimens.c (main): Likewise.
37927         * tests/test-lchown.c (main): Likewise.
37928         * tests/test-link.c (main): Likewise.
37929         * tests/test-linkat.c (main): Likewise.
37930         * tests/test-lstat.c (main): Likewise.
37931         * tests/test-mkdir.c (main): Likewise.
37932         * tests/test-mkdirat.c (main): Likewise.
37933         * tests/test-mkfifo.c (main): Likewise.
37934         * tests/test-mkfifoat.c (main): Likewise.
37935         * tests/test-mknod.c (main): Likewise.
37936         * tests/test-readlink.c (main): Likewise.
37937         * tests/test-remove.c (main): Likewise.
37938         * tests/test-rename.c (main): Likewise.
37939         * tests/test-renameat.c (main): Likewise.
37940         * tests/test-rmdir.c (main): Likewise.
37941         * tests/test-symlink.c (main): Likewise.
37942         * tests/test-symlinkat.c (main): Likewise.
37943         * tests/test-unlink.c (main): Likewise.
37944         * tests/test-unlinkat.c (main): Likewise.
37945         * tests/test-utimens.c (main): Likewise.
37946         * tests/test-utimensat.c (main): Likewise.
37947         * modules/areadlink-tests (Depends-on): Add ignore-value.
37948         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37949         * modules/areadlinkat-tests (Depends-on): Likewise.
37950         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37951         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37952         * modules/canonicalize-tests (Depends-on): Likewise.
37953         * modules/chown-tests (Depends-on): Likewise.
37954         * modules/fdutimensat-tests (Depends-on): Likewise.
37955         * modules/futimens-tests (Depends-on): Likewise.
37956         * modules/lchown-tests (Depends-on): Likewise.
37957         * modules/link-tests (Depends-on): Likewise.
37958         * modules/linkat-tests (Depends-on): Likewise.
37959         * modules/lstat-tests (Depends-on): Likewise.
37960         * modules/mkdir-tests (Depends-on): Likewise.
37961         * modules/mkfifo-tests (Depends-on): Likewise.
37962         * modules/mkfifoat-tests (Depends-on): Likewise.
37963         * modules/mknod-tests (Depends-on): Likewise.
37964         * modules/openat-tests (Depends-on): Likewise.
37965         * modules/readlink-tests (Depends-on): Likewise.
37966         * modules/remove-tests (Depends-on): Likewise.
37967         * modules/rename-tests (Depends-on): Likewise.
37968         * modules/renameat-tests (Depends-on): Likewise.
37969         * modules/rmdir-tests (Depends-on): Likewise.
37970         * modules/symlink-tests (Depends-on): Likewise.
37971         * modules/symlinkat-tests (Depends-on): Likewise.
37972         * modules/unlink-tests (Depends-on): Likewise.
37973         * modules/utimens-tests (Depends-on): Likewise.
37974         * modules/utimensat-tests (Depends-on): Likewise.
37975
37976 2010-01-31  Bruno Haible  <bruno@clisp.org>
37977
37978         Perform the same test for many <math.h> functions.
37979         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37980         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37981         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37982         of gl_MATHFUNC.
37983         * modules/acos (configure.ac): Likewise.
37984         * modules/asin (configure.ac): Likewise.
37985         * modules/atan (configure.ac): Likewise.
37986         * modules/atan2 (configure.ac): Likewise.
37987         * modules/cbrt (configure.ac): Likewise.
37988         * modules/copysign (configure.ac): Likewise.
37989         * modules/cos (configure.ac): Likewise.
37990         * modules/cosh (configure.ac): Likewise.
37991         * modules/erf (configure.ac): Likewise.
37992         * modules/erfc (configure.ac): Likewise.
37993         * modules/exp (configure.ac): Likewise.
37994         * modules/fmod (configure.ac): Likewise.
37995         * modules/hypot (configure.ac): Likewise.
37996         * modules/j0 (configure.ac): Likewise.
37997         * modules/j1 (configure.ac): Likewise.
37998         * modules/jn (configure.ac): Likewise.
37999         * modules/lgamma (configure.ac): Likewise.
38000         * modules/log (configure.ac): Likewise.
38001         * modules/log10 (configure.ac): Likewise.
38002         * modules/log1p (configure.ac): Likewise.
38003         * modules/pow (configure.ac): Likewise.
38004         * modules/remainder (configure.ac): Likewise.
38005         * modules/sin (configure.ac): Likewise.
38006         * modules/sinh (configure.ac): Likewise.
38007         * modules/tan (configure.ac): Likewise.
38008         * modules/tanh (configure.ac): Likewise.
38009         * modules/y0 (configure.ac): Likewise.
38010         * modules/y1 (configure.ac): Likewise.
38011         * modules/yn (configure.ac): Likewise.
38012         Suggested by Paolo Bonzini.
38013
38014 2010-01-31  Bruno Haible  <bruno@clisp.org>
38015
38016         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38017
38018 2010-01-31  Bruno Haible  <bruno@clisp.org>
38019
38020         Work around getdelim() bug on FreeBSD 8.0.
38021         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38022         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38023         not work.
38024         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38025         is 1.
38026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38027         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38028         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38029         a non-zero size.
38030         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38031
38032 2010-01-31  Bruno Haible  <bruno@clisp.org>
38033
38034         Work around getline() bug on FreeBSD 8.0.
38035         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38036         and a non-zero size.
38037         * tests/test-getline.c (main): Likewise.
38038         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38039         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38040
38041 2010-01-28  Eric Blake  <ebb9@byu.net>
38042
38043         regex: fix build failure
38044         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38045         platforms.
38046
38047 2010-01-28  Jim Meyering  <meyering@redhat.com>
38048
38049         regex: do not ignore memory allocation failure
38050         * lib/regex_internal.c (create_cd_newstate): Detect
38051         re_node_set_init_copy failure.   Extracted from glibc commit
38052         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38053
38054         regex: sync more white-space changes from libc
38055         * lib/regex_internal.c: White-space only changes.
38056         * lib/regexec.c: Likewise.
38057
38058         regex: add many uses of __attribute_warn_unused_result__
38059         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38060         * lib/regexec.c: Likewise.
38061         Extracted from a messy glibc commit.
38062
38063         regcomp.c: spelling and merge-artifact from glibc
38064         * lib/regcomp.c: Merge remainder of glibc's
38065         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38066
38067         regcomp.c: sync white-space changes from glibc
38068         * lib/regcomp.c: Merge to accommodate white space
38069         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38070
38071         regcomp.c: do not ignore internal return values
38072         * lib/regcomp.c: Do not ignore internal return values.
38073         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38074         but without its white-space changes and spelling fixes.
38075
38076         regex_internal.h: define __attribute_warn_unused_result__
38077         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38078
38079         maint: add a syntax-check rule to check for vulnerable Makefile.in
38080         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38081
38082 2010-01-27  Jim Meyering  <meyering@redhat.com>
38083
38084         ncftpput-ftp: clean up spaces
38085         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38086         Remove trailing blanks.
38087
38088 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38089
38090         * build-aux/git-version-gen: Fix copyright statement.
38091         * build-aux/gnupload: Likewise.
38092         * tests/test-arcfour.c: Likewise.
38093         * tests/test-arctwo.c: Likewise.
38094         * tests/test-count-one-bits.c: Likewise.
38095         * tests/test-crc.c: Likewise.
38096         * tests/test-des.c: Likewise.
38097         * tests/test-gc-arcfour.c: Likewise.
38098         * tests/test-gc-arctwo.c: Likewise.
38099         * tests/test-gc-des.c: Likewise.
38100         * tests/test-gc-hmac-md5.c: Likewise.
38101         * tests/test-gc-hmac-sha1.c: Likewise.
38102         * tests/test-gc-md2.c: Likewise.
38103         * tests/test-gc-md4.c: Likewise.
38104         * tests/test-gc-md5.c: Likewise.
38105         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38106         * tests/test-gc-rijndael.c: Likewise.
38107         * tests/test-gc-sha1.c: Likewise.
38108         * tests/test-gc.c: Likewise.
38109         * tests/test-gethostname.c: Likewise.
38110         * tests/test-gettimeofday.c: Likewise.
38111         * tests/test-hash.c: Likewise.
38112         * tests/test-hmac-md5.c: Likewise.
38113         * tests/test-hmac-sha1.c: Likewise.
38114         * tests/test-md2.c: Likewise.
38115         * tests/test-md4.c: Likewise.
38116         * tests/test-md5.c: Likewise.
38117         * tests/test-memchr.c: Likewise.
38118         * tests/test-memchr2.c: Likewise.
38119         * tests/test-memcmp.c: Likewise.
38120         * tests/test-memmem.c: Likewise.
38121         * tests/test-memrchr.c: Likewise.
38122         * tests/test-rawmemchr.c: Likewise.
38123         * tests/test-read-file.c: Likewise.
38124         * tests/test-rijndael.c: Likewise.
38125         * tests/test-sockets.c: Likewise.
38126         * tests/test-strchrnul.c: Likewise.
38127         * tests/test-strstr.c: Likewise.
38128         * tests/test-strtod.c: Likewise.
38129         * build-aux/ncftpput-ftp: Likewise.
38130
38131 2010-01-26  Eric Blake  <ebb9@byu.net>
38132
38133         ignore-value: update recommended header name
38134         * modules/ignore-value (Include): Only use <> for headers that
38135         exist in glibc.
38136
38137 2010-01-26  Jim Meyering  <meyering@redhat.com>
38138
38139         test-userspec.c: avoid compiler warnings
38140         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38141         and "initialization discards qualifiers..." warnings.
38142         Put the first "uid" in its own scope, and make char* members "const".
38143
38144 2010-01-25  Bruno Haible  <bruno@clisp.org>
38145
38146         gnulib-tool: Make warning diagnostics consistent.
38147         * gnulib-tool (func_warning): New function.
38148         Use it everywhere where gnulib-tool produces output to stderr and it is
38149         not a fatal error.
38150
38151 2010-01-25  Bruno Haible  <bruno@clisp.org>
38152
38153         Fix test dependencies.
38154         * modules/xstrtol-tests (Depends-on): Add inttypes.
38155         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38156
38157 2010-01-25 Pádraig Brady <P@draigBrady.com>
38158
38159         syntax-check: detect incorrect boolean macro values in config.h
38160         * modules/maintainer-makefile (configure.ac): Parameterize the location
38161         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38162         The logic is from Eric Blake and the location indicated by Jim Meyering.
38163         Note the more natural CONFIG_HEADER name is prohibited by automake
38164         for backwards compatibility reasons.
38165         * top/maint.mk (sc_Wundef_boolean): New rule.
38166
38167 2010-01-25  Jim Meyering  <meyering@redhat.com>
38168
38169         bootstrap: detect MacOS 10.6's shasum, too
38170         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38171         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38172
38173 2010-01-23  Jim Meyering  <meyering@redhat.com>
38174
38175         xstrtoll: new module
38176         * modules/xstrtoll: New file.
38177         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38178         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38179         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38180         ./configure fails if you use this module and lack "long long".
38181         * modules/xstrtoll-tests: New module.
38182         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38183         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38184         new init.sh-based test framework.
38185
38186 2010-01-24  Bruno Haible  <bruno@clisp.org>
38187
38188         Tests for module 'yn'.
38189         * modules/yn-tests: New file.
38190         * tests/test-yn.c: New file.
38191
38192         Tests for module 'y1'.
38193         * modules/y1-tests: New file.
38194         * tests/test-y1.c: New file.
38195
38196         Tests for module 'y0'.
38197         * modules/y0-tests: New file.
38198         * tests/test-y0.c: New file.
38199
38200         Tests for module 'tanh'.
38201         * modules/tanh-tests: New file.
38202         * tests/test-tanh.c: New file.
38203
38204         Tests for module 'tan'.
38205         * modules/tan-tests: New file.
38206         * tests/test-tan.c: New file.
38207
38208         Tests for module 'sqrt'.
38209         * modules/sqrt-tests: New file.
38210         * tests/test-sqrt.c: New file.
38211
38212         Tests for module 'sinh'.
38213         * modules/sinh-tests: New file.
38214         * tests/test-sinh.c: New file.
38215
38216         Tests for module 'sin'.
38217         * modules/sin-tests: New file.
38218         * tests/test-sin.c: New file.
38219
38220         Tests for module 'rint'.
38221         * modules/rint-tests: New file.
38222         * tests/test-rint.c: New file.
38223
38224         Tests for module 'remainder'.
38225         * modules/remainder-tests: New file.
38226         * tests/test-remainder.c: New file.
38227
38228         Tests for module 'pow'.
38229         * modules/pow-tests: New file.
38230         * tests/test-pow.c: New file.
38231
38232         Tests for module 'nextafter'.
38233         * modules/nextafter-tests: New file.
38234         * tests/test-nextafter.c: New file.
38235
38236         Tests for module 'modf'.
38237         * modules/modf-tests: New file.
38238         * tests/test-modf.c: New file.
38239
38240         Tests for module 'logb'.
38241         * modules/logb-tests: New file.
38242         * tests/test-logb.c: New file.
38243
38244         Tests for module 'log1p'.
38245         * modules/log1p-tests: New file.
38246         * tests/test-log1p.c: New file.
38247
38248         Tests for module 'log10'.
38249         * modules/log10-tests: New file.
38250         * tests/test-log10.c: New file.
38251
38252         Tests for module 'log'.
38253         * modules/log-tests: New file.
38254         * tests/test-log.c: New file.
38255
38256         Tests for module 'lgamma'.
38257         * modules/lgamma-tests: New file.
38258         * tests/test-lgamma.c: New file.
38259
38260         Tests for module 'ldexp'.
38261         * modules/ldexp-tests: New file.
38262         * tests/test-ldexp.c: New file.
38263
38264         Tests for module 'jn'.
38265         * modules/jn-tests: New file.
38266         * tests/test-jn.c: New file.
38267
38268         Tests for module 'j1'.
38269         * modules/j1-tests: New file.
38270         * tests/test-j1.c: New file.
38271
38272         Tests for module 'j0'.
38273         * modules/j0-tests: New file.
38274         * tests/test-j0.c: New file.
38275
38276         Tests for module 'hypot'.
38277         * modules/hypot-tests: New file.
38278         * tests/test-hypot.c: New file.
38279
38280         Tests for module 'fmod'.
38281         * modules/fmod-tests: New file.
38282         * tests/test-fmod.c: New file.
38283
38284         Tests for module 'fabs'.
38285         * modules/fabs-tests: New file.
38286         * tests/test-fabs.c: New file.
38287
38288         Tests for module 'exp'.
38289         * modules/exp-tests: New file.
38290         * tests/test-exp.c: New file.
38291
38292         Tests for module 'erfc'.
38293         * modules/erfc-tests: New file.
38294         * tests/test-erfc.c: New file.
38295
38296         Tests for module 'erf'.
38297         * modules/erf-tests: New file.
38298         * tests/test-erf.c: New file.
38299
38300         Tests for module 'cosh'.
38301         * modules/cosh-tests: New file.
38302         * tests/test-cosh.c: New file.
38303
38304         Tests for module 'cos'.
38305         * modules/cos-tests: New file.
38306         * tests/test-cos.c: New file.
38307
38308         Tests for module 'copysign'.
38309         * modules/copysign-tests: New file.
38310         * tests/test-copysign.c: New file.
38311
38312         Tests for module 'cbrt'.
38313         * modules/cbrt-tests: New file.
38314         * tests/test-cbrt.c: New file.
38315
38316         Tests for module 'atan2'.
38317         * modules/atan2-tests: New file.
38318         * tests/test-atan2.c: New file.
38319
38320         Tests for module 'atan'.
38321         * modules/atan-tests: New file.
38322         * tests/test-atan.c: New file.
38323
38324         Tests for module 'asin'.
38325         * modules/asin-tests: New file.
38326         * tests/test-asin.c: New file.
38327
38328         Tests for module 'acos'.
38329         * modules/acos-tests: New file.
38330         * tests/test-acos.c: New file.
38331
38332 2010-01-24  Bruno Haible  <bruno@clisp.org>
38333
38334         Fix tests for common <math.h> functions.
38335         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38336         code snippet that references the function pointer, rather than merely
38337         calling the function. Substitute the FUNC_LIBM variable.
38338         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38339         * modules/acos (configure.ac): Likewise.
38340         * modules/asin (configure.ac): Likewise.
38341         * modules/atan (configure.ac): Likewise.
38342         * modules/atan2 (configure.ac): Likewise.
38343         * modules/cbrt (configure.ac): Likewise.
38344         * modules/copysign (configure.ac): Likewise.
38345         * modules/cos (configure.ac): Likewise.
38346         * modules/cosh (configure.ac): Likewise.
38347         * modules/erf (configure.ac): Likewise.
38348         * modules/erfc (configure.ac): Likewise.
38349         * modules/exp (configure.ac): Likewise.
38350         * modules/fabs (configure.ac): Likewise.
38351         * modules/fmod (configure.ac): Likewise.
38352         * modules/hypot (configure.ac): Likewise.
38353         * modules/j0 (configure.ac): Likewise.
38354         * modules/j1 (configure.ac): Likewise.
38355         * modules/jn (configure.ac): Likewise.
38356         * modules/ldexp (configure.ac): Likewise.
38357         * modules/lgamma (configure.ac): Likewise.
38358         * modules/log (configure.ac): Likewise.
38359         * modules/log10 (configure.ac): Likewise.
38360         * modules/log1p (configure.ac): Likewise.
38361         * modules/logb (configure.ac): Likewise.
38362         * modules/modf (configure.ac): Likewise.
38363         * modules/nextafter (configure.ac): Likewise.
38364         * modules/pow (configure.ac): Likewise.
38365         * modules/remainder (configure.ac): Likewise.
38366         * modules/rint (configure.ac): Likewise.
38367         * modules/sin (configure.ac): Likewise.
38368         * modules/sinh (configure.ac): Likewise.
38369         * modules/tan (configure.ac): Likewise.
38370         * modules/tanh (configure.ac): Likewise.
38371         * modules/y0 (configure.ac): Likewise.
38372         * modules/y1 (configure.ac): Likewise.
38373         * modules/yn (configure.ac): Likewise.
38374
38375 2010-01-24  Bruno Haible  <bruno@clisp.org>
38376
38377         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38378         * tests/test-acosl.c (x): New variable.
38379         (main): Store argument in x and fetch it from x.
38380         * tests/test-asinl.c (x): New variable.
38381         (main): Store argument in x and fetch it from x.
38382         * tests/test-atanl.c (x): New variable.
38383         (main): Store argument in x and fetch it from x.
38384         * tests/test-cosl.c (x): New variable.
38385         (main): Store argument in x and fetch it from x.
38386         * tests/test-expl.c (x): New variable.
38387         (main): Store argument in x and fetch it from x.
38388         * tests/test-logl.c (x): New variable.
38389         (main): Store argument in x and fetch it from x.
38390         * tests/test-sinl.c (x): New variable.
38391         (main): Store argument in x and fetch it from x.
38392         * tests/test-sqrtl.c (x): New variable.
38393         (main): Store argument in x and fetch it from x.
38394         * tests/test-tanl.c (x): New variable.
38395         (main): Store argument in x and fetch it from x.
38396
38397 2010-01-24  Bruno Haible  <bruno@clisp.org>
38398
38399         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38400         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38401         assignments to the initial TESTS_ENVIRONMENT.
38402         * doc/gnulib.texi (Unit test modules): Document it.
38403         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38404         TESTS_ENVIRONMENT.
38405         * modules/btowc-tests (Makefile.am): Likewise.
38406         * modules/c-stack-tests (Makefile.am): Likewise.
38407         * modules/c-strcase-tests (Makefile.am): Likewise.
38408         * modules/copy-file-tests (Makefile.am): Likewise.
38409         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38410         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38411         * modules/mbrtowc-tests (Makefile.am): Likewise.
38412         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38413         * modules/mbscasestr-tests (Makefile.am): Likewise.
38414         * modules/mbschr-tests (Makefile.am): Likewise.
38415         * modules/mbscspn-tests (Makefile.am): Likewise.
38416         * modules/mbsinit-tests (Makefile.am): Likewise.
38417         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38418         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38419         * modules/mbspbrk-tests (Makefile.am): Likewise.
38420         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38421         * modules/mbsrchr-tests (Makefile.am): Likewise.
38422         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38423         * modules/mbsspn-tests (Makefile.am): Likewise.
38424         * modules/mbsstr-tests (Makefile.am): Likewise.
38425         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38426         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38427         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38428         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38429         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38430         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38431         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38432         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38433         * modules/wcrtomb-tests (Makefile.am): Likewise.
38434         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38435         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38436         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38437         assignments from TESTS_ENVIRONMENT.
38438         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38439         augmentation.
38440         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38441         * modules/atexit-tests (Makefile.am): Likewise.
38442         * modules/binary-io-tests (Makefile.am): Likewise.
38443         * modules/closein-tests (Makefile.am): Likewise.
38444         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38445         * modules/exclude-tests (Makefile.am): Likewise.
38446         * modules/fflush-tests (Makefile.am): Likewise.
38447         * modules/fpending-tests (Makefile.am): Likewise.
38448         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38449         * modules/freadahead-tests (Makefile.am): Likewise.
38450         * modules/freadptr-tests (Makefile.am): Likewise.
38451         * modules/freadseek-tests (Makefile.am): Likewise.
38452         * modules/fseek-tests (Makefile.am): Likewise.
38453         * modules/fseeko-tests (Makefile.am): Likewise.
38454         * modules/ftell-tests (Makefile.am): Likewise.
38455         * modules/ftello-tests (Makefile.am): Likewise.
38456         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38457         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38458         * modules/lseek-tests (Makefile.am): Likewise.
38459         * modules/parse-duration-tests (Makefile.am): Likewise.
38460         * modules/perror-tests (Makefile.am): Likewise.
38461         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38462         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38463         * modules/pipe-tests (Makefile.am): Likewise.
38464         * modules/pread-tests (Makefile.am): Likewise.
38465         * modules/printf-posix-tests (Makefile.am): Likewise.
38466         * modules/select-tests (Makefile.am): Likewise.
38467         * modules/sigpipe-tests (Makefile.am): Likewise.
38468         * modules/tsearch-tests (Makefile.am): Likewise.
38469         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38470         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38471         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38472         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38473         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38474         * modules/version-etc-tests (Makefile.am): Likewise.
38475         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38476         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38477         * modules/xalloc-die-tests (Makefile.am): Likewise.
38478         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38479         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38480         * modules/xstrtol-tests (Makefile.am): Likewise.
38481         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38482         * modules/yesno-tests (Makefile.am): Likewise.
38483         Suggested by Jim Meyering.
38484
38485 2010-01-24  Bruno Haible  <bruno@clisp.org>
38486
38487         More documentation.
38488         * doc/gnulib.texi (Writing modules): New chapter.
38489         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38490         the new chapter.
38491
38492 2010-01-24  Jim Meyering  <meyering@redhat.com>
38493
38494         maint.mk: do not prepend "./" after filtering
38495         * top/maint.mk (_prepend_srcdir_prefix): New variable
38496         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38497         "./" when $(srcdir) is ".".
38498
38499         define STREQ(a,b) consistently, removing useless parentheses
38500         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38501         since the only risk is that "a" or "b" contains an unparenthesized
38502         comma, but if either did that, STREQ would have 3 or more arguments.
38503         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38504         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38505         * lib/hash-triple.c (STREQ): Likewise.
38506         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38507         * lib/getugroups.c (STREQ): Likewise.
38508
38509 2010-01-23  Jim Meyering  <meyering@redhat.com>
38510
38511         maint.mk: fix syntax-check in a non-srcdir build directory
38512         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38513         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38514
38515 2010-01-22  Jim Meyering  <meyering@redhat.com>
38516
38517         userspec: add unit tests
38518         * tests/test-userspec.c: New file.
38519         * modules/userspec-tests: Likewise.
38520
38521 2010-01-21  Jim Meyering  <meyering@redhat.com>
38522
38523         maint.mk: handle source file names containing "." robustly
38524         * top/maint.mk (_dot_escaped_srcdir): Define.
38525         (VC_LIST): Use it in LHS of sed substitution.
38526
38527 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38528
38529         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38530         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38531         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38532         from a non-srcdir build.
38533
38534 2010-01-20  Eric Blake  <ebb9@byu.net>
38535
38536         warn-on-use: use instead of link-warning
38537         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38538         * modules/unistd (Depends-on, Makefile.am): Likewise.
38539         * modules/arpa_inet (Depends-on): Replace link-warning with
38540         warn-on-use.
38541         (Makefile.am): Update rules accordingly.
38542         * modules/ctype (Depends-on, Makefile.am): Likewise.
38543         * modules/dirent (Depends-on, Makefile.am): Likewise.
38544         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38545         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38546         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38547         * modules/locale (Depends-on, Makefile.am): Likewise.
38548         * modules/math (Depends-on, Makefile.am): Likewise.
38549         * modules/search (Depends-on, Makefile.am): Likewise.
38550         * modules/signal (Depends-on, Makefile.am): Likewise.
38551         * modules/spawn (Depends-on, Makefile.am): Likewise.
38552         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38553         * modules/string (Depends-on, Makefile.am): Likewise.
38554         * modules/strings (Depends-on, Makefile.am): Likewise.
38555         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38556         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38557         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38558         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38559         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38560         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38561         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38562         * modules/wchar (Depends-on, Makefile.am): Likewise.
38563         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38564         should be poisoned.
38565         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38566         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38567         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38568         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38569         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38570         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38571         * m4/math_h.m4 (gl_MATH_H): Likewise.
38572         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38573         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38574         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38575         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38576         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38577         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38578         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38579         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38580         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38581         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38582         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38583         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38584         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38585         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38586         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38587         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38588         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38589         GL_LINK_WARNING.
38590         * lib/ctype.in.h: Likewise.
38591         * lib/dirent.in.h: Likewise.
38592         * lib/fcntl.in.h: Likewise.
38593         * lib/inttypes.in.h: Likewise.
38594         * lib/langinfo.in.h: Likewise.
38595         * lib/locale.in.h: Likewise.
38596         * lib/math.in.h: Likewise.
38597         * lib/search.in.h: Likewise.
38598         * lib/signal.in.h: Likewise.
38599         * lib/spawn.in.h: Likewise.
38600         * lib/stdio.in.h: Likewise.
38601         * lib/stdlib.in.h: Likewise.
38602         * lib/string.in.h: Likewise.
38603         * lib/strings.in.h: Likewise.
38604         * lib/sys_file.in.h: Likewise.
38605         * lib/sys_ioctl.in.h: Likewise.
38606         * lib/sys_select.in.h: Likewise.
38607         * lib/sys_socket.in.h: Likewise.
38608         * lib/sys_stat.in.h: Likewise.
38609         * lib/sys_times.in.h: Likewise.
38610         * lib/sys_utsname.in.h: Likewise.
38611         * lib/unistd.in.h: Likewise.
38612         * lib/wchar.in.h: Likewise.
38613
38614 2010-01-20  Bruno Haible  <bruno@clisp.org>
38615
38616         Avoid duplicate -lm.
38617         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38618         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38619         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38620         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38621         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38622         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38623         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38624         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38625         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38626         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38627         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38628         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38629         Reported by Paolo Bonzini.
38630
38631 2010-01-19  Bruno Haible  <bruno@clisp.org>
38632
38633         langinfo, nl_langinfo: Relicense under LGPLv2+.
38634         * modules/langinfo (License): Change to LGPLv2+.
38635         * modules/nl_langinfo (License): Likewise.
38636         Patch by David Lutterkort <lutter@redhat.com>.
38637
38638 2010-01-19  Bruno Haible  <bruno@clisp.org>
38639
38640         Avoid compilation error with cc on OSF/1 5.1.
38641         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38642         statement, not before.
38643         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38644
38645 2010-01-18  Bruno Haible  <bruno@clisp.org>
38646
38647         Avoid a link error due to the __printf__ symbol.
38648         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38649         and 2.6.x.
38650         (__format__, __printf__): Remove definitions.
38651         * lib/argp-fmtstream.h: Likewise.
38652         * lib/argp.h: Likewise.
38653         * lib/error.h: Likewise.
38654         * lib/vasnprintf.h: Likewise.
38655         * lib/xprintf.h: Likewise.
38656         * lib/xvasprintf.h: Likewise.
38657         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38658
38659 2010-01-18  Bruno Haible  <bruno@clisp.org>
38660
38661         Tests for module 'tanl'.
38662         * modules/tanl-tests: New file.
38663         * tests/test-tanl.c: New file.
38664
38665         Tests for module 'sqrtl'.
38666         * modules/sqrtl-tests: New file.
38667         * tests/test-sqrtl.c: New file.
38668
38669         Tests for module 'sinl'.
38670         * modules/sinl-tests: New file.
38671         * tests/test-sinl.c: New file.
38672
38673         Tests for module 'logl'.
38674         * modules/logl-tests: New file.
38675         * tests/test-logl.c: New file.
38676
38677         Tests for module 'expl'.
38678         * modules/expl-tests: New file.
38679         * tests/test-expl.c: New file.
38680
38681         Tests for module 'cosl'.
38682         * modules/cosl-tests: New file.
38683         * tests/test-cosl.c: New file.
38684
38685         Tests for module 'atanl'.
38686         * modules/atanl-tests: New file.
38687         * tests/test-atanl.c: New file.
38688
38689         Tests for module 'asinl'.
38690         * modules/asinl-tests: New file.
38691         * tests/test-asinl.c: New file.
38692
38693         Tests for module 'acosl'.
38694         * modules/acosl-tests: New file.
38695         * tests/test-acosl.c: New file.
38696
38697         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38698         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38699         tanl): Use the standard gnulib idiom.
38700         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38701         * lib/sinl.c: Likewise.
38702         * lib/tanl.c: Don't include trigl.c.
38703         (kernel_tanl): Make static.
38704         * lib/sincosl.c: Include trigl.h first.
38705         * lib/trigl.c: Likewise.
38706         * m4/acosl.m4: New file.
38707         * m4/asinl.m4: New file.
38708         * m4/atanl.m4: New file.
38709         * m4/cosl.m4: New file.
38710         * m4/expl.m4: New file.
38711         * m4/logl.m4: New file.
38712         * m4/sinl.m4: New file.
38713         * m4/sqrtl.m4: New file.
38714         * m4/tanl.m4: New file.
38715         * m4/mathl.m4: Remove file.
38716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38717         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38718         Don't initialize GNULIB_MATHL.
38719         * modules/acosl: New file.
38720         * modules/asinl: New file.
38721         * modules/atanl: New file.
38722         * modules/cosl: New file.
38723         * modules/expl: New file.
38724         * modules/logl: New file.
38725         * modules/sinl: New file.
38726         * modules/sqrtl: New file.
38727         * modules/tanl: New file.
38728         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38729         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38730         substitute GNULIB_MATHL.
38731         * modules/mathl: Rewritten.
38732         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38733         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38734         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38735         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38736         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38737         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38738         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38739         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38740         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38741
38742 2010-01-18  Bruno Haible  <bruno@clisp.org>
38743
38744         sqrt: Make gl_FUNC_SQRT requirable.
38745         * m4/sqrt.m4: New file.
38746         * modules/sqrt (Files): Add it.
38747         (configure.ac): Invoke gl_FUNC_SQRT.
38748
38749 2010-01-18  Bruno Haible  <bruno@clisp.org>
38750
38751         New modules for common <math.h> functions.
38752         * m4/mathfunc.m4: New file.
38753         * modules/acos: New file.
38754         * modules/asin: New file.
38755         * modules/atan: New file.
38756         * modules/atan2: New file.
38757         * modules/cbrt: New file.
38758         * modules/copysign: New file.
38759         * modules/cos: New file.
38760         * modules/cosh: New file.
38761         * modules/erf: New file.
38762         * modules/erfc: New file.
38763         * modules/exp: New file.
38764         * modules/fabs: New file.
38765         * modules/fmod: New file.
38766         * modules/hypot: New file.
38767         * modules/j0: New file.
38768         * modules/j1: New file.
38769         * modules/jn: New file.
38770         * modules/ldexp: New file.
38771         * modules/lgamma: New file.
38772         * modules/log: New file.
38773         * modules/log10: New file.
38774         * modules/log1p: New file.
38775         * modules/logb: New file.
38776         * modules/modf: New file.
38777         * modules/nextafter: New file.
38778         * modules/pow: New file.
38779         * modules/remainder: New file.
38780         * modules/rint: New file.
38781         * modules/sin: New file.
38782         * modules/sinh: New file.
38783         * modules/sqrt: New file.
38784         * modules/tan: New file.
38785         * modules/tanh: New file.
38786         * modules/y0: New file.
38787         * modules/y1: New file.
38788         * modules/yn: New file.
38789         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38790         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38791         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38792         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38793         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38794         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38795         * doc/posix-functions/cos.texi: Mention the 'cos' module.
38796         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
38797         * doc/posix-functions/erf.texi: Mention the 'erf' module.
38798         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
38799         * doc/posix-functions/exp.texi: Mention the 'exp' module.
38800         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
38801         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
38802         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
38803         * doc/posix-functions/j0.texi: Mention the 'j0' module.
38804         * doc/posix-functions/j1.texi: Mention the 'j1' module.
38805         * doc/posix-functions/jn.texi: Mention the 'jn' module.
38806         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
38807         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
38808         * doc/posix-functions/log.texi: Mention the 'log' module.
38809         * doc/posix-functions/log10.texi: Mention the 'log10' module.
38810         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
38811         * doc/posix-functions/logb.texi: Mention the 'logb' module.
38812         * doc/posix-functions/modf.texi: Mention the 'modf' module.
38813         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
38814         * doc/posix-functions/pow.texi: Mention the 'pow' module.
38815         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
38816         * doc/posix-functions/rint.texi: Mention the 'rint' module.
38817         * doc/posix-functions/sin.texi: Mention the 'sin' module.
38818         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
38819         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
38820         * doc/posix-functions/tan.texi: Mention the 'tan' module.
38821         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
38822         * doc/posix-functions/y0.texi: Mention the 'y0' module.
38823         * doc/posix-functions/y1.texi: Mention the 'y1' module.
38824         * doc/posix-functions/yn.texi: Mention the 'yn' module.
38825
38826 2010-01-18  Jim Meyering  <meyering@redhat.com>
38827
38828         ignore-value: relax license to LGPLv2+
38829         * modules/ignore-value (License): Relax to LGPLv2+.
38830
38831         getdate: don't leak when TZ contains two or more '"'s
38832         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
38833         double quote in TZ after the first one.
38834
38835         readtokens: do not leak internal token_lengths buffer
38836         * lib/readtokens.c (readtokens): Free the local, lengths,
38837         when the supplied "token_lengths" parameter is NULL.
38838
38839 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38840
38841         Fix a couple of missing LIBTHREAD link failures on AIX.
38842         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
38843         $(LIBTHREAD).
38844         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38845
38846         Link test-poll against INET_PTON_LIB.
38847         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38848         for inet_pton on Solaris 10.
38849
38850 2010-01-17  Bruno Haible  <bruno@clisp.org>
38851
38852         unistdio/*-sprintf: Fix typo in module description.
38853         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38854         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38855         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38856         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38857         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38858         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38859         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38860         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38861
38862 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38863
38864         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38865         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38866         variables in shell case patterns, for AIX and HP-UX ksh.
38867
38868         Split large sed scripts, for HP-UX sed.
38869         * modules/stdio: Split sed scripts around 50 sed commands,
38870         to avoid HP-UX limit of 99 commands, in the near future.
38871         * modules/string: Likewise.
38872         * modules/unistd: Likewise.
38873
38874         gnulib-tool: avoid writing in the current directory.
38875         * gnulib-tool (func_emit_lib_Makefile_am)
38876         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38877         not in the current directory, so concurrent gnulib-tool
38878         instances do not interfere.
38879
38880 2010-01-16  Jim Meyering  <meyering@redhat.com>
38881
38882         doc: update users.txt
38883         * users.txt: Add grep.
38884         (diffutils, gzip): Update URLs.
38885
38886 2010-01-12  Bruno Haible  <bruno@clisp.org>
38887
38888         posix_spawn: Avoid test failure on Cygwin.
38889         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38890         characters.
38891         Reported by Simon Josefsson.
38892
38893 2010-01-12  Bruno Haible  <bruno@clisp.org>
38894
38895         * tests/test-cond.c (main): When skipping the test, show the reason.
38896
38897 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38898
38899         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38900
38901 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38902
38903         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38904         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38905
38906 2010-01-12  Eric Blake  <ebb9@byu.net>
38907
38908         build: guarantee AS_VAR_IF
38909         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38910         (gl_AS_VAR_IF): Move...
38911         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38912         Reported by Simon Josefsson.
38913
38914 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38915
38916         * lib/stdio.in.h: Fix typo.
38917
38918 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38919
38920         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38921         libgpg-error.
38922
38923 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38924
38925         * tests/test-xalloc-die.sh: Use $EXEEXT.
38926
38927 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38928             Bruno Haible  <bruno@clisp.org>
38929
38930         getlogin, getlogin_r: Avoid test failure.
38931         * tests/test-getlogin.c: Include <stdio.h>.
38932         (main): Skip the test when the function fails because stdin is not a
38933         tty.
38934         * tests/test-getlogin_r.c: Include <stdio.h>.
38935         (main): Skip the test when the function fails because stdin is not a
38936         tty.
38937
38938 2010-01-11  Eric Blake  <ebb9@byu.net>
38939
38940         tests: avoid more large file warnings
38941         * tests/test-fflush.c: Avoid warning about ftell use.
38942         * tests/test-fseek.c: Avoid warning about fseek use.
38943
38944 2010-01-10  Bruno Haible  <bruno@clisp.org>
38945
38946         nproc: Work better on Linux when /proc and /sys are not mounted.
38947         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38948         as lower bound when, on glibc/Linux systems,
38949         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38950         Suggested by Pádraig Brady <P@draigbrady.com>.
38951         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38952
38953         nproc: Refactor.
38954         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38955         extracted from num_processors.
38956         (num_processors): Call it.
38957
38958 2010-01-11  Jim Meyering  <meyering@redhat.com>
38959
38960         utimecmp: avoid new warning from upcoming gcc-4.5.0
38961         * lib/utimecmp.c (BILLION): Define using #define rather than an
38962         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38963
38964 2010-01-11  Eric Blake  <ebb9@byu.net>
38965
38966         math: add portability warnings for classification macros
38967         * modules/math (Depends-on): Add warn-on-use.
38968         (Makefile.am): Provide new substitutions.
38969         * m4/math_h.m4 (gl_MATH_H): Require inline.
38970         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38971         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38972         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38973         implement warnings.
38974
38975         unistd: warn on use of environ without module
38976         * modules/unistd (Depends-on): Add warn-on-use.
38977         (Makefile.am): Provide new substitutions.
38978         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38979         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38980
38981         stdio: warn on suspicious uses
38982         * modules/stdio (Depends-on): Add warn-on-use.
38983         (Makefile.am): Provide new substitutions.
38984         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38985         fseeko.
38986         * lib/stdio.in.h (gets): Always warn on use.
38987         (fseek, ftell): Adjust when warnings are issued, and honor
38988         _GL_NO_LARGE_FILES as a way to silence the warning.
38989         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38990         any warning about large file offsets.
38991         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38992         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38993         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38994         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38995         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38996         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38997         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38998         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38999
39000         warn-on-use: new module
39001         * modules/warn-on-use: New file.
39002         * build-aux/warn-on-use.h: Likewise.
39003         * m4/warn-on-use.m4: Likewise.
39004         * MODULES.html.sh (Support for building): Mention it.
39005
39006 2010-01-10  Bruno Haible  <bruno@clisp.org>
39007
39008         Tests for module 'unistr/u32-strdup'.
39009         * modules/unistr/u32-strdup-tests: New file.
39010         * tests/unistr/test-u32-strdup.c: New file.
39011
39012         Tests for module 'unistr/u16-strdup'.
39013         * modules/unistr/u16-strdup-tests: New file.
39014         * tests/unistr/test-u16-strdup.c: New file.
39015
39016         Tests for module 'unistr/u8-strdup'.
39017         * modules/unistr/u8-strdup-tests: New file.
39018         * tests/unistr/test-u8-strdup.c: New file.
39019         * tests/unistr/test-strdup.h: New file.
39020
39021         Tests for module 'unistr/u32-strncmp'.
39022         * modules/unistr/u32-strncmp-tests: New file.
39023         * tests/unistr/test-u32-strncmp.c: New file.
39024
39025         Tests for module 'unistr/u16-strncmp'.
39026         * modules/unistr/u16-strncmp-tests: New file.
39027         * tests/unistr/test-u16-strncmp.c: New file.
39028
39029         Tests for module 'unistr/u8-strncmp'.
39030         * modules/unistr/u8-strncmp-tests: New file.
39031         * tests/unistr/test-u8-strncmp.c: New file.
39032         * tests/unistr/test-strncmp.h: New file.
39033
39034         Tests for module 'unistr/u32-strcoll'.
39035         * modules/unistr/u32-strcoll-tests: New file.
39036         * tests/unistr/test-u32-strcoll.c: New file.
39037
39038         Tests for module 'unistr/u16-strcoll'.
39039         * modules/unistr/u16-strcoll-tests: New file.
39040         * tests/unistr/test-u16-strcoll.c: New file.
39041
39042         Tests for module 'unistr/u8-strcoll'.
39043         * modules/unistr/u8-strcoll-tests: New file.
39044         * tests/unistr/test-u8-strcoll.c: New file.
39045
39046         Tests for module 'unistr/u32-strcmp'.
39047         * modules/unistr/u32-strcmp-tests: New file.
39048         * tests/unistr/test-u32-strcmp.c: New file.
39049         * tests/unistr/test-u32-strcmp.h: New file.
39050
39051         Tests for module 'unistr/u16-strcmp'.
39052         * modules/unistr/u16-strcmp-tests: New file.
39053         * tests/unistr/test-u16-strcmp.c: New file.
39054         * tests/unistr/test-u16-strcmp.h: New file.
39055
39056         Tests for module 'unistr/u8-strcmp'.
39057         * modules/unistr/u8-strcmp-tests: New file.
39058         * tests/unistr/test-u8-strcmp.c: New file.
39059         * tests/unistr/test-u8-strcmp.h: New file.
39060         * tests/unistr/test-strcmp.h: New file.
39061
39062         Tests for module 'unistr/u32-strncat'.
39063         * modules/unistr/u32-strncat-tests: New file.
39064         * tests/unistr/test-u32-strncat.c: New file.
39065
39066         Tests for module 'unistr/u16-strncat'.
39067         * modules/unistr/u16-strncat-tests: New file.
39068         * tests/unistr/test-u16-strncat.c: New file.
39069
39070         Tests for module 'unistr/u8-strncat'.
39071         * modules/unistr/u8-strncat-tests: New file.
39072         * tests/unistr/test-u8-strncat.c: New file.
39073         * tests/unistr/test-strncat.h: New file.
39074
39075         Tests for module 'unistr/u32-strcat'.
39076         * modules/unistr/u32-strcat-tests: New file.
39077         * tests/unistr/test-u32-strcat.c: New file.
39078
39079         Tests for module 'unistr/u16-strcat'.
39080         * modules/unistr/u16-strcat-tests: New file.
39081         * tests/unistr/test-u16-strcat.c: New file.
39082
39083         Tests for module 'unistr/u8-strcat'.
39084         * modules/unistr/u8-strcat-tests: New file.
39085         * tests/unistr/test-u8-strcat.c: New file.
39086         * tests/unistr/test-strcat.h: New file.
39087
39088         Tests for module 'unistr/u32-stpncpy'.
39089         * modules/unistr/u32-stpncpy-tests: New file.
39090         * tests/unistr/test-u32-stpncpy.c: New file.
39091
39092         Tests for module 'unistr/u16-stpncpy'.
39093         * modules/unistr/u16-stpncpy-tests: New file.
39094         * tests/unistr/test-u16-stpncpy.c: New file.
39095
39096         Tests for module 'unistr/u8-stpncpy'.
39097         * modules/unistr/u8-stpncpy-tests: New file.
39098         * tests/unistr/test-u8-stpncpy.c: New file.
39099         * tests/unistr/test-stpncpy.h: New file.
39100
39101         Tests for module 'unistr/u32-strncpy'.
39102         * modules/unistr/u32-strncpy-tests: New file.
39103         * tests/unistr/test-u32-strncpy.c: New file.
39104
39105         Tests for module 'unistr/u16-strncpy'.
39106         * modules/unistr/u16-strncpy-tests: New file.
39107         * tests/unistr/test-u16-strncpy.c: New file.
39108
39109         Tests for module 'unistr/u8-strncpy'.
39110         * modules/unistr/u8-strncpy-tests: New file.
39111         * tests/unistr/test-u8-strncpy.c: New file.
39112         * tests/unistr/test-strncpy.h: New file.
39113
39114         Tests for module 'unistr/u32-stpcpy'.
39115         * modules/unistr/u32-stpcpy-tests: New file.
39116         * tests/unistr/test-u32-stpcpy.c: New file.
39117
39118         Tests for module 'unistr/u16-stpcpy'.
39119         * modules/unistr/u16-stpcpy-tests: New file.
39120         * tests/unistr/test-u16-stpcpy.c: New file.
39121
39122         Tests for module 'unistr/u8-stpcpy'.
39123         * modules/unistr/u8-stpcpy-tests: New file.
39124         * tests/unistr/test-u8-stpcpy.c: New file.
39125         * tests/unistr/test-stpcpy.h: New file.
39126
39127         Tests for module 'unistr/u32-strcpy'.
39128         * modules/unistr/u32-strcpy-tests: New file.
39129         * tests/unistr/test-u32-strcpy.c: New file.
39130
39131         Tests for module 'unistr/u16-strcpy'.
39132         * modules/unistr/u16-strcpy-tests: New file.
39133         * tests/unistr/test-u16-strcpy.c: New file.
39134
39135         Tests for module 'unistr/u8-strcpy'.
39136         * modules/unistr/u8-strcpy-tests: New file.
39137         * tests/unistr/test-u8-strcpy.c: New file.
39138         * tests/unistr/test-strcpy.h: New file.
39139
39140         Tests for module 'unistr/u32-strnlen'.
39141         * modules/unistr/u32-strnlen-tests: New file.
39142         * tests/unistr/test-u32-strnlen.c: New file.
39143
39144         Tests for module 'unistr/u16-strnlen'.
39145         * modules/unistr/u16-strnlen-tests: New file.
39146         * tests/unistr/test-u16-strnlen.c: New file.
39147
39148         Tests for module 'unistr/u8-strnlen'.
39149         * modules/unistr/u8-strnlen-tests: New file.
39150         * tests/unistr/test-u8-strnlen.c: New file.
39151         * tests/unistr/test-strnlen.h: New file.
39152
39153         Tests for module 'unistr/u32-strlen'.
39154         * modules/unistr/u32-strlen-tests: New file.
39155         * tests/unistr/test-u32-strlen.c: New file.
39156
39157         Tests for module 'unistr/u16-strlen'.
39158         * modules/unistr/u16-strlen-tests: New file.
39159         * tests/unistr/test-u16-strlen.c: New file.
39160
39161         Tests for module 'unistr/u8-strlen'.
39162         * modules/unistr/u8-strlen-tests: New file.
39163         * tests/unistr/test-u8-strlen.c: New file.
39164
39165         Tests for module 'unistr/u32-prev'.
39166         * modules/unistr/u32-prev-tests: New file.
39167         * tests/unistr/test-u32-prev.c: New file.
39168
39169         Tests for module 'unistr/u16-prev'.
39170         * modules/unistr/u16-prev-tests: New file.
39171         * tests/unistr/test-u16-prev.c: New file.
39172
39173         Tests for module 'unistr/u8-prev'.
39174         * modules/unistr/u8-prev-tests: New file.
39175         * tests/unistr/test-u8-prev.c: New file.
39176
39177         Tests for module 'unistr/u32-next'.
39178         * modules/unistr/u32-next-tests: New file.
39179         * tests/unistr/test-u32-next.c: New file.
39180
39181         Tests for module 'unistr/u16-next'.
39182         * modules/unistr/u16-next-tests: New file.
39183         * tests/unistr/test-u16-next.c: New file.
39184
39185         Tests for module 'unistr/u8-next'.
39186         * modules/unistr/u8-next-tests: New file.
39187         * tests/unistr/test-u8-next.c: New file.
39188
39189         Tests for module 'unistr/u32-strmbtouc'.
39190         * modules/unistr/u32-strmbtouc-tests: New file.
39191         * tests/unistr/test-u32-strmbtouc.c: New file.
39192
39193         Tests for module 'unistr/u16-strmbtouc'.
39194         * modules/unistr/u16-strmbtouc-tests: New file.
39195         * tests/unistr/test-u16-strmbtouc.c: New file.
39196
39197         Tests for module 'unistr/u8-strmbtouc'.
39198         * modules/unistr/u8-strmbtouc-tests: New file.
39199         * tests/unistr/test-u8-strmbtouc.c: New file.
39200
39201         Tests for module 'unistr/u32-strmblen'.
39202         * modules/unistr/u32-strmblen-tests: New file.
39203         * tests/unistr/test-u32-strmblen.c: New file.
39204
39205         Tests for module 'unistr/u16-strmblen'.
39206         * modules/unistr/u16-strmblen-tests: New file.
39207         * tests/unistr/test-u16-strmblen.c: New file.
39208
39209         Tests for module 'unistr/u8-strmblen'.
39210         * modules/unistr/u8-strmblen-tests: New file.
39211         * tests/unistr/test-u8-strmblen.c: New file.
39212
39213         Tests for module 'unistr/u32-cpy-alloc'.
39214         * modules/unistr/u32-cpy-alloc-tests: New file.
39215         * tests/unistr/test-u32-cpy-alloc.c: New file.
39216
39217         Tests for module 'unistr/u16-cpy-alloc'.
39218         * modules/unistr/u16-cpy-alloc-tests: New file.
39219         * tests/unistr/test-u16-cpy-alloc.c: New file.
39220
39221         Tests for module 'unistr/u8-cpy-alloc'.
39222         * modules/unistr/u8-cpy-alloc-tests: New file.
39223         * tests/unistr/test-u8-cpy-alloc.c: New file.
39224         * tests/unistr/test-cpy-alloc.h: New file.
39225
39226         Tests for module 'unistr/u32-mbsnlen'.
39227         * modules/unistr/u32-mbsnlen-tests: New file.
39228         * tests/unistr/test-u32-mbsnlen.c: New file.
39229
39230         Tests for module 'unistr/u16-mbsnlen'.
39231         * modules/unistr/u16-mbsnlen-tests: New file.
39232         * tests/unistr/test-u16-mbsnlen.c: New file.
39233
39234         Tests for module 'unistr/u8-mbsnlen'.
39235         * modules/unistr/u8-mbsnlen-tests: New file.
39236         * tests/unistr/test-u8-mbsnlen.c: New file.
39237
39238         Tests for module 'unistr/u32-chr'.
39239         * modules/unistr/u32-chr-tests: New file.
39240         * tests/unistr/test-u32-chr.c: New file.
39241
39242         Tests for module 'unistr/u16-chr'.
39243         * modules/unistr/u16-chr-tests: New file.
39244         * tests/unistr/test-u16-chr.c: New file.
39245
39246         Tests for module 'unistr/u8-chr'.
39247         * modules/unistr/u8-chr-tests: New file.
39248         * tests/unistr/test-u8-chr.c: New file.
39249         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39250
39251         Tests for module 'unistr/u32-cmp2'.
39252         * modules/unistr/u32-cmp2-tests: New file.
39253         * tests/unistr/test-u32-cmp2.c: New file.
39254
39255         Tests for module 'unistr/u16-cmp2'.
39256         * modules/unistr/u16-cmp2-tests: New file.
39257         * tests/unistr/test-u16-cmp2.c: New file.
39258
39259         Tests for module 'unistr/u8-cmp2'.
39260         * modules/unistr/u8-cmp2-tests: New file.
39261         * tests/unistr/test-u8-cmp2.c: New file.
39262         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39263
39264         Tests for module 'unistr/u32-cmp'.
39265         * modules/unistr/u32-cmp-tests: New file.
39266         * tests/unistr/test-u32-cmp.c: New file.
39267
39268         Tests for module 'unistr/u16-cmp'.
39269         * modules/unistr/u16-cmp-tests: New file.
39270         * tests/unistr/test-u16-cmp.c: New file.
39271
39272         Tests for module 'unistr/u8-cmp'.
39273         * modules/unistr/u8-cmp-tests: New file.
39274         * tests/unistr/test-u8-cmp.c: New file.
39275         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39276
39277         Tests for module 'unistr/u32-set'.
39278         * modules/unistr/u32-set-tests: New file.
39279         * tests/unistr/test-u32-set.c: New file.
39280
39281         Tests for module 'unistr/u16-set'.
39282         * modules/unistr/u16-set-tests: New file.
39283         * tests/unistr/test-u16-set.c: New file.
39284
39285         Tests for module 'unistr/u8-set'.
39286         * modules/unistr/u8-set-tests: New file.
39287         * tests/unistr/test-u8-set.c: New file.
39288         * tests/unistr/test-set.h: New file.
39289
39290         Tests for module 'unistr/u32-move'.
39291         * modules/unistr/u32-move-tests: New file.
39292         * tests/unistr/test-u32-move.c: New file.
39293
39294         Tests for module 'unistr/u16-move'.
39295         * modules/unistr/u16-move-tests: New file.
39296         * tests/unistr/test-u16-move.c: New file.
39297
39298         Tests for module 'unistr/u8-move'.
39299         * modules/unistr/u8-move-tests: New file.
39300         * tests/unistr/test-u8-move.c: New file.
39301         * tests/unistr/test-move.h: New file.
39302
39303         Tests for module 'unistr/u32-cpy'.
39304         * modules/unistr/u32-cpy-tests: New file.
39305         * tests/unistr/test-u32-cpy.c: New file.
39306
39307         Tests for module 'unistr/u16-cpy'.
39308         * modules/unistr/u16-cpy-tests: New file.
39309         * tests/unistr/test-u16-cpy.c: New file.
39310
39311         Tests for module 'unistr/u8-cpy'.
39312         * modules/unistr/u8-cpy-tests: New file.
39313         * tests/unistr/test-u8-cpy.c: New file.
39314         * tests/unistr/test-cpy.h: New file.
39315
39316 2010-01-09  Bruno Haible  <bruno@clisp.org>
39317
39318         Tests for module 'unistr/u32-uctomb'.
39319         * modules/unistr/u32-uctomb-tests: New file.
39320         * tests/unistr/test-u32-uctomb.c: New file.
39321
39322         Tests for module 'unistr/u16-uctomb'.
39323         * modules/unistr/u16-uctomb-tests: New file.
39324         * tests/unistr/test-u16-uctomb.c: New file.
39325
39326         Tests for module 'unistr/u8-uctomb'.
39327         * modules/unistr/u8-uctomb-tests: New file.
39328         * tests/unistr/test-u8-uctomb.c: New file.
39329
39330         Tests for module 'unistr/u32-mbtoucr'.
39331         * modules/unistr/u32-mbtoucr-tests: New file.
39332         * tests/unistr/test-u32-mbtoucr.c: New file.
39333
39334         Tests for module 'unistr/u16-mbtoucr'.
39335         * modules/unistr/u16-mbtoucr-tests: New file.
39336         * tests/unistr/test-u16-mbtoucr.c: New file.
39337
39338         Tests for module 'unistr/u8-mbtoucr'.
39339         * modules/unistr/u8-mbtoucr-tests: New file.
39340         * tests/unistr/test-u8-mbtoucr.c: New file.
39341
39342         Tests for module 'unistr/u32-mbtouc'.
39343         * modules/unistr/u32-mbtouc-tests: New file.
39344         * tests/unistr/test-u32-mbtouc.c: New file.
39345
39346         Tests for module 'unistr/u16-mbtouc'.
39347         * modules/unistr/u16-mbtouc-tests: New file.
39348         * tests/unistr/test-u16-mbtouc.c: New file.
39349
39350         Tests for module 'unistr/u8-mbtouc'.
39351         * modules/unistr/u8-mbtouc-tests: New file.
39352         * tests/unistr/test-u8-mbtouc.c: New file.
39353
39354         Tests for module 'unistr/u32-mbtouc-unsafe'.
39355         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39356         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39357         * tests/unistr/test-u32-mbtouc.h: New file.
39358
39359         Tests for module 'unistr/u16-mbtouc-unsafe'.
39360         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39361         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39362         * tests/unistr/test-u16-mbtouc.h: New file.
39363
39364         Tests for module 'unistr/u8-mbtouc-unsafe'.
39365         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39366         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39367         * tests/unistr/test-u8-mbtouc.h: New file.
39368
39369         Tests for module 'unistr/u32-mblen'.
39370         * modules/unistr/u32-mblen-tests: New file.
39371         * tests/unistr/test-u32-mblen.c: New file.
39372
39373         Tests for module 'unistr/u16-mblen'.
39374         * modules/unistr/u16-mblen-tests: New file.
39375         * tests/unistr/test-u16-mblen.c: New file.
39376
39377         Tests for module 'unistr/u8-mblen'.
39378         * modules/unistr/u8-mblen-tests: New file.
39379         * tests/unistr/test-u8-mblen.c: New file.
39380
39381         Tests for module 'unistr/u32-to-u16'.
39382         * modules/unistr/u32-to-u16-tests: New file.
39383         * tests/unistr/test-u32-to-u16.c: New file.
39384
39385         Tests for module 'unistr/u32-to-u8'.
39386         * modules/unistr/u32-to-u8-tests: New file.
39387         * tests/unistr/test-u32-to-u8.c: New file.
39388
39389         Tests for module 'unistr/u16-to-u32'.
39390         * modules/unistr/u16-to-u32-tests: New file.
39391         * tests/unistr/test-u16-to-u32.c: New file.
39392
39393         Tests for module 'unistr/u16-to-u8'.
39394         * modules/unistr/u16-to-u8-tests: New file.
39395         * tests/unistr/test-u16-to-u8.c: New file.
39396
39397         Tests for module 'unistr/u8-to-u32'.
39398         * modules/unistr/u8-to-u32-tests: New file.
39399         * tests/unistr/test-u8-to-u32.c: New file.
39400
39401         Tests for module 'unistr/u8-to-u16'.
39402         * modules/unistr/u8-to-u16-tests: New file.
39403         * tests/unistr/test-u8-to-u16.c: New file.
39404
39405         Tests for module 'unistr/u32-check'.
39406         * modules/unistr/u32-check-tests: New file.
39407         * tests/unistr/test-u32-check.c: New file.
39408
39409         Tests for module 'unistr/u16-check'.
39410         * modules/unistr/u16-check-tests: New file.
39411         * tests/unistr/test-u16-check.c: New file.
39412
39413         Tests for module 'unistr/u8-check'.
39414         * modules/unistr/u8-check-tests: New file.
39415         * tests/unistr/test-u8-check.c: New file.
39416
39417         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39418         (category_equals): New function.
39419         (main): Add more tests.
39420         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39421
39422         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39423
39424 2010-01-10  Bruno Haible  <bruno@clisp.org>
39425
39426         unistr/u*-strcoll: Try harder to distinguish different strings.
39427         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39428         compare s1 and s2 to see if they are different.
39429
39430 2010-01-10  Bruno Haible  <bruno@clisp.org>
39431
39432         unistr/u*-stpncpy: Fix the return value.
39433         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39434         description of the return value consistent with stpncpy in glibc.
39435         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39436         written non-NUL unit.
39437
39438 2010-01-10  Bruno Haible  <bruno@clisp.org>
39439
39440         unistr/u*-next: Add missing dependencies.
39441         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39442         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39443         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39444
39445 2010-01-10  Bruno Haible  <bruno@clisp.org>
39446
39447         unistr/u8-mbsnlen: Fix return value for incomplete character.
39448         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39449         u8_mblen.
39450         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39451         Remove unistr/u8-mblen.
39452         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39453         u16_mblen.
39454         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39455         Remove unistr/u16-mblen.
39456
39457 2010-01-10  Bruno Haible  <bruno@clisp.org>
39458
39459         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39460         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39461         Reported by Brian Gough <bjg@gnu.org> and
39462         Chris Clayton <chris2553@googlemail.com> via
39463         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39464
39465 2010-01-09  Bruno Haible  <bruno@clisp.org>
39466
39467         unistr/u16-to-u32: Reject invalid input.
39468         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39469         u16_mbtouc.
39470         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39471         Remove unistr/u16-mbtouc.
39472
39473         unistr/u16-to-u8: Reject invalid input.
39474         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39475         u16_mbtouc.
39476         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39477         Remove unistr/u16-mbtouc.
39478
39479         unistr/u8-to-u32: Reject invalid input.
39480         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39481         u8_mbtouc.
39482         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39483         Remove unistr/u8-mbtouc.
39484
39485         unistr/u8-to-u16: Reject invalid input.
39486         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39487         u8_mbtouc.
39488         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39489         Remove unistr/u8-mbtouc.
39490
39491 2010-01-09  Bruno Haible  <bruno@clisp.org>
39492
39493         Tests for module 'getlogin'.
39494         * modules/getlogin-tests: New file.
39495         * tests/test-getlogin.c: New file.
39496
39497         New module 'getlogin'.
39498         * lib/unistd.in.h (getlogin): New declaration.
39499         * lib/getlogin.c: New file.
39500         * m4/getlogin.m4: New file.
39501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39502         HAVE_GETLOGIN.
39503         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39504         HAVE_GETLOGIN.
39505         * modules/getlogin: New file.
39506         * doc/posix-functions/getlogin.texi: Mention the new module.
39507         Reported by John W. Eaton <jwe@gnu.org>.
39508
39509 2010-01-09  Bruno Haible  <bruno@clisp.org>
39510
39511         getlogin_r: Support for native Windows.
39512         * lib/getlogin_r.c: Include <windows.h>
39513         (getlogin_r): Implement for native Windows.
39514         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39515         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39516         via John W. Eaton <jwe@gnu.org>.
39517
39518 2010-01-09  Bruno Haible  <bruno@clisp.org>
39519
39520         getlogin_r: Small fixes.
39521         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39522         succeeds.
39523         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39524         before testing whether getlogin_r is declared. No need to set
39525         HAVE_DECL_GETLOGIN_R to 1.
39526         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39527
39528 2010-01-09  Bruno Haible  <bruno@clisp.org>
39529
39530         * lib/unistd.in.h (getlogin_r): Add comment.
39531
39532 2010-01-09  Bruno Haible  <bruno@clisp.org>
39533
39534         Tests for module 'getlogin_r'.
39535         * modules/getlogin_r-tests: New file.
39536         * tests/test-getlogin_r.c: New file.
39537
39538 2010-01-09  Jim Meyering  <meyering@redhat.com>
39539
39540         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39541         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39542         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39543
39544 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39545
39546         * lib/dup2.c (rpl_dup2): Improve comment.
39547
39548 2010-01-08  Eric Blake  <ebb9@byu.net>
39549
39550         maint.mk: allow packages to add makefile @@ exceptions
39551         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39552         (sc_makefile_check): Rename...
39553         (sc_makefile_at_at_check): ...to this, and use hook.
39554
39555         dup2: work around mingw bug
39556         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39557         Reported by Simon Josefsson.
39558
39559 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39560
39561         glob: Fix C++ compilation.
39562         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39563         C++.
39564
39565 2010-01-07  Bruno Haible  <bruno@clisp.org>
39566
39567         Fix indentation of wctype.in.h, broken since 2007-01-06.
39568         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39569
39570 2010-01-07  Bruno Haible  <bruno@clisp.org>
39571
39572         mbslen: Avoid collision with system function.
39573         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39574         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39575         * m4/mbslen.m4: New file.
39576         * modules/mbslen (Files): Add it.
39577         (configure.ac): Invoke gl_MBSLEN.
39578         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39579         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39580         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39581         via Ian Beckwith <ianb@erislabs.net>.
39582
39583 2010-01-07  Bruno Haible  <bruno@clisp.org>
39584
39585         dirent: Document the last fix.
39586         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39587
39588 2010-01-07  Bruno Haible  <bruno@clisp.org>
39589
39590         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39591         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39592         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39593         va_list are defined.
39594         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39595         Reported by Eric Blake.
39596
39597 2010-01-07  Bruno Haible  <bruno@clisp.org>
39598
39599         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39600         * modules/xlist (Depends-on): Add 'list',
39601         * modules/xoset (Depends-on): Add 'oset'.
39602         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39603
39604 2010-01-07  Bruno Haible  <bruno@clisp.org>
39605
39606         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39607         * doc/posix-functions/strncasecmp.texi: Likewise.
39608
39609 2010-01-07  Bruno Haible  <bruno@clisp.org>
39610
39611         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39612
39613 2010-01-07  John W. Eaton  <jwe@octave.org>
39614
39615         wctype: allow C++ use
39616         * lib/wctype.in.h: Add extern "C" block for C++.
39617
39618 2010-01-06  Eric Blake  <ebb9@byu.net>
39619
39620         maint.mk: detect incorrect GFDL usage
39621         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39622
39623 2010-01-06  Jim Meyering  <meyering@redhat.com>
39624         and Eric Blake  <ebb9@byu.net>
39625
39626         maint.mk: ignore multi-line copyright in NEWS
39627         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39628
39629 2010-01-06  Eric Blake  <ebb9@byu.net>
39630
39631         select: add missing dependency
39632         * modules/select-tests (Depends-on): Move sockets dependency...
39633         * modules/select (Depends-on): ...here.
39634         Reported by Ian Beckwith.
39635
39636         doc: regenerate INSTALL
39637         * doc/INSTALL: Reflect recent autoconf update.
39638         * doc/INSTALL.ISO: Likewise.
39639         * doc/INSTALL.UTF-8: Likewise.
39640
39641         pread: fix compilation on glibc
39642         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39643         Reported by Ralf Wildenhues.
39644
39645         dirent: fix test failure
39646         * lib/dirent.in.h (includes): Guarantee ino_t.
39647         Reported by Ralf Wildenhues.
39648
39649 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39650
39651         linkat, renameat: avoid bad free
39652         * lib/at-func2.c (at_func2): Fix typo.
39653         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39654
39655 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39656
39657         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39658         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39659         to avoid failure of symlink test later.
39660
39661 2010-01-06  Eric Blake  <ebb9@byu.net>
39662
39663         stdio, unistd: guarantee ssize_t
39664         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39665         2008 are exposed when needed.
39666         * lib/stdio.in.h (includes): Likewise.
39667         Reported by Ralf Wildenhues.
39668
39669 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39670
39671         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39672         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39673         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39674
39675 2010-01-06  Jim Meyering  <meyering@redhat.com>
39676
39677         readtokens: this module *does* require xalloc.h
39678         It uses only functions that were omitted by the old syntax-check rule.
39679         * lib/readtokens.c: Include "xalloc.h" once again.
39680         * modules/readtokens (Depends-on): Add xalloc.
39681         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39682
39683 2010-01-05  Eric Blake  <ebb9@byu.net>
39684
39685         maint: support 'make announcement' from a VPATH build
39686         * top/maint.mk (announcement): Look for correct NEWS file.
39687
39688 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39689
39690         utimens (fdutimens): ignore a negative FD, per contract
39691         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39692         when we have a valid file descriptor.  Otherwise, using a brand
39693         new glibc (with just-patched futimens that now fails with EBADF)
39694         would cause this function to fail with ENOSYS.
39695         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39696         See also http://bugzilla.redhat.com/552320.
39697
39698 2010-01-05  Eric Blake  <ebb9@byu.net>
39699
39700         strcase: document what it provides
39701         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39702         gnulib module.
39703         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39704         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39705
39706 2010-01-05  Jim Meyering  <meyering@redhat.com>
39707
39708         maint: remove useless inclusions of "xalloc.h"
39709         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39710         * lib/readtokens.c: Likewise.
39711         * lib/same.c: Likewise.
39712         * modules/getloadavg (Depends-on): Remove xalloc.
39713         * modules/readtokens: Likewise.
39714         * modules/same: Likewise.
39715
39716         maint.mk: include 4 more function names in alloca.h-checking regexp
39717         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39718         regexp.  Before, we would give a false-positive (saying alloca.h
39719         is included unnecessarily) when the only uses involved omitted symbols.
39720
39721         xalloc.h: use consistent formatting
39722         * lib/xalloc.h: Move declarations to start in the first column.
39723
39724 2010-01-05  Eric Blake  <ebb9@byu.net>
39725
39726         mkdir: avoid xalloc
39727         * lib/mkdir.c (includes): Drop unused header.
39728         Reported by John W. Eaton.
39729
39730 2010-01-04  Jim Meyering  <meyering@redhat.com>
39731
39732         nl_langinfo: avoid configure-time syntax error
39733         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39734         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39735         the empty string.  Don't let that provoke a shell syntax error.
39736
39737         regcomp, regexec, fnmatch: avoid array bounds read error
39738         * lib/regcomp.c (build_equiv_class): From glibc:
39739         Use only the low 24 bits of a findidx return value as an index
39740         into the weights array.  Patch by Ulrich Drepper:
39741         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39742         * lib/regexec.c (check_node_accept_bytes): Likewise.
39743         * lib/fnmatch_loop.c (FCT): Likewise.
39744
39745         regcomp: skip collseq lookup when there are no rules
39746         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39747         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39748
39749         regcomp: recognize ill-formed { } expressions
39750         * lib/regcomp.c (parse_dup_op): From glibc:
39751         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39752
39753         regcomp: fix typo in comment
39754         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39755         s/satisfy/satisfies/.
39756
39757         regcomp: sync from glibc: remove dead store
39758         * lib/regcomp.c (duplicate_node_closure): Remove useless
39759         search_duplicated_node call and dead store.
39760
39761         regcomp: sync from glibc; always use nl_langinfo
39762         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39763         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39764         * modules/regex (Depends-on): Add nl_langinfo.
39765
39766 2010-01-04  Eric Blake  <ebb9@byu.net>
39767
39768         fdopendir: fix configure test
39769         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39770
39771 2010-01-01  Bruno Haible  <bruno@clisp.org>
39772
39773         wchar: Remove unused configure check.
39774         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39775
39776 2010-01-01  Eric Blake  <ebb9@byu.net>
39777
39778         headers: make check of system header explicit
39779         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39780         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39781         ourselves.
39782         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39784         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39785         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39786         internals.
39787         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39788         missing.
39789         Suggested by Bruno Haible.
39790
39791 2010-01-01  Jim Meyering  <meyering@redhat.com>
39792
39793         ChangeLog: tweak to eliminate unnecessary copyright line
39794         * ChangeLog: Remove a copyright line that was mistakenly updated
39795         by today's update-copyright run.  Reported by Eric Blake.
39796
39797         test-update-copyright: don't let envvar setting cause test failure
39798         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39799
39800 2010-01-01  Bruno Haible  <bruno@clisp.org>
39801
39802         localename: Avoid gcc warning.
39803         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
39804         function if it is not used.
39805
39806 2010-01-01  Jim Meyering  <meyering@redhat.com>
39807
39808         update nearly all FSF copyright year lists to include 2010
39809         Use the same procedure as for 2009, outlined in
39810         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
39811
39812         version-etc: set COPYRIGHT_YEAR to 2010
39813         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
39814
39815 2009-12-31  Eric Blake  <ebb9@byu.net>
39816
39817         doc: correct availability of cygwin 1.5.x getopt
39818         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
39819         variables.
39820         * doc/posix-functions/opterr.texi (opterr): Likewise.
39821         * doc/posix-functions/optind.texi (optind): Likewise.
39822         * doc/posix-functions/optopt.texi (optopt): Likewise.
39823         * doc/posix-functions/tzname.texi (tzname): Likewise.
39824
39825         openat: update maintainer
39826         * modules/openat (Maintainer): Add myself.
39827
39828         utimens: avoid shadowing warning
39829         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
39830         buffers into one, to avoid shadowing, as well as avoiding a
39831         redundant stat.
39832         Reported by Jim Meyering.
39833
39834         test-dup2: avoid compiler warning
39835         * tests/test-dup2.c (is_inheritable): Only define if used.
39836
39837 2010-01-01  Bruno Haible  <bruno@clisp.org>
39838
39839         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
39840         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
39841         defined, use wctomb instead of wcrtomb.
39842
39843 2010-01-01  Bruno Haible  <bruno@clisp.org>
39844
39845         iconv: Reject native Solaris iconv.
39846         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39847         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39848
39849 2009-12-31  Bruno Haible  <bruno@clisp.org>
39850
39851         * tests/test-signal.c (main): Remove test of 'SIG'.
39852
39853 2009-12-31  Bruno Haible  <bruno@clisp.org>
39854
39855         spawn: Fix incomplete fix.
39856         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39857         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39858         warnings for GNULIB_POSIXCHECK again.
39859         Reported by Eric Blake.
39860
39861 2009-12-31  Bruno Haible  <bruno@clisp.org>
39862
39863         Avoid namespace pollution on glibc systems.
39864         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39865         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39866         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39867         glibc systems.
39868
39869 2009-12-31  Bruno Haible  <bruno@clisp.org>
39870
39871         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39872         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39873         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39874         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39875         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39876         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39877         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39878
39879 2009-12-31  Bruno Haible  <bruno@clisp.org>
39880
39881         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39882         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39883         afterwards.
39884
39885 2009-12-31  Bruno Haible  <bruno@clisp.org>
39886
39887         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39888         SYS_UTSNAME_H.
39889
39890 2009-12-31  Bruno Haible  <bruno@clisp.org>
39891
39892         spawn: Fix misapplied patch.
39893         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39894         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39895         warnings for GNULIB_POSIXCHECK.
39896
39897 2009-12-31  Bruno Haible  <bruno@clisp.org>
39898
39899         times: Update after sys_times changed.
39900         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39901         * modules/times (Files): Add it.
39902         (configure.ac): Invoke gl_FUNC_TIMES.
39903
39904 2009-12-31  Bruno Haible  <bruno@clisp.org>
39905
39906         Use AC_C_INLINE where necessary.
39907         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39908         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39909         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39910         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39911         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39912         * m4/mbiter.m4 (gl_MBITER): Likewise.
39913         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39914         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39915         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39916         * modules/u64 (configure.ac): Likewise.
39917
39918 2009-12-31  Bruno Haible  <bruno@clisp.org>
39919
39920         Use AC_C_INLINE instead of module 'inline' where possible.
39921         * modules/inline (Description): Clarify purpose.
39922         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39923         * modules/count-one-bits (Depends-on): Remove inline.
39924         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39925         * modules/openat (Depends-on): Remove inline.
39926         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39927         instead of depending on module 'inline'.
39928         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39929         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39930         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39931         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39932         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39933         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39934         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39935         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39936         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39937         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39938         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39939         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39940         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39941         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39942         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39943         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39944         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39945         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39946         Likewise.
39947         * modules/unictype/property-ascii-hex-digit (Depends-on,
39948         configure.ac): Likewise.
39949         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39950         configure.ac): Likewise.
39951         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39952         configure.ac): Likewise.
39953         * modules/unictype/property-bidi-block-separator (Depends-on,
39954         configure.ac): Likewise.
39955         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39956         configure.ac): Likewise.
39957         * modules/unictype/property-bidi-common-separator (Depends-on,
39958         configure.ac): Likewise.
39959         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39960         Likewise.
39961         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39962         configure.ac): Likewise.
39963         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39964         configure.ac): Likewise.
39965         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39966         configure.ac): Likewise.
39967         * modules/unictype/property-bidi-european-digit (Depends-on,
39968         configure.ac): Likewise.
39969         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39970         configure.ac): Likewise.
39971         * modules/unictype/property-bidi-left-to-right (Depends-on,
39972         configure.ac): Likewise.
39973         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39974         configure.ac): Likewise.
39975         * modules/unictype/property-bidi-other-neutral (Depends-on,
39976         configure.ac): Likewise.
39977         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39978         Likewise.
39979         * modules/unictype/property-bidi-segment-separator (Depends-on,
39980         configure.ac): Likewise.
39981         * modules/unictype/property-bidi-whitespace (Depends-on,
39982         configure.ac): Likewise.
39983         * modules/unictype/property-combining (Depends-on, configure.ac):
39984         Likewise.
39985         * modules/unictype/property-composite (Depends-on, configure.ac):
39986         Likewise.
39987         * modules/unictype/property-currency-symbol (Depends-on,
39988         configure.ac): Likewise.
39989         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39990         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39991         Likewise.
39992         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39993         configure.ac): Likewise.
39994         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39995         Likewise.
39996         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39997         Likewise.
39998         * modules/unictype/property-extender (Depends-on, configure.ac):
39999         Likewise.
40000         * modules/unictype/property-format-control (Depends-on, configure.ac):
40001         Likewise.
40002         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40003         Likewise.
40004         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40005         Likewise.
40006         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40007         Likewise.
40008         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40009         Likewise.
40010         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40011         Likewise.
40012         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40013         Likewise.
40014         * modules/unictype/property-id-start (Depends-on, configure.ac):
40015         Likewise.
40016         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40017         Likewise.
40018         * modules/unictype/property-ids-binary-operator (Depends-on,
40019         configure.ac): Likewise.
40020         * modules/unictype/property-ids-trinary-operator (Depends-on,
40021         configure.ac): Likewise.
40022         * modules/unictype/property-ignorable-control (Depends-on,
40023         configure.ac): Likewise.
40024         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40025         Likewise.
40026         * modules/unictype/property-join-control (Depends-on, configure.ac):
40027         Likewise.
40028         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40029         Likewise.
40030         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40031         Likewise.
40032         * modules/unictype/property-logical-order-exception (Depends-on,
40033         configure.ac): Likewise.
40034         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40035         Likewise.
40036         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40037         * modules/unictype/property-non-break (Depends-on, configure.ac):
40038         Likewise.
40039         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40040         Likewise.
40041         * modules/unictype/property-numeric (Depends-on, configure.ac):
40042         Likewise.
40043         * modules/unictype/property-other-alphabetic (Depends-on,
40044         configure.ac): Likewise.
40045         * modules/unictype/property-other-default-ignorable-code-point
40046         (Depends-on, configure.ac): Likewise.
40047         * modules/unictype/property-other-grapheme-extend (Depends-on,
40048         configure.ac): Likewise.
40049         * modules/unictype/property-other-id-continue (Depends-on,
40050         configure.ac): Likewise.
40051         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40052         Likewise.
40053         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40054         Likewise.
40055         * modules/unictype/property-other-math (Depends-on, configure.ac):
40056         Likewise.
40057         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40058         Likewise.
40059         * modules/unictype/property-paired-punctuation (Depends-on,
40060         configure.ac): Likewise.
40061         * modules/unictype/property-paragraph-separator (Depends-on,
40062         configure.ac): Likewise.
40063         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40064         Likewise.
40065         * modules/unictype/property-pattern-white-space (Depends-on,
40066         configure.ac): Likewise.
40067         * modules/unictype/property-private-use (Depends-on, configure.ac):
40068         Likewise.
40069         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40070         Likewise.
40071         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40072         Likewise.
40073         * modules/unictype/property-radical (Depends-on, configure.ac):
40074         Likewise.
40075         * modules/unictype/property-sentence-terminal (Depends-on,
40076         configure.ac): Likewise.
40077         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40078         Likewise.
40079         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40080         * modules/unictype/property-terminal-punctuation (Depends-on,
40081         configure.ac): Likewise.
40082         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40083         Likewise.
40084         * modules/unictype/property-unassigned-code-value (Depends-on,
40085         configure.ac): Likewise.
40086         * modules/unictype/property-unified-ideograph (Depends-on,
40087         configure.ac): Likewise.
40088         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40089         Likewise.
40090         * modules/unictype/property-variation-selector (Depends-on,
40091         configure.ac): Likewise.
40092         * modules/unictype/property-white-space (Depends-on, configure.ac):
40093         Likewise.
40094         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40095         Likewise.
40096         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40097         Likewise.
40098         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40099         Likewise.
40100         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40101         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40102         Likewise.
40103
40104 2009-12-31  Bruno Haible  <bruno@clisp.org>
40105
40106         Remove unnecessary AC_C_INLINE invocation.
40107         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40108         since 2009-08-21.
40109
40110 2009-12-31  Jim Meyering  <meyering@redhat.com>
40111
40112         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40113         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40114         With this change, we can all remove the gpg_key_ID = ... definition
40115         from our respective cfg.mk files.
40116
40117         maint.mk: create announcement template in ~/, not in /tmp
40118         * top/maint.mk (emit_upload_commands): Adjust.
40119         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40120         Remove temporary file, .ci-msg.
40121
40122 2009-12-31  Eric Blake  <ebb9@byu.net>
40123
40124         link-warning: always build headers with link warnings
40125         * modules/arpa_inet (Makefile.am): Always build replacement
40126         header.
40127         * modules/ctype (Makefile.am): Likewise.
40128         * modules/dirent (Makefile.am): Likewise.
40129         * modules/inttypes (Makefile.am): Likewise.
40130         * modules/langinfo (Makefile.am): Likewise.
40131         * modules/locale (Makefile.am): Likewise.
40132         * modules/spawn (Makefile.am): Likewise.
40133         * modules/sys_file (Makefile.am): Likewise.
40134         * modules/sys_ioctl (Makefile.am): Likewise.
40135         * modules/sys_select (Makefile.am): Likewise.
40136         * modules/sys_socket (Makefile.am): Likewise.
40137         * modules/sys_times (Makefile.am): Likewise.
40138         * modules/sys_utsname (Makefile.am): Likewise.
40139         * modules/sys_wait (Makefile.am): Likewise.
40140         * modules/wchar (Makefile.am): Likewise.
40141         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40142         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40143         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40144         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40145         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40146         Likewise.
40147         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40148         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40149         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40150         Likewise.
40151         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40152         Likewise.
40153         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40154         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40155         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40156         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40157         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40158         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40159         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40160         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40161         (gl_WCHAR_H_DEFAULTS): Likewise.
40162
40163 2009-12-31  Eric Blake  <ebb9@byu.net>
40164
40165         signal, spawn: use link warnings
40166         * lib/signal.in.h (sigset_t): Make unconditional.
40167         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40168         (sigpending, sigprocmask, sigaction): Add link warnings.
40169         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40170         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40171         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40172         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40173         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40174         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40175         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40176         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40177         (posix_spawn_file_actions_destroy)
40178         (posix_spawn_file_actions_addopen)
40179         (posix_spawn_file_actions_addclose)
40180         (posix_spawn_file_actions_adddup2): Likewise.
40181         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40182         * tests/test-signal.c (main): Enhance test.
40183
40184         spawn: improve wrapper support
40185         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40186         (gl_SPAWN_H_DEFAULTS): New defaults.
40187         * modules/spawn (Makefile.am): Substitute them.
40188         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40189         Only declare if missing or broken.
40190
40191         sys_times, sys_utsname: use include_next
40192         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40193         header.
40194         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40195         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40196         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40197         * modules/sys_times (Depends-on): Add include_next.
40198         (Makefile.am): Substitute additional values.
40199         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40200         * lib/sys_times.in.h (includes): Include native header, if
40201         available.
40202         * lib/sys_utsname.in.h (includes): Likewise.
40203         * tests/test-sys_times.c (main): Enhance test.
40204
40205         fdutimensat: revert prior patch
40206         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40207         utimens.h.
40208         Reported by Bruno Haible.
40209
40210 2009-12-30  Eric Blake  <ebb9@byu.net>
40211
40212         sys_wait: drop link-warning dependency
40213         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40214         link-warning efforts.
40215         * lib/sys_wait.in.h: Likewise.
40216
40217         fdutimensat: remove bogus dependency
40218         * modules/fdutimensat (Depends-on): Drop inline.
40219
40220         unistd: fix typo
40221         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40222
40223 2009-12-30  Bruno Haible  <bruno@clisp.org>
40224
40225         Fix compilation error with Solaris cc.
40226         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40227         * lib/unicase/u16-is-invariant.c: Likewise.
40228         * lib/unicase/u32-is-invariant.c: Likewise.
40229         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40230
40231 2009-12-30  Bruno Haible  <bruno@clisp.org>
40232
40233         Fix test crash.
40234         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40235         locales.
40236         Reported by Simon Josefsson <simon@josefsson.org>.
40237
40238 2009-12-30  Bruno Haible  <bruno@clisp.org>
40239
40240         Fix compilation error on most platforms.
40241         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40242         Reported by Simon Josefsson <simon@josefsson.org>
40243         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40244
40245 2009-12-30  Eric Blake  <ebb9@byu.net>
40246
40247         futimens, utimensat: work around ntfs-3g bug
40248         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40249         a ctime bug is present, and expand workaround to cover ntfs-3g.
40250         * lib/utimens.c (fdutimens, lutimens): Likewise.
40251         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40252         (validate_timespec): Adjust return value.
40253         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40254         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40255         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40256
40257 2009-12-29  Eric Blake  <ebb9@byu.net>
40258
40259         link-warning: make usage consistent
40260         * modules/ctype (Depends-on): Add link-warning.
40261         (Makefile.am): Update rules accordingly.
40262         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40263         * modules/locale (Depends-on, Makefile.am): Likewise.
40264         * modules/sys_file (Makefile.am): Likewise.
40265         * modules/getopt-posix (Makefile.am): Delete unused link warning
40266         efforts.
40267         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40268         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40269         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40270         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40271
40272         stdio: remove unused variables
40273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40274         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40275         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40276
40277         tests: test more substitute headers
40278         * modules/ctype-tests: New file.
40279         * modules/dirent-tests: Likewise.
40280         * modules/spawn-tests: Likewise.
40281         * modules/sys_file-tests: Likewise.
40282         * modules/sys_ioctl-tests: Likewise.
40283         * modules/sys_wait-tests: Likewise.
40284         * tests/test-ctype.c: Likewise.
40285         * tests/test-dirent.c: Likewise.
40286         * tests/test-spawn.c: Likewise.
40287         * tests/test-sys_file.c: Likewise.
40288         * tests/test-sys_ioctl.c: Likewise.
40289         * tests/test-sys_wait.c: Likewise.
40290         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40291         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40292         whether or not flock is in use.
40293
40294         tests: remove License section from module
40295         * modules/arpa_inet-tests: Remove unneeded section.
40296         * modules/byteswap-tests: Likewise.
40297         * modules/ceilf-tests: Likewise.
40298         * modules/ceill-tests: Likewise.
40299         * modules/crypto/des-tests: Likewise.
40300         * modules/crypto/gc-arcfour-tests: Likewise.
40301         * modules/crypto/gc-arctwo-tests: Likewise.
40302         * modules/crypto/gc-des-tests: Likewise.
40303         * modules/crypto/gc-hmac-md5-tests: Likewise.
40304         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40305         * modules/crypto/gc-md2-tests: Likewise.
40306         * modules/crypto/gc-md4-tests: Likewise.
40307         * modules/crypto/gc-md5-tests: Likewise.
40308         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40309         * modules/crypto/gc-rijndael-tests: Likewise.
40310         * modules/crypto/gc-sha1-tests: Likewise.
40311         * modules/crypto/gc-tests: Likewise.
40312         * modules/crypto/md2-tests: Likewise.
40313         * modules/crypto/md4-tests: Likewise.
40314         * modules/fcntl-h-tests: Likewise.
40315         * modules/floorf-tests: Likewise.
40316         * modules/floorl-tests: Likewise.
40317         * modules/frexp-nolibm-tests: Likewise.
40318         * modules/frexp-tests: Likewise.
40319         * modules/frexpl-nolibm-tests: Likewise.
40320         * modules/frexpl-tests: Likewise.
40321         * modules/getaddrinfo-tests: Likewise.
40322         * modules/inttypes-tests: Likewise.
40323         * modules/isfinite-tests: Likewise.
40324         * modules/isinf-tests: Likewise.
40325         * modules/ldexpl-tests: Likewise.
40326         * modules/locale-tests: Likewise.
40327         * modules/math-tests: Likewise.
40328         * modules/netdb-tests: Likewise.
40329         * modules/netinet_in-tests: Likewise.
40330         * modules/printf-frexp-tests: Likewise.
40331         * modules/printf-frexpl-tests: Likewise.
40332         * modules/priv-set-tests: Likewise.
40333         * modules/random_r-tests: Likewise.
40334         * modules/round-tests: Likewise.
40335         * modules/roundf-tests: Likewise.
40336         * modules/roundl-tests: Likewise.
40337         * modules/search-tests: Likewise.
40338         * modules/select-tests: Likewise.
40339         * modules/signal-tests: Likewise.
40340         * modules/stdbool-tests: Likewise.
40341         * modules/stddef-tests: Likewise.
40342         * modules/stdint-tests: Likewise.
40343         * modules/stdio-tests: Likewise.
40344         * modules/stdlib-tests: Likewise.
40345         * modules/string-tests: Likewise.
40346         * modules/strings-tests: Likewise.
40347         * modules/sys_select-tests: Likewise.
40348         * modules/sys_socket-tests: Likewise.
40349         * modules/sys_stat-tests: Likewise.
40350         * modules/sys_time-tests: Likewise.
40351         * modules/sys_utsname-tests: Likewise.
40352         * modules/sysexits-tests: Likewise.
40353         * modules/time-tests: Likewise.
40354         * modules/trunc-tests: Likewise.
40355         * modules/truncf-tests: Likewise.
40356         * modules/truncl-tests: Likewise.
40357         * modules/tsearch-tests: Likewise.
40358         * modules/unistd-tests: Likewise.
40359         * modules/wchar-tests: Likewise.
40360         * modules/wctype-tests: Likewise.
40361
40362         tests: fix license on several tests
40363         * tests/test-des.c: Update to GPLv3+.
40364         * tests/test-flock.c: Likewise.
40365         * tests/test-fsync.c: Likewise.
40366         * tests/test-futimens.h: Likewise.
40367         * tests/test-gc-arcfour.c: Likewise.
40368         * tests/test-gc-arctwo.c: Likewise.
40369         * tests/test-gc-des.c: Likewise.
40370         * tests/test-gc-hmac-md5.c: Likewise.
40371         * tests/test-gc-hmac-sha1.c: Likewise.
40372         * tests/test-gc-md2.c: Likewise.
40373         * tests/test-gc-md4.c: Likewise.
40374         * tests/test-gc-md5.c: Likewise.
40375         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40376         * tests/test-gc-rijndael.c: Likewise.
40377         * tests/test-gc-sha1.c: Likewise.
40378         * tests/test-gc.c: Likewise.
40379         * tests/test-getcwd.c: Likewise.
40380         * tests/test-link.c: Likewise.
40381         * tests/test-link.h: Likewise.
40382         * tests/test-lutimens.h: Likewise.
40383         * tests/test-md2.c: Likewise.
40384         * tests/test-md4.c: Likewise.
40385         * tests/test-mkdir.h: Likewise.
40386         * tests/test-rename.c: Likewise.
40387         * tests/test-rename.h: Likewise.
40388         * tests/test-safe-alloc.c: Likewise.
40389         * tests/test-utimens-common.h: Likewise.
40390         * tests/test-utimens.h: Likewise.
40391
40392         maint: sync license texts
40393         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40394         * doc/gpl-3.0.texi: Revert copyright year update.
40395         * doc/lgpl-3.0.texi: Likewise.
40396
40397 2009-12-29  Jim Meyering  <meyering@redhat.com>
40398
40399         update nearly all FSF copyright year lists to include 2009
40400         The files named by the following are exempted:
40401             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40402               test -f "$dst" && { echo "$dst"; continue; }
40403               test -d "$dst" || continue
40404               echo "$dst"/$(basename "$src")
40405             done > exempt
40406             git ls-files tests/unictype >> exempt
40407         In the remaining files, convert to all-interval notation if
40408         - there is already at least one year interval like 2000-2003
40409         - the file is maintained by me
40410         - the file is in lib/uni*/, where that style already prevails
40411         Otherwise, use update-copyright's default.
40412
40413 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40414         and Eric Blake  <ebb9@byu.net>
40415
40416         tests: don't require debug system() to pass
40417         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40418         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40419         * tests/test-unlink.h (test_unlink_func): Likewise.
40420         * tests/test-fstatat.c (main): ...into callers.
40421         * tests/test-lstat.c (main): Likewise.
40422         * tests/test-rmdir.c (main): Likewise.
40423         * tests/test-unlink.c (main): Likewise.
40424         * tests/test-unlinkat.c (main): Likewise.
40425         * tests/test-areadlink-with-size.c (main): Don't require a
40426         debug-only system call to pass, aiding cross-testing to mingw.
40427         * tests/test-areadlink.c (main): Likewise.
40428         * tests/test-areadlinkat-with-size.c (main): Likewise.
40429         * tests/test-areadlinkat.c (main): Likewise.
40430         * tests/test-canonicalize-lgpl.c (main): Likewise.
40431         * tests/test-canonicalize.c (main): Likewise.
40432         * tests/test-chown.c (main): Likewise.
40433         * tests/test-fchownat.c (main): Likewise.
40434         * tests/test-lchown.c (main): Likewise.
40435         * tests/test-fdutimensat.c (main): Likewise.
40436         * tests/test-futimens.c (main): Likewise.
40437         * tests/test-link.c (main): Likewise.
40438         * tests/test-linkat.c (main): Likewise.
40439         * tests/test-mkdir.c (main): Likewise.
40440         * tests/test-mkdirat.c (main): Likewise.
40441         * tests/test-mkfifo.c (main): Likewise.
40442         * tests/test-mkfifoat.c (main): Likewise.
40443         * tests/test-mknod.c (main): Likewise.
40444         * tests/test-readlink.c (main): Likewise.
40445         * tests/test-remove.c (main): Likewise.
40446         * tests/test-rename.c (main): Likewise.
40447         * tests/test-renameat.c (main): Likewise.
40448         * tests/test-symlink.c (main): Likewise.
40449         * tests/test-symlinkat.c (main): Likewise.
40450         * tests/test-utimens.c (main): Likewise.
40451         * tests/test-utimensat.c (main): Likewise.
40452
40453 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40454
40455         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40456         on $(UNUSED_PARAMETER_H) to avoid build failure.
40457
40458 2009-12-28  Jim Meyering  <meyering@redhat.com>
40459
40460         update-copyright: you may specify a max. line length other than 72
40461         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40462
40463         maint: use consistent FSF copyright line syntax
40464         * lib/posixtm.c: Add missing comma in FSF copyright line.
40465         * lib/posixtm.h: Likewise.
40466         * lib/getugroups.c: Add missing ", Inc.".
40467
40468         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40469         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40470         FSF copyright line.  Remove trailing blanks.
40471
40472 2009-12-28  Eric Blake  <ebb9@byu.net>
40473
40474         test-dup2: reduce dependencies
40475         * modules/cloexec (Configure.ac): Set witness.
40476         * modules/dup2-tests (Depends-on): Drop cloexec.
40477         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40478         not present.
40479         Suggested by Bruno Haible.
40480
40481 2009-12-26  Bruno Haible  <bruno@clisp.org>
40482
40483         Remove an unneeded dependency.
40484         * modules/fseterr (Depends-on): Remove dup2.
40485
40486 2009-12-26  Eric Blake  <ebb9@byu.net>
40487
40488         tests: use macros.h in more places
40489         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40490         (ASSERT_STREAM): Provide default of stderr.
40491         * tests/test-dirent-safer.c: Include macros.h, using alternate
40492         stream for assertions.
40493         * tests/test-dup-safer.c: Likewise.
40494         * tests/test-freopen-safer.c: Likewise.
40495         * tests/test-getopt.c: Likewise.
40496         * tests/test-openat-safer.c: Likewise.
40497         * tests/test-pipe.c: Likewise.
40498         * tests/test-popen-safer.c: Likewise.
40499         * modules/dirent-safer-tests (Files): Include macros.h.
40500         * modules/unistd-safer-tests (Files): Likewise.
40501         * modules/freopen-safer-tests (Files): Likewise.
40502         * modules/getopt-posix-tests (Files): Likewise.
40503         * modules/openat-safer-tests (Files): Likewise.
40504         * modules/pipe-tests (Files): Likewise.
40505
40506 2009-12-26  Bruno Haible  <bruno@clisp.org>
40507
40508         javacomp: Portability fix.
40509         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40510         that it also works on Solaris.
40511
40512 2009-12-26  Bruno Haible  <bruno@clisp.org>
40513
40514         localename: Fix storage allocation of gl_locale_name_thread's result.
40515         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40516         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40517         all platforms that have 'uselocale'.
40518         (gl_locale_name_thread_unsafe): New function, extracted from
40519         gl_locale_name_thread.
40520         (gl_locale_name_thread): Call struniq on all platforms that have
40521         'uselocale'.
40522         * tests/test-localename.c (test_locale_name_thread): Check that the
40523         resulting strings are permanently allocated.
40524         * modules/localename-tests (Depends-on): Add strdup.
40525
40526 2009-12-26  Bruno Haible  <bruno@clisp.org>
40527
40528         * tests/test-localename.c (categories): Fill in the strings.
40529
40530 2009-12-26  Jim Meyering  <meyering@redhat.com>
40531
40532         isdir: complete the removal of m4/isdir.m4
40533         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40534
40535         isdir: clean up, since at least grep still uses it
40536         * lib/isdir.c: Include "isdir.h".
40537         (S_ISDIR): Remove now-unneeded definition.
40538         * modules/isdir (Files): Add lib/isdir.h.
40539         * lib/isdir.h: New file, with declaration.
40540         * m4/isdir.m4: Remove file -- unneeded.
40541
40542 2009-12-25  Bruno Haible  <bruno@clisp.org>
40543
40544         selinux-h: Make generated .h files standalone.
40545         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40546         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40547         * lib/se-selinux.in.h: Likewise.
40548         * modules/selinux-h (Depends-on): Add unused-parameter.
40549         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40550         selinux/selinux.h and selinux/context.h.
40551         Suggested by Eric Blake.
40552
40553 2009-12-25  Bruno Haible  <bruno@clisp.org>
40554
40555         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40556         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40557         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40558         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40559         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40560
40561 2009-12-24  Bruno Haible  <bruno@clisp.org>
40562
40563         openat: Fix warning.
40564         * lib/openat-proc.c: Include <unistd.h>.
40565
40566 2009-12-24  Bruno Haible  <bruno@clisp.org>
40567
40568         New module 'unused-parameter'.
40569         * build-aux/unused-parameter.h: New file, extracted from earlier
40570         gnulib-common.m4.
40571         * modules/unused-parameter: New file.
40572         * lib/unistr.h: Include unused-parameter.h.
40573         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40574         _GL_UNUSED.
40575         * modules/unistr/base (Depends-on): Add unused-parameter.
40576
40577 2009-12-24  Bruno Haible  <bruno@clisp.org>
40578
40579         Add missing dependencies to 'extensions' module.
40580         * m4/extensions.m4: Add comment.
40581         * modules/accept4 (Depends-on): Add extensions.
40582         * modules/dup3 (Depends-on): Likewise.
40583         * modules/fcntl (Depends-on): Likewise.
40584         * modules/futimens (Depends-on): Likewise.
40585         * modules/mknod (Depends-on): Likewise.
40586         * modules/pipe2 (Depends-on): Likewise.
40587         * modules/stat-time (Depends-on): Likewise.
40588         * modules/strcasestr-simple (Depends-on): Likewise.
40589         * modules/strsignal (Depends-on): Likewise.
40590         * modules/utimensat (Depends-on): Likewise.
40591         * modules/localcharset (Depends-on): Likewise. Needed because of
40592         gl_FCNTL_O_FLAGS.
40593         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40594         AC_TYPE_MBSTATE_T.
40595         * modules/wcsnrtombs (Depends-on): Likewise.
40596         * modules/wcsrtombs (Depends-on): Likewise.
40597
40598 2009-12-24  Bruno Haible  <bruno@clisp.org>
40599
40600         binary-io: Avoid gcc warning due to SET_BINARY.
40601         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40602         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40603
40604 2009-12-24  Bruno Haible  <bruno@clisp.org>
40605
40606         Avoid future namespace pollution on glibc systems.
40607         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40608         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40609         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40610         glibc systems.
40611
40612 2009-12-24  Bruno Haible  <bruno@clisp.org>
40613
40614         Refactor common macros used in tests.
40615         * tests/macros.h: New file.
40616         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40617         and/or <stdlib.h>, if appropriate.
40618         (ASSERT, SIZEOF): Remove macros.
40619         * tests/test-areadlink-with-size.c: Likewise.
40620         * tests/test-areadlinkat.c: Likewise.
40621         * tests/test-areadlinkat-with-size.c: Likewise.
40622         * tests/test-argmatch.c: Likewise.
40623         * tests/test-argv-iter.c: Likewise.
40624         * tests/test-array-mergesort.c: Likewise.
40625         * tests/test-array_list.c: Likewise.
40626         * tests/test-array_oset.c: Likewise.
40627         * tests/test-avltree_list.c: Likewise.
40628         * tests/test-avltree_oset.c: Likewise.
40629         * tests/test-avltreehash_list.c: Likewise.
40630         * tests/test-base64.c: Likewise.
40631         * tests/test-binary-io.c: Likewise.
40632         * tests/test-bitrotate.c: Likewise.
40633         * tests/test-btowc.c: Likewise.
40634         * tests/test-byteswap.c: Likewise.
40635         * tests/test-c-ctype.c: Likewise.
40636         * tests/test-c-stack.c: Likewise.
40637         * tests/test-c-strcasecmp.c: Likewise.
40638         * tests/test-c-strcasestr.c: Likewise.
40639         * tests/test-c-strncasecmp.c: Likewise.
40640         * tests/test-c-strstr.c: Likewise.
40641         * tests/test-canonicalize-lgpl.c: Likewise.
40642         * tests/test-canonicalize.c: Likewise.
40643         * tests/test-carray_list.c: Likewise.
40644         * tests/test-ceilf1.c: Likewise.
40645         * tests/test-ceilf2.c: Likewise.
40646         * tests/test-ceill.c: Likewise.
40647         * tests/test-chown.c: Likewise.
40648         * tests/test-cloexec.c: Likewise.
40649         * tests/test-copy-acl.c: Likewise.
40650         * tests/test-copy-file.c: Likewise.
40651         * tests/test-count-one-bits.c: Likewise.
40652         * tests/test-dprintf-posix.c: Likewise.
40653         * tests/test-dup2.c: Likewise.
40654         * tests/test-dup3.c: Likewise.
40655         * tests/test-duplocale.c: Likewise.
40656         * tests/test-fbufmode.c: Likewise.
40657         * tests/test-fchdir.c: Likewise.
40658         * tests/test-fchownat.c: Likewise.
40659         * tests/test-fcntl-safer.c: Likewise.
40660         * tests/test-fcntl.c: Likewise.
40661         * tests/test-fdopendir.c: Likewise.
40662         * tests/test-fdutimensat.c: Likewise.
40663         * tests/test-fflush2.c: Likewise.
40664         * tests/test-file-has-acl.c: Likewise.
40665         * tests/test-filevercmp.c: Likewise.
40666         * tests/test-flock.c: Likewise.
40667         * tests/test-floorf1.c: Likewise.
40668         * tests/test-floorf2.c: Likewise.
40669         * tests/test-floorl.c: Likewise.
40670         * tests/test-fnmatch.c: Likewise.
40671         * tests/test-fopen.h: Likewise.
40672         * tests/test-fpending.c: Likewise.
40673         * tests/test-fprintf-posix.c: Likewise.
40674         * tests/test-fpurge.c: Likewise.
40675         * tests/test-freadable.c: Likewise.
40676         * tests/test-freadahead.c: Likewise.
40677         * tests/test-freading.c: Likewise.
40678         * tests/test-freadptr.c: Likewise.
40679         * tests/test-freadptr2.c: Likewise.
40680         * tests/test-freadseek.c: Likewise.
40681         * tests/test-freopen.c: Likewise.
40682         * tests/test-frexp.c: Likewise.
40683         * tests/test-frexpl.c: Likewise.
40684         * tests/test-fseek.c: Likewise.
40685         * tests/test-fseeko.c: Likewise.
40686         * tests/test-fstatat.c: Likewise.
40687         * tests/test-fstrcmp.c: Likewise.
40688         * tests/test-fsync.c: Likewise.
40689         * tests/test-ftell.c: Likewise.
40690         * tests/test-ftello.c: Likewise.
40691         * tests/test-func.c: Likewise.
40692         * tests/test-futimens.c: Likewise.
40693         * tests/test-fwritable.c: Likewise.
40694         * tests/test-fwriting.c: Likewise.
40695         * tests/test-getcwd.c: Likewise.
40696         * tests/test-getdate.c: Likewise.
40697         * tests/test-getdelim.c: Likewise.
40698         * tests/test-getdtablesize.c: Likewise.
40699         * tests/test-getgroups.c: Likewise.
40700         * tests/test-getline.c: Likewise.
40701         * tests/test-getndelim2.c: Likewise.
40702         * tests/test-glob.c: Likewise.
40703         * tests/test-hash.c: Likewise.
40704         * tests/test-i-ring.c: Likewise.
40705         * tests/test-iconv-utf.c: Likewise.
40706         * tests/test-iconv.c: Likewise.
40707         * tests/test-idpriv-drop.c: Likewise.
40708         * tests/test-idpriv-droptemp.c: Likewise.
40709         * tests/test-inet_ntop.c: Likewise.
40710         * tests/test-inet_pton.c: Likewise.
40711         * tests/test-isblank.c: Likewise.
40712         * tests/test-isfinite.c: Likewise.
40713         * tests/test-isinf.c: Likewise.
40714         * tests/test-isnan.c: Likewise.
40715         * tests/test-isnand.h: Likewise.
40716         * tests/test-isnanf.h: Likewise.
40717         * tests/test-isnanl.h: Likewise.
40718         * tests/test-lchown.c: Likewise.
40719         * tests/test-ldexpl.c: Likewise.
40720         * tests/test-link.c: Likewise.
40721         * tests/test-linkat.c: Likewise.
40722         * tests/test-linked_list.c: Likewise.
40723         * tests/test-linkedhash_list.c: Likewise.
40724         * tests/test-localename.c: Likewise.
40725         * tests/test-lseek.c: Likewise.
40726         * tests/test-lstat.c: Likewise.
40727         * tests/test-mbmemcasecmp.c: Likewise.
40728         * tests/test-mbmemcasecoll.c: Likewise.
40729         * tests/test-mbrtowc.c: Likewise.
40730         * tests/test-mbscasecmp.c: Likewise.
40731         * tests/test-mbscasestr1.c: Likewise.
40732         * tests/test-mbscasestr2.c: Likewise.
40733         * tests/test-mbscasestr3.c: Likewise.
40734         * tests/test-mbscasestr4.c: Likewise.
40735         * tests/test-mbschr.c: Likewise.
40736         * tests/test-mbscspn.c: Likewise.
40737         * tests/test-mbsinit.c: Likewise.
40738         * tests/test-mbsncasecmp.c: Likewise.
40739         * tests/test-mbsnrtowcs.c: Likewise.
40740         * tests/test-mbspbrk.c: Likewise.
40741         * tests/test-mbspcasecmp.c: Likewise.
40742         * tests/test-mbsrchr.c: Likewise.
40743         * tests/test-mbsrtowcs.c: Likewise.
40744         * tests/test-mbsspn.c: Likewise.
40745         * tests/test-mbsstr1.c: Likewise.
40746         * tests/test-mbsstr2.c: Likewise.
40747         * tests/test-mbsstr3.c: Likewise.
40748         * tests/test-memchr.c: Likewise.
40749         * tests/test-memchr2.c: Likewise.
40750         * tests/test-memcmp.c: Likewise.
40751         * tests/test-memmem.c: Likewise.
40752         * tests/test-memrchr.c: Likewise.
40753         * tests/test-mkdir.c: Likewise.
40754         * tests/test-mkdirat.c: Likewise.
40755         * tests/test-mkfifo.c: Likewise.
40756         * tests/test-mkfifoat.c: Likewise.
40757         * tests/test-mknod.c: Likewise.
40758         * tests/test-nanosleep.c: Likewise.
40759         * tests/test-nl_langinfo.c: Likewise.
40760         * tests/test-obstack-printf.c: Likewise.
40761         * tests/test-open.c: Likewise.
40762         * tests/test-openat.c: Likewise.
40763         * tests/test-pipe-filter-gi1.c: Likewise.
40764         * tests/test-pipe-filter-gi2-main.c: Likewise.
40765         * tests/test-pipe-filter-ii1.c: Likewise.
40766         * tests/test-pipe-filter-ii2-main.c: Likewise.
40767         * tests/test-pipe2.c: Likewise.
40768         * tests/test-popen.h: Likewise.
40769         * tests/test-posixtm.c: Likewise.
40770         * tests/test-pread.c: Likewise.
40771         * tests/test-printf-frexp.c: Likewise.
40772         * tests/test-printf-frexpl.c: Likewise.
40773         * tests/test-printf-posix.c: Likewise.
40774         * tests/test-priv-set.c: Likewise.
40775         * tests/test-quotearg.c: Likewise.
40776         * tests/test-random_r.c: Likewise.
40777         * tests/test-rawmemchr.c: Likewise.
40778         * tests/test-rbtree_list.c: Likewise.
40779         * tests/test-rbtree_oset.c: Likewise.
40780         * tests/test-rbtreehash_list.c: Likewise.
40781         * tests/test-readlink.c: Likewise.
40782         * tests/test-remove.c: Likewise.
40783         * tests/test-rename.c: Likewise.
40784         * tests/test-renameat.c: Likewise.
40785         * tests/test-rmdir.c: Likewise.
40786         * tests/test-round1.c: Likewise.
40787         * tests/test-roundf1.c: Likewise.
40788         * tests/test-roundl.c: Likewise.
40789         * tests/test-safe-alloc.c: Likewise.
40790         * tests/test-sameacls.c: Likewise.
40791         * tests/test-set-mode-acl.c: Likewise.
40792         * tests/test-setenv.c: Likewise.
40793         * tests/test-sigaction.c: Likewise.
40794         * tests/test-signbit.c: Likewise.
40795         * tests/test-sleep.c: Likewise.
40796         * tests/test-snprintf-posix.c: Likewise.
40797         * tests/test-snprintf.c: Likewise.
40798         * tests/test-sprintf-posix.c: Likewise.
40799         * tests/test-stat-time.c: Likewise.
40800         * tests/test-stat.c: Likewise.
40801         * tests/test-strcasestr.c: Likewise.
40802         * tests/test-strchrnul.c: Likewise.
40803         * tests/test-strerror.c: Likewise.
40804         * tests/test-striconv.c: Likewise.
40805         * tests/test-striconveh.c: Likewise.
40806         * tests/test-striconveha.c: Likewise.
40807         * tests/test-strsignal.c: Likewise.
40808         * tests/test-strstr.c: Likewise.
40809         * tests/test-strtod.c: Likewise.
40810         * tests/test-strverscmp.c: Likewise.
40811         * tests/test-symlink.c: Likewise.
40812         * tests/test-symlinkat.c: Likewise.
40813         * tests/test-trunc1.c: Likewise.
40814         * tests/test-trunc2.c: Likewise.
40815         * tests/test-truncf1.c: Likewise.
40816         * tests/test-truncf2.c: Likewise.
40817         * tests/test-truncl.c: Likewise.
40818         * tests/test-uname.c: Likewise.
40819         * tests/test-unlink.c: Likewise.
40820         * tests/test-unlinkat.c: Likewise.
40821         * tests/test-unsetenv.c: Likewise.
40822         * tests/test-usleep.c: Likewise.
40823         * tests/test-utimens.c: Likewise.
40824         * tests/test-utimensat.c: Likewise.
40825         * tests/test-vasnprintf-posix.c: Likewise.
40826         * tests/test-vasnprintf-posix2.c: Likewise.
40827         * tests/test-vasnprintf.c: Likewise.
40828         * tests/test-vasprintf-posix.c: Likewise.
40829         * tests/test-vasprintf.c: Likewise.
40830         * tests/test-vdprintf-posix.c: Likewise.
40831         * tests/test-vfprintf-posix.c: Likewise.
40832         * tests/test-vprintf-posix.c: Likewise.
40833         * tests/test-vsnprintf-posix.c: Likewise.
40834         * tests/test-vsnprintf.c: Likewise.
40835         * tests/test-vsprintf-posix.c: Likewise.
40836         * tests/test-wcrtomb.c: Likewise.
40837         * tests/test-wcsnrtombs.c: Likewise.
40838         * tests/test-wcsrtombs.c: Likewise.
40839         * tests/test-wctype.c: Likewise.
40840         * tests/test-wcwidth.c: Likewise.
40841         * tests/test-xfprintf-posix.c: Likewise.
40842         * tests/test-xmemdup0.c: Likewise.
40843         * tests/test-xprintf-posix.c: Likewise.
40844         * tests/test-xvasprintf.c: Likewise.
40845         * tests/unicase/test-locale-language.c: Likewise.
40846         * tests/unicase/test-mapping-part1.h: Likewise.
40847         * tests/unicase/test-predicate-part1.h: Likewise.
40848         * tests/unicase/test-u8-casecmp.c: Likewise.
40849         * tests/unicase/test-u8-casecoll.c: Likewise.
40850         * tests/unicase/test-u8-casefold.c: Likewise.
40851         * tests/unicase/test-u8-is-cased.c: Likewise.
40852         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40853         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40854         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40855         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40856         * tests/unicase/test-u8-tolower.c: Likewise.
40857         * tests/unicase/test-u8-totitle.c: Likewise.
40858         * tests/unicase/test-u8-toupper.c: Likewise.
40859         * tests/unicase/test-u16-casecmp.c: Likewise.
40860         * tests/unicase/test-u16-casecoll.c: Likewise.
40861         * tests/unicase/test-u16-casefold.c: Likewise.
40862         * tests/unicase/test-u16-is-cased.c: Likewise.
40863         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40864         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40865         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40866         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40867         * tests/unicase/test-u16-tolower.c: Likewise.
40868         * tests/unicase/test-u16-totitle.c: Likewise.
40869         * tests/unicase/test-u16-toupper.c: Likewise.
40870         * tests/unicase/test-u32-casecmp.c: Likewise.
40871         * tests/unicase/test-u32-casecoll.c: Likewise.
40872         * tests/unicase/test-u32-casefold.c: Likewise.
40873         * tests/unicase/test-u32-is-cased.c: Likewise.
40874         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40875         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40876         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40877         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40878         * tests/unicase/test-u32-tolower.c: Likewise.
40879         * tests/unicase/test-u32-totitle.c: Likewise.
40880         * tests/unicase/test-u32-toupper.c: Likewise.
40881         * tests/unicase/test-ulc-casecmp.c: Likewise.
40882         * tests/unicase/test-ulc-casecoll.c: Likewise.
40883         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40884         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40885         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40886         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40887         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40888         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40889         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40890         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40891         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40892         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40893         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40894         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40895         * tests/unictype/test-bidi_byname.c: Likewise.
40896         * tests/unictype/test-bidi_name.c: Likewise.
40897         * tests/unictype/test-bidi_of.c: Likewise.
40898         * tests/unictype/test-bidi_test.c: Likewise.
40899         * tests/unictype/test-block_list.c: Likewise.
40900         * tests/unictype/test-block_of.c: Likewise.
40901         * tests/unictype/test-block_test.c: Likewise.
40902         * tests/unictype/test-categ_and.c: Likewise.
40903         * tests/unictype/test-categ_and_not.c: Likewise.
40904         * tests/unictype/test-categ_byname.c: Likewise.
40905         * tests/unictype/test-categ_name.c: Likewise.
40906         * tests/unictype/test-categ_none.c: Likewise.
40907         * tests/unictype/test-categ_of.c: Likewise.
40908         * tests/unictype/test-categ_or.c: Likewise.
40909         * tests/unictype/test-categ_test_withtable.c: Likewise.
40910         * tests/unictype/test-combining.c: Likewise.
40911         * tests/unictype/test-decdigit.c: Likewise.
40912         * tests/unictype/test-digit.c: Likewise.
40913         * tests/unictype/test-mirror.c: Likewise.
40914         * tests/unictype/test-numeric.c: Likewise.
40915         * tests/unictype/test-pr_byname.c: Likewise.
40916         * tests/unictype/test-pr_test.c: Likewise.
40917         * tests/unictype/test-predicate-part1.h: Likewise.
40918         * tests/unictype/test-scripts.c: Likewise.
40919         * tests/unictype/test-sy_c_ident.c: Likewise.
40920         * tests/unictype/test-sy_java_ident.c: Likewise.
40921         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40922         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40923         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40924         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40925         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40926         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40927         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40928         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40929         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40930         * tests/uninorm/test-compat-decomposition.c: Likewise.
40931         * tests/uninorm/test-composition.c: Likewise.
40932         * tests/uninorm/test-decomposing-form.c: Likewise.
40933         * tests/uninorm/test-decomposition.c: Likewise.
40934         * tests/uninorm/test-u8-nfc.c: Likewise.
40935         * tests/uninorm/test-u8-nfd.c: Likewise.
40936         * tests/uninorm/test-u8-nfkc.c: Likewise.
40937         * tests/uninorm/test-u8-nfkd.c: Likewise.
40938         * tests/uninorm/test-u8-normcmp.c: Likewise.
40939         * tests/uninorm/test-u8-normcoll.c: Likewise.
40940         * tests/uninorm/test-u16-nfc.c: Likewise.
40941         * tests/uninorm/test-u16-nfd.c: Likewise.
40942         * tests/uninorm/test-u16-nfkc.c: Likewise.
40943         * tests/uninorm/test-u16-nfkd.c: Likewise.
40944         * tests/uninorm/test-u16-normcmp.c: Likewise.
40945         * tests/uninorm/test-u16-normcoll.c: Likewise.
40946         * tests/uninorm/test-u32-nfc.c: Likewise.
40947         * tests/uninorm/test-u32-nfd.c: Likewise.
40948         * tests/uninorm/test-u32-nfkc.c: Likewise.
40949         * tests/uninorm/test-u32-nfkd.c: Likewise.
40950         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40951         * tests/uninorm/test-u32-normcmp.c: Likewise.
40952         * tests/uninorm/test-u32-normcoll.c: Likewise.
40953         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40954         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40955         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40956         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40957         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40958         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40959         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40960         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40961         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40962         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40963         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40964         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40965         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40966         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40967         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40968         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40969         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40970         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40971         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40972         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40973         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40974         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40975         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40976         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40977         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40978         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40979         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40980         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40981         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40982         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40983         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40984         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40985         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40986         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40987         * tests/uniwidth/test-u8-width.c: Likewise.
40988         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40989         * tests/uniwidth/test-u16-width.c: Likewise.
40990         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40991         * tests/uniwidth/test-u32-width.c: Likewise.
40992         * tests/uniwidth/test-uc_width.c: Likewise.
40993         * tests/uniwidth/test-uc_width2.c: Likewise.
40994         * modules/acl-tests (Files): Add tests/macros.h.
40995         * modules/areadlink-tests (Files): Likewise.
40996         * modules/areadlink-with-size-tests (Files): Likewise.
40997         * modules/areadlinkat-tests (Files): Likewise.
40998         * modules/areadlinkat-with-size-tests (Files): Likewise.
40999         * modules/argmatch-tests (Files): Likewise.
41000         * modules/argv-iter-tests (Files): Likewise.
41001         * modules/array-list-tests (Files): Likewise.
41002         * modules/array-mergesort-tests (Files): Likewise.
41003         * modules/array-oset-tests (Files): Likewise.
41004         * modules/avltree-list-tests (Files): Likewise.
41005         * modules/avltree-oset-tests (Files): Likewise.
41006         * modules/avltreehash-list-tests (Files): Likewise.
41007         * modules/base64-tests (Files): Likewise.
41008         * modules/binary-io-tests (Files): Likewise.
41009         * modules/bitrotate-tests (Files): Likewise.
41010         * modules/btowc-tests (Files): Likewise.
41011         * modules/byteswap-tests (Files): Likewise.
41012         * modules/c-ctype-tests (Files): Likewise.
41013         * modules/c-stack-tests (Files): Likewise.
41014         * modules/c-strcase-tests (Files): Likewise.
41015         * modules/c-strcasestr-tests (Files): Likewise.
41016         * modules/c-strstr-tests (Files): Likewise.
41017         * modules/canonicalize-lgpl-tests (Files): Likewise.
41018         * modules/canonicalize-tests (Files): Likewise.
41019         * modules/carray-list-tests (Files): Likewise.
41020         * modules/ceilf-tests (Files): Likewise.
41021         * modules/ceill-tests (Files): Likewise.
41022         * modules/chown-tests (Files): Likewise.
41023         * modules/cloexec-tests (Files): Likewise.
41024         * modules/copy-file-tests (Files): Likewise.
41025         * modules/count-one-bits-tests (Files): Likewise.
41026         * modules/dprintf-posix-tests (Files): Likewise.
41027         * modules/dup2-tests (Files): Likewise.
41028         * modules/dup3-tests (Files): Likewise.
41029         * modules/duplocale-tests (Files): Likewise.
41030         * modules/fbufmode-tests (Files): Likewise.
41031         * modules/fchdir-tests (Files): Likewise.
41032         * modules/fcntl-safer-tests (Files): Likewise.
41033         * modules/fcntl-tests (Files): Likewise.
41034         * modules/fdopendir-tests (Files): Likewise.
41035         * modules/fdutimensat-tests (Files): Likewise.
41036         * modules/fflush-tests (Files): Likewise.
41037         * modules/filevercmp-tests (Files): Likewise.
41038         * modules/flock-tests (Files): Likewise.
41039         * modules/floorf-tests (Files): Likewise.
41040         * modules/floorl-tests (Files): Likewise.
41041         * modules/fnmatch-tests (Files): Likewise.
41042         * modules/fopen-safer-tests (Files): Likewise.
41043         * modules/fopen-tests (Files): Likewise.
41044         * modules/fpending-tests (Files): Likewise.
41045         * modules/fprintf-posix-tests (Files): Likewise.
41046         * modules/fpurge-tests (Files): Likewise.
41047         * modules/freadable-tests (Files): Likewise.
41048         * modules/freadahead-tests (Files): Likewise.
41049         * modules/freading-tests (Files): Likewise.
41050         * modules/freadptr-tests (Files): Likewise.
41051         * modules/freadseek-tests (Files): Likewise.
41052         * modules/freopen-tests (Files): Likewise.
41053         * modules/frexp-nolibm-tests (Files): Likewise.
41054         * modules/frexp-tests (Files): Likewise.
41055         * modules/frexpl-nolibm-tests (Files): Likewise.
41056         * modules/frexpl-tests (Files): Likewise.
41057         * modules/fseek-tests (Files): Likewise.
41058         * modules/fseeko-tests (Files): Likewise.
41059         * modules/fstrcmp-tests (Files): Likewise.
41060         * modules/fsync-tests (Files): Likewise.
41061         * modules/ftell-tests (Files): Likewise.
41062         * modules/ftello-tests (Files): Likewise.
41063         * modules/func-tests (Files): Likewise.
41064         * modules/futimens-tests (Files): Likewise.
41065         * modules/fwritable-tests (Files): Likewise.
41066         * modules/fwriting-tests (Files): Likewise.
41067         * modules/getcwd-tests (Files): Likewise.
41068         * modules/getdate-tests (Files): Likewise.
41069         * modules/getdelim-tests (Files): Likewise.
41070         * modules/getdtablesize-tests (Files): Likewise.
41071         * modules/getgroups-tests (Files): Likewise.
41072         * modules/getline-tests (Files): Likewise.
41073         * modules/getndelim2-tests (Files): Likewise.
41074         * modules/glob-tests (Files): Likewise.
41075         * modules/hash-tests (Files): Likewise.
41076         * modules/i-ring-tests (Files): Likewise.
41077         * modules/iconv-tests (Files): Likewise.
41078         * modules/iconv_open-utf-tests (Files): Likewise.
41079         * modules/idpriv-drop-tests (Files): Likewise.
41080         * modules/idpriv-droptemp-tests (Files): Likewise.
41081         * modules/inet_ntop-tests (Files): Likewise.
41082         * modules/inet_pton-tests (Files): Likewise.
41083         * modules/isblank-tests (Files): Likewise.
41084         * modules/isfinite-tests (Files): Likewise.
41085         * modules/isinf-tests (Files): Likewise.
41086         * modules/isnan-tests (Files): Likewise.
41087         * modules/isnand-nolibm-tests (Files): Likewise.
41088         * modules/isnand-tests (Files): Likewise.
41089         * modules/isnanf-nolibm-tests (Files): Likewise.
41090         * modules/isnanf-tests (Files): Likewise.
41091         * modules/isnanl-nolibm-tests (Files): Likewise.
41092         * modules/isnanl-tests (Files): Likewise.
41093         * modules/lchown-tests (Files): Likewise.
41094         * modules/ldexpl-tests (Files): Likewise.
41095         * modules/link-tests (Files): Likewise.
41096         * modules/linkat-tests (Files): Likewise.
41097         * modules/linked-list-tests (Files): Likewise.
41098         * modules/linkedhash-list-tests (Files): Likewise.
41099         * modules/localename-tests (Files): Likewise.
41100         * modules/lseek-tests (Files): Likewise.
41101         * modules/lstat-tests (Files): Likewise.
41102         * modules/mbmemcasecmp-tests (Files): Likewise.
41103         * modules/mbmemcasecoll-tests (Files): Likewise.
41104         * modules/mbrtowc-tests (Files): Likewise.
41105         * modules/mbscasecmp-tests (Files): Likewise.
41106         * modules/mbscasestr-tests (Files): Likewise.
41107         * modules/mbschr-tests (Files): Likewise.
41108         * modules/mbscspn-tests (Files): Likewise.
41109         * modules/mbsinit-tests (Files): Likewise.
41110         * modules/mbsncasecmp-tests (Files): Likewise.
41111         * modules/mbsnrtowcs-tests (Files): Likewise.
41112         * modules/mbspbrk-tests (Files): Likewise.
41113         * modules/mbspcasecmp-tests (Files): Likewise.
41114         * modules/mbsrchr-tests (Files): Likewise.
41115         * modules/mbsrtowcs-tests (Files): Likewise.
41116         * modules/mbsspn-tests (Files): Likewise.
41117         * modules/mbsstr-tests (Files): Likewise.
41118         * modules/memchr-tests (Files): Likewise.
41119         * modules/memchr2-tests (Files): Likewise.
41120         * modules/memcmp-tests (Files): Likewise.
41121         * modules/memmem-tests (Files): Likewise.
41122         * modules/memrchr-tests (Files): Likewise.
41123         * modules/mkdir-tests (Files): Likewise.
41124         * modules/mkfifo-tests (Files): Likewise.
41125         * modules/mkfifoat-tests (Files): Likewise.
41126         * modules/mknod-tests (Files): Likewise.
41127         * modules/nanosleep-tests (Files): Likewise.
41128         * modules/nl_langinfo-tests (Files): Likewise.
41129         * modules/obstack-printf-tests (Files): Likewise.
41130         * modules/open-tests (Files): Likewise.
41131         * modules/openat-tests (Files): Likewise.
41132         * modules/pipe-filter-gi-tests (Files): Likewise.
41133         * modules/pipe-filter-ii-tests (Files): Likewise.
41134         * modules/pipe2-tests (Files): Likewise.
41135         * modules/popen-safer-tests (Files): Likewise.
41136         * modules/popen-tests (Files): Likewise.
41137         * modules/posixtm-tests (Files): Likewise.
41138         * modules/pread-tests (Files): Likewise.
41139         * modules/printf-frexp-tests (Files): Likewise.
41140         * modules/printf-frexpl-tests (Files): Likewise.
41141         * modules/printf-posix-tests (Files): Likewise.
41142         * modules/priv-set-tests (Files): Likewise.
41143         * modules/quotearg-tests (Files): Likewise.
41144         * modules/random_r-tests (Files): Likewise.
41145         * modules/rawmemchr-tests (Files): Likewise.
41146         * modules/rbtree-list-tests (Files): Likewise.
41147         * modules/rbtree-oset-tests (Files): Likewise.
41148         * modules/rbtreehash-list-tests (Files): Likewise.
41149         * modules/readlink-tests (Files): Likewise.
41150         * modules/remove-tests (Files): Likewise.
41151         * modules/rename-tests (Files): Likewise.
41152         * modules/renameat-tests (Files): Likewise.
41153         * modules/rmdir-tests (Files): Likewise.
41154         * modules/round-tests (Files): Likewise.
41155         * modules/roundf-tests (Files): Likewise.
41156         * modules/roundl-tests (Files): Likewise.
41157         * modules/safe-alloc-tests (Files): Likewise.
41158         * modules/setenv-tests (Files): Likewise.
41159         * modules/sigaction-tests (Files): Likewise.
41160         * modules/signbit-tests (Files): Likewise.
41161         * modules/sleep-tests (Files): Likewise.
41162         * modules/snprintf-posix-tests (Files): Likewise.
41163         * modules/snprintf-tests (Files): Likewise.
41164         * modules/sprintf-posix-tests (Files): Likewise.
41165         * modules/stat-tests (Files): Likewise.
41166         * modules/stat-time-tests (Files): Likewise.
41167         * modules/strcasestr-tests (Files): Likewise.
41168         * modules/strchrnul-tests (Files): Likewise.
41169         * modules/strerror-tests (Files): Likewise.
41170         * modules/striconv-tests (Files): Likewise.
41171         * modules/striconveh-tests (Files): Likewise.
41172         * modules/striconveha-tests (Files): Likewise.
41173         * modules/strsignal-tests (Files): Likewise.
41174         * modules/strstr-tests (Files): Likewise.
41175         * modules/strtod-tests (Files): Likewise.
41176         * modules/strverscmp-tests (Files): Likewise.
41177         * modules/symlink-tests (Files): Likewise.
41178         * modules/symlinkat-tests (Files): Likewise.
41179         * modules/trunc-tests (Files): Likewise.
41180         * modules/truncf-tests (Files): Likewise.
41181         * modules/truncl-tests (Files): Likewise.
41182         * modules/uname-tests (Files): Likewise.
41183         * modules/unicase/cased-tests (Files): Likewise.
41184         * modules/unicase/ignorable-tests (Files): Likewise.
41185         * modules/unicase/locale-language-tests (Files): Likewise.
41186         * modules/unicase/tolower-tests (Files): Likewise.
41187         * modules/unicase/totitle-tests (Files): Likewise.
41188         * modules/unicase/toupper-tests (Files): Likewise.
41189         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41190         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41191         * modules/unicase/u8-casefold-tests (Files): Likewise.
41192         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41193         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41194         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41195         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41196         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41197         * modules/unicase/u8-tolower-tests (Files): Likewise.
41198         * modules/unicase/u8-totitle-tests (Files): Likewise.
41199         * modules/unicase/u8-toupper-tests (Files): Likewise.
41200         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41201         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41202         * modules/unicase/u16-casefold-tests (Files): Likewise.
41203         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41204         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41205         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41206         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41207         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41208         * modules/unicase/u16-tolower-tests (Files): Likewise.
41209         * modules/unicase/u16-totitle-tests (Files): Likewise.
41210         * modules/unicase/u16-toupper-tests (Files): Likewise.
41211         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41212         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41213         * modules/unicase/u32-casefold-tests (Files): Likewise.
41214         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41215         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41216         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41217         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41218         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41219         * modules/unicase/u32-tolower-tests (Files): Likewise.
41220         * modules/unicase/u32-totitle-tests (Files): Likewise.
41221         * modules/unicase/u32-toupper-tests (Files): Likewise.
41222         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41223         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41224         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41225         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41226         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41227         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41228         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41229         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41230         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41231         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41232         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41233         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41234         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41235         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41236         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41237         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41238         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41239         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41240         * modules/unictype/block-list-tests (Files): Likewise.
41241         * modules/unictype/block-of-tests (Files): Likewise.
41242         * modules/unictype/block-test-tests (Files): Likewise.
41243         * modules/unictype/category-C-tests (Files): Likewise.
41244         * modules/unictype/category-Cc-tests (Files): Likewise.
41245         * modules/unictype/category-Cf-tests (Files): Likewise.
41246         * modules/unictype/category-Cn-tests (Files): Likewise.
41247         * modules/unictype/category-Co-tests (Files): Likewise.
41248         * modules/unictype/category-Cs-tests (Files): Likewise.
41249         * modules/unictype/category-L-tests (Files): Likewise.
41250         * modules/unictype/category-Ll-tests (Files): Likewise.
41251         * modules/unictype/category-Lm-tests (Files): Likewise.
41252         * modules/unictype/category-Lo-tests (Files): Likewise.
41253         * modules/unictype/category-Lt-tests (Files): Likewise.
41254         * modules/unictype/category-Lu-tests (Files): Likewise.
41255         * modules/unictype/category-M-tests (Files): Likewise.
41256         * modules/unictype/category-Mc-tests (Files): Likewise.
41257         * modules/unictype/category-Me-tests (Files): Likewise.
41258         * modules/unictype/category-Mn-tests (Files): Likewise.
41259         * modules/unictype/category-N-tests (Files): Likewise.
41260         * modules/unictype/category-Nd-tests (Files): Likewise.
41261         * modules/unictype/category-Nl-tests (Files): Likewise.
41262         * modules/unictype/category-No-tests (Files): Likewise.
41263         * modules/unictype/category-P-tests (Files): Likewise.
41264         * modules/unictype/category-Pc-tests (Files): Likewise.
41265         * modules/unictype/category-Pd-tests (Files): Likewise.
41266         * modules/unictype/category-Pe-tests (Files): Likewise.
41267         * modules/unictype/category-Pf-tests (Files): Likewise.
41268         * modules/unictype/category-Pi-tests (Files): Likewise.
41269         * modules/unictype/category-Po-tests (Files): Likewise.
41270         * modules/unictype/category-Ps-tests (Files): Likewise.
41271         * modules/unictype/category-S-tests (Files): Likewise.
41272         * modules/unictype/category-Sc-tests (Files): Likewise.
41273         * modules/unictype/category-Sk-tests (Files): Likewise.
41274         * modules/unictype/category-Sm-tests (Files): Likewise.
41275         * modules/unictype/category-So-tests (Files): Likewise.
41276         * modules/unictype/category-Z-tests (Files): Likewise.
41277         * modules/unictype/category-Zl-tests (Files): Likewise.
41278         * modules/unictype/category-Zp-tests (Files): Likewise.
41279         * modules/unictype/category-Zs-tests (Files): Likewise.
41280         * modules/unictype/category-and-not-tests (Files): Likewise.
41281         * modules/unictype/category-and-tests (Files): Likewise.
41282         * modules/unictype/category-byname-tests (Files): Likewise.
41283         * modules/unictype/category-name-tests (Files): Likewise.
41284         * modules/unictype/category-none-tests (Files): Likewise.
41285         * modules/unictype/category-of-tests (Files): Likewise.
41286         * modules/unictype/category-or-tests (Files): Likewise.
41287         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41288         * modules/unictype/combining-class-tests (Files): Likewise.
41289         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41290         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41291         * modules/unictype/ctype-blank-tests (Files): Likewise.
41292         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41293         * modules/unictype/ctype-digit-tests (Files): Likewise.
41294         * modules/unictype/ctype-graph-tests (Files): Likewise.
41295         * modules/unictype/ctype-lower-tests (Files): Likewise.
41296         * modules/unictype/ctype-print-tests (Files): Likewise.
41297         * modules/unictype/ctype-punct-tests (Files): Likewise.
41298         * modules/unictype/ctype-space-tests (Files): Likewise.
41299         * modules/unictype/ctype-upper-tests (Files): Likewise.
41300         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41301         * modules/unictype/decimal-digit-tests (Files): Likewise.
41302         * modules/unictype/digit-tests (Files): Likewise.
41303         * modules/unictype/mirror-tests (Files): Likewise.
41304         * modules/unictype/numeric-tests (Files): Likewise.
41305         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41306         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41307         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41308         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41309         Likewise.
41310         * modules/unictype/property-bidi-block-separator-tests (Files):
41311         Likewise.
41312         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41313         Likewise.
41314         * modules/unictype/property-bidi-common-separator-tests (Files):
41315         Likewise.
41316         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41317         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41318         Likewise.
41319         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41320         Likewise.
41321         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41322         Likewise.
41323         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41324         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41325         Likewise.
41326         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41327         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41328         Likewise.
41329         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41330         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41331         * modules/unictype/property-bidi-segment-separator-tests (Files):
41332         Likewise.
41333         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41334         * modules/unictype/property-byname-tests (Files): Likewise.
41335         * modules/unictype/property-combining-tests (Files): Likewise.
41336         * modules/unictype/property-composite-tests (Files): Likewise.
41337         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41338         * modules/unictype/property-dash-tests (Files): Likewise.
41339         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41340         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41341         Likewise.
41342         * modules/unictype/property-deprecated-tests (Files): Likewise.
41343         * modules/unictype/property-diacritic-tests (Files): Likewise.
41344         * modules/unictype/property-extender-tests (Files): Likewise.
41345         * modules/unictype/property-format-control-tests (Files): Likewise.
41346         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41347         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41348         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41349         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41350         * modules/unictype/property-hyphen-tests (Files): Likewise.
41351         * modules/unictype/property-id-continue-tests (Files): Likewise.
41352         * modules/unictype/property-id-start-tests (Files): Likewise.
41353         * modules/unictype/property-ideographic-tests (Files): Likewise.
41354         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41355         * modules/unictype/property-ids-trinary-operator-tests (Files):
41356         Likewise.
41357         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41358         * modules/unictype/property-iso-control-tests (Files): Likewise.
41359         * modules/unictype/property-join-control-tests (Files): Likewise.
41360         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41361         * modules/unictype/property-line-separator-tests (Files): Likewise.
41362         * modules/unictype/property-logical-order-exception-tests (Files):
41363         Likewise.
41364         * modules/unictype/property-lowercase-tests (Files): Likewise.
41365         * modules/unictype/property-math-tests (Files): Likewise.
41366         * modules/unictype/property-non-break-tests (Files): Likewise.
41367         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41368         * modules/unictype/property-numeric-tests (Files): Likewise.
41369         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41370         * modules/unictype/property-other-default-ignorable-code-point-tests
41371         (Files): Likewise.
41372         * modules/unictype/property-other-grapheme-extend-tests (Files):
41373         Likewise.
41374         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41375         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41376         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41377         * modules/unictype/property-other-math-tests (Files): Likewise.
41378         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41379         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41380         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41381         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41382         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41383         * modules/unictype/property-private-use-tests (Files): Likewise.
41384         * modules/unictype/property-punctuation-tests (Files): Likewise.
41385         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41386         * modules/unictype/property-radical-tests (Files): Likewise.
41387         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41388         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41389         * modules/unictype/property-space-tests (Files): Likewise.
41390         * modules/unictype/property-terminal-punctuation-tests (Files):
41391         Likewise.
41392         * modules/unictype/property-test-tests (Files): Likewise.
41393         * modules/unictype/property-titlecase-tests (Files): Likewise.
41394         * modules/unictype/property-unassigned-code-value-tests (Files):
41395         Likewise.
41396         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41397         * modules/unictype/property-uppercase-tests (Files): Likewise.
41398         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41399         * modules/unictype/property-white-space-tests (Files): Likewise.
41400         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41401         * modules/unictype/property-xid-start-tests (Files): Likewise.
41402         * modules/unictype/property-zero-width-tests (Files): Likewise.
41403         * modules/unictype/scripts-tests (Files): Likewise.
41404         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41405         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41406         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41407         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41408         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41409         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41410         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41411         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41412         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41413         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41414         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41415         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41416         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41417         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41418         * modules/uninorm/composition-tests (Files): Likewise.
41419         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41420         * modules/uninorm/decomposition-tests (Files): Likewise.
41421         * modules/uninorm/filter-tests (Files): Likewise.
41422         * modules/uninorm/nfc-tests (Files): Likewise.
41423         * modules/uninorm/nfd-tests (Files): Likewise.
41424         * modules/uninorm/nfkc-tests (Files): Likewise.
41425         * modules/uninorm/nfkd-tests (Files): Likewise.
41426         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41427         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41428         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41429         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41430         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41431         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41432         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41433         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41434         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41435         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41436         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41437         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41438         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41439         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41440         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41441         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41442         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41443         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41444         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41445         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41446         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41447         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41448         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41449         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41450         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41451         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41452         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41453         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41454         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41455         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41456         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41457         * modules/uniwidth/u8-width-tests (Files): Likewise.
41458         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41459         * modules/uniwidth/u16-width-tests (Files): Likewise.
41460         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41461         * modules/uniwidth/u32-width-tests (Files): Likewise.
41462         * modules/uniwidth/width-tests (Files): Likewise.
41463         * modules/unlink-tests (Files): Likewise.
41464         * modules/unsetenv-tests (Files): Likewise.
41465         * modules/usleep-tests (Files): Likewise.
41466         * modules/utimens-tests (Files): Likewise.
41467         * modules/utimensat-tests (Files): Likewise.
41468         * modules/vasnprintf-posix-tests (Files): Likewise.
41469         * modules/vasnprintf-tests (Files): Likewise.
41470         * modules/vasprintf-posix-tests (Files): Likewise.
41471         * modules/vasprintf-tests (Files): Likewise.
41472         * modules/vdprintf-posix-tests (Files): Likewise.
41473         * modules/vfprintf-posix-tests (Files): Likewise.
41474         * modules/vprintf-posix-tests (Files): Likewise.
41475         * modules/vsnprintf-posix-tests (Files): Likewise.
41476         * modules/vsnprintf-tests (Files): Likewise.
41477         * modules/vsprintf-posix-tests (Files): Likewise.
41478         * modules/wcrtomb-tests (Files): Likewise.
41479         * modules/wcsnrtombs-tests (Files): Likewise.
41480         * modules/wcsrtombs-tests (Files): Likewise.
41481         * modules/wctype-tests (Files): Likewise.
41482         * modules/wcwidth-tests (Files): Likewise.
41483         * modules/xmemdup0-tests (Files): Likewise.
41484         * modules/xprintf-posix-tests (Files): Likewise.
41485         * modules/xvasprintf-tests (Files): Likewise.
41486
41487 2009-12-24  Eric Blake  <ebb9@byu.net>
41488
41489         test-nanosleep: fix typo
41490         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41491         patch.
41492         Reported by Bruno Haible.
41493
41494 2009-12-24  Bruno Haible  <bruno@clisp.org>
41495
41496         Reduce namespace pollution on glibc systems.
41497         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41498         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41499         systems.
41500         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41501         <getopt.h> on glibc systems.
41502         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41503         systems.
41504         * lib/fcntl.c: Include <unistd.h> here instead.
41505
41506 2009-12-24  Bruno Haible  <bruno@clisp.org>
41507
41508         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41509
41510 2009-12-24  Eric Blake  <ebb9@byu.net>
41511
41512         tests: add signature checks
41513         * tests/signature.h (SIGNATURE_CHECK): New file.
41514         * modules/atexit-tests (Files): Use it.
41515         * modules/btowc-tests (Files): Likewise.
41516         * modules/canonicalize-lgpl-tests (Files): Likewise.
41517         * modules/ceilf-tests (Files): Likewise.
41518         * modules/ceill-tests (Files): Likewise.
41519         * modules/chown-tests (Files): Likewise.
41520         * modules/dprintf-posix-tests (Files): Likewise.
41521         * modules/dup2-tests (Files): Likewise.
41522         * modules/dup3-tests (Files): Likewise.
41523         * modules/duplocale-tests (Files): Likewise.
41524         * modules/fchdir-tests (Files): Likewise.
41525         * modules/fcntl-tests (Files): Likewise.
41526         * modules/fdopendir-tests (Files): Likewise.
41527         * modules/fflush-tests (Files): Likewise.
41528         * modules/flock-tests (Files): Likewise.
41529         * modules/floorf-tests (Files): Likewise.
41530         * modules/floorl-tests (Files): Likewise.
41531         * modules/fnmatch-tests (Files): Likewise.
41532         * modules/fopen-tests (Files): Likewise.
41533         * modules/fprintf-posix-tests (Files): Likewise.
41534         * modules/freopen-tests (Files): Likewise.
41535         * modules/frexp-nolibm-tests (Files): Likewise.
41536         * modules/frexp-tests (Files): Likewise.
41537         * modules/frexpl-nolibm-tests (Files): Likewise.
41538         * modules/frexpl-tests (Files): Likewise.
41539         * modules/fseek-tests (Files): Likewise.
41540         * modules/fseeko-tests (Files): Likewise.
41541         * modules/fsync-tests (Files): Likewise.
41542         * modules/ftell-tests (Files): Likewise.
41543         * modules/ftello-tests (Files): Likewise.
41544         * modules/futimens-tests (Files): Likewise.
41545         * modules/getaddrinfo-tests (Files): Likewise.
41546         * modules/getcwd-tests (Files): Likewise.
41547         * modules/getdelim-tests (Files): Likewise.
41548         * modules/getdtablesize-tests (Files): Likewise.
41549         * modules/getgroups-tests (Files): Likewise.
41550         * modules/gethostname-tests (Files): Likewise.
41551         * modules/getline-tests (Files): Likewise.
41552         * modules/getopt-posix-tests (Files): Likewise.
41553         * modules/gettimeofday-tests (Files): Likewise.
41554         * modules/glob-tests (Files): Likewise.
41555         * modules/iconv-tests (Files): Likewise.
41556         * modules/inet_ntop-tests (Files): Likewise.
41557         * modules/inet_pton-tests (Files): Likewise.
41558         * modules/isblank-tests (Files): Likewise.
41559         * modules/lchown-tests (Files): Likewise.
41560         * modules/ldexpl-tests (Files): Likewise.
41561         * modules/link-tests (Files): Likewise.
41562         * modules/linkat-tests (Files): Likewise.
41563         * modules/lseek-tests (Files): Likewise.
41564         * modules/lstat-tests (Files): Likewise.
41565         * modules/mbrtowc-tests (Files): Likewise.
41566         * modules/mbsinit-tests (Files): Likewise.
41567         * modules/mbsnrtowcs-tests (Files): Likewise.
41568         * modules/mbsrtowcs-tests (Files): Likewise.
41569         * modules/memchr-tests (Files): Likewise.
41570         * modules/memcmp-tests (Files): Likewise.
41571         * modules/memmem-tests (Files): Likewise.
41572         * modules/memrchr-tests (Files): Likewise.
41573         * modules/mkdir-tests (Files): Likewise.
41574         * modules/mkfifo-tests (Files): Likewise.
41575         * modules/mkfifoat-tests (Files): Likewise.
41576         * modules/mknod-tests (Files): Likewise.
41577         * modules/nanosleep-tests (Files): Likewise.
41578         * modules/nl_langinfo-tests (Files): Likewise.
41579         * modules/obstack-printf-tests (Files): Likewise.
41580         * modules/open-tests (Files): Likewise.
41581         * modules/openat-tests (Files): Likewise.
41582         * modules/perror-tests (Files): Likewise.
41583         * modules/pipe2-tests (Files): Likewise.
41584         * modules/poll-tests (Files): Likewise.
41585         * modules/popen-tests (Files): Likewise.
41586         * modules/posix_spawn-tests (Files): Likewise.
41587         * modules/posix_spawnp-tests (Files): Likewise.
41588         * modules/pread-tests (Files): Likewise.
41589         * modules/printf-posix-tests (Files): Likewise.
41590         * modules/pty-tests (Files): Likewise.
41591         * modules/random_r-tests (Files): Likewise.
41592         * modules/rawmemchr-tests (Files): Likewise.
41593         * modules/readlink-tests (Files): Likewise.
41594         * modules/remove-tests (Files): Likewise.
41595         * modules/rename-tests (Files): Likewise.
41596         * modules/renameat-tests (Files): Likewise.
41597         * modules/rmdir-tests (Files): Likewise.
41598         * modules/round-tests (Files): Likewise.
41599         * modules/roundf-tests (Files): Likewise.
41600         * modules/roundl-tests (Files): Likewise.
41601         * modules/select-tests (Files): Likewise.
41602         * modules/setenv-tests (Files): Likewise.
41603         * modules/sigaction-tests (Files): Likewise.
41604         * modules/sleep-tests (Files): Likewise.
41605         * modules/snprintf-posix-tests (Files): Likewise.
41606         * modules/snprintf-tests (Files): Likewise.
41607         * modules/sprintf-posix-tests (Files): Likewise.
41608         * modules/stat-tests (Files): Likewise.
41609         * modules/strcasestr-tests (Files): Likewise.
41610         * modules/strchrnul-tests (Files): Likewise.
41611         * modules/strerror-tests (Files): Likewise.
41612         * modules/strsignal-tests (Files): Likewise.
41613         * modules/strstr-tests (Files): Likewise.
41614         * modules/strtod-tests (Files): Likewise.
41615         * modules/strverscmp-tests (Files): Likewise.
41616         * modules/symlink-tests (Files): Likewise.
41617         * modules/symlinkat-tests (Files): Likewise.
41618         * modules/times-tests (Files): Likewise.
41619         * modules/trunc-tests (Files): Likewise.
41620         * modules/truncf-tests (Files): Likewise.
41621         * modules/truncl-tests (Files): Likewise.
41622         * modules/tsearch-tests (Files): Likewise.
41623         * modules/uname-tests (Files): Likewise.
41624         * modules/unlink-tests (Files): Likewise.
41625         * modules/unsetenv-tests (Files): Likewise.
41626         * modules/usleep-tests (Files): Likewise.
41627         * modules/utimensat-tests (Files): Likewise.
41628         * modules/vasprintf-tests (Files): Likewise.
41629         * modules/vdprintf-posix-tests (Files): Likewise.
41630         * modules/vfprintf-posix-tests (Files): Likewise.
41631         * modules/vprintf-posix-tests (Files): Likewise.
41632         * modules/vsnprintf-posix-tests (Files): Likewise.
41633         * modules/vsnprintf-tests (Files): Likewise.
41634         * modules/vsprintf-posix-tests (Files): Likewise.
41635         * modules/wcrtomb-tests (Files): Likewise.
41636         * modules/wcsnrtombs-tests (Files): Likewise.
41637         * modules/wcsrtombs-tests (Files): Likewise.
41638         * modules/wcwidth-tests (Files): Likewise.
41639         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41640         * tests/test-isinf.c (isinf): Likewise.
41641         * tests/test-isnan.c (isnan): Likewise.
41642         * tests/test-signbit.c (signbit): Likewise.
41643         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41644         declaration, either as macro or with correct signature.
41645         (select): Ensure function under test is declared with correct
41646         signature in correct header.
41647         * tests/test-atexit.c (atexit): Likewise.
41648         * tests/test-btowc.c (btowc): Likewise.
41649         * tests/test-canonicalize-lgpl.c (realpath)
41650         (canonicalize_file_name): Likewise.
41651         * tests/test-ceilf1.c (ceilf): Likewise.
41652         * tests/test-ceill.c (ceill): Likewise.
41653         * tests/test-chown.c (chown): Likewise.
41654         * tests/test-dprintf-posix.c (dprintf): Likewise.
41655         * tests/test-dup2.c (dup2): Likewise.
41656         * tests/test-dup3.c (dup3): Likewise.
41657         * tests/test-duplocale.c (duplocale): Likewise.
41658         * tests/test-fchdir.c (fchdir): Likewise.
41659         * tests/test-fchownat.c (fchownat): Likewise.
41660         * tests/test-fcntl.c (fcntl): Likewise.
41661         * tests/test-fdopendir.c (fdopendir): Likewise.
41662         * tests/test-fflush.c (fflush): Likewise.
41663         * tests/test-flock.c (flock): Likewise.
41664         * tests/test-floorf1.c (floorf): Likewise.
41665         * tests/test-floorl.c (floorl): Likewise.
41666         * tests/test-fnmatch.c (fnmatch): Likewise.
41667         * tests/test-fopen.c (fopen): Likewise.
41668         * tests/test-fprintf-posix.c (fprintf): Likewise.
41669         * tests/test-freopen.c (freopen): Likewise.
41670         * tests/test-frexp.c (frexp): Likewise.
41671         * tests/test-frexpl.c (frexpl): Likewise.
41672         * tests/test-fseek.c (fseek): Likewise.
41673         * tests/test-fseeko.c (fseeko): Likewise.
41674         * tests/test-fstatat.c (fstatat): Likewise.
41675         * tests/test-fsync.c (fsync): Likewise.
41676         * tests/test-ftell.c (ftell): Likewise.
41677         * tests/test-ftello.c (ftello): Likewise.
41678         * tests/test-futimens.c (futimens): Likewise.
41679         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41680         (gai_strerror): Likewise.
41681         * tests/test-getcwd.c (getcwd): Likewise.
41682         * tests/test-getdelim.c (getdelim): Likewise.
41683         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41684         * tests/test-getgroups.c (getgroups): Likewise.
41685         * tests/test-gethostname.c (gethostname): Likewise.
41686         * tests/test-getline.c (getline): Likewise.
41687         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41688         Likewise.
41689         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41690         * tests/test-glob.c (glob, globfree): Likewise.
41691         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41692         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41693         * tests/test-inet_pton.c (inet_pton): Likewise.
41694         * tests/test-isblank.c (isblank): Likewise.
41695         * tests/test-lchown.c (lchown): Likewise.
41696         * tests/test-ldexpl.c (ldexpl): Likewise.
41697         * tests/test-link.c (link): Likewise.
41698         * tests/test-linkat.c (linkat): Likewise.
41699         * tests/test-lseek.c (lseek): Likewise.
41700         * tests/test-lstat.c (lstat): Likewise.
41701         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41702         * tests/test-mbsinit.c (mbsinit): Likewise.
41703         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41704         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41705         * tests/test-memchr.c (memchr): Likewise.
41706         * tests/test-memcmp.c (memcmp): Likewise.
41707         * tests/test-memmem.c (memmem): Likewise.
41708         * tests/test-memrchr.c (memrchr): Likewise.
41709         * tests/test-mkdir.c (mkdir): Likewise.
41710         * tests/test-mkdirat.c (mkdirat): Likewise.
41711         * tests/test-mkfifo.c (mkfifo): Likewise.
41712         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41713         * tests/test-mknod.c (mknod): Likewise.
41714         * tests/test-nanosleep.c (nanosleep): Likewise.
41715         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41716         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41717         Likewise.
41718         * tests/test-open.c (open): Likewise.
41719         * tests/test-openat.c (openat): Likewise.
41720         * tests/test-perror.c (perror): Likewise.
41721         * tests/test-pipe2.c (pipe2): Likewise.
41722         * tests/test-poll.c (poll): Likewise.
41723         * tests/test-popen.c (popen, pclose): Likewise.
41724         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41725         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41726         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41727         (posix_spawn_file_actions_destroy)
41728         (posix_spawn_file_actions_addclose)
41729         (posix_spawn_file_actions_addopen)
41730         (posix_spawn_file_actions_adddup2): Likewise.
41731         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41732         * tests/test-pread.c (pread): Likewise.
41733         * tests/test-printf-posix.c (printf): Likewise.
41734         * tests/test-pty.c (openpty, forkpty): Likewise.
41735         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41736         (random_r): Likewise.
41737         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41738         * tests/test-readlink.c (readlink): Likewise.
41739         * tests/test-remove.c (remove): Likewise.
41740         * tests/test-rename.c (rename): Likewise.
41741         * tests/test-renameat.c (renameat): Likewise.
41742         * tests/test-rmdir.c (rmdir): Likewise.
41743         * tests/test-round1.c (round): Likewise.
41744         * tests/test-roundf1.c (roundf): Likewise.
41745         * tests/test-roundl.c (roundl): Likewise.
41746         * tests/test-setenv.c (setenv): Likewise.
41747         * tests/test-sigaction.c (sigaction): Likewise.
41748         * tests/test-sleep.c (sleep): Likewise.
41749         * tests/test-snprintf.c (snprintf): Likewise.
41750         * tests/test-sprintf-posix.c (sprintf): Likewise.
41751         * tests/test-stat.c (stat): Likewise.
41752         * tests/test-stpncpy.c (stpncpy): Likewise.
41753         * tests/test-strcasestr.c (strcasestr): Likewise.
41754         * tests/test-strchrnul.c (strchrnul): Likewise.
41755         * tests/test-strerror.c (strerror): Likewise.
41756         * tests/test-strsignal.c (strsignal): Likewise.
41757         * tests/test-strstr.c (strstr): Likewise.
41758         * tests/test-strtod.c (strtod): Likewise.
41759         * tests/test-strverscmp.c (strverscmp): Likewise.
41760         * tests/test-symlink.c (symlink): Likewise.
41761         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41762         * tests/test-times.c (times): Likewise.
41763         * tests/test-trunc1.c (trunc): Likewise.
41764         * tests/test-truncf1.c (truncf): Likewise.
41765         * tests/test-truncl.c (truncl): Likewise.
41766         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41767         Likewise.
41768         * tests/test-uname.c (uname): Likewise.
41769         * tests/test-unlink.c (unlink): Likewise.
41770         * tests/test-unlinkat.c (unlinkat): Likewise.
41771         * tests/test-unsetenv.c (unsetenv): Likewise.
41772         * tests/test-usleep.c (usleep): Likewise.
41773         * tests/test-utimensat.c (utimensat): Likewise.
41774         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41775         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41776         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41777         * tests/test-vprintf-posix.c (vprintf): Likewise.
41778         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41779         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41780         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41781         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41782         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41783         * tests/test-wcwidth.c (wcwidth): Likewise.
41784
41785         build: pull in conditional headers during GNULIB_POSIXCHECK
41786         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41787         definitions from any conditionally-included headers.
41788         * lib/stdlib.in.h (includes): Likewise.
41789         * lib/unistd.in.h (includes): Likewise.
41790
41791 2009-12-24  Bruno Haible  <bruno@clisp.org>
41792
41793         * tests/test-argv-iter.c: Include header file being tested immediately
41794         after config.h.
41795         * tests/test-base64.c: Likewise.
41796         * tests/test-flock.c: Likewise.
41797         * tests/test-fsync.c: Likewise.
41798         * tests/test-getdate.c: Likewise.
41799         * tests/test-getndelim2.c: Likewise.
41800         * tests/test-isfinite.c: Likewise.
41801         * tests/test-isinf.c: Likewise.
41802         * tests/test-strerror.c: Likewise.
41803         * tests/test-strsignal.c: Likewise.
41804
41805 2009-12-23  Eric Blake  <ebb9@byu.net>
41806
41807         unistd: work around cygwin bug
41808         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
41809         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
41810         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41811
41812 2009-12-23  Bruno Haible  <bruno@clisp.org>
41813
41814         localename: More tests.
41815         * tests/test-localename.c (SIZEOF): New macro.
41816         (categories): New variable.
41817         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
41818         test_locale_name_default): Add test w.r.t. thread locale.
41819         (test_locale_name_thread): New function.
41820         (main): Invoke it.
41821
41822         localename: Make aware of thread locale.
41823         * lib/localename.h (gl_locale_name_thread): New declaration.
41824         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
41825         behaviour with respect to thread locale.
41826         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
41827         <langinfo.h>, glthread/lock.h.
41828         (SIZE_BITS): New macro.
41829         (string_hash): New function.
41830         (struct hash_node): New type.
41831         (HASH_TABLE_SIZE): New macro.
41832         (struniq_hash_table, struniq_lock): New variables.
41833         (struniq): New function.
41834         (gl_locale_name_thread): New function.
41835         (gl_locale_name): Invoke it.
41836         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
41837         * modules/localename (Depends-on): Add lock.
41838         Reported by Mike Gran <spk121@yahoo.com>.
41839
41840 2009-12-23  Eric Blake  <ebb9@byu.net>
41841
41842         va-args: new module
41843         * modules/va-args: New file.
41844         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41845         * MODULES.html.sh (Core language properties): Mention it.
41846
41847         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41848         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41849         named alias for __attribute__((__unused__)).
41850         * lib/chown.c: Update client.
41851         * lib/fchmodat.c: Likewise.
41852         * lib/fts.c: Likewise.
41853         * lib/getdate.y: Likewise.
41854         * lib/getgroups.c: Likewise.
41855         * lib/getopt.c: Likewise.
41856         * lib/getugroups.c: Likewise.
41857         * lib/mkdir.c: Likewise.
41858         * lib/mkfifo.c: Likewise.
41859         * lib/mkfifoat.c: Likewise.
41860         * lib/mknod.c: Likewise.
41861         * lib/mknodat.c: Likewise.
41862         * lib/readlink.c: Likewise.
41863         * lib/se-context.in.h: Likewise.
41864         * lib/se-selinux.in.h: Likewise.
41865         * lib/sockets.c: Likewise.
41866         * lib/symlink.c: Likewise.
41867         * lib/symlinkat.c: Likewise.
41868         * lib/unicodeio.c: Likewise.
41869         * lib/unistr.h: Likewise.
41870         * tests/test-areadlink.c: Likewise.
41871         * tests/test-areadlinkat.c: Likewise.
41872         * tests/test-filenamecat.c: Likewise.
41873         * tests/test-fseeko.c: Likewise.
41874         * tests/test-ftello.c: Likewise.
41875         * tests/test-getdate.c: Likewise.
41876         * tests/test-getgroups.c: Likewise.
41877         * tests/test-gethostname.c: Likewise.
41878         * tests/test-quotearg.c: Likewise.
41879         * tests/test-version-etc.c: Likewise.
41880         * tests/test-xalloc-die.c: Likewise.
41881         * tests/test-xfprintf-posix.c: Likewise.
41882         * tests/test-xprintf-posix.c: Likewise.
41883         * tests/test-xvasprintf.c: Likewise.
41884
41885         tests: avoid compiler warnings
41886         * tests/test-fcntl.c (main): Delete unused parameters.
41887         * tests/test-freopen-safer.c (main): Likewise.
41888         * tests/test-xalloc-die.c (main): Mark unused parameters.
41889         * tests/test-fseeko.c (main): Likewise.
41890         * tests/test-ftello.c (main): Likewise.
41891         * tests/test-nanosleep.c (main): Avoid declaration warning.
41892         * tests/test-sleep.c (main): Likewise.
41893         * tests/test-unsetenv.c (main): Silence warning about string
41894         literal.
41895         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41896
41897 2009-12-23  Bruno Haible  <bruno@clisp.org>
41898
41899         * tests/test-localename.c (test_locale_name): New function, extracted
41900         from main. Also test mixed situations.
41901         (test_locale_name_posix, test_locale_name_environ,
41902         test_locale_name_default): New functions.
41903         (main): Invoke them all.
41904         * modules/localename-tests (configure.ac): Test for newlocale.
41905
41906 2009-12-23  Bruno Haible  <bruno@clisp.org>
41907
41908         unistd: Ensure getcwd gets declared before being overridden.
41909         * lib/unistd.in.h: Conditionally include <io.h>.
41910
41911 2009-12-22  Bruno Haible  <bruno@clisp.org>
41912
41913         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41914         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41915         (gl_WCHAR_H): Invoke it.
41916         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41917         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41918         Reported by Karl Berry <karl@freefriends.org>.
41919
41920 2009-12-22  Eric Blake  <ebb9@byu.net>
41921
41922         math, unistd: avoid redundant includes
41923         * lib/math.in.h (isnan): No need to re-include <math.h>.
41924         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41925
41926         getsubopt: work around cygwin bug
41927         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41928         avoid conflicting with system getsubopt.
41929         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41930         bug.
41931
41932         getopt: synchronize from glibc
41933         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41934         parameter order.  Adjust all callers.
41935         (_getopt_internal_r, main): Adjust quoting in error messages.
41936         Drop considerations for outdated POSIX 1003.2 error message.
41937         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41938         callers.
41939         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41940
41941         test-getopt: test stderr behavior
41942         * modules/getopt-posix-tests (Depends-on): Add dup2.
41943         * tests/test-getopt.c (ASSERT): Avoid stderr.
41944         (main): Move stderr to a temporary file.
41945         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41946         Instead, add parameter to inform caller if output occurred.
41947         (test_getopt): Adjust all existing tests to expect silence, and
41948         add new tests of leading ":".
41949         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41950         glibc shortcomings with leading "-:" or "+:" in optstring.
41951         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41952         Likewise.
41953         * doc/posix-functions/getopt.texi (getopt): Likewise.
41954
41955         test-getopt: enhance test
41956         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41957         supports optind=0.
41958         * tests/test-getopt.c (OPTIND_MIN): Move...
41959         * tests/test-getopt.h (OPTIND_MIN): ...here.
41960         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41961         Require that optind=0 works, since modern BSD supports it in
41962         addition to optreset, and since coreutils expects it.
41963         (test_getopt_long_only): New test.
41964         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41965         glibc shortcomings with 'W;', and enforcement of optind=0.
41966         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41967         Likewise.
41968
41969 2009-12-21  Bruno Haible  <bruno@clisp.org>
41970
41971         localename: Improvements for MacOS X and Cygwin.
41972         * lib/localename.h (gl_locale_name_environ): New declaration.
41973         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41974         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41975         (gl_locale_name_posix): Invoke it.
41976         (gl_locale_name_default): Add comments. Use Windows native API also on
41977         Cygwin.
41978
41979 2009-12-21  Bruno Haible  <bruno@clisp.org>
41980
41981         Update list of Win32 locale ids.
41982         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41983         (LANG_SAMI): Renamed from LANG_SAAMI.
41984         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41985         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41986         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41987         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41988         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41989         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41990         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41991         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41992         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41993         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41994         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41995         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41996         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41997         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41998         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41999         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42000         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42001         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42002         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42003         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42004         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42005         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42006         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42007         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42008         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42009         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42010         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42011         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42012         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42013         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42014         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42015         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42016         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42017         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42018         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42019         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42020         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42021         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42022         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42023         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42024         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42025         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42026         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42027         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42028         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42029         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42030         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42031         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42032         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42033         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42034         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42035         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42036         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42037         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42038         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42039         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42040         Add more languages and countries for Sami, Sorbian. Add more countries
42041         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42042         for Pashto. Change country for Syriac, Tswana.
42043
42044 2009-12-21  Eric Blake  <ebb9@byu.net>
42045
42046         test-utimens: avoid spurious failure
42047         * tests/test-chown.h (nap): Factor...
42048         * tests/nap.h: ...into new file.
42049         * tests/test-lchown.h (nap): Avoid duplication.
42050         * tests/test-utimens-common.h (nap): Use shared implementation,
42051         necessary on file systems with 1-second resolution.
42052         * modules/chown-tests (Files): Include new file.
42053         * modules/fdutimensat-tests (Files): Likewise.
42054         * modules/futimens-tests (Files): Likewise.
42055         * modules/lchown-tests (Files): Likewise.
42056         * modules/openat-tests (Files): Likewise.
42057         * modules/utimens-tests (Files): Likewise.
42058         * modules/utimensat-tests (Files): Likewise.
42059
42060 2009-12-19  Eric Blake  <ebb9@byu.net>
42061
42062         futimens, utimensat: work around Linux bug
42063         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42064         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42065         * lib/utimensat.c (rpl_utimensat): Work around it.
42066         * lib/futimens.c (rpl_futimens): Adjust comment.
42067
42068         utimens: work around Linux ctime bug
42069         * lib/utimens.c (detect_ctime_bug): New helper function.
42070         (update_timespec): Differentiate between workaround needed for
42071         this bug vs. what is needed for systems that lack utimensat.
42072         (fdutimens, lutimens): Work around bug.
42073
42074         utimens: check for ctime update
42075         * tests/test-utimens-common.h (check_ctime): Define.
42076         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42077         * tests/test-futimens.h (test_futimens): Likewise.
42078         * tests/test-lutimens.h (test_lutimens): Likewise.
42079         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42080         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42081
42082 2009-12-19  Bruno Haible  <bruno@clisp.org>
42083
42084         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42085         * tests/test-dprintf-posix2.sh: New file.
42086         * tests/test-dprintf-posix2.c: New file.
42087         * modules/dprintf-posix-tests (Files): Add them.
42088         (configure.ac): Check for getrlimit and setrlimit.
42089         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42090
42091 2009-12-19  Bruno Haible  <bruno@clisp.org>
42092
42093         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42094         * tests/test-fprintf-posix3.sh: New file.
42095         * tests/test-fprintf-posix3.c: New file.
42096         * modules/fprintf-posix-tests (Files): Add them.
42097         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42098
42099 2009-12-19  Eric Blake  <ebb9@byu.net>
42100
42101         dirfd: fix prototype
42102         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42103         * lib/dirfd.c (dirfd): Likewise.
42104
42105         canonicalize: reduce memory usage
42106         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42107         allocation to size.
42108         Reported by Solar Designer <solar@openwall.com>.
42109
42110 2009-12-19  Bruno Haible  <bruno@clisp.org>
42111
42112         New module attribute 'Applicability'.
42113         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42114         * gnulib-tool: New option --extract-applicability.
42115         (func_usage): Document it.
42116         (sed_extract_prog): Recognize it.
42117         (func_get_applicability): New function.
42118         (func_import): Generalize handling of 'link-warning' module.
42119         * modules/link-warning (Applicability): New section.
42120         * modules/arg-nonnull (Applicability): New section.
42121         Repoted by Simon Josefsson <simon@josefsson.org>.
42122
42123 2009-12-19  Bruno Haible  <bruno@clisp.org>
42124
42125         fflush: tweak
42126         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42127         * lib/fseeko.c (rpl_fseeko): Likewise.
42128
42129 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42130
42131         * lib/gl_list.h: Fix typo in comment.
42132
42133 2009-12-16  Eric Blake  <ebb9@byu.net>
42134
42135         fcntl: use to simplify other modules
42136         * modules/cloexec (Depends-on): Add fcntl.
42137         * modules/fchdir (Depends-on): Likewise.
42138         * modules/fd-safer-flag (Depends-on): Likewise.
42139         * modules/unistd-safer (Depends-on): Likewise.
42140         * modules/dup3 (configure.ac): Set module indicator.
42141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42142         missing.
42143         * lib/fchdir.c (_gl_register_dup): Fix comment.
42144         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42145         * lib/dup-safer.c (dup_safer): Likewise.
42146         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42147         * lib/dup3.c (dup3): Likewise.
42148         * tests/test-fchdir.c (main): Enhance test.
42149         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42150
42151         fcntl: port portions of fcntl to mingw
42152         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42153         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42154         replacement for mingw.
42155         * modules/fcntl (Description): Update.
42156         (Depends-on): Add dup2.
42157         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42158         * modules/fcntl-h (Makefile.am): Substitute it.
42159         * lib/fcntl.in.h (fcntl): Update declaration.
42160         (F_DUPFD, F_GETFD): New macros, when needed.
42161         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42162         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42163         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42164         we now guarantee.
42165
42166         fcntl: work around cygwin bug in F_DUPFD
42167         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42168         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42169         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42170         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42171         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42172
42173         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42174         * modules/fcntl (Files): List new files.
42175         (configure.ac): Run a test.
42176         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42177         * lib/fcntl.c (rpl_fcntl): Likewise.
42178         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42179         (gl_FCNTL_H): Always replace fcntl.h.
42180         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42181         * lib/fcntl.in.h (fcntl): Declare replacement.
42182         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42183         needed, plus a witness.
42184         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42185         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42186         * tests/test-fcntl.c: New file.
42187         * modules/fcntl-tests: Likewise.
42188
42189         binary-io: avoid potential compilation warning
42190         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42191         directives.
42192
42193         fflush: avoid compilation error on NetBSD
42194         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42195         between off_t and fpos_t, since the latter is sometimes a struct.
42196         * lib/fseeko.c (rpl_fseeko): Likewise.
42197         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42198
42199 2009-12-15  Eric Blake  <ebb9@byu.net>
42200
42201         fcntl-h, stdio, sys_ioctl: fix declarations
42202         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42203         function must not take arguments.
42204         * lib/sys_ioctl.in.h (ioctl): Likewise.
42205         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42206         (open): Add a link warning.
42207
42208 2009-12-15  Jim Meyering  <meyering@redhat.com>
42209
42210         areadlink, areadlink-with-size: relax license to LGPLv2+
42211         * modules/areadlink (License): Relax to LGPLv2+.
42212         * modules/areadlink-with-size (License): Likewise.
42213
42214 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42215             Bruno Haible  <bruno@clisp.org>
42216
42217         *printf: Fix memory leak.
42218         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42219         * lib/vfprintf.c (vfprintf): Likewise.
42220         * lib/dprintf.c (dprintf): Likewise.
42221         * lib/vdprintf.c (vdprintf): Likewise.
42222
42223 2009-12-14  Eric Blake  <ebb9@byu.net>
42224
42225         accept4: adjust module dependencies
42226         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42227
42228         utimens: one more try at avoiding compiler warning
42229         * lib/utimens.c (lutimens): Lower scope of result.
42230
42231 2009-12-13  Bruno Haible  <bruno@clisp.org>
42232
42233         Move the malloc checking from module 'list' to new module 'xlist'.
42234         * modules/xlist: New file.
42235         * lib/gl_xlist.h: New file.
42236         * lib/gl_xlist.c: New file.
42237         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42238         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42239         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42240         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42241         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42242         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42243         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42244         gl_sortedlist_nx_add): New declarations.
42245         (struct gl_list_implementation): Rename and change methods accordingly.
42246         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42247         (gl_list_nx_create): Renamed from gl_list_create.
42248         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42249         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42250         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42251         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42252         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42253         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42254         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42255         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42256         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42257         gl_list_create_empty.
42258         (gl_list_nx_create): Renamed from gl_list_create.
42259         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42260         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42261         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42262         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42263         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42264         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42265         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42266         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42267         * lib/gl_array_list.c: Don't include xalloc.h.
42268         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42269         NULL upon out-of-memory.
42270         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42271         out-of-memory.
42272         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42273         Change return type to 'int'.
42274         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42275         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42276         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42277         upon out-of-memory.
42278         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42279         upon out-of-memory.
42280         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42281         upon out-of-memory.
42282         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42283         upon out-of-memory.
42284         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42285         out-of-memory.
42286         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42287         Update.
42288         (gl_array_list_implementation): Update.
42289         * lib/gl_carray_list.c: Don't include xalloc.h.
42290         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42291         Return NULL upon out-of-memory.
42292         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42293         out-of-memory.
42294         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42295         Change return type to 'int'.
42296         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42297         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42298         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42299         upon out-of-memory.
42300         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42301         upon out-of-memory.
42302         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42303         out-of-memory.
42304         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42305         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42306         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42307         Update.
42308         (gl_carray_list_implementation): Update.
42309         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42310         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42311         gl_linked_create_empty. Return NULL upon out-of-memory.
42312         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42313         out-of-memory.
42314         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42315         Change return type to 'int'. Return -1 upon out-of-memory.
42316         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42317         out-of-memory.
42318         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42319         upon out-of-memory.
42320         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42321         upon out-of-memory.
42322         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42323         NULL upon out-of-memory.
42324         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42325         upon out-of-memory.
42326         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42327         out-of-memory.
42328         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42329         Update.
42330         * lib/gl_linked_list.c: Don't include xalloc.h.
42331         (gl_linked_list_implementation): Update.
42332         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42333         (add_to_bucket): Change return type to 'int'.
42334         (gl_linkedhash_list_implementation): Update.
42335         * lib/gl_anytree_list1.h (free_subtree): New function.
42336         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42337         gl_tree_create_empty. Return NULL upon out-of-memory.
42338         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42339         Change return type to 'int'. Return -1 upon out-of-memory.
42340         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42341         out-of-memory.
42342         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42343         (gl_tree_remove_node): New function, moved here from
42344         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42345         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42346         Update.
42347         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42348         malloc, not xmalloc. Return NULL upon out-of-memory.
42349         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42350         out-of-memory.
42351         (gl_tree_remove_node_from_tree): New function, extracted from
42352         gl_tree_remove_node.
42353         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42354         upon out-of-memory.
42355         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42356         out-of-memory.
42357         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42358         upon out-of-memory.
42359         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42360         upon out-of-memory.
42361         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42362         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42363         not xmalloc. Return NULL upon out-of-memory.
42364         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42365         out-of-memory.
42366         (gl_tree_remove_node_from_tree): New function, extracted from
42367         gl_tree_remove_node.
42368         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42369         upon out-of-memory.
42370         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42371         out-of-memory.
42372         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42373         upon out-of-memory.
42374         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42375         upon out-of-memory.
42376         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42377         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42378         gl_anytree_list1.h before gl_anyavltree_list2.h.
42379         (gl_avltree_list_implementation): Update.
42380         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42381         gl_anytree_list1.h before gl_anyavltree_list2.h.
42382         (gl_rbtree_list_implementation): Update.
42383         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42384         Change return type to 'int'. Return -1 upon out-of-memory. Use
42385         __builtin_expect.
42386         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42387         (gl_avltreehash_list_implementation): Update.
42388         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42389         (gl_rbtreehash_list_implementation): Update.
42390         * modules/array-list (Depends-on): Remove xalloc.
42391         * modules/carray-list (Depends-on): Likewise.
42392         * modules/linked-list (Depends-on): Likewise.
42393         * modules/linkedhash-list (Depends-on): Likewise.
42394         * modules/avltree-list (Depends-on): Likewise.
42395         * modules/rbtree-list (Depends-on): Likewise.
42396         * modules/avltreehash-list (Depends-on): Likewise.
42397         * modules/rbtreehash-list (Depends-on): Likewise.
42398
42399         * modules/xsublist: New file.
42400         * lib/gl_xsublist.h: New file.
42401         * lib/gl_xsublist.c: New file.
42402         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42403         (gl_sublist_nx_create): New declaration.
42404         * lib/gl_sublist.c: Don't include xalloc.h.
42405         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42406         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42407         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42408         Change return type to 'int'. Return -1 upon out-of-memory.
42409         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42410         upon out-of-memory.
42411         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42412         NULL upon out-of-memory.
42413         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42414         upon out-of-memory.
42415         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42416         NULL upon out-of-memory.
42417         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42418         NULL upon out-of-memory.
42419         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42420         upon out-of-memory.
42421         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42422         (gl_sublist_list_implementation): Update.
42423         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42424         upon out-of-memory.
42425         * modules/sublist (Depends-on): Remove xalloc.
42426
42427         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42428         * tests/test-carray_list.c: Likewise.
42429         * tests/test-linked_list.c: Likewise.
42430         * tests/test-linkedhash_list.c: Likewise.
42431         * tests/test-avltree_list.c: Likewise.
42432         * tests/test-rbtree_list.c: Likewise.
42433         * tests/test-avltreehash_list.c: Likewise.
42434         * tests/test-rbtreehash_list.c: Likewise.
42435         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42436         * modules/carray-list-tests (Makefile.am): Likewise.
42437         * modules/linked-list-tests (Makefile.am): Likewise.
42438         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42439         * modules/avltree-list-tests (Makefile.am): Likewise.
42440         * modules/rbtree-list-tests (Makefile.am): Likewise.
42441         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42442         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42443
42444         * NEWS: Mention the changes.
42445
42446         * lib/clean-temp.c: Include gl_xlist.h.
42447         * modules/clean-temp (Depends-on): Add xlist.
42448
42449         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42450         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42451
42452         * tests/test-array_oset.c: Include gl_xlist.h.
42453         * modules/array-oset-tests (Depends-on): Add xlist.
42454
42455         Reported by José E. Marchesi <jemarch@gnu.org>.
42456
42457 2009-12-13  Bruno Haible  <bruno@clisp.org>
42458
42459         Move the malloc checking from module 'oset' to new module 'xoset'.
42460         * modules/xoset: New file.
42461         * lib/gl_xoset.h: New file.
42462         * lib/gl_xoset.c: New file.
42463         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42464         declarations.
42465         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42466         (struct gl_oset_implementation): Rename and change methods accordingly.
42467         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42468         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42469         'int'. Mark as __warn_unused_result__.
42470         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42471         gl_oset_create_empty.
42472         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42473         'int'.
42474         * lib/gl_array_oset.c: Don't include xalloc.h.
42475         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42476         malloc, not xmalloc.
42477         (grow): Change return type to 'int'. Don't call xalloc_die.
42478         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42479         to 'int'.
42480         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42481         'int'.
42482         (gl_array_oset_implementation): Update.
42483         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42484         gl_tree_create_empty.
42485         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42486         'int'.
42487         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42488         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42489         xmalloc.
42490         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42491         not xmalloc.
42492         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42493         xmalloc.
42494         (gl_avltree_oset_implementation): Update.
42495         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42496         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42497         xmalloc.
42498         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42499         not xmalloc.
42500         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42501         xmalloc.
42502         (gl_rbtree_oset_implementation): Update.
42503         * modules/array-oset (Depends-on): Remove xalloc.
42504         * modules/avltree-oset (Depends-on): Likewise.
42505         * modules/rbtree-oset (Depends-on): Likewise.
42506         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42507         * tests/test-avltree_oset.c: Likewise.
42508         * tests/test-rbtree_oset.c: Likewise.
42509         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42510         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42511         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42512         * NEWS: Mention the change.
42513
42514 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42515
42516         maint.mk: allow a project to override release-prep commands
42517         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42518         commands into a new rule.
42519         (release-prep): New rule.
42520         (release-prep-hook): New overridable variable.
42521
42522 2009-12-13  Bruno Haible  <bruno@clisp.org>
42523
42524         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42525
42526 2009-12-13  Jim Meyering  <meyering@redhat.com>
42527
42528         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42529         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42530
42531 2009-12-12  Bruno Haible  <bruno@clisp.org>
42532
42533         duplocale: Tweak.
42534         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42535
42536 2009-12-12  Karl Berry  <karl@gnu.org>
42537
42538         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42539
42540 2009-12-12  Bruno Haible  <bruno@clisp.org>
42541
42542         * m4/po.m4: Undo incorrect untabification.
42543
42544 2009-12-12  Bruno Haible  <bruno@clisp.org>
42545
42546         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42547         * modules/c-strtod (Depends-on): Add locale.
42548         * modules/c-strtold (Depends-on): Likewise.
42549
42550 2009-12-12  Bruno Haible  <bruno@clisp.org>
42551
42552         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42553
42554 2009-12-11  Eric Blake  <ebb9@byu.net>
42555
42556         setenv: relax requirement in light of POSIX ruling
42557         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42558         not NULL.
42559         * tests/test-setenv.c (main): Relax test.
42560         * tests/test-unsetenv.c (main): Likewise.
42561         * doc/posix-functions/setenv.texi (setenv): Document this.
42562         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42563
42564 2009-12-11  Bruno Haible  <bruno@clisp.org>
42565
42566         New module 'fd-safer-flag'.
42567         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42568         * lib/dup-safer.c (dup_safer_flag): Remove function.
42569         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42570         * lib/fd-safer.c (fd_safer_flag): Remove function.
42571         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42572         * modules/cloexec (configure.ac): Drop indicator macro.
42573         * modules/fd-safer-flag: New file.
42574         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42575         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42576         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42577
42578 2009-12-11  Bruno Haible  <bruno@clisp.org>
42579
42580         Tests for module 'nl_langinfo'.
42581         * modules/nl_langinfo-tests: New file.
42582         * tests/test-nl_langinfo.sh: New file.
42583         * tests/test-nl_langinfo.c: New file.
42584
42585         New module 'nl_langinfo'.
42586         * lib/nl_langinfo.c: New file.
42587         * m4/nl_langinfo.m4: New file.
42588         * modules/nl_langinfo: New file.
42589         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42590
42591 2009-12-11  Bruno Haible  <bruno@clisp.org>
42592
42593         Tests for module 'langinfo'.
42594         * modules/langinfo-tests: New file.
42595         * tests/test-langinfo.c: New file.
42596
42597         New module 'langinfo'.
42598         * lib/langinfo.in.h: New file.
42599         * m4/langinfo_h.m4: New file.
42600         * modules/langinfo: New file.
42601         * doc/posix-headers/langinfo.texi: Mention the new module.
42602
42603 2009-12-11  Bruno Haible  <bruno@clisp.org>
42604
42605         * lib/config.charset: Untabify.
42606
42607 2009-12-11  Bruno Haible  <bruno@clisp.org>
42608
42609         * modules/unistd-safer (configure.ac): Drop indicator macro.
42610
42611 2009-12-11  Bruno Haible  <bruno@clisp.org>
42612
42613         Move pipe2-safer code to its own file.
42614         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42615         * lib/pipe-safer.c (pipe2_safer): Remove function.
42616         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42617         (Makefile.am): Add it to lib_SOURCES.
42618
42619 2009-12-10  Bruno Haible  <bruno@clisp.org>
42620
42621         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42622
42623 2009-12-10  Bruno Haible  <bruno@clisp.org>
42624
42625         Declare which arguments expect non-NULL values, for GCC and clang.
42626         * build-aux/arg-nonnull.h: New file.
42627         * modules/arg-nonnull: New file.
42628         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42629         (inet_ntop, inet_pton): Use it.
42630         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42631         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42632         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42633         (open, openat): Use it.
42634         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42635         (fnmatch): Use it.
42636         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42637         (getopt, getopt_long, getopt_long_only): Use it.
42638         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42639         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42640         Use it.
42641         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42642         (iconv_open): Use it.
42643         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42644         (strtoimax, strtoumax): Use it.
42645         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42646         (duplocale): Use it.
42647         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42648         (frexp, frexpl): Use it.
42649         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42650         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42651         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42652         (tsearch, tfind, tdelete, twalk): Use it.
42653         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42654         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42655         sigpending): Use it.
42656         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42657         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42658         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42659         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42660         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42661         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42662         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42663         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42664         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42665         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42666         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42667         Use it.
42668         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42669         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42670         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42671         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42672         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42673         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42674         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42675         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42676         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42677         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42678         strtoull, unsetenv): Use it.
42679         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42680         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42681         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42682         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42683         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42684         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42685         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42686         (strcasecmp, strncasecmp): Use it.
42687         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42688         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42689         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42690         rpl_setsockopt): Use it.
42691         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42692         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42693         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42694         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42695         (gettimeofday): Use it.
42696         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42697         (times): Use it.
42698         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42699         (uname): Use it.
42700         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42701         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42702         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42703         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42704         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42705         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42706         unlinkat, write): Use it.
42707         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42708         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42709         * lib/argv-iter.h: Include arg-nonnull.h.
42710         (_ATTRIBUTE_NONNULL_): Remove macro.
42711         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42712         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42713         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42714         optimization.
42715         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42716         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42717         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42718         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42719         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42720         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42721         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42722         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42723         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42724         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42725         * modules/dirent (Depends-on): Add arg-nonnull.
42726         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42727         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42728         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42729         * modules/fnmatch (Depends-on): Add arg-nonnull.
42730         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42731         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42732         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42733         * modules/glob (Depends-on): Add arg-nonnull.
42734         (Makefile.am): Insert arg-nonnull.h into glob.h.
42735         * modules/iconv_open (Depends-on): Add arg-nonnull.
42736         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42737         * modules/inttypes (Depends-on): Add arg-nonnull.
42738         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42739         * modules/locale (Depends-on): Add arg-nonnull.
42740         (Makefile.am): Insert arg-nonnull.h into locale.h.
42741         * modules/math (Depends-on): Add arg-nonnull.
42742         (Makefile.am): Insert arg-nonnull.h into math.h.
42743         * modules/netdb (Depends-on): Add arg-nonnull.
42744         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42745         * modules/search (Depends-on): Add arg-nonnull.
42746         (Makefile.am): Insert arg-nonnull.h into search.h.
42747         * modules/signal (Depends-on): Add arg-nonnull.
42748         (Makefile.am): Insert arg-nonnull.h into signal.h.
42749         * modules/spawn (Depends-on): Add arg-nonnull.
42750         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42751         * modules/stdio (Depends-on): Add arg-nonnull.
42752         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42753         * modules/stdlib (Depends-on): Add arg-nonnull.
42754         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42755         * modules/string (Depends-on): Add arg-nonnull.
42756         (Makefile.am): Insert arg-nonnull.h into string.h.
42757         * modules/strings (Depends-on): Add arg-nonnull.
42758         (Makefile.am): Insert arg-nonnull.h into strings.h.
42759         * modules/sys_socket (Depends-on): Add arg-nonnull.
42760         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42761         * modules/sys_stat (Depends-on): Add arg-nonnull.
42762         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42763         * modules/sys_time (Depends-on): Add arg-nonnull.
42764         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42765         * modules/sys_times (Depends-on): Add arg-nonnull.
42766         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42767         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42768         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42769         * modules/time (Depends-on): Add arg-nonnull.
42770         (Makefile.am): Insert arg-nonnull.h into time.h.
42771         * modules/unistd (Depends-on): Add arg-nonnull.
42772         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42773         * modules/wchar (Depends-on): Add arg-nonnull.
42774         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42775         * modules/argv-iter (Depends-on): Add arg-nonnull.
42776         * tests/test-canonicalize.c (null_ptr): New function.
42777         (main): Use it.
42778         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42779         (main): Use it.
42780         * tests/test-memmem.c (null_ptr): New function.
42781         (main): Use it.
42782         Reported by Jim Meyering.
42783
42784 2009-12-10  Bruno Haible  <bruno@clisp.org>
42785
42786         Use spaces for indentation, not tabs.
42787         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42788         * m4/*.m4: Untabify.
42789         * build-aux/*.h: Untabify.
42790         * tests/**/*.[hc]: Untabify.
42791         * README: New section "Indent with spaces, not TABs", based on
42792         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42793         * NEWS: Mention the change.
42794
42795 2009-12-10  Bruno Haible  <bruno@clisp.org>
42796
42797         pty test: Fix link error.
42798         * modules/pty-tests (Makefile.am): Add the default LDADD value to
42799         test_pty_LDADD.
42800
42801 2009-12-07  Simon Josefsson  <simon@josefsson.org>
42802
42803         * modules/pty: New file.
42804         * modules/pty-tests: New file.
42805         * m4/pty.m4: New file.
42806         * tests/test-pty.c: New file.
42807         * doc/glibc-headers/pty.texi: Modified.
42808         * doc/glibc-functions/forkpty.texi: Modified.
42809         * doc/glibc-functions/openpty.texi: Modified.
42810
42811 2009-12-10  Bruno Haible  <bruno@clisp.org>
42812
42813         Avoid syntax error in C++ mode.
42814         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
42815
42816 2009-12-10  Bruno Haible  <bruno@clisp.org>
42817
42818         Use sed with option -e.
42819         * gnulib-tool (func_version, func_emit_copyright_notice,
42820         func_emit_initmacro_end, func_import, func_create_testdir): Pass
42821         option -e to sed.
42822         * modules/link-warning (Makefile.am): Likewise.
42823
42824 2009-12-10  Jim Meyering  <meyering@redhat.com>
42825
42826         mgetgroups: do not write bytes beyond end of malloc'd buffer
42827         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
42828         username, we call getgroups with a one-element-shorter buffer,
42829         but still told it the length was original, max_n_groups.
42830
42831 2009-12-09  Eric Blake  <ebb9@byu.net>
42832
42833         cloexec: relax license
42834         * modules/cloexec (Maintainer): Add myself.
42835         (License): Use LGPL, not GPL.
42836
42837         link-warning: optimize generation
42838         * modules/link-warning (Makefile.am): Reduce process usage.
42839
42840 2009-12-09  Bruno Haible  <bruno@clisp.org>
42841
42842         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
42843         workaround was added on 2009-11-17.
42844
42845 2009-12-09  Jim Meyering  <meyering@redhat.com>
42846             Bruno Haible  <bruno@clisp.org>
42847
42848         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42849         * modules/link-warning (Makefile.am): Make the comment-removing sed
42850         command more robust in the face of bootstrap-prepended comment lines.
42851
42852 2009-12-09  Bruno Haible  <bruno@clisp.org>
42853
42854         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42855         most one group.
42856
42857 2009-12-09  Simon Josefsson <simon@josefsson.org>
42858             Bruno Haible  <bruno@clisp.org>
42859
42860         * build-aux/link-warning.h: Add copyright notice.
42861         * modules/link-warning (Makefile.am): Generate link-warning.h from
42862         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42863         * NEWS: Mention change in link-warning module.
42864         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42865         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42866         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42867         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42868         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42869         * modules/math (Makefile.am): Add dependency to math.h.
42870         * modules/search (Makefile.am): Add dependency to search.h.
42871         * modules/signal (Makefile.am): Add dependency to signal.h.
42872         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42873         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42874         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42875         * modules/string (Makefile.am): Add dependency to string.h.
42876         * modules/strings (Makefile.am): Add dependency to strings.h.
42877         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42878         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42879         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42880         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42881         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42882         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42883         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42884         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42885         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42886
42887 2009-12-09  Bruno Haible  <bruno@clisp.org>
42888
42889         fchdir: Optimize away rpl_fstat when possible.
42890         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42891         REPLACE_OPEN_DIRECTORY.
42892         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42893
42894 2009-12-09  Bruno Haible  <bruno@clisp.org>
42895
42896         * lib/fchdir.c: Update comment.
42897
42898 2009-12-09  Bruno Haible  <bruno@clisp.org>
42899
42900         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42901
42902 2009-12-08  Eric Blake  <ebb9@byu.net>
42903
42904         fchdir: avoid memory leak on re-registration.
42905         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42906
42907 2009-12-08  Jim Meyering  <meyering@redhat.com>
42908
42909         init.sh: avoid Solaris 10 /bin/sh portability problem
42910         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42911         sourced script:
42912           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42913           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42914           bar
42915         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42916         and two tests used that idiom.
42917         * tests/init.sh: Update suggested usage comments.
42918         (path_prepend_): New function, to be used in place
42919         of the --src-path=DIR option.
42920         (setup_): Move PATH-prepending code into path_prepend_.
42921         * tests/test-pread.sh: Adapt to new usage.
42922         * tests/test-xalloc-die.sh: Likewise.
42923
42924 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42925
42926         * doc/gnulib.texi (Glibc pty.h): Add.
42927         * doc/glibc-functions/forkpty.texi: Add.
42928         * doc/glibc-functions/openpty.texi: Add.
42929         Suggested by Bruno Haible.
42930
42931 2009-12-08  Eric Blake  <ebb9@byu.net>
42932
42933         fchdir: fix logic bugs
42934         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42935         * tests/test-fchdir.c (main): Enhance test.
42936         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42937         is in use.
42938
42939         dup2: fix logic bugs
42940         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42941         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42942         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42943         exists.
42944         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42945
42946 2009-12-07  Eric Blake  <ebb9@byu.net>
42947
42948         unlink: fix m4 detection
42949         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42950
42951         unistd-safer: add unit test
42952         * modules/unistd-safer-tests: New file.
42953         * tests/test-dup-safer.c: Likewise.
42954         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42955         * tests/test-dup2.c (setmode): Likewise.
42956         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42957
42958         cloexec: preserve text vs. binary across dup_cloexec
42959         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42960         mode.
42961         * modules/dup2-tests (Depends-on): Add binary-io.
42962         * modules/cloexec-tests (Depends-on): Likewise.
42963         * tests/test-dup2.c (setmode, is_mode): New helpers.
42964         (main): Add tests that translation mode is preserved.
42965         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42966         Reported by Bruno Haible.
42967
42968         mgetgroups: reduce duplicate listings
42969         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42970         resulting array.
42971         * tests/test-chown.h (test_chown): Simplify client.
42972         * tests/test-lchown.h (test_lchown): Likewise.
42973
42974 2009-12-06  Bruno Haible  <bruno@clisp.org>
42975
42976         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42977         value.
42978
42979 2009-12-06  Bruno Haible  <bruno@clisp.org>
42980
42981         * lib/progname.c: Include stdio.h, stdlib.h.
42982         (set_program_name): Reject a NULL argument.
42983
42984 2009-12-05  Eric Blake  <ebb9@byu.net>
42985
42986         pipe2-safer: new module
42987         * modules/pipe2-safer: New file.
42988         * lib/unistd-safer.h (pipe2_safer): New prototype.
42989         * lib/unistd--.h (pipe2): New wrapper.
42990         * lib/pipe-safer.c (pipe2_safer): New function.
42991         * modules/pipe (Depends-on): Add pipe2-safer.
42992         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42993
42994         stdlib-safer: preserve cloexec flag for mkostemp[s]
42995         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42996         fd_safer_flag.
42997
42998         unistd-safer: allow preservation of cloexec status via flag
42999         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43000         prototypes.
43001         * lib/dup-safer.c (dup_safer_flag): New function.
43002         * lib/fd-safer.c (fd_safer_flag): Likewise.
43003         * modules/cloexec (configure.ac): Set witness.
43004
43005         test-dup2: enhance test
43006         * modules/dup2-tests (Depends-on): Add cloexec.
43007         * tests/test-dup2.c (main): Enhance test.
43008
43009         cloexec: add dup_cloexec
43010         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43011         header and comments.
43012         * lib/cloexec.c (set_cloexec_flag): Add comments.
43013         (dup_cloexec): New function, with mingw implementation borrowed
43014         from...
43015         * lib/w32spawn.h (dup_noinherit): ...here.
43016         * modules/execute (Depends-on): Add cloexec.
43017         * modules/pipe (Depends-on): Likewise.
43018         * modules/cloexec (Depends-on): Add dup2.
43019         * modules/cloexec-tests (Files): New file.
43020         * tests/test-cloexec.c: Likewise.
43021
43022         test-xalloc-die: fix test for mingw
43023         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43024         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43025         directory and .exe suffix off argv[0] output.
43026
43027         test-fseeko: fix test for mingw
43028         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43029         than undefining fseek, so test will pass on mingw.
43030
43031 2009-12-05  Bruno Haible  <bruno@clisp.org>
43032
43033         * lib/progname.h (set_program_name): Clarify specification.
43034         * lib/progname.c (set_program_name): Likewise.
43035         Reported by Jim Meyering.
43036
43037 2009-12-05  Jim Meyering  <meyering@redhat.com>
43038
43039         maint.mk: backslash-escape parens in default regexp
43040         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43041         backslash-escape the literal parentheses.
43042
43043         maint.mk: news-date-check: use grep -E
43044         * top/maint.mk (today): Define a Make variable, not a...
43045         (news-date-check): ...shell variable.
43046         (news-date-regexp): Use the Make variable.
43047         Use grep's -E option.  Change the failing diagnostic to mention
43048         the variable, $(news-date-regexp).
43049
43050 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43051
43052         maintainer-makefile: allow customization of NEWS entry format
43053         * top/maint.mk (news-date-regexp): New overridable variable.
43054         (news-date-check): Use it.
43055
43056 2009-12-04  Eric Blake  <ebb9@byu.net>
43057
43058         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43059         * lib/mgetgroups.h (xgetgroups): New prototype.
43060         * lib/mgetgroups.c (xgetgroups): New wrapper.
43061         (mgetgroups): Handle ENOSYS.
43062         * modules/mgetgroups (Depends-on): Add realloc.
43063         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43064
43065         mgetgroups: avoid argument promotion issues with -1
43066         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43067         for invalid gid_t.
43068         * tests/test-chown.h (getegid, test_chown): Likewise.
43069         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43070
43071 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43072
43073         exclude: Fix header file problems.
43074         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43075
43076 2009-12-01  Jim Meyering  <meyering@redhat.com>
43077
43078         fts: fts_open: do not let an empty string cause immediate failure
43079         This is required in support of GNU rm, for which the command
43080         "rm A '' B" must process and remove both A and B, in spite of
43081         the empty string argument.
43082         * lib/fts.c (fts_open): Do not let the presence of an empty string
43083         cause fts_open to fail immediately.  Most fts-using tools must be
43084         able to process all arguments, in order, and can be expected to
43085         diagnose such arguments themselves.
43086
43087 2009-11-30  Eric Blake  <ebb9@byu.net>
43088
43089         utimens: fix compilation error
43090         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43091         Declare variable at right scope.
43092
43093 2009-11-29  Jim Meyering  <meyering@redhat.com>
43094
43095         bootstrap: handle perl-5.11's changed --version output
43096         * build-aux/bootstrap (get_version): Handle perl separately,
43097         since perl-5.11's --version output is different.
43098
43099 2009-11-28  Jim Meyering  <meyering@redhat.com>
43100
43101         userspec: depend on the inttostr module, too
43102         * modules/userspec (Depends-on): Add inttostr.
43103
43104         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43105         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43106         number of MAXUID when it evaluates to (uid_t) -1.
43107         Likewise for group ID.  Reported by Matt McCutchen in
43108         <http://savannah.gnu.org/bugs/?28113>
43109
43110         userspec: reformat to use spaces, not TABs
43111         * lib/userspec.c: Expand TABs to spaces.
43112         Add Emacs' "indent-tabs-mode: nil" hint.
43113
43114 2009-11-27  Eric Blake  <ebb9@byu.net>
43115
43116         getopt-gnu: flush out another BSD bug
43117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43118         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43119         flush out BSD bug.
43120         * tests/test-getopt.h (test_getopt): End lists with NULL.
43121         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43122         (test_getopt_long_posix): Enhance test.
43123         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43124         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43125         getopt-gnu.
43126         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43127         Likewise.
43128
43129 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43130
43131         * modules/idpriv-droptemp-tests (Notice): Fix text.
43132
43133 2009-11-27  Jim Meyering  <meyering@redhat.com>
43134
43135         test-xalloc-die: avoid spurious failure due to libtool argv difference
43136         In a libtool-enabled project, this test would fail due to a difference
43137         in the emitted program name, e.g.,
43138         -test-xalloc-die: memory exhausted
43139         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43140         Use program to avoid that.
43141         * modules/xalloc-die-tests (Depends-on): Add progname.
43142         * tests/test-xalloc-die.c: Include progname.h".
43143         (program_name): Remove decl.
43144         (main): Call set_program_name.
43145         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43146
43147 2009-11-26  Richard Jones  <rjones@redhat.com>
43148
43149         w32sock: leave win32 error in place.
43150         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43151
43152 2009-11-26  Eric Blake  <ebb9@byu.net>
43153
43154         init.sh: suggest to use skip_ and fail_ functions in comments
43155         * tests/init.sh: Add a sentence.
43156
43157 2009-11-25  Bruno Haible  <bruno@clisp.org>
43158
43159         init.sh: add documentation in comments
43160         * tests/init.sh: Add some developer and user documentation.
43161
43162 2009-11-26  Jim Meyering  <meyering@redhat.com>
43163
43164         init.sh: accommodate even those who specify bogus srcdir manually
43165         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43166         configure-time tests to be sanitized, so that there is no need to
43167         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43168         (with no double quotes) suffices.  However, since tests may be
43169         invoked manually, and since you may explicitly set srcdir to the
43170         name of a directory containing spaces, do quote its uses here.
43171         * tests/test-pread.sh: Likewise.
43172         Suggested by Bruno Haible.
43173
43174         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43175         * tests/test-pread.sh: Write no data into the pipe, because
43176         test-pread actually reads none.  This avoids a diagnostic,
43177         "bash: echo: write error: Broken pipe", that arises in the unusual
43178         event something is ignoring SIGPIPE, and might be interpreted
43179         as some sort of failure.  Reported by Bruno Haible.
43180
43181 2009-11-25  Jim Meyering  <meyering@redhat.com>
43182
43183         test-pread: cover failure with ESPIPE and EINVAL
43184         * tests/test-pread.c (main): Test for failure, too.
43185         * tests/test-pread.sh: Invoke with stdin on a pipe.
43186         Suggested by Eric Blake.
43187
43188         pread: improvement and fix
43189         * modules/pread (Depends-on): Depend on lseek, for portability to
43190         e.g., mingw.  Suggested by Eric Blake.
43191         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43192
43193         unistd.in.h: correct declaration of pread
43194         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43195         Reported by Richard W.M. Jones.
43196
43197         test-pread.sh: distribute the test script
43198         * modules/pread-tests (Files): Include test-pread.sh.
43199
43200         test-pread.sh: clean up
43201         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43202         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43203         That is unnecessary, since it's always ".".
43204         Suggestion from Eric Blake.
43205
43206         test-pread.sh: make executable
43207         * tests/test-pread.sh: Set executable bit.
43208         Reported by Eric Blake.
43209
43210         correct typo in test-pread.sh
43211         * tests/test-pread.sh: Add #! line.
43212
43213         test pread
43214         * tests/test-pread.c: New file.
43215         * tests/test-pread.sh: Likewise.
43216         * modules/pread-tests: Likewise.
43217
43218         pread: new module
43219         * modules/pread: New file.
43220         * lib/unistd.in.h (pread): Define/declare.
43221         * lib/pread.c (pread): New file.
43222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43223         * modules/unistd (Makefile.am): Substitute witnesses.
43224         * doc/posix-functions/pread.texi (pread): Update.
43225         * MODULES.html.sh: Add pread.
43226
43227 2009-11-25  Jim Meyering  <meyering@redhat.com>
43228
43229         tests/init.sh: new file to be used via most *.sh tests
43230         * tests/init.sh: New file.
43231
43232 2009-11-25  Eric Blake  <ebb9@byu.net>
43233
43234         utimens: work around older Linux failure with symlinks
43235         * lib/utimens.c (lutimensat_works_really): New variable.
43236         (fdutimens, lutimens): Use it to manage kernels that support
43237         nanosecond times on files, but not on symlinks.
43238         Reported by Ondřej Vašík.
43239
43240         utimes: fix configure grammar
43241         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43242
43243 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43244
43245         regex: Fix fastmap for multibyte character ranges.
43246         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43247         characters when a multibyte character range is included.
43248
43249 2009-11-22  Andy Wingo  <wingo@pobox.com>
43250
43251         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43252         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43253
43254 2009-11-24  Bruno Haible  <bruno@clisp.org>
43255
43256         doc: Most *_l functions exist in MacOS X 10.5.
43257         * doc/posix-functions/duplocale.texi: Update platforms list.
43258         * doc/posix-functions/freelocale.texi: Likewise.
43259         * doc/posix-functions/newlocale.texi: Likewise.
43260         * doc/posix-functions/uselocale.texi: Likewise.
43261         * doc/posix-functions/isalnum_l.texi: Likewise.
43262         * doc/posix-functions/isalpha_l.texi: Likewise.
43263         * doc/posix-functions/isblank_l.texi: Likewise.
43264         * doc/posix-functions/iscntrl_l.texi: Likewise.
43265         * doc/posix-functions/isdigit_l.texi: Likewise.
43266         * doc/posix-functions/isgraph_l.texi: Likewise.
43267         * doc/posix-functions/islower_l.texi: Likewise.
43268         * doc/posix-functions/isprint_l.texi: Likewise.
43269         * doc/posix-functions/ispunct_l.texi: Likewise.
43270         * doc/posix-functions/isspace_l.texi: Likewise.
43271         * doc/posix-functions/isupper_l.texi: Likewise.
43272         * doc/posix-functions/iswalnum_l.texi: Likewise.
43273         * doc/posix-functions/iswalpha_l.texi: Likewise.
43274         * doc/posix-functions/iswblank_l.texi: Likewise.
43275         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43276         * doc/posix-functions/iswctype_l.texi: Likewise.
43277         * doc/posix-functions/iswdigit_l.texi: Likewise.
43278         * doc/posix-functions/iswgraph_l.texi: Likewise.
43279         * doc/posix-functions/iswlower_l.texi: Likewise.
43280         * doc/posix-functions/iswprint_l.texi: Likewise.
43281         * doc/posix-functions/iswpunct_l.texi: Likewise.
43282         * doc/posix-functions/iswspace_l.texi: Likewise.
43283         * doc/posix-functions/iswupper_l.texi: Likewise.
43284         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43285         * doc/posix-functions/isxdigit_l.texi: Likewise.
43286         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43287         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43288         * doc/posix-functions/strcoll_l.texi: Likewise.
43289         * doc/posix-functions/strfmon_l.texi: Likewise.
43290         * doc/posix-functions/strftime_l.texi: Likewise.
43291         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43292         * doc/posix-functions/strxfrm_l.texi: Likewise.
43293         * doc/posix-functions/tolower_l.texi: Likewise.
43294         * doc/posix-functions/toupper_l.texi: Likewise.
43295         * doc/posix-functions/towctrans_l.texi: Likewise.
43296         * doc/posix-functions/towlower_l.texi: Likewise.
43297         * doc/posix-functions/towupper_l.texi: Likewise.
43298         * doc/posix-functions/wcscoll_l.texi: Likewise.
43299         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43300         * doc/posix-functions/wctrans_l.texi: Likewise.
43301         * doc/posix-functions/wctype_l.texi: Likewise.
43302         * doc/glibc-functions/strptime_l.texi: Likewise.
43303         * doc/glibc-functions/strtod_l.texi: Likewise.
43304         * doc/glibc-functions/strtof_l.texi: Likewise.
43305         * doc/glibc-functions/strtol_l.texi: Likewise.
43306         * doc/glibc-functions/strtold_l.texi: Likewise.
43307         * doc/glibc-functions/strtoll_l.texi: Likewise.
43308         * doc/glibc-functions/strtoul_l.texi: Likewise.
43309         * doc/glibc-functions/strtoull_l.texi: Likewise.
43310         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43311         * doc/glibc-functions/wcstod_l.texi: Likewise.
43312         * doc/glibc-functions/wcstof_l.texi: Likewise.
43313         * doc/glibc-functions/wcstol_l.texi: Likewise.
43314         * doc/glibc-functions/wcstold_l.texi: Likewise.
43315         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43316         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43317         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43318
43319 2009-11-24  Bruno Haible  <bruno@clisp.org>
43320
43321         duplocale: Fix logic bug.
43322         * lib/duplocale.c: Don't include <langinfo.h>.
43323         (_NL_LOCALE_NAME): Remove macro.
43324         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43325         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43326
43327 2009-11-23  Jim Meyering  <meyering@redhat.com>
43328
43329         test-update-copyright: don't hard-code /usr/bin/perl
43330         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43331         perl to print the current year.  Gilles Espinasse reported that
43332         the replaced use of perl was hard-coded as /usr/bin/perl.
43333
43334 2009-11-23  Bruno Haible  <bruno@clisp.org>
43335
43336         duplocale: Add support for glibc 2.3.x.
43337         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43338
43339 2009-11-22  Bruno Haible  <bruno@clisp.org>
43340
43341         vasnprintf: Tiny optimization.
43342         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43343         MacOS X.
43344
43345 2009-11-22  Bruno Haible  <bruno@clisp.org>
43346
43347         Tests for module 'duplocale'.
43348         * modules/duplocale-tests: New file.
43349         * tests/test-duplocale.c: New file.
43350
43351         New module 'duplocale'.
43352         * m4/duplocale.m4: New file.
43353         * lib/locale.in.h (duplocale): New declaration.
43354         * lib/duplocale.c: New file.
43355         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43356         gl_LOCALE_H_DEFAULTS): New macros.
43357         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43358         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43359         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43360         REPLACE_DUPLOCALE.
43361         * modules/duplocale: New file.
43362         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43363
43364 2009-11-22  Bruno Haible  <bruno@clisp.org>
43365
43366         * modules/locale-tests (configure.ac): Test for newlocale function.
43367         * tests/test-locale.c: When the system has extended locale functions,
43368         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43369
43370         locale: Make locale_t available when possible.
43371         * lib/locale.in.h: Include <xlocale.h> when it exists.
43372         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43373         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43374         * modules/locale (Depends-on): Add extensions.
43375         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43376         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43377
43378 2009-11-22  Bruno Haible  <bruno@clisp.org>
43379
43380         Add comments.
43381         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43382         invocation.
43383         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43384         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43385         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43386
43387 2009-11-22  Bruno Haible  <bruno@clisp.org>
43388
43389         error: account for the possibility of freopen (stdout).
43390         * lib/error.c: Include <unistd.h>.
43391         (flush_stdout): New function, extracted from error and error_at_line.
43392         Determine stdout's fd dynamically.
43393         (error, error_at_line): Invoke flush_stdout.
43394         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43395         * modules/error (Depends-on): Add unistd.
43396
43397 2009-11-22  Bruno Haible  <bruno@clisp.org>
43398
43399         diffseq: Add comment.
43400         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43401
43402 2009-11-22  Jim Meyering  <meyering@redhat.com>
43403
43404         c-stack: avoid defining an unused static function
43405         * lib/c-stack.c (find_stack_direction): Do not define this function
43406         when it will not be used.
43407
43408         diffseq: avoid spurious gcc warnings
43409         * lib/diffseq.h (IF_LINT2): Define.
43410         (compareseq): Use it to initialize two members of "part".
43411         This avoids two used-uninitialized warnings.
43412
43413 2009-11-21  Jim Meyering  <meyering@redhat.com>
43414
43415         c-stack: avoid "ignoring return value of `write'" warning
43416         * lib/c-stack.c: Include "ignore-value.h".
43417         (die): Explicitly ignore each write return value.
43418         * modules/c-stack (Depends-on): Add ignore-value.
43419
43420 2009-11-21  Bruno Haible  <bruno@clisp.org>
43421
43422         diffseq: reduce scope of variable 'best'.
43423         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43424         variable, earlier used for two different purposes.
43425
43426 2009-11-21  Jim Meyering  <meyering@redhat.com>
43427
43428         diffseq: remove useless assignment to "best"
43429         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43430         assignment.  At that point "best" is already guaranteed to be zero.
43431
43432 2009-11-20  Eric Blake  <ebb9@byu.net>
43433
43434         build: mention ftp redirector in release announcements
43435         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43436         values that used to come from cfg.mk; mention FTP redirect URL.
43437         * build-aux/announce-gen: Mention the mirror list.
43438         Suggested by Karl Berry.
43439
43440         nanosleep: improve port to mingw
43441         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43443         LIB_NANOSLEEP, but only when needed.
43444         * modules/select (Link): Document LIBSOCKET.
43445         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43446         enough.
43447
43448         nanosleep: work around cygwin bug
43449         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43450         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43451         bug.
43452         (getnow): Delete, not needed.
43453         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43454         LIB_CLOCK_GETTIME.
43455         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43456         clock-time, gettime.
43457         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43458         bug.
43459         * modules/nanosleep-tests: New test.
43460         * tests/test-nanosleep.c: New file.
43461
43462         sleep: work around cygwin bug
43463         * lib/sleep.c (rpl_sleep): Work around the bug.
43464         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43465         (gl_PREREQ_SLEEP): Delete unused macro.
43466         * modules/sleep (Depends-on): Add verify.
43467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43468         * modules/unistd (Makefile.am): Substitute witness.
43469         * lib/unistd.in.h (sleep): Update prototype.
43470         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43471         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43472         * modules/sleep-tests (Depends-on): Check for alarm.
43473
43474 2009-11-20  Jim Meyering  <meyering@redhat.com>
43475
43476         maint.mk: improve sc_prohibit_magic_number_exit
43477         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43478         so it does not match uses like System.exit(1).
43479         Add comments showing how to correct all offenders.
43480
43481 2009-11-19  Eric Blake  <ebb9@byu.net>
43482
43483         xalloc-die-tests: add missing library
43484         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43485
43486         test-xvasprintf: silence compiler warnings
43487         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43488         empty string from gcc.
43489
43490 2009-11-19  Jim Meyering  <meyering@redhat.com>
43491
43492         xfreopen: new module, from coreutils
43493         * modules/xfreopen: New module.
43494         * lib/xfreopen.c: New file.
43495         * lib/xfreopen.h: New file.
43496         * MODULES.html.sh (File stream based Input/Output"): Add it.
43497
43498 2009-11-19  Eric Blake  <ebb9@byu.net>
43499
43500         manywarnings: depend on warnings
43501         * modules/manywarnings (Depends-on): Add warnings.
43502
43503         build: avoid compiler warnings
43504         * lib/select.c (rpl_select): Delete unused variable.
43505         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43506
43507 2009-11-18  Eric Blake  <ebb9@byu.net>
43508
43509         tests: avoid false negative with --with-packager
43510         * tests/test-version-etc.sh: Discard packager information.
43511         * tests/test-argp-version-etc-1.sh: Likewise.
43512         Reported by Mike Frysinger.
43513
43514         utimens: fix regression on Solaris
43515         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43516         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43517         can only change fd timestamps via futimesat.  Instead, use an
43518         additional witness macro to avoid BSD bug.
43519         Reported by Jim Meyering.
43520
43521 2009-11-17  Eric Blake  <ebb9@byu.net>
43522
43523         usleep: use it to simplify tests
43524         * modules/stat-time-tests (Depends-on): Add usleep.
43525         (configure.ac): Drop usleep check.
43526         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43527         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43528         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43529         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43530         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43531         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43532         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43533         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43534         Likewise.
43535         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43536         * tests/test-lchown.h (nap): Likewise.
43537         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43538         * tests/test-stat-time.c (nap): Likewise.
43539         * tests/test-utimens-common.h (nap): Update comments.
43540
43541         usleep: new module
43542         * modules/usleep: New file.
43543         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43544         * lib/usleep.c (usleep): Likewise.
43545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43546         * modules/unistd (Makefile.am): Substitute witnesses.
43547         * lib/unistd.in.h (usleep): Add declaration.
43548         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43549         * MODULES.html.sh (Date and time): Likewise.
43550         * modules/usleep-tests (Depends-on): New test.
43551         * tests/test-usleep.c: New file.
43552
43553         chown: work around OpenBSD bug
43554         * lib/chown.c (rpl_chown): Work around the bug.
43555         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43556         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43557         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43558         * modules/chown (Depends-on): Add stdbool.
43559         * modules/lchown (Depends-on): Likewise.
43560         * doc/posix-functions/chown.texi (chown): Document the bug.
43561         * doc/posix-functions/lchown.texi (lchown): Likewise.
43562         * tests/test-lchown.h (test_chown): Relax test.
43563
43564         mkstemp: avoid conflict with C++ keyword template
43565         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43566         * lib/mkostemp.c (mkostemp): Likewise.
43567         * lib/mkostemps.c (mkostemps): Likewise.
43568         * lib/mkstemp.c (mkstemp): Likewise.
43569         * lib/mkstemps.c (mkstemps): Likewise.
43570
43571         xalloc-die-tests: optimize
43572         * tests/test-xalloc-die.sh: Reduce number of processes.
43573
43574 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43575
43576         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43577         patch from ludo@gnu.org (Ludovic Courtès).
43578
43579 2009-11-17  Jim Meyering  <meyering@redhat.com>
43580
43581         version-etc: use proper license string
43582         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43583         * modules/version-etc-fsf: Likewise.
43584
43585 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43586
43587         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43588         printed to stdout.  Deal with EOL differences.
43589
43590 2009-11-17  Eric Blake  <ebb9@byu.net>
43591
43592         unsetenv: work around Solaris bug
43593         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43594         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43595         Reported by Jim Meyering.
43596
43597         vasnprintf: avoid compiler warnings
43598         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43599         variables.
43600         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43601
43602 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43603
43604         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43605         settings since xalloc-die is no longer the self test,
43606         xalloc-die.sh is.
43607
43608 2009-11-17  Jim Meyering  <meyering@redhat.com>
43609
43610         test-xalloc-die.sh: make the code agree with the commit log
43611         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43612         at the end, just in case you happen to have a test-xalloc-die
43613         program in some other PATH directory.
43614
43615         test-xalloc-die.sh: fix a portability bug
43616         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43617         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43618         Otherwise, argv[0] (as often seen in diagnostics) would be too
43619         system-dependent, sometimes with, and sometimes without the leading "./".
43620
43621         version-etc-fsf: relax license to LGPLv3+
43622         * modules/version-etc-fsf (License): Relax license.
43623
43624 2009-11-16  Eric Blake  <ebb9@byu.net>
43625
43626         xalloc-die-tests: avoid printing null pointer
43627         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43628         shell script.
43629         * tests/test-xalloc-die.c (program_name): Declare.
43630         * tests/test-xalloc-die.sh (tmpfiles): New file.
43631
43632         setenv, unsetenv: work around various bugs
43633         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43634         (setenv) [HAVE_SETENV]: Work around bugs.
43635         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43636         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43637         for bugs.
43638         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43639         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43640         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43641         * modules/stdlib (Makefile.am): Update substitutions.
43642         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43643         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43644         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43645         * modules/setenv-tests: New test.
43646         * modules/unsetenv-tests: Likewise.
43647         * tests/test-setenv.c: New file.
43648         * tests/test-unsetenv.c: Likewise.
43649
43650 2009-11-16  Jim Meyering  <meyering@redhat.com>
43651
43652         version-etc: relax license to LGPLv3+
43653         * modules/version-etc (License): Relax license.
43654
43655         better AC_REQUIRE expanded-before-required-warning avoidance
43656         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43657         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43658         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43659         which is no longer needed.
43660
43661 2009-11-16  Eric Blake  <ebb9@byu.net>
43662
43663         test-freading: clean up temporary file
43664         * tests/test-freading.c (main): Remove file on success, and use
43665         ASSERT more liberally.
43666         Reported by Jim Meyering.
43667
43668 2009-11-16  Jim Meyering  <meyering@redhat.com>
43669
43670         avoid new AC_REQUIRE expanded-before-required warnings
43671         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43672         merely using it.
43673         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43674         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43675
43676 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43677
43678         * tests/test-xalloc-die.c: New file.
43679         * modules/xalloc-die-tests: New file.
43680         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43681         XFAIL_TESTS so it can be appended by modules.
43682
43683 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43684
43685         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43686         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43687
43688 2009-11-14  Eric Blake  <ebb9@byu.net>
43689
43690         fnmatch: avoid compiler warning
43691         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43692         to silence compiler warning about mismatch signedness in ?:.
43693         Reported by Robert Millan.
43694
43695         intprops: add double-inclusion guard
43696         * lib/intprops.h: Allow idempotent includes.
43697         Suggested by Bruce Korb.
43698
43699         openat: detect Solaris fchownat bug
43700         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43701         penalizing glibc chownat when only lchownat is broken.
43702         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43703         trailing slash bugs.
43704         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43705         * modules/openat-tests (Files): Include more files.
43706         (Depends-on): Add mgetgroups, sleep, stat-time.
43707         (configure.ac): Add additional checks.
43708         (Makefile.am): Build new test.
43709         * tests/test-fchownat.c: New file.
43710
43711         lchown: detect Solaris and FreeBSD bug
43712         * lib/lchown.c (rpl_lchown): Work around bug.
43713         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43715         * modules/unistd (Makefile.am): Populate it.
43716         * lib/unistd.in.h (lchown): Update declaration.
43717         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43718         * modules/lchown-tests: New file.
43719         * tests/test-lchown.h (test_lchown): Likewise.
43720         * tests/test-lchown.c (main): Likewise.
43721
43722         chown: detect Solaris and FreeBSD bug
43723         * lib/chown.c (rpl_chown): Work around bug.
43724         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43725         (gl_PREREQ_CHOWN): Delete.
43726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43727         * modules/unistd (Makefile.am): Populate it.
43728         * lib/unistd.in.h (chown): Update declaration.
43729         * lib/lchown.c (chown): Update client.
43730         * modules/lchown (Depends-on): Add lstat.
43731         * doc/posix-functions/chown.texi (chown): Document the bug.
43732         * doc/posix-functions/getgroups.texi (getgroups): Document
43733         getgroups pitfall.
43734         * modules/chown-tests: New file.
43735         * tests/test-chown.h (test_chown): Likewise.
43736         * tests/test-chown.c (main): Likewise.
43737
43738 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43739
43740         gnulib-tool: correctly detect absence of m4 directories
43741         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43742
43743 2009-11-14  Jim Meyering  <meyering@redhat.com>
43744
43745         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43746         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43747
43748 2009-11-14  John W. Eaton  <jwe@gnu.org>
43749
43750         strftime.h: wrap function declaration in extern "C" block
43751         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43752
43753 2009-11-13  Eric Blake  <ebb9@byu.net>
43754
43755         getgroups: avoid compiler warning
43756         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43757
43758         getgroups: work around FreeBSD bug
43759         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43760         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43761         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43762         * tests/test-getgroups.c (main): Fix buffer overrun.
43763
43764         getgroups: avoid compilation failure
43765         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43766         * modules/getgroups (Depends-on): Add stdint.
43767
43768 2009-11-13  Jim Meyering  <meyering@redhat.com>
43769
43770         test-getgroups: avoid compilation failure
43771         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43772
43773 2009-11-13  Eric Blake  <ebb9@byu.net>
43774
43775         mgetgroups: new module, taken from coreutils
43776         * modules/mgetgroups: New file.
43777         * lib/mgetgroups.h: Likewise.
43778         * lib/mgetgroups.c (mgetgroups): Likewise.
43779         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43780         * MODULES.html.sh (Users and groups): Mention it.
43781
43782         getgroups: don't expose GETGROUPS_T to user
43783         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43784         an element at a time if GETGROUPS_T is wrong size.
43785         * lib/getugroups.h (getugroups): Change signature.
43786         * lib/unistd.in.h (getgroups): Likewise.
43787         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43788         signature needs fixing.
43789         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43790         AC_TYPE_GETGROUPS.
43791         * modules/group-member (Depends-on): Add getgroups.
43792         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43793         (group_member): Rely on getgroups replacement.
43794         * lib/getugroups.c (getugroups): Use gid_t.
43795         * tests/test-getgroups.c (main): Likewise.
43796         * NEWS: Mention the signature change.
43797         * doc/posix-functions/getgroups.texi (getgroups): Mention the
43798         problem with signature.
43799         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
43800         GETGROUPS_T is still useful for setgroups.
43801
43802         getgroups, getugroups: provide stubs for mingw
43803         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
43804         * lib/getugroups.c (getugroups): Likewise.
43805         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
43806         function.  Modernize replacement scheme.
43807         (gl_PREREQ_GETGROUPS): Delete.
43808         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
43809         * modules/getgroups (configure.ac): Declare witness.
43810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43811         * modules/unistd (Depends-on): Substitute witness.
43812         * lib/unistd.in.h (getgroups): Declare replacement.
43813
43814         getgroups: avoid calling exit
43815         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
43816         drop xalloc.
43817         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
43818         dependencies.
43819         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
43820         exiting, in the rare case of malloc failure.
43821
43822         getgroups: fix logic error
43823         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
43824         has more than 20 groups.
43825         * modules/getgroups-tests: New test.
43826         * tests/test-getgroups.c: New file.
43827
43828 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43829
43830         * tests/test-base64.c: Improve.
43831
43832 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43833
43834         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
43835         Blake <ebb9@byu.net>.
43836
43837 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43838
43839         * tests/test-xvasprintf.c: Add %s%s related checks.
43840
43841 2009-11-12  Eric Blake  <ebb9@byu.net>
43842
43843         version-etc: match standards.texi style
43844         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43845         and use <> only for URLs.
43846
43847 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43848
43849         fts: do not fail on a submount during traversal
43850         * lib/fts.c (fts_build): Read the stat info again after opening
43851         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43852         Original report at http://bugzilla.redhat.com/501848.
43853
43854 2009-11-12  Jim Meyering  <meyering@redhat.com>
43855
43856         bootstrap: sync from coreutils
43857         * build-aux/bootstrap (bootstrap_epilogue): New function.
43858         Use git_modules_config in one more place.  This make bootstrap's
43859         --gnulib-srcdir option more useful for testing.
43860
43861         bootstrap: generalize autoheader check
43862         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43863         AC_CONFIG_HEADERS.
43864
43865 2009-11-11  Eric Blake  <ebb9@byu.net>
43866
43867         mkfifoat: use new modules for Solaris and BSD bugs
43868         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43869         * lib/mkfifoat.c (mknodat): Split...
43870         * lib/mknodat.c (mknodat): ...into new file.
43871         * modules/mkfifoat (Files): Ship new file.
43872         (Depends-on): Add mkfifo, mknod.
43873         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43874         (Depends-on): Add symlink.
43875         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43876         redundant with test_mkfifo.h.
43877         (do_mkfifoat, do_mknodat): New helpers.
43878
43879         mknod: new module
43880         * modules/mknod: New file.
43881         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43882         * lib/mknod.c (mknod): Likewise.
43883         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43884         defaults.
43885         * modules/sys_stat (Makefile.am): Substitute them.
43886         * lib/sys_stat.in.h (mknod): Declare replacement.
43887         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43888         Document it.
43889         * doc/posix-functions/mknod.texi (mknod): Likewise.
43890         * modules/mknod-tests: New test.
43891         * tests/test-mknod.c: Likewise.
43892
43893         mkfifo: new module
43894         * modules/mkfifo: New file.
43895         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43896         * lib/mkfifo.c (mkfifo): Likewise.
43897         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43898         defaults.
43899         * modules/sys_stat (Makefile.am): Substitute them.
43900         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43901         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43902         Document it.
43903         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43904         * modules/mkfifo-tests: New test.
43905         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43906         from test-mkfifoat.c.
43907         * tests/test-mkfifo.c: New file.
43908
43909         readlink: detect FreeBSD bug
43910         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43911         slash on symlink.
43912         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43913         * tests/test-readlink.h (test_readlink): Enhance test.
43914
43915         symlink: detect FreeBSD bug
43916         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43917         slash on symlink.
43918         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43919         * tests/test-symlink.h (test_symlink): Enhance test.
43920
43921 2009-11-10  Eric Blake  <ebb9@byu.net>
43922
43923         link: detect FreeBSD bug
43924         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43925         symlink.
43926         * doc/posix-functions/link.texi (link): Document the bug.
43927         * tests/test-link.h (test_link): Enhance test.
43928         * tests/test-linkat.c (main): Update caller.
43929
43930         unlink, remove: detect FreeBSD bug
43931         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43932         slash on symlink.
43933         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43934         * doc/posix-functions/remove.texi (remove): Likewise.
43935         * tests/test-unlink.h (test_unlink): Enhance test.
43936         * tests/test-remove.c (main): Likewise.
43937
43938 2009-11-09  Eric Blake  <ebb9@byu.net>
43939
43940         rename: detect FreeBSD bug
43941         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43942         slash on symlink.
43943         * modules/renameat-tests (Depends-on): Add filenamecat.
43944         * tests/test-rename.h (test_rename): Allow one more errno.
43945         * tests/test-renameat.c (main): Likewise.
43946         * doc/posix-functions/rename.texi (rename): Document the bug.
43947
43948         open: detect FreeBSD bug
43949         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43950         symlink.
43951         * doc/posix-functions/open.texi (open): Document the bug.
43952         * doc/posix-functions/utimes.texi (utimes): Likewise.
43953         * tests/test-open.h (test_open): Add parameters, and test symlink
43954         handling.
43955         * tests/test-open.c (main): Adjust caller.
43956         * tests/test-fcntl-safer.c (main): Likewise.
43957         * modules/open-tests (Depends-on): Add stdbool, symlink.
43958         * modules/fcntl-safer-tests (Depends-on): Likewise.
43959         * tests/test-openat.c (main): Add test-open tests.
43960
43961         stat: detect FreeBSD bug
43962         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43963         symlink.
43964         * doc/posix-functions/stat.texi (stat): Document the bug.
43965         * tests/test-stat.h (test_stat_func): Add argument.
43966         * tests/test-stat.c (main): Adjust caller.
43967         * tests/test-fstatat.c (main): Likewise.
43968         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43969         Reported by Jim Meyering.
43970
43971 2009-11-09  James Youngman  <jay@gnu.org>
43972
43973         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43974         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43975
43976 2009-11-08  Jim Meyering  <meyering@redhat.com>
43977
43978         utimens: remove invalid futimesat call
43979         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43980         It used the file descriptor of the target file as the DIR_FD
43981         parameter and NULL as the file name.  That caused failure with
43982         errno == EFAULT on FreeBSD-8.0-rc2
43983
43984 2009-11-07  Eric Blake  <ebb9@byu.net>
43985
43986         fflush, freadseek: use fseeko, not fseek
43987         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43988         (clear_ungetc_buffer): Avoid potential problems on large files.
43989         * lib/freadseek.c (freadseek): Likewise.
43990         * modules/freadseek (Depends-on): Add fseeko.
43991         * modules/fseek (configure.ac): Set a witness.
43992         * tests/test-fflush.c (main): Use fseeko.
43993         * tests/test-fpurge.c (fseek): Disable link warning.
43994         * tests/test-freadable.c (fseek): Likewise.
43995         * tests/test-freading.c (fseek): Likewise.
43996         * tests/test-fseeko.c (fseek): Likewise.
43997         * tests/test-ftell.c (fseek): Likewise.
43998         * tests/test-ftello.c (fseek): Likewise.
43999         * tests/test-fwritable.c (fseek): Likewise.
44000         * tests/test-fwriting.c (fseek): Likewise.
44001
44002 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44003
44004         * modules/memchr (Depends-on): Drop getpagesize dependency.
44005
44006 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44007
44008         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44009         Reported by Ludovic Courtès.
44010         * build-aux/pmccabe2html: Improve example usage.
44011         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44012
44013 2009-11-06  Jim Meyering  <meyering@redhat.com>
44014
44015         do-release-commit-and-tag: New module.
44016         Automate the release-commit and tag process.
44017         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44018         * modules/do-release-commit-and-tag: New file.
44019         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44020
44021 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44022
44023         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44024         because test-select.c uses inet_pton.
44025
44026 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44027
44028         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44029         GETADDRINFO_LIB.  Bump serial number.
44030         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44031         Suggested by Eric Blake <ebb9@byu.net>.
44032
44033 2009-11-05  Eric Blake  <ebb9@byu.net>
44034
44035         strtod: detect darwin bug
44036         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44037         Reported by Leo Davis.
44038
44039         freopen-safer: new module
44040         * modules/freopen-safer: New module.
44041         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44042         * lib/freopen-safer.c (freopen_safer): New file.
44043         * lib/stdio-safer.h (freopen_safer): New declaration.
44044         * lib/stdio--.h (freopen): New override.
44045         * MODULES.html.sh (File stream based Input/Output): Mention it.
44046         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44047         freopen-safer module.
44048         * doc/posix-functions/stderr.texi (stderr): Likewise.
44049         * doc/posix-functions/stdin.texi (stdin): Likewise.
44050         * doc/posix-functions/stdout.texi (stdout): Likewise.
44051         * modules/freopen-safer-tests: New test.
44052         * tests/test-reopen-safer.c: New file.
44053
44054 2009-11-05  Jim Meyering  <meyering@redhat.com>
44055
44056         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44057         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44058
44059 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44060
44061         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44062
44063 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44064
44065         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44066
44067 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44068
44069         Fix link error.
44070         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44071         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44072
44073 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44074
44075         * tests/test-func.c: Also test value of __func__.
44076
44077 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44078
44079         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44080         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44081
44082 2009-11-05  Bruno Haible  <bruno@clisp.org>
44083
44084         Fix link error.
44085         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44086         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44087         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44088
44089 2009-11-05  Bruno Haible  <bruno@clisp.org>
44090
44091         Tests for module 'inet_pton'.
44092         * modules/inet_pton-tests: New file.
44093         * tests/test-inet_pton.c: New file.
44094
44095 2009-11-05  Bruno Haible  <bruno@clisp.org>
44096
44097         Tests for module 'inet_ntop'.
44098         * modules/inet_ntop-tests: New file.
44099         * tests/test-inet_ntop.c: New file.
44100
44101 2009-11-04  Eric Blake  <ebb9@byu.net>
44102
44103         stdlib-safer: wrap all mkstemp variants
44104         * modules/mkostemp (configure.ac): Set witness.
44105         * modules/mkostemps (configure.ac): Likewise.
44106         * modules/mkstemps (configure.ac): Likewise.
44107         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44108         (mkstemps_safer): Wrap more functions.
44109         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44110         wrapping.
44111         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44112         (mkstemps_safer): Implement the wrappers.
44113
44114         mkstemps, mkostemps: new modules
44115         * modules/mkostemps: New module.
44116         * modules/mkstemps: Likewise.
44117         * lib/mkostemps.c (mkostemps): New file.
44118         * lib/mkstemps.c (mkstemps): Likewise.
44119         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44120         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44122         * modules/stdlib (Makefile.am): Substitute them.
44123         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44124         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44125         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44126         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44127         * MODULES.html.sh (File system functions): Mention them.
44128
44129         tempname: resync from glibc
44130         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44131         same values for __GT_FILE as glibc.  Abort even when assertions
44132         are disabled.
44133         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44134         match its value otherwise.  Allow idempotent inclusion.
44135         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44136         * lib/mkostemp.c (mkostemp): Likewise.
44137         * lib/mkstemp.c (mkstemp): Likewise.
44138         * lib/tmpfile.c (tmpfile): Likewise.
44139         * NEWS: Document this.
44140
44141         utimens: fix use of futimens on older Linux
44142         * lib/utimens.c (fdutimens): Use updated, rather than original,
44143         timespec to avoid bug in older Linux kernel.
44144         Reported by Simon Josefsson.
44145
44146 2009-11-04  Bruno Haible  <bruno@clisp.org>
44147
44148         Make num_processors more flexible and consistent.
44149         * lib/nproc.h (enum nproc_query): New type.
44150         (num_processors): Add a 'query' argument.
44151         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44152         (num_processors): Add a 'query' argument. Test the value of the
44153         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44154         mingw, count the number of CPUs available for the current process.
44155         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44156         Check for sched_getaffinity and sched_getaffinity_np.
44157         * modules/nproc (Depends-on): Add c-ctype, extensions.
44158         * NEWS: Mention the change.
44159
44160 2009-11-03  Bruno Haible  <bruno@clisp.org>
44161
44162         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44163
44164 2009-11-03  Jim Meyering  <meyering@redhat.com>
44165
44166         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44167         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44168         if it is defined.
44169
44170 2009-11-02  Eric Blake  <ebb9@byu.net>
44171
44172         mktime, timegm: share common declaration
44173         * lib/mktime-internal.h: New file.
44174         * lib/mktime.c: Use it rather than open-coding a declaration.
44175         * lib/timegm.c: Likewise.
44176         * modules/mktime (Files): Ship it.
44177         * modules/timegm (Files): Likewise.
44178         Suggested by Bruno Haible.
44179
44180         test-update-copyright: update test to match script changes
44181         * tests/test-update-copyright.sh: Avoid hard-coding perl
44182         location.  Don't update *.bak created by earlier runs.
44183
44184 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44185             Simon Josefsson  <simon@josefsson.org>
44186             Bruno Haible  <bruno@clisp.org>
44187
44188         Fix link error on Solaris 8.
44189         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44190         also in libnsl. Define also INET_PTON_LIB.
44191         * modules/inet_pton (Link): New section.
44192
44193 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44194             Bruno Haible  <bruno@clisp.org>
44195
44196         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44197         * modules/inet_ntop (Link): New section.
44198         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44199
44200 2009-11-02  Eric Blake  <ebb9@byu.net>
44201
44202         maint: avoid compiler warnings in m4 macros
44203         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44204         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44205
44206 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44207
44208         * m4/pmccabe2html.m4: Remove file.
44209         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44210         function.  Change maintainer.
44211         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44212         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44213         Courtès).
44214
44215 2009-10-31  Eric Blake  <ebb9@byu.net>
44216
44217         fseeko: fix m4 regression
44218         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44219         regression from 2009-10-27.
44220         Reported by Ralf Wildenhues.
44221
44222 2009-10-31  Jim Meyering  <meyering@redhat.com>
44223
44224         inttostr: aesthetics and improved (compile-time) safety
44225         Define inttype_is_signed rather than inttype_is_unsigned,
44226         since the sole use is via "#if inttype_is_signed".
44227         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44228         inttype_is_unsigned.
44229         * lib/offtostr.c (inttype_is_signed): Likewise.
44230         * lib/uinttostr.c (inttype_is_signed): Likewise.
44231         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44232         * lib/inttostr.c (inttostr): Use verify to cross-check the
44233         inttype_is_signed value and the signedness of the actual type.
44234         * modules/inttostr (Depends-on): Add verify.
44235
44236 2009-10-30  Eric Blake  <ebb9@byu.net>
44237
44238         build: avoid compiler warnings
44239         * lib/fchmodat.c (lchmod): Mark unused variables.
44240         * lib/getopt.c (_getopt_initialize): Likewise.
44241         * lib/mktime.c (__mktime_internal): Provide prototype.
44242         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44243         older gcc that do not understand #pragma GCC diagnostic.
44244         * lib/uinttostr.c (inttype_is_unsigned): Define.
44245         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44246
44247 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44248
44249         stat: fix compilation on AIX
44250         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44251         only see struct stat64.
44252
44253 2009-10-30  Eric Blake  <ebb9@byu.net>
44254
44255         exclude: make more robust
44256         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44257         rather than masking a coding bug.
44258         Suggested by Bruno Haible.
44259
44260 2009-10-30  Jim Meyering  <meyering@redhat.com>
44261
44262         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44263         Rather than putting #!/usr/bin/perl on the first line,
44264         start with a variant of what's recommended by "man perlrun" that
44265         invokes the first "perl" program from your shell's search path.
44266         * build-aux/gitlog-to-changelog: Replace #!... as above.
44267         Add a "Local Variables" perl mode setting.
44268         Prompted by a patch from Ludovic Courtès.
44269         Improved by Eric Blake.
44270         * build-aux/useless-if-before-free: Likewise.
44271         * build-aux/announce-gen: Likewise.
44272         * build-aux/update-copyright: Likewise.
44273
44274 2009-10-29  Eric Blake  <ebb9@byu.net>
44275
44276         filenamecat-lgpl: adjust clients
44277         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44278         filenamecat.
44279         * modules/renameat (Depends-on): Likewise.
44280
44281         filenamecat: split into filenamecat-lgpl
44282         * modules/filenamecat-lgpl: New module.
44283         * modules/filenamecat (Files): Move library-safe files into
44284         filenamecat-lgpl.
44285         (Depends-on): Add filenamecat-lgpl.
44286         (configure.ac): Declare witness.
44287         * lib/filenamecat.h (file_name_concat): Only declare when using
44288         GPL module.
44289         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44290         Move...
44291         * lib/filenamecat-lgpl.c: ...into new file.
44292         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44293         (gl_FILE_NAME_CONCAT): Use it.
44294         * MODULES.html.sh (File system functions): Mention new module.
44295
44296         argp: avoid memory leak
44297         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44298         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44299         base_name, since the latter malloc()s and can call exit().
44300         Leak introduced 2006-07-03.
44301
44302         dirname-lgpl: adjust clients that don't need full dirname
44303         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44304         * modules/filenamecat (Depends-on): Likewise.
44305         * modules/linkat (Depends-on): Likewise.
44306         * modules/mkancesdirs (Depends-on): Likewise.
44307         * modules/mkdir (Depends-on): Likewise.
44308         * modules/openat (Depends-on): Likewise.
44309         * modules/savewd (Depends-on): Likewise.
44310         * modules/rename (Depends-on): Likewise.
44311         (License): Relax license.
44312         * modules/mkdir-tests (Depends-on): Drop progname.
44313         (Makefile.am): Delete unneeded LDADD.
44314         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44315
44316         dirname: split into dirname-lgpl
44317         * modules/dirname-lgpl: New module.
44318         * modules/dirname (Files): Move library-safe files into
44319         dirname-lgpl.
44320         (Depends-on): Add dirname-lgpl.
44321         (configure.ac): Declare witness.
44322         * modules/double-slash-root (License): Relax license.
44323         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44324         module.
44325         * lib/dirname.c (dir_len, mdir_name): Move...
44326         * lib/dirname-lgpl.c: ...into new file.
44327         * lib/basename.c (last_component, base_len): Move...
44328         * lib/basename-lgpl.c: ...into new file.
44329         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44330         (gl_DIRNAME): Use it.
44331         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44332         Mention new module.
44333         * modules/dirname-tests (Depends-on): Add progname.
44334         * tests/test-dirname.c (program_name): Delete.
44335
44336         mkdir: make safe for libraries
44337         * modules/mkdir (Depends-on): Drop xalloc.
44338         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44339         exit.
44340
44341         tests: avoid some compiler warnings
44342         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44343         literals.
44344         * tests/test-memchr.c (main): Avoid type mismatch.
44345         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44346         * tests/test-base64.c (main): Likewise.
44347         * tests/test-getdelim.c (main): Likewise.
44348         * tests/test-gethostname.c (main): Likewise.
44349         * tests/test-getline.c (main): Likewise.
44350         * tests/test-netinet_in.c (main): Likewise.
44351         * tests/test-select.c (open_server_socket, main): Likewise.
44352         * tests/test-select-stdin.c (main): Likewise.
44353         * tests/test-sockets.c (main): Likewise.
44354         * tests/test-strsignal.c (main): Likewise.
44355         * tests/test-sys_select.c (main): Likewise.
44356         * tests/test-sys_socket.c (main): Likewise.
44357         * tests/test-u64.c (main): Likewise.
44358         * tests/test-xfprintf-posix.c (main): Likewise.
44359         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44360
44361         sockets: avoid compiler warning
44362         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44363
44364         maint: detect usage(1) and other suspicious exits
44365         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44366
44367 2009-10-29  Jim Meyering  <meyering@redhat.com>
44368
44369         timespec: long-to-int truncation could make timespec_cmp malfunction
44370         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44371         a multiple of 2^32 nanoseconds as no difference.
44372
44373 2009-10-28  Jim Meyering  <meyering@redhat.com>
44374
44375         fprintftime: wrap macro code argument in "do {...} while(0)"
44376         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44377         cpy macro must be a statement that can be followed by a semicolon.
44378         Now that the else clause contains a comment and is hence longer
44379         than one line, I require curly braces.  That in turn requires
44380         that we wrap this code block in the standard do...while(0).
44381
44382         fprintftime: remove stray semicolon from previous change
44383         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44384
44385         fprintftime: avoid a warning about ignored fwrite return value
44386         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44387         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44388         that is unsafe.
44389         * modules/fprintftime (Depends-on): Add ignore-value.
44390
44391         exclude: avoid an unwarranted warning
44392         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44393
44394 2009-10-27  Eric Blake  <ebb9@byu.net>
44395
44396         fseek: avoid compilation failure when fflush is replaced
44397         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44398         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44399         module is in use.
44400         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44401         module is not in use; since REPLACE_FSEEK worked otherwise.
44402         (GNULIB_FTELLO): Likewise for ftell.
44403         Reported by Ian Beckwith and others.
44404
44405 2009-10-27  Bruno Haible  <bruno@clisp.org>
44406
44407         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44408         Reported by Jim Meyering.
44409
44410 2009-10-27  Jim Meyering  <jim@meyering.net>
44411             Bruno Haible  <bruno@clisp.org>
44412
44413         Avoid warning despite dropping the return value of fwrite.
44414         * lib/unicodeio.c: Include ignore-value.h.
44415         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44416         * modules/unicodeio (Depends-on): Add ignore-value.
44417
44418 2009-10-26  Eric Blake  <ebb9@byu.net>
44419
44420         areadlinkat: fix fallback path
44421         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44422         pointer and zero.
44423
44424 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44425
44426         Use a better IO block size for modern systems
44427         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44428         * lib/md2.c: Likewise.
44429         * lib/md4.c: Likewise.
44430         * lib/md5.c: Likewise.
44431         * lib/sha1.c: Likewise.
44432         * lib/sha256.c: Likewise.
44433         * lib/sha512.c: Likewise.
44434
44435 2009-10-22  Eric Blake  <ebb9@byu.net>
44436
44437         tests: avoid several compiler warnings
44438         * tests/test-getcwd.c (main): Avoid buffer underflow.
44439         * tests/test-getdate.c (main): String literals are not safe with
44440         putenv, so use setenv.  Declare unused argument.
44441         * modules/getdate-tests (Depends-on): Add setenv.
44442         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44443         problems with string literals in char *.
44444         * tests/test-hash.c (main): Avoid shadowing declaration.
44445         (insert_new): Treat string literals as char const *.
44446         * tests/test-getopt.h (test_getopt): Likewise.
44447         (getopt_loop): Alter types to minimize casting elsewhere.
44448         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44449         (test_getopt_long_posix): Likewise.
44450         (do_getopt_long): Add wrapper to minimize casting.
44451         * tests/test-atexit.c (clear_temp_file): Use void.
44452         * tests/test-areadlink-with-size.c (main): Declare unused
44453         arguments.
44454         * tests/test-areadlink.c (main): Likewise.
44455         * tests/test-areadlinkat-with-size.c (main): Likewise.
44456         * tests/test-areadlinkat.c (main): Likewise.
44457         * tests/test-canonicalize-lgpl.c (main): Likewise.
44458         * tests/test-canonicalize.c (main): Likewise.
44459         * tests/test-dirent-safer.c (main): Likewise.
44460         * tests/test-dirname.c (main): Likewise.
44461         * tests/test-dup2.c (main): Likewise.
44462         * tests/test-fchdir.c (main): Likewise.
44463         * tests/test-fcntl-h.c (main): Likewise.
44464         * tests/test-fcntl-safer.c (main): Likewise.
44465         * tests/test-fdopendir.c (main): Likewise.
44466         * tests/test-fdutimensat.c (main): Likewise.
44467         * tests/test-fflush.c (main): Likewise.
44468         * tests/test-filenamecat.c (main): Likewise.
44469         * tests/test-filevercmp.c (main): Likewise.
44470         * tests/test-fopen-safer.c (main): Likewise.
44471         * tests/test-fopen.c (main): Likewise.
44472         * tests/test-fpending.c (main): Likewise.
44473         * tests/test-fpurge.c (main): Likewise.
44474         * tests/test-freading.c (main): Likewise.
44475         * tests/test-fstatat.c (main): Likewise.
44476         * tests/test-fsync.c (main): Likewise.
44477         * tests/test-futimens.c (main): Likewise.
44478         * tests/test-getndelim2.c (main): Likewise.
44479         * tests/test-gettimeofday.c (main): Likewise.
44480         * tests/test-getopt.c (main): Likewise.
44481         * tests/test-i-ring.c (main): Likewise.
44482         * tests/test-inttypes.c (main): Likewise.
44483         * tests/test-link.c (main): Likewise.
44484         * tests/test-lstat.c (main): Likewise.
44485         * tests/test-math.c (main): Likewise.
44486         * tests/test-md5.c (main): Likewise.
44487         * tests/test-memchr2.c (main): Likewise.
44488         * tests/test-memrchr.c (main): Likewise.
44489         * tests/test-mkdir.c (main): Likewise.
44490         * tests/test-mkdirat.c (main): Likewise.
44491         * tests/test-mkfifoat.c (main): Likewise.
44492         * tests/test-open.c (main): Likewise.
44493         * tests/test-openat-safer.c (main): Likewise.
44494         * tests/test-openat.c (main): Likewise.
44495         * tests/test-quotearg.c (main): Likewise.
44496         * tests/test-rawmemchr.c (main): Likewise.
44497         * tests/test-readlink.c (main): Likewise.
44498         * tests/test-remove.c (main): Likewise.
44499         * tests/test-rename.c (main): Likewise.
44500         * tests/test-renameat.c (main): Likewise.
44501         * tests/test-rmdir.c (main): Likewise.
44502         * tests/test-sha1.c (main): Likewise.
44503         * tests/test-signal.c (main): Likewise.
44504         * tests/test-sigaction.c (main): Likewise.
44505         * tests/test-stat.c (main): Likewise.
44506         * tests/test-stat-time.c (main): Likewise.
44507         * tests/test-stddef.c (main): Likewise.
44508         * tests/test-stdint.c (main): Likewise.
44509         * tests/test-stdio.c (main): Likewise.
44510         * tests/test-stdlib.c (main): Likewise.
44511         * tests/test-strchrnul.c (main): Likewise.
44512         * tests/test-strerror.c (main): Likewise.
44513         * tests/test-string.c (main): Likewise.
44514         * tests/test-strtod.c (main): Likewise.
44515         * tests/test-strverscmp.c (main): Likewise.
44516         * tests/test-symlink.c (main): Likewise.
44517         * tests/test-symlinkat.c (main): Likewise.
44518         * tests/test-sys_stat.c (main): Likewise.
44519         * tests/test-sys_time.c (main): Likewise.
44520         * tests/test-time.c (main): Likewise.
44521         * tests/test-unistd.c (main): Likewise.
44522         * tests/test-unlink.c (main): Likewise.
44523         * tests/test-unlinkat.c (main): Likewise.
44524         * tests/test-utimens.c (main): Likewise.
44525         * tests/test-utimensat.c (main): Likewise.
44526         * tests/test-version-etc.c (main): Likewise.
44527         * tests/test-wchar.c (main): Likewise.
44528         * tests/test-wctype.c (main): Likewise.
44529         * tests/test-xprintf-posix.c (main): Likewise.
44530         * tests/test-posixtm.c (main): Likewise.
44531         (STREQ): Delete unused macro.
44532         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44533         shadowed variables.
44534         * tests/test-memchr.c (main): Likewise.
44535
44536 2009-10-21  Eric Blake  <ebb9@byu.net>
44537
44538         areadlinkat: avoid failure on older glibc
44539         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44540         rather than mis-comparing 0 against FUNC_RESULT of char*.
44541
44542 2009-10-21  Bruno Haible  <bruno@clisp.org>
44543
44544         * modules/stpncpy (License): Relicense under LGPLv2+.
44545         Reported by David Lutterkort <lutter@redhat.com>.
44546
44547 2009-10-20  Eric Blake  <ebb9@byu.net>
44548
44549         utimensat: work around Solaris 9 bug
44550         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44551         has trailing slash bugs.
44552         * tests/test-lutimens.h (test_lutimens): Enhance test.
44553         * tests/test-utimens.h (test_utimens): Likewise.
44554         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44555         * doc/posix-functions/utimes.texi (utimes): Likewise.
44556         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44557         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44558         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44559         * doc/posix-functions/futimens.texi (futimens): Likewise.
44560
44561         fdutimensat: new module
44562         * modules/fdutimensat: New file.
44563         * lib/fdutimensat.c (fdutimensat): Likewise.
44564         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44565         * MODULES.html.sh (File system functions): Mention module.
44566         * modules/fdutimensat-tests: New test.
44567         * tests/test-fdutimensat.c: Likewise.
44568
44569         doc: regenerate INSTALL
44570         * doc/INSTALL: Reflect recent autoconf update.
44571         * doc/INSTALL.ISO: Likewise.
44572         * doc/INSTALL.UTF-8: Likewise.
44573
44574 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44575
44576         acl: warn if ACL support is not detected
44577         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44578
44579 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44580
44581         * lib/nproc.h: Add extern "C" block for C++.
44582
44583 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44584             Bruno Haible  <bruno@clisp.org>
44585
44586         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44587         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44588         * doc/posix-functions/isalpha.texi: Likewise.
44589         * doc/posix-functions/isblank.texi: Likewise.
44590         * doc/posix-functions/iscntrl.texi: Likewise.
44591         * doc/posix-functions/isdigit.texi: Likewise.
44592         * doc/posix-functions/isgraph.texi: Likewise.
44593         * doc/posix-functions/islower.texi: Likewise.
44594         * doc/posix-functions/isprint.texi: Likewise.
44595         * doc/posix-functions/ispunct.texi: Likewise.
44596         * doc/posix-functions/isspace.texi: Likewise.
44597         * doc/posix-functions/isupper.texi: Likewise.
44598         * doc/posix-functions/isxdigit.texi: Likewise.
44599
44600 2009-10-18  Bruno Haible  <bruno@clisp.org>
44601
44602         Tests for module 'isblank'.
44603         * modules/isblank-tests: New file.
44604         * tests/test-isblank.c: New file.
44605
44606         New module 'isblank'.
44607         * lib/isblank.c: New file.
44608         * m4/isblank.m4: New file.
44609         * modules/isblank: New file.
44610         * doc/posix-functions/isblank.texi: Mention the new module.
44611
44612 2009-10-18  Bruno Haible  <bruno@clisp.org>
44613
44614         New module 'ctype'.
44615         * lib/ctype.in.h: New file.
44616         * m4/ctype.m4: New file.
44617         * modules/ctype: New file.
44618         * doc/posix-headers/ctype.texi: Mention the new module.
44619
44620 2009-10-18  Jim Meyering  <meyering@redhat.com>
44621
44622         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44623         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44624         right after its initialization, rather than farther down.
44625         Keeping these in close proximity makes it easier to ensure
44626         that each such variable is initialized.  E.g.,
44627
44628             LIB_CLOCK_GETTIME=
44629             AC_SUBST([LIB_CLOCK_GETTIME])
44630
44631         This change also increments these serial numbers.
44632         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44633         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44634         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44635
44636 2009-10-18  Bruno Haible  <bruno@clisp.org>
44637
44638         Don't let environment variables perturb build.
44639         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44640         (gl_PREREQ_GETHRXTIME): ... not here.
44641
44642 2009-10-18  Bruno Haible  <bruno@clisp.org>
44643
44644         Avoid symlink attack in localcharset module.
44645         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44646         (O_NOFOLLOW): Define fallback.
44647         (get_charset_aliases): Don't open the file if it is a symbolic link.
44648         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44649         gl_FCNTL_H.
44650         (gl_FCNTL_H): Require it.
44651         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44652         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44653         Reported by Fergal Glynn <fglynn@veracode.com>.
44654
44655 2009-10-18  Bruno Haible  <bruno@clisp.org>
44656
44657         Implement nproc for mingw.
44658         * lib/nproc.c: Include <windows.h>
44659         (num_processors): On native Windows platforms, try GetSystemInfo.
44660
44661 2009-10-18  Bruno Haible  <bruno@clisp.org>
44662
44663         Implement nproc for IRIX.
44664         * lib/nproc.c: Include <sys/sysmp.h>.
44665         (num_processors): On IRIX systems, try sysmp.
44666         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44667
44668 2009-10-18  Bruno Haible  <bruno@clisp.org>
44669
44670         Implement nproc for HP-UX.
44671         * lib/nproc.c: Include <sys/pstat.h>
44672         (num_processors): On HP-UX systems, try pstat_getdynamic.
44673         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44674         pstat_getdynamic.
44675
44676 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44677             Bruno Haible  <bruno@clisp.org>
44678
44679         Implement nproc for NetBSD, OpenBSD.
44680         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44681         (ARRAY_SIZE): New macro.
44682         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44683         * m4/nproc.m4: New file.
44684         * modules/nproc (Files): Add m4/nproc.m4.
44685         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44686         (Makefile.am): Instead, augment lib_SOURCES.
44687
44688 2009-10-18  Bruno Haible  <bruno@clisp.org>
44689
44690         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44691         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44692         sys/param.h.
44693
44694 2009-10-16  Eric Blake  <ebb9@byu.net>
44695
44696         utimensat: new module
44697         * modules/utimensat: New file.
44698         * lib/utimensat.c (utimensat): Likewise.
44699         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44700         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44701         so we can work around Linux bugs.
44702         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44703         * modules/sys_stat (Makefile.am): Substitute them.
44704         * lib/sys_stat.in.h (utimensat): Declare it.
44705         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44706         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44707         * modules/utimensat-tests: New test.
44708         * tests/test-utimensat.c: Likewise.
44709
44710         utimens: let lutimens work on non-symlinks
44711         * lib/utimens.c (lutimens): Fall back to utimens rather than
44712         failing with ENOSYS, when file is not a symlink.
44713         (utimens): Reduce redirection.
44714         * tests/test-lutimens.h (test_lutimens): Update test to cover
44715         non-symlinks.
44716         * tests/test-utimens.h (test_utimens): Update test to cover
44717         symlinks.
44718         * tests/test-utimens.c (main): Update caller.
44719
44720         utimens: cache whether utimensat syscall works
44721         * lib/utimens.c (utimensat_works_really): New cache variable.
44722         (fdutimens, lutimens): Use it to avoid failing syscall.
44723
44724         test-stat-time, test-utimens: improve portability
44725         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44726         ext4 on alpha, and for cygwin.
44727         * tests/test-utimens-common.h: New file.
44728         (nap): Factor delays into single function.
44729         * tests/test-lutimens.h (test_lutimens): Use new header.
44730         * tests/test-futimens.h (test_futimens): Likewise.
44731         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44732         timestamps to occur from same machine, as was done previously for
44733         test_utimens.
44734         * modules/utimens-tests (Files): Ship new file.
44735         * modules/futimens-tests (Files): Likewise.
44736         Reported in part by Jim Meyering.
44737
44738         sys_stat: sort replacement declarations
44739         * lib/sys_stat.in.h: Sort declarations.
44740         * lib/futimens.c (futimens): Fix typo.
44741
44742 2009-10-15  Jim Meyering  <meyering@redhat.com>
44743
44744         don't let environment settings perturb build
44745         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44746         could cause a configure-time and/or build-time malfunction.
44747         Typically, a configure-time function-in-library test is performed
44748         via code like this:
44749
44750           LIB_VAR=
44751           AC_SUBST([LIB_VAR])
44752           prefix_saved_LIBS=$LIBS
44753             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44754                        [test "$ac_cv_search_FUNC" = "none required" ||
44755                         LIB_VAR=$ac_cv_search_FUNC])
44756           LIBS=$prefix_saved_LIBS
44757
44758         However, in each of the files affected by this change, the LIB_VAR=
44759         initialization was omitted.  Thus, when set in the environment, its
44760         value would propagate into generated Makefiles when FUNC is not found
44761         in LIB_NAME.
44762         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44763         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44764         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44765
44766 2009-10-14  Eric Blake  <ebb9@byu.net>
44767
44768         fchdir: avoid infinite recursion in mingw
44769         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44770         recursing.
44771
44772         test-stat-time: port to mingw
44773         * tests/test-stat-time.c (force_unlink): Return a value.
44774         (test_ctime) [W32]: Fix compilation error.
44775         (nap): Don't call usleep with too large an argument.  Use
44776         force_unlink.
44777         * doc/pastposix-functions/usleep.texi (usleep): Document the
44778         portability issue.
44779
44780 2009-10-13  Jim Meyering  <meyering@redhat.com>
44781
44782         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44783         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44784         * modules/pipe-filter-ii: Likewise.
44785         * modules/sys_socket-tests: Likewise.
44786         * modules/tsearch-tests: Likewise.
44787         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44788         (check): Depend on it.
44789
44790 2009-10-12  Eric Blake  <ebb9@byu.net>
44791
44792         utimens-tests: port to NFS file systems
44793         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44794         comparisons to avoid spurious failures from timestamp drift
44795         between NFS machines.
44796
44797 2009-10-12  Eric Blake  <ebb9@byu.net>
44798
44799         stat-time-tests: minor cleanups
44800         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
44801         * tests/test-stat-time.c (nap): Separate assignment from call.
44802         Suggested by Paolo Bonzini and Bruno Haible.
44803
44804         sys_stat: guarantee struct timespec
44805         * lib/sys_stat.in.h (includes): Always include <time.h>
44806         * modules/sys_stat (Depends-on): Add time.
44807         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
44808         mode_t permission values.
44809         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
44810         get at subsecond timestamps.
44811
44812 2009-10-10  Eric Blake  <ebb9@byu.net>
44813
44814         futimens: new module
44815         * modules/futimens: New file.
44816         * lib/futimens.c (futimens): Likewise.
44817         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
44818         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
44819         we can work around Linux bugs.
44820         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44821         * modules/sys_stat (Makefile.am): Substitute them.
44822         * lib/sys_stat.in.h (futimens): Declare it.
44823         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44824         * doc/posix-functions/futimens.texi (futimens): Likewise.
44825         * modules/futimens-tests: New test.
44826         * tests/test-futimens.c: Likewise.
44827
44828         utimens: introduce fdutimens
44829         * lib/utimens.h (fdutimens): New prototype.
44830         * lib/utimens.c (gl_futimens): Move guts...
44831         (fdutimens): ...to new interface.
44832         * tests/test-utimens.c (do_fdutimens): Use it.
44833
44834         utimens: add UTIME_NOW and UTIME_OMIT support
44835         * lib/utimens.c (validate_timespec, update_timespec): New helper
44836         functions.
44837         (gl_futimens, lutimens): Use them.
44838         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
44839         stdbool, sys_stat.
44840         (Link): Mention resulting library dependency.
44841         * modules/utimecmp (Link): Likewise.
44842         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
44843         (Makefile.am): Pick up library dependency.
44844         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44845         definition.
44846         * tests/test-sys_stat.c: Test the definitions.
44847         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44848         * NEWS: Document library dependency.
44849
44850         utimecmp: support symlink timestamps
44851         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44852         hashing when possible.  Use pathconf when available.
44853         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44854         * modules/utimecmp (Depends-on): Add lstat.
44855
44856         utimens: add lutimens interface
44857         * lib/utimens.c (lutimens): New function.
44858         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44859         * lib/utimens.h (lutimens): Declare new interface.
44860         * tests/test-utimens.c (main): Enhance test.
44861         * tests/test-lutimens.h (test_lutimens): New file.
44862         * modules/utimens-tests (Files): Distribute it.
44863         (Depends-on): Add symlink.
44864         (configure.ac): Check for usleep.
44865
44866         utimens: validate futimens usage
44867         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44868         fewer syscalls on failure later on.  Avoid compiler warning on
44869         mingw.
44870         * modules/utimens (Depends-on): Add dup2.
44871
44872         utimens: add test
44873         * modules/utimens-tests: New test.
44874         * tests/test-utimens.h: New file.
44875         * tests/test-futimens.h: Likewise.
44876         * tests/test-utimens.c: Likewise.
44877
44878         doc: mention timestamp portability issues
44879         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44880         instead.
44881         * doc/posix-functions/utime.texi (utime): Likewise.
44882         * doc/posix-functions/utimes.texi (utimes): Likewise.
44883         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44884         instead.
44885         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44886         module.
44887         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44888         Mention weakness with symlink timestamps.
44889         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44890         to utimensat/futimens instead.
44891         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44892
44893         test-dup2: enhance test
44894         * tests/test-dup2.c (main): Also check AT_FDCWD.
44895
44896         test-stat-time: avoid more spurious failures
44897         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44898         xfs; and avoid race if the two timestamps cross quantization edge.
44899
44900         relocatable: prefer 'file system' over 'filesystem'
44901         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44902         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44903         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44904         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44905         * lib/relocatable.c (compute_curr_prefix): Likewise.
44906
44907 2009-10-10  Jim Meyering  <meyering@redhat.com>
44908
44909         stat-time-tests: check for the usleep function
44910         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44911
44912 2009-10-10  Bruno Haible  <bruno@clisp.org>
44913
44914         * modules/xnanosleep: Put the Link section after the Include section.
44915
44916 2009-10-09  Eric Blake  <ebb9@byu.net>
44917
44918         dup2: work around FreeBSD 6.1 bug
44919         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44920         * doc/posix-functions/dup2.texi (dup2): Document it.
44921         Reported by Nelson H. F. Beebe and Jim Meyering.
44922
44923         test-stat-time: port to buggy NFS clients
44924         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44925         (test_ctime): Also skip test if mtime and ctime are skewed.
44926
44927         maint: prefer 'file system' over 'filesystem'
44928         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44929         * doc/posix-functions/lstat.texi (lstat): Likewise.
44930         * lib/file-has-acl.c (file_has_acl): Likewise.
44931         * lib/fwriteerror.c [TEST]: Likewise.
44932         * tests/test-areadlink.h (test_areadlink): Likewise.
44933         * tests/test-areadlinkat-with-size.c (main): Likewise.
44934         * tests/test-areadlinkat.c (main): Likewise.
44935         * tests/test-canonicalize-lgpl.c (main): Likewise.
44936         * tests/test-canonicalize.c (main): Likewise.
44937         * tests/test-fstatat.c (main): Likewise.
44938         * tests/test-linkat.c (main): Likewise.
44939         * tests/test-lstat.h (test_lstat_func): Likewise.
44940         * tests/test-mkdir.h (test_mkdir): Likewise.
44941         * tests/test-readlink.h (test_readlink): Likewise.
44942         * tests/test-remove.c (main): Likewise.
44943         * tests/test-rename.h (test_rename): Likewise.
44944         * tests/test-renameat.c (main): Likewise.
44945         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44946         * tests/test-symlink.h (test_symlink): Likewise.
44947         * tests/test-symlinkat.c (main): Likewise.
44948         * tests/test-unlink.h (test_unlink_func): Likewise.
44949         * tests/test-unlinkat.c (main): Likewise.
44950
44951         maint: make realtime library usage explicit
44952         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44953         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44954         * modules/settime (Link): Likewise.
44955         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44956
44957         test-stat-time: speed up execution
44958         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44959         warning on mingw.
44960         (nap): New helper function.
44961         (prepare_test): Use it to reduce sleep time.
44962         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44963         execution.
44964         * modules/stat-time-tests (configure.ac): Check for usleep.
44965
44966 2009-10-09  Jim Meyering  <meyering@redhat.com>
44967
44968         selinux-h: always use getfilecon wrappers
44969         * lib/getfilecon.c: New file.
44970         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44971         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44972         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44973         (fgetfilecon): Provide a stub.
44974         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44975         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44976         file unconditionally.
44977         When <selinux/selinux.h> is found, arrange to use wrappers.
44978         * modules/selinux-h (Files): Add getfilecon.c.
44979         (Makefile.am): Substitute include-next-related bits
44980         into the now-always-generated selinux/selinux.h file.
44981         * doc/glibc-functions/lgetfilecon.texi: New file.
44982         * doc/glibc-functions/fgetfilecon.texi: New file.
44983         * doc/glibc-functions/getfilecon.texi: New file.
44984         * doc/glibc-functions/getfilecon-desc.texi: New file.
44985         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44986         which to pull in the new files.
44987         * MODULES.html.sh (Misc): Add selinux-h.
44988
44989 2009-10-08  Jim Meyering  <meyering@redhat.com>
44990
44991         unistd: fix comment typo
44992         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44993
44994 2009-10-08  Eric Blake  <ebb9@byu.net>
44995
44996         areadlink: use SIZE_MAX consistently
44997         * modules/areadlink (Depends-on): Add stdint.
44998         * modules/areadlink-with-size (Depends-on): Likewise.
44999         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45000         gives NULL; drop sys/types, since unistd gives size_t; and add
45001         stdint for SIZE_MAX.
45002         (SIZE_MAX): Rely on headers.
45003         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45004         and add stdint.
45005         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45006         (SIZE_MAX): Likewise.
45007         (INITIAL_BUF_SIZE): Turn into enum.
45008         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45009
45010 2009-10-08  Jim Meyering  <meyering@redhat.com>
45011
45012         areadlinkat: avoid compilation failure
45013         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45014         Fix typo in comment.
45015
45016 2009-10-07  Eric Blake  <ebb9@byu.net>
45017
45018         areadlinkat-with-size: new module
45019         * modules/areadlinkat-with-size: New module.
45020         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45021         * lib/areadlink.h (areadlinkat): Declare it.
45022         * MODULES.html.sh (File system functions): Mention it.
45023         * modules/areadlinkat-with-size-tests: New test.
45024         * tests/test-areadlinkat-with-size.c: New file.
45025
45026         xreadlinkat: new module
45027         * modules/xreadlinkat: New module.
45028         * lib/xreadlinkat.c (xreadlinkat): New file.
45029         * lib/xreadlink.h (xreadlinkat): Declare it.
45030         * MODULES.html.sh (File system functions): Mention it.
45031
45032         areadlinkat: new module
45033         * lib/at-func.c (FUNC_FAIL): New define.
45034         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45035         * modules/areadlinkat: New module.
45036         * lib/linkat.c (areadlinkat): Move...
45037         * lib/areadlinkat.c (areadlinkat): ...to new file.
45038         * lib/areadlink.h (areadlinkat): Declare it.
45039         * modules/linkat (Depends-on): Add areadlinkat.
45040         * MODULES.html.sh (File system functions): Mention it.
45041         * modules/areadlinkat-tests: New test.
45042         * tests/test-areadlinkat.c: New file.
45043
45044         areadlink, areadlink-with-size: add tests
45045         * modules/areadlink-tests: New test.
45046         * modules/areadlink-with-size-tests: Likewise.
45047         * tests/test-areadlink.h: New file.
45048         * tests/test-areadlink.c: Likewise.
45049         * tests/test-areadlink-with-size.c: Likewise.
45050
45051         maint: minor cleanups
45052         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45053         _UNUSED_PARAMETER_ instead.
45054         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45055         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45056         * modules/linkat-tests (Files): Distribute test-link.h.
45057
45058         openat, utimens: whitespace cleanup
45059         * lib/openat.c: Prefer space throughout, rather than mix of 8
45060         spaces vs. tabs.
45061         * lib/at-func.c: Likewise.
45062         * lib/utimens.c: Likewise.
45063
45064         openat: avoid using wrong fd
45065         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45066         working directory chooses same fd.
45067         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45068
45069         mkdir, mkdirat: fix cygwin 1.5.x bug
45070         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45071         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45072         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45073         bug.
45074         (gl_PREREQ_MKDIR): Delete unused macro.
45075         * modules/mkdir (Files): Track file rename.
45076         (configure.ac): Update macro name.
45077         * modules/openat (Depends-on): Add mkdir.
45078         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45079
45080         mkdir, mkdirat: add tests
45081         * modules/mkdir-tests: New test.
45082         * tests/test-mkdir.h: New file.
45083         * tests/test-mkdir.c: Likewise.
45084         * tests/test-mkdirat.c: Likewise.
45085         * modules/openat-tests (Files): Add new files.
45086         (Makefile.am): Run new test.
45087
45088 2009-10-06  Eric Blake  <ebb9@byu.net>
45089
45090         doc: tweak *at function documentation
45091         * doc/posix-functions/faccessat.texi (faccessat): Mention
45092         known issue with replacement.
45093         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45094         * doc/posix-functions/linkat.texi (linkat): Likewise.
45095         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45096         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45097         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45098         * doc/posix-functions/renameat.texi (renameat): Likewise.
45099         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45100
45101         openat: fix GNU/Hurd bug in unlinkat
45102         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45103         broken.
45104         * doc/posix-functions/unlink.texi (unlink): Document this.
45105         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45106
45107         fdopendir: fix GNU/Hurd bug
45108         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45109         allowing non-directory fds.
45110         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45111         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45112         * modules/dirent (Makefile.am): Substitute it.
45113         * lib/dirent.in.h (fdopendir): Declare replacement.
45114         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45115         * tests/test-fdopendir.c (main): Test something other than
45116         /dev/null, since on Hurd that behaves like a directory.
45117
45118         test-symlink: port to GNU/Hurd
45119         * tests/test-symlink.h (test_symlink): Relax expected errno.
45120
45121         doc: tweak more cygwin information
45122         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45123         now compatible with glibc.
45124         * doc/posix-functions/getopt.texi (getopt): Likewise.
45125
45126         getopt-gnu: add another test
45127         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45128         guarantee behavior relied on by m4.
45129         * tests/test-getopt.c (main): Use it.
45130         * modules/getopt-posix-tests (Depends-on): Add setenv.
45131         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45132
45133         getopt: fix compilation on darwin
45134         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45135         include.
45136         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45137         Reported by Ludovic Courtès.
45138
45139 2009-10-06  Bruno Haible  <bruno@clisp.org>
45140
45141         * modules/size_max (Description): Discourage its use.
45142         Reported by Simon Josefsson.
45143
45144 2009-10-06  Jim Meyering  <meyering@redhat.com>
45145
45146         linkat: avoid compilation failure
45147         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45148
45149 2009-10-05  Eric Blake  <ebb9@byu.net>
45150
45151         linkat: support Linux 2.6.17
45152         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45153         linkat on Linux, but allow cache variable override.
45154         * lib/linkat.c (rpl_linkat): Define override.
45155         * modules/linkat (Depends-on): Add symlinkat.
45156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45157         * modules/unistd (Makefile.am): Substitute it.
45158         * lib/unistd.in.h (linkat): Declare replacement.
45159         Reported by Pádraig Brady.
45160
45161         quotearg: port test to systems with C.UTF-8 locale
45162         * tests/test-quotearg.c (struct result_strings): Add another
45163         member, differentiating between C.ASCII and C.UTF-8 handling.
45164         (compare_strings): Add parameter.
45165         (main): Adjust all callers.
45166
45167         getopt: avoid clash with FreeBSD _getopt_internal
45168         * lib/getopt.in.h (_getopt_internal): Override the name.
45169         * lib/getopt_int.h (includes): Pick up any overrides.
45170         Reported by Reuben Thomas.
45171
45172         hash: allow C89 compilation
45173         * lib/hash.c (check_tuning): Move declaration before statement.
45174         Reported by Reuben Thomas.
45175
45176 2009-10-05  Karl Berry  <karl@gnu.org>
45177
45178         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45179
45180 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45181             Bruno Haible  <bruno@clisp.org>
45182
45183         * lib/uname.c (uname): Use a table-driven algorithm to compute
45184         Windows NT versions.
45185
45186 2009-10-04  Bruno Haible  <bruno@clisp.org>
45187
45188         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45189         program_invocation_short_name.
45190         * modules/progname (configure.ac): Test for presence of
45191         program_invocation_short_name.
45192         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45193
45194 2009-10-04  Bruno Haible  <bruno@clisp.org>
45195
45196         * lib/progname.c (set_program_name): Fix comment.
45197         Reported by Jim Meyering.
45198
45199 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45200             Bruno Haible  <bruno@clisp.org>
45201
45202         * lib/uname.c: Include <string.h>.
45203         (uname): Do only one call to GetVersionEx in the common case.
45204
45205 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45206             Bruno Haible  <bruno@clisp.org>
45207
45208         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45209         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45210         (uname): Add support for Windows CE and various non-x86 CPU types.
45211
45212 2009-10-03  Bruno Haible  <bruno@clisp.org>
45213
45214         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45215         invocation to tests/configure.ac.
45216         Reported by Ian Beckwith <ianb@erislabs.net>.
45217
45218 2009-10-02  Eric Blake  <ebb9@byu.net>
45219
45220         fchdir: avoid compiler warning
45221         * lib/fchdir.c (canonicalize_file_name)
45222         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45223
45224         test-open: support mingw errno values
45225         * tests/test-open.h (test_open): Relax test.
45226         * tests/test-fopen.h (test_fopen): Likewise.
45227         * tests/test-openat-safer.c (main): Likewise.
45228
45229         open: fix opening directory on mingw
45230         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45231
45232         test-open: on GNU/Hurd, /dev/null is a directory
45233         * tests/test-fopen.h (main): Rename...
45234         (test_fopen): ...to this.  Use a guaranteed non-directory when
45235         confirming open behavior on trailing slash.
45236         * tests/test-openat-safer.c (main): Likewise.
45237         * tests/test-open.h (main): Likewise....
45238         (test_open): ...to this.
45239         * tests/test-fopen.c (main): Adjust caller.
45240         * tests/test-fopen-safer.c (main): Likewise.
45241         * tests/test-open.c (main): Likewise.
45242         * tests/test-fcntl-safer.c (main): Likewise.
45243         Reported by Samuel Thibault.
45244
45245         rename, fchdir: don't ignore chdir failure
45246         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45247         * lib/rename.c (rpl_rename) [W32]: Likewise.
45248         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45249         an empty destination directory if source cannot be renamed,
45250         although there is still possibility for failure.
45251         * doc/posix-functions/rename.texi (rename): Document the race.
45252         Reported by Jim Meyering.
45253
45254         maint: cleanup whitespace in recent commits
45255         * lib/rename.c (rpl_rename): Remove tabs.
45256         * tests/test-link.h (test_link): Likewise.
45257         * lib/fchdir.c (get_name): Likewise.
45258         Reported by Jim Meyering.
45259
45260 2009-10-02  Ben Pfaff  <blp@gnu.org>
45261
45262         relocatable-prog-wrapper: Add missing dependency on
45263         double-slash-root.
45264         * modules/relocatable-prog-wrapper: Add dependency.
45265         Reported by Ian Beckwith <ianb@erislabs.net>.
45266
45267 2009-10-02  Eric Blake  <ebb9@byu.net>
45268
45269         renameat: fix Solaris bugs
45270         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45271         needed fixing.
45272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45273         * modules/stdio (Makefile.am): Substitute it.
45274         * lib/stdio.in.h (renameat): Declare replacement.
45275         * lib/renameat.c (rpl_renameat): Implement fix.
45276
45277         renameat: new module
45278         * modules/renameat: New file.
45279         * lib/renameat.c (renameat): Likewise.
45280         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45282         * modules/stdio (Makefile.am): Substitute them.
45283         * lib/stdio.in.h (renameat): Declare it.
45284         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45285         * doc/posix-functions/renameat.texi (renameat): Likewise.
45286         * modules/renameat-tests: New test.
45287         * tests/test-renameat.c: Likewise.
45288
45289         rename: fix mingw bugs
45290         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45291         directory overwrite bugs.
45292
45293         rename: fix another cygwin 1.5 bug
45294         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45295         checks.
45296         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45297         unnecessary cygwin workarounds.  Also work around bug with moving
45298         full directory onto an empty one.
45299         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45300
45301         rename-dest-slash: merge into rename module
45302         * modules/rename-dest-slash (Status): Mark obsolete.
45303         (Depends-on): Add rename.
45304         (Files): Let rename do it all.
45305         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45306         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45307         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45308         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45309         * lib/rename.c (rpl_rename): Update comments.
45310
45311         rename: fix cygwin 1.5.x bugs
45312         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45313         * lib/rename.c (rpl_rename): Work around them.
45314         * modules/rename (Depends-on): Add same-inode.
45315
45316         rename: fix Solaris 10 bug
45317         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45318         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45319         was the only bug.
45320
45321         rename: fix Solaris 9 bug
45322         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45323         on non-directory.  Avoid calling exit.
45324         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45325         strdup.
45326         * modules/rename-tests (Depends-on): Drop lstat.
45327         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45328         (gl_PREREQ_RENAME): Delete unused macro.
45329
45330         rename-dest-slash: fix NetBSD bug
45331         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45332         links.
45333         * modules/rename-dest-slash (Depends-on): Add same-inode.
45334
45335         rename-tests: new test, exposes several platform bugs
45336         * modules/rename-tests: New file.
45337         * tests/test-rename.h: Likewise.
45338         * tests/test-rename.c: Likewise.
45339         * doc/posix-functions/rename.texi (rename): Improve documentation,
45340         including bugs that will eventually be fixed in gnulib.
45341
45342 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45343
45344         * lib/uname.c: Include <stdlib.h>
45345         (uname): Assume version info is available.
45346
45347 2009-10-02  Jim Meyering  <meyering@redhat.com>
45348
45349         gnu-web-doc-update: correct --help output
45350         * build-aux/gnu-web-doc-update: Make --help output relevant.
45351
45352         gnu-web-doc-update: add standard options
45353         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45354
45355         gnu-web-doc-update: New module.
45356         Use this script to automatically update the on-line web documentation
45357         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45358         * modules/gnu-web-doc-update: New file, from coreutils.
45359         * build-aux/gnu-web-doc-update: New script.
45360
45361 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45362
45363         link: LoadLibrary is not needed.
45364         * lib/link.c: Use GetModuleHandle.
45365
45366 2009-10-01  Eric Blake  <ebb9@byu.net>
45367
45368         getopt: bump serial number
45369         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45370         change.
45371
45372         tests: tighten link, rmdir, and remove tests
45373         * tests/test-link.h (includes): No need to use <config.h> here.
45374         Clean up if directory hard link was created, otherwise test for
45375         trailing '.'.
45376         * tests/test-linkat.c (main): Simplify.
45377         * tests/test-remove.c (main): Enhance test for trailing '.'.
45378         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45379
45380 2009-10-01  Jim Meyering  <meyering@redhat.com>
45381
45382         maint.mk: requiring "make major" was annoying, for a "minor" release.
45383         What is intended is "stable", to contrast with alpha and beta,
45384         so require "make stable", not "make major".
45385         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45386         (get_tool_versions): Likewise.
45387         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45388
45389 2009-09-30  Ben Pfaff  <blp@gnu.org>
45390
45391         Fix broken build of replacement for Windows tmpfile().
45392         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45393         flags argument added along with the 'mkostemp' module.
45394
45395 2009-09-28  Bruno Haible  <bruno@clisp.org>
45396
45397         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45398         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45399         to 'remove_elt'.
45400         (gl_list_remove): Update.
45401         * lib/gl_list.c (gl_list_remove): Update.
45402         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45403         to 'remove_elt'.
45404         (gl_oset_remove): Update.
45405         * lib/gl_list.c (gl_oset_remove): Update.
45406         Reported by Eric Blake.
45407
45408 2009-09-28  Eric Blake  <ebb9@byu.net>
45409
45410         doc: mention yet more cygwin 1.7 status
45411         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45412         cygwin.
45413         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45414         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45415
45416         argp: fix test failure
45417         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45418         that are not upper-case.  Pass correct range to tolower.
45419
45420 2009-09-27  Jim Meyering  <meyering@redhat.com>
45421
45422         test-yesno: work around sparc-dash here-document infelicity
45423         Without this change, the literal \177 byte in a here document
45424         would make dash 0.5.5.1-3 access uninitialized memory.
45425         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45426         Instead, use a marker, "@", and filter through tr to create the desired
45427         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45428
45429 2009-09-27  Bruno Haible  <bruno@clisp.org>
45430
45431         Disable untested support for new flavours of ACLs on AIX.
45432         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45433         progress.
45434         * lib/set-mode-acl.c (qset_acl): Likewise.
45435
45436 2008-12-07  Bruno Haible  <bruno@clisp.org>
45437
45438         Add support for new flavours of ACLs on AIX. (Untested.)
45439         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45440         (file_has_acl): Add support for newer AIX.
45441         * lib/set-mode-acl.c (qset_acl): Likewise.
45442         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45443         Rainer Tammer <tammer@tammer.net>.
45444
45445 2009-09-26  Eric Blake  <ebb9@byu.net>
45446
45447         argp: fix compilation of getopt
45448         * lib/getopt.in.h (includes): Use different guard than glibc.
45449         Reported by Sergey Poznyakoff.
45450
45451         doc: mention more cygwin 1.7 status
45452         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45453         bug.
45454         * doc/posix-functions/execl.texi (execl): Likewise.
45455         * doc/posix-functions/execle.texi (execle): Likewise.
45456         * doc/posix-functions/execlp.texi (execlp): Likewise.
45457         * doc/posix-functions/execv.texi (execv): Likewise.
45458         * doc/posix-functions/execve.texi (execve): Likewise.
45459         * doc/posix-functions/execvp.texi (execvp): Likewise.
45460         * doc/glibc-functions/canonicalize_file_name.texi
45461         (canonicalize_file_name): Cygwin 1.7 now provides this.
45462         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45463         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45464         on AT_SYMLINK_NOFOLLOW.
45465
45466 2009-09-24  Eric Blake  <ebb9@byu.net>
45467
45468         test-linkat: make test more robust
45469         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45470
45471         getopt: fix inclusion guards for cygwin
45472         * modules/getopt-posix (Depends-on): Add include-next.
45473         (Makefile.am): Substitute more items in replacement header.
45474         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45475         <getopt.h>.
45476         * lib/getopt.in.h (includes): Use split inclusion guard, and
45477         prefer <getopt.h> over include <unistd.h> when one is present.
45478         (option): Also override name of 'struct option'.
45479
45480         same-inode: revert prior change; it is not yet ready
45481         * NEWS: Undo mention of this change.
45482         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45483         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45484         * lib/cycle-check.c (cycle_check): Likewise.
45485         * lib/same.c (same_name): Likewise.
45486         * lib/at-func2.c (at_func2): Likewise.
45487
45488 2009-09-23  Eric Blake  <ebb9@byu.net>
45489
45490         linkat: new module
45491         * modules/linkat: New file.
45492         * lib/at-func2.c (at_func2): Likewise.
45493         * lib/linkat.c (linkat): Likewise.
45494         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45495         * lib/openat-priv.h (at_func2): Add declaration.
45496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45497         * modules/unistd (Makefile.am): Substitute them.
45498         * lib/unistd.in.h (linkat): Declare it.
45499         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45500         * doc/posix-functions/linkat.texi (linkat): Likewise.
45501         * doc/posix-functions/link.texi (link): Tweak wording.
45502         * tests/test-link.c (main): Move guts...
45503         * tests/test-link.h (test_link): ...into new file.
45504         * modules/linkat-tests: New test.
45505         * tests/test-linkat.c: Likewise.
45506         * modules/link-tests (Files): Ship new file.
45507         (Depends-on): Add stdbool.
45508
45509         dirname: add library-safe mdir_name
45510         * lib/dirname.h (mdir_name): New prototype.
45511         * lib/dirname.c (dir_name): Move guts...
45512         (mdir_name): ...to new function that avoids xalloc_die.
45513
45514         fchdir: another mingw fix
45515         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45516         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45517         on mingw (where it has not yet been ported), and make it optional
45518         elsewhere.
45519         (_gl_register_fd): Use it.
45520
45521         same-inode: make SAME_INODE tri-state, to port to mingw
45522         * NEWS: Mention this change.
45523         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45524         st_ino always being 0.
45525         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45526         * lib/cycle-check.c (cycle_check): Likewise.
45527         * lib/same.c (same_name): Likewise.
45528
45529         lstat: avoid mingw compilation error
45530         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45531         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45532         lstat ourselves.
45533         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45534         was adequate.
45535         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45536         the checks for lstat.
45537         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45538
45539         link: fix test failure on Solaris 9
45540         * lib/link.c (rpl_link): Don't assume link will catch bogus
45541         trailing slash on source.
45542
45543         test-symlinkat: enhance test
45544         * tests/test-readlink.c (main): Move guts...
45545         * tests/test-readlink.h (test_readlink): ...into new file.
45546         * tests/test-symlink.c (main): Move guts...
45547         * tests/test-symlink.h (test_symlink): ...into new file.
45548         * tests/test-symlinkat.c (main): Use new files for further
45549         coverage.
45550         (do_symlink, do_readlink): New helper functions.
45551         * modules/symlink-tests (Files): Ship new file.
45552         (Depends-on): Add stdbool.
45553         * modules/readlink-tests (Files): Ship new file.
45554         (Depends-on): Add stdbool.
45555         * modules/symlinkat-tests (Files): Use new files.
45556
45557 2009-09-23  Eric Blake  <ebb9@byu.net>
45558
45559         readlink: document portability issue with symlink length
45560         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45561         systems have bogus st_size on symlinks, and mention the
45562         areadlink-with-size module.
45563         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45564         * doc/posix-functions/readlink.texi (readlink): Mention the
45565         areadlink module, and ERANGE failure.
45566         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45567         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45568
45569         readlink: fix Solaris 9 bug with trailing slash
45570         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45571         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45572         * doc/posix-functions/readlink.texi (readlink): Document this.
45573         * modules/readlink-tests: New test.
45574         * tests/test-readlink.c: Likewise.
45575
45576         readlink: fix cygwin 1.5.x bug with return type
45577         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45578         * lib/unistd.in.h (readlink): Use ssize_t.
45579         * lib/readlink.c (readlink): Likewise.
45580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45581         * modules/unistd (Makefile.am): Substitute it.
45582         * lib/unistd.in.h (readlink): Declare replacement.
45583         * doc/posix-functions/readlink.texi (readlink): Document this.
45584
45585         symlink: use throughout gnulib
45586         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45587         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45588         symlink is not used.
45589         * modules/symlinkat (Depends-on): Add symlink.
45590         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45591         * modules/canonicalize-tests (Depends-on): Likewise.
45592         * modules/lstat-tests (Depends-on): Likewise.
45593         * modules/openat-tests (Depends-on): Likewise.
45594         * modules/remove-tests (Depends-on): Likewise.
45595         * modules/rmdir-tests (Depends-on): Likewise.
45596         * modules/unlink-tests (Depends-on): Likewise.
45597         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45598         * tests/test-canonicalize.c (symlink): Likewise.
45599         * tests/test-fstatat.c (symlink): Likewise.
45600         * tests/test-lstat.c (symlink): Likewise.
45601         * tests/test-remove.c (symlink): Likewise.
45602         * tests/test-rmdir.c (symlink): Likewise.
45603         * tests/test-unlink.c (symlink): Likewise.
45604         * tests/test-unlinkat.c (symlink): Likewise.
45605
45606         symlink: new module, for Solaris 9 bug
45607         * modules/symlink: New file.
45608         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45609         * lib/symlink.c: Likewise.
45610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45611         * modules/unistd (Makefile.am): Substitute them.
45612         * lib/unistd.in.h (symlink): Declare replacement.
45613         * MODULES.html.sh (File system functions): Mention it.
45614         * doc/posix-functions/symlink.texi (symlink): Likewise.
45615         * modules/symlink-tests: New test.
45616         * tests/test-symlink.c: Likewise.
45617
45618 2009-09-23  Bruno Haible  <bruno@clisp.org>
45619
45620         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45621         when needed.
45622         Test case: gnulib-tool --import --with-tests atexit inttypes.
45623         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45624
45625 2009-09-23  Bruno Haible  <bruno@clisp.org>
45626
45627         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45628         subcommand, not in a subshell.
45629
45630 2009-09-22  Eric Blake  <ebb9@byu.net>
45631
45632         unistd: sort replacement declarations
45633         * lib/unistd.in.h: Sort declarations.
45634
45635         open, openat: minor optimization
45636         * lib/open.c (open): If open succeeded, len is non-zero.
45637         * lib/openat.c (rpl_openat): Likewise.
45638
45639         link-follow: ensure correct result
45640         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45641         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45642         distinguish between possible failures.
45643
45644 2009-09-21  Eric Blake  <ebb9@byu.net>
45645
45646         fts: avoid compiler warning
45647         * lib/fts.c (dirent_inode_sort_may_be_useful)
45648         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45649
45650 2009-09-19  Bruno Haible  <bruno@clisp.org>
45651
45652         * lib/progreloc.c (canonicalize_file_name): New declaration.
45653
45654 2009-09-19  Eric Blake  <ebb9@byu.net>
45655
45656         link: fix quoting
45657         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45658
45659         openat: fix openat bugs on Solaris 9
45660         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45661         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45662         * modules/openat (Depends-on): Add open.
45663         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45664         * modules/fcntl-h (Makefile.am): Substitute it.
45665         * lib/fcntl.in.h (openat): Declare replacement.
45666         * doc/posix-functions/openat.texi (openat): Document this.
45667
45668         openat: move fstatat and unlinkat into correct files
45669         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45670         compiled.
45671         * lib/openat.c (fstatat, unlinkat): Move...
45672         * lib/fstatat.c (fstatat): ...into correct files.
45673         * lib/unlinkat.c (unlinkat): Likewise.
45674
45675         openat: fix unlinkat bugs on Solaris 9
45676         * lib/unlinkat.c (unlinkat): New file.
45677         * modules/openat (Depends-on): Add unlink.
45678         (Files): Distribute it.
45679         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45680         trailing slash behavior is broken.
45681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45682         * modules/unistd (Makefile.am): Substitute it.
45683         * lib/unistd.in.h (unlinkat): Declare replacement.
45684         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45685
45686         openat: fix fstatat bugs on Solaris 9
45687         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45688         stat.
45689         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45690
45691         test-unlinkat: enhance test, to expose Solaris 9 bug
45692         * tests/test-unlink.c (main): Factor guts...
45693         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45694         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45695         * tests/test-rmdir.c (main): Adjust caller.
45696         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45697         (unlinker): New helper function.
45698         (rmdirat): Enhance check.
45699         * modules/rmdir-tests (Depends-on): Add stdbool.
45700         * modules/unlink-tests (Depends-on): Likewise.
45701         (Files): Add test-unlink.h.
45702         * modules/openat-tests (Files): Likewise.
45703         (Depends-on): Add unlinkdir.
45704
45705         test-fstatat: new test, to expose Solaris 9 bugs
45706         * tests/test-stat.c (main): Factor guts...
45707         * tests/test-stat.h (test_stat_func): ...into new file.
45708         * tests/test-lstat.c (main): Factor guts...
45709         * tests/test-lstat.h (test_lstat_func): ...into new file.
45710         * tests/test-fstatat.c: New file.
45711         * modules/stat-tests (Files): Add test-stat.h.
45712         * modules/lstat-tests (Files): Add test-lstat.h.
45713         (Depends-on): Add stdbool.
45714         * modules/openat-tests (Depends-on): Add pathmax.
45715         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45716         (Makefile.am): Run new test.
45717
45718         remove: new module, for mingw and Solaris 9 bugs
45719         * modules/remove: New file.
45720         * lib/remove.c: Likewise.
45721         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45723         * modules/stdio (Makefile.am): Use them.
45724         * lib/stdio.in.h (remove): Declare replacement.
45725         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45726         * doc/posix-functions/remove.texi (remove): Likewise.
45727         * modules/remove-tests: New test.
45728         * tests/test-remove.c: Likewise.
45729
45730         unlink: new module, for Solaris 9 bug
45731         * modules/unlink: New file.
45732         * lib/unlink.c: Likewise.
45733         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45735         * modules/unistd (Makefile.am): Use them.
45736         * lib/unistd.in.h (stat): Declare replacement.
45737         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45738         * doc/posix-functions/unlink.texi (unlink): Likewise.
45739         * modules/unlink-tests: New test.
45740         * tests/test-unlink.c: Likewise.
45741
45742         lstat: fix Solaris 9 bug
45743         * lib/lstat.c (lstat): Also check for trailing slash on
45744         non-symlink, non-directories.  Use stat module to simplify logic.
45745         * doc/posix-functions/lstat.texi (lstat): Document it.
45746         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45747         (configure.ac): Check for symlink.
45748         * tests/test-lstat.c (main): Add more tests.
45749
45750         stat: add as dependency to other modules
45751         * modules/chown (Depends-on): Add stat.
45752         * modules/euidaccess (Depends-on): Likewise.
45753         * modules/fchdir (Depends-on): Likewise.
45754         * modules/isdir (Depends-on): Likewise.
45755         * modules/link (Depends-on): Likewise.
45756         * modules/lstat (Depends-on): Likewise.
45757         * modules/mkdir-p (Depends-on): Likewise.
45758         * modules/modechange (Depends-on): Likewise.
45759         * modules/open (Depends-on): Likewise.
45760         * modules/readlink (Depends-on): Likewise.
45761         * modules/same (Depends-on): Likewise.
45762
45763         stat: fix Solaris 9 bug
45764         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45765         slash.
45766         * lib/stat.c (rpl_stat): Work around it.
45767         * doc/posix-functions/stat.texi (stat): Update documentation.
45768
45769         stat: new module, for mingw bug
45770         * modules/stat: New file.
45771         * lib/stat.c: Likewise.
45772         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45773         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45774         * modules/sys_stat (Makefile.am): Use them.
45775         * lib/sys_stat.in.h (stat): Declare replacement.
45776         * lib/openat.c (fstatat): Deal with lstat and stat being function
45777         macros.
45778         * modules/openat (Depends-on): Add inline.
45779         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45780         * doc/posix-functions/stat.texi (stat): Likewise.
45781         * modules/stat-tests: New test.
45782         * tests/test-stat.c: Likewise.
45783
45784 2009-09-19  Jim Meyering  <meyering@redhat.com>
45785
45786         syntax-check: detect unnecessary inclusion of canonicalize.h
45787         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45788
45789 2009-09-19  Eric Blake  <ebb9@byu.net>
45790
45791         canonicalize-lgpl: adjust clients to use correct header
45792         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45793         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45794         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45795         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
45796         * lib/progreloc.c (includes): Likewise.
45797
45798 2009-09-19  Jim Meyering  <meyering@redhat.com>
45799
45800         test-posixtm.c: correct a comment
45801         * tests/test-posixtm.c: Correct first-line comment.
45802         Spotted by Eric Blake.
45803
45804 2009-09-16  Jim Meyering  <meyering@redhat.com>
45805
45806         posixtm-tests: make T const-correct; add a test case
45807         * tests/test-posixtm.c (T): Declare const.
45808         Add a test for -(2^31+1).
45809         Remove useless can-succeed-only-in-2002 test.
45810
45811         posixtm-tests: adjust the sole failing test
45812         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
45813         expected output matches what mktime now produces.  Cross-checked via
45814         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
45815
45816         posixtm: move #ifdef'd tests into a new module
45817         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
45818         * tests/test-posixtm.c: ... this new file.
45819         * modules/posixtm-tests: New module.
45820
45821 2009-09-19  Eric Blake  <ebb9@byu.net>
45822
45823         openat: simplify use of at-func.c
45824         * lib/at-func.c (includes): Include prerequisites here, to
45825         simplify requirements on client files.
45826         * lib/openat-priv.h: Add double-inclusion guard.
45827         * lib/faccessat.c (includes): Simplify.
45828         * lib/fchmodat.c (includes): Likewise.
45829         * lib/fchownat.c (includes): Likewise.
45830         * lib/mkdirat.c (includes): Likewise.
45831         * lib/mkfifoat.c (includes): Likewise.
45832         * lib/symlinkat.c (includes): Likewise.
45833
45834         openat: allow return of fd 0
45835         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
45836         * modules/save-cwd (Depends-on): Replace fcntl-safer with
45837         unistd-safer.
45838         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
45839         <fcntl.h>; this module does not leak fds.
45840         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
45841         must be allowed to return 0, leaving openat_safer to add the
45842         safety.
45843         (openat_permissive): Avoid writing to just-opened fd 2 if
45844         restoring the current directory fails.
45845         * lib/openat-die.c (openat_restore_fail): Add comment.
45846         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45847         (save_cwd): Guarantee safe fd, but without use of open_safer.
45848         * tests/test-openat.c: New test.
45849         * modules/openat-tests (Files, Makefile.am): Distribute and build
45850         new file.
45851
45852         relocatable-prog-wrapper: fix build
45853         * modules/relocatable-prog-wrapper (Files): Update name of
45854         canonicalize m4 file, broken on 2009-09-17.
45855         Reported by emad hajjar <aleppos@hotmail.com>.
45856
45857 2009-09-19  Bruno Haible  <bruno@clisp.org>
45858
45859         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45860         * lib/safe-alloc.c: Likewise.
45861         Reported by Ian Beckwith <ianb@erislabs.net>.
45862
45863 2009-09-18  Bruno Haible  <bruno@clisp.org>
45864
45865         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45866         Reported by <erobles@sensacd.com.mx>.
45867
45868 2009-09-17  Eric Blake  <ebb9@byu.net>
45869
45870         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45871         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45872         slashes when checking if last component is missing.
45873         * tests/test-canonicalize.c (main): Test this.
45874
45875         canonicalize, canonicalize-lgpl: honor // if distinct from /
45876         * modules/canonicalize (Files): Add double-slash-root.m4.
45877         * modules/canonicalize-lgpl (Files): Likewise.
45878         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45879         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45880         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45881         fallback definition.
45882         (canonicalize_filename_mode): Use it to protect //.
45883         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45884         (__realpath): Likewise.
45885         * tests/test-canonicalize.c (main): Test this.
45886         * tests/test-canonicalize-lgpl.c (main): Likewise.
45887         * modules/canonicalize-tests (Depends-on): Add same-inode.
45888         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45889
45890         canonicalize-lgpl: fix glibc bug with trailing slash
45891         * m4/canonicalize-lgpl.m4: Move contents...
45892         * m4/canonicalize.m4: ...here.
45893         (gl_CANONICALIZE_LGPL): Factor realpath check...
45894         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45895         glibc 2.3.5 bug, fixed 2005-04-27.
45896         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45897         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45898         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45899         * modules/canonicalize-lgpl (Files): Manage file rename.
45900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45901         * modules/stdlib (Makefile.am): Substitute witness.
45902         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45903         is needed.
45904         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45905         replacement is required.
45906         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45907         * doc/glibc-functions/canonicalize_file_name.texi
45908         (canonicalize_file_name): Document this.
45909         * doc/posix-functions/realpath.texi (realpath): Likewise.
45910
45911         canonicalize-lgpl: reject non-directory with trailing slash
45912         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45913         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45914         catches failures in glibc 2.3.5.
45915         * tests/test-canonicalize.c (main): Likewise.
45916
45917         canonicalize-lgpl: use native realpath if it works
45918         * lib/canonicalize-lgpl.c (realpath): Guard with
45919         FUNC_REALPATH_WORKS.
45920         * lib/stdlib.in.h (realpath): Make declaration optional based on
45921         HAVE_REALPATH.
45922         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45923         native realpath works.
45924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45925         * modules/stdlib (Makefile.am): Substitute witness.
45926
45927         canonicalize, canonicalize-lgpl: use <stdlib.h>
45928         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45929         (Include): Mention <stdlib.h>.
45930         (configure.ac): Mention functions we provide.
45931         * modules/canonicalize (configure.ac): Likewise.
45932         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45933         realpath if canonicalize_file_name is missing.
45934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45935         * modules/stdlib (Makefile.am): Substitute witnesses.
45936         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45937         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45938         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45939         * NEWS: Document this.
45940         * doc/glibc-functions/canonicalize_file_name.texi
45941         (canonicalize_file_name): Likewise.
45942         * doc/posix-functions/realpath.texi (realpath): Likewise.
45943         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45944
45945         test-canonicalize: consolidate into single C program
45946         * tests/test-canonicalize.sh: Delete; move setup into...
45947         * tests/test-canonicalize.c (main): ...the program, making it
45948         easier to run in debugger.  Add some tests.
45949         * modules/canonicalize-tests (Files): Remove unused file.
45950         (Depends-on): Add progname.
45951         (configure.ac, Makefile.am): Simplify.
45952
45953         test-canonicalize-lgpl: consolidate into single C program
45954         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45955         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45956         easier to run in debugger.  Add some tests.
45957         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45958         (configure.ac, Makefile.am): Simplify.
45959
45960         canonicalize: avoid resolvepath
45961         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45962         unnecessary checks.
45963         * lib/canonicalize.c (includes): Simplify.
45964         (canonicalize_file_name): Drop resolvepath implementation.
45965         * modules/canonicalize (Depends-on): Drop filenamecat.
45966
45967         canonicalize: don't lose errno
45968         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45969         over calls to free.
45970
45971         canonicalize: simplify errno handling
45972         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45973         assignment.
45974
45975         canonicalize, canonicalize-lgpl: update module dependencies
45976         * modules/canonicalize (Depends-on): Add extensions, lstat,
45977         pathmax, stdlib.
45978         (Files): Drop pathmax.h.
45979         (configure.ac): Adjust macro name.
45980         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45981         lstat, stdlib, sys_stat.
45982         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45983         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45984         extensions.
45985         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45986         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45987         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45988         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45989         declaration, if available.
45990         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45991         we can rely on the readlink module.
45992         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45993         (includes): Use <unistd.h> unconditionally.
45994
45995 2009-09-17  Eric Blake  <ebb9@byu.net>
45996
45997         maint: make Include sections of modules consistent
45998         * modules/alloca: Use only header name; no need to list #include.
45999         * modules/alloca-opt: Likewise.
46000         * modules/arpa_inet: Likewise.
46001         * modules/canon-host: Likewise.
46002         * modules/configmake: Likewise.
46003         * modules/dirent: Likewise.
46004         * modules/eealloc: Likewise.
46005         * modules/environ: Likewise.
46006         * modules/fchdir: Likewise.
46007         * modules/fcntl: Likewise.
46008         * modules/fcntl-h: Likewise.
46009         * modules/gethrxtime: Likewise.
46010         * modules/gettime: Likewise.
46011         * modules/ignore-value: Likewise.
46012         * modules/inet_ntop: Likewise.
46013         * modules/inet_pton: Likewise.
46014         * modules/inttypes: Likewise.
46015         * modules/isnand-nolibm: Likewise.
46016         * modules/isnanf-nolibm: Likewise.
46017         * modules/mbchar: Likewise.
46018         * modules/mbfile: Likewise.
46019         * modules/mbiter: Likewise.
46020         * modules/mbuiter: Likewise.
46021         * modules/netdb: Likewise.
46022         * modules/netinet_in: Likewise.
46023         * modules/nproc: Likewise.
46024         * modules/pagealign_alloc: Likewise.
46025         * modules/poll: Likewise.
46026         * modules/printf-frexp: Likewise.
46027         * modules/pthread: Likewise.
46028         * modules/putenv: Likewise.
46029         * modules/random_r: Likewise.
46030         * modules/relocatable-prog: Likewise.
46031         * modules/search: Likewise.
46032         * modules/select: Likewise.
46033         * modules/selinux-h: Likewise.
46034         * modules/settime: Likewise.
46035         * modules/signal: Likewise.
46036         * modules/size_max: Likewise.
46037         * modules/socklen: Likewise.
46038         * modules/ssize_t: Likewise.
46039         * modules/stdarg: Likewise.
46040         * modules/stdbool: Likewise.
46041         * modules/stddef: Likewise.
46042         * modules/stdint: Likewise.
46043         * modules/stdio: Likewise.
46044         * modules/stdlib: Likewise.
46045         * modules/string: Likewise.
46046         * modules/strings: Likewise.
46047         * modules/sys_file: Likewise.
46048         * modules/sys_ioctl: Likewise.
46049         * modules/sys_select: Likewise.
46050         * modules/sys_socket: Likewise.
46051         * modules/sys_stat: Likewise.
46052         * modules/sys_time: Likewise.
46053         * modules/sys_times: Likewise.
46054         * modules/sys_utsname: Likewise.
46055         * modules/sys_wait: Likewise.
46056         * modules/sysexits: Likewise.
46057         * modules/time: Likewise.
46058         * modules/times: Likewise.
46059         * modules/tmpfile: Likewise.
46060         * modules/trim: Likewise.
46061         * modules/unistd: Likewise.
46062         * modules/wchar: Likewise.
46063         * modules/wctype: Likewise.
46064
46065 2009-09-17  Bruno Haible  <bruno@clisp.org>
46066
46067         Make getdate.y compile on QNX and NetBSD 5 / i386.
46068         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46069         TIME_T_FITS_IN_LONG_INT.
46070         * lib/getdate.y (long_time_t): New type.
46071         (relative_time): Change type of 'seconds' field to long_time_t.
46072         (get_date): Update types of local variables. Check against overflow
46073         during conversion from long_time_t to time_t.
46074         Reported by Matt Kraai <kraai@ftbfs.org>
46075         and Hasso Tepper <hasso@netbsd.org>.
46076
46077 2009-09-17  Bruno Haible  <bruno@clisp.org>
46078
46079         * modules/COPYING: Update copyright years.
46080         * modules/README: Likeiwse.
46081         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46082         Reported by Ian Beckwith <ianb@erislabs.net>.
46083
46084 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46085
46086         * users.txt: Update references for gnuit package.
46087
46088 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46089
46090         * m4/getdelim.m4: Fix typo in copyright line.
46091
46092 2009-09-17  Bruno Haible  <bruno@clisp.org>
46093
46094         * lib/atoll.c: Use the standard header with GPL copyright.
46095         * lib/argz.in.h: Likewise.
46096         * lib/glob.c: Likewise.
46097         * lib/glob-libc.h: Likewise.
46098         * lib/random_r.c: Likewise.
46099         * lib/siglist.h: Likewise.
46100         * lib/strsignal.c: Likewise.
46101         Reported by Ian Beckwith <ianb@erislabs.net>.
46102
46103 2009-09-17  Eric Blake  <ebb9@byu.net>
46104
46105         rmdir: ensure correct dependency order
46106         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46107
46108 2009-09-17  Bruno Haible  <bruno@clisp.org>
46109
46110         Disable assertion that fails on NetBSD 5 / i386.
46111         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46112         Reported by Sam Steingold <sds@gnu.org>
46113         and Hasso Tepper <hasso@netbsd.org>.
46114
46115 2009-09-16  Eric Blake  <ebb9@byu.net>
46116
46117         unlinkdir: port to mingw
46118         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46119         on which no one can unlink a directory.
46120
46121         stdlib: sort witness names
46122         * modules/stdlib (Makefile.am): Sort replacements.
46123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46124         * lib/stdlib.in.h: Likewise.
46125
46126         parse-duration-tests: avoid link failure
46127         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46128         LIBINTL.
46129         Reported by Tom G. Christensen.
46130
46131         openat-tests: ensure unlinkat behaves like rmdir
46132         * tests/test-rmdir.c (main): Factor guts...
46133         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46134         * modules/rmdir-tests (Files): Ship new file.
46135         * modules/openat-tests: New test.
46136         * tests/test-unlinkat.c: Likewise.
46137
46138         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46139         * modules/rmdir-errno (Status, Notice): Now obsolete.
46140
46141         rmdir: work around cygwin 1.5.x and mingw bugs
46142         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46143         * lib/rmdir.c (rmdir): Work around it.
46144         * modules/rmdir (Status, Notice): No longer obsolete.
46145         (Files): Add dos.m4.
46146         (Depends-on): Add unistd.
46147         (configure.ac): Set witnesses.
46148         (License): Relax to LGPLv2+.
46149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46150         * modules/unistd (Makefile.am): Substitute witnesses.
46151         * lib/unistd.in.h (rmdir): Declare replacement.
46152         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46153         * modules/rmdir-tests: New tests.
46154         * tests/test-rmdir.c: Likewise.
46155
46156 2009-09-15  Eric Blake  <ebb9@byu.net>
46157
46158         fchdir: improve use of replacement functions
46159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46160         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46161         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46162         REPLACE_CLOSEDIR.
46163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46164         * modules/sys_stat (Makefile.am): Substitute correct witness.
46165         * modules/dirent (Makefile.am): Likewise.
46166         * modules/unistd (Makefile.am): Likewise.
46167         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46168         * lib/unistd.in.h (dup): Likewise.
46169         * lib/sys_stat.in.h (fstat): Likewise.
46170
46171         maint: ignore gnulib-tool temp files
46172         * .gitignore: Ignore files created during gnulib-tool --test.
46173
46174 2009-09-13  Jim Meyering  <meyering@redhat.com>
46175
46176         posixtm: don't reject a time that specify "60" as the number of seconds
46177         * lib/posixtm.c (posixtime): The code to reject invalid dates
46178         would also reject a time specified with the .60 suffix.
46179         But POSIX allows that, in order to accommodate leap seconds.
46180         So don't reject it.
46181         (main): Adjust tests accordingly.
46182         * modules/posixtm (Depends-on): Add stpcpy.
46183
46184 2009-09-11  Jim Meyering  <meyering@redhat.com>
46185
46186         announce-gen: include [$release_type] in emitted Subject:
46187         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46188         e.g., [stable] in the emitted Subject: line.
46189
46190 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46191
46192         Remove obsolete macros from several modules.
46193         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46194         obsolete Autoconf macros with their modern counterparts.
46195         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46196         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46197         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46198         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46199         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46200         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46201         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46202         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46203         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46204         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46205         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46206         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46207         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46208         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46209         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46210         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46211         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46212         * m4/time_r.m4 (gl_TIME_R): Likewise.
46213         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46214         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46215         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46216
46217         Fix copyright header in build-aux scripts.
46218         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46219         recommendation.
46220         * build-aux/ncftpput-ftp: Likewise.
46221         * build-aux/update-copyright: Likewise.
46222
46223 2009-09-09  Eric Blake  <ebb9@byu.net>
46224
46225         test-link: allow Linux choice of errno
46226         * tests/test-link.c (main): Relax test for alternate error.
46227
46228         strndup: fix improper m4 caching
46229         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46230         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46231         (gl_PREREQ_STRNDUP): Delete.
46232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46233         * modules/string (Makefile.am): Substitute it.
46234         * lib/string.in.h (strndup): Modernize prototype.
46235
46236         getcwd: port to mingw
46237         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46238         different from the POSIX assumptions made throughout the getcwd
46239         module; fortunately, the mingw getcwd does not need replacement.
46240         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46241         * modules/getcwd-tests: New test.
46242         * tests/test-getcwd.c: Likewise.
46243
46244         link: fix platform bugs
46245         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46246         * lib/link.c (link): Work around them.  Fix related mingw bug.
46247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46248         * modules/unistd (Makefile.am): Substitute it.
46249         * lib/unistd.in.h (link): Declare replacement.
46250         * doc/posix-functions/link.texi (link): Document this.
46251         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46252
46253         test-link: consolidate into single C program, test more cases
46254         * tests/test-link.sh: Delete.
46255         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46256         at least Cygwin and Solaris.
46257         * modules/link-tests (Files): Remove unused file.
46258         (Depends-on): Add errno, sys_stat.
46259         (Makefile.am): Simplify.
46260
46261 2009-09-08  Bruno Haible  <bruno@clisp.org>
46262
46263         Work around towlower, towupper bug on mingw.
46264         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46265         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46266         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46267         * doc/posix-functions/towupper.texi: Likewise.
46268         Reported by Eric Blake.
46269
46270 2009-09-08  Jim Meyering  <meyering@redhat.com>
46271
46272         build: don't try to run autoheader if we don't use it
46273         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46274         is not used in configure.ac.
46275
46276 2009-09-08  Eric Blake  <ebb9@byu.net>
46277
46278         euidaccess: fix compilation error
46279         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46280
46281         rawmemchr: relax license
46282         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46283         okay.
46284         Reported by Jim Meyering.
46285
46286         mkfifoat: new module
46287         * modules/mkfifoat: New file.
46288         * lib/mkfifoat.c: Likewise.
46289         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46290         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46291         * modules/sys_stat (Makefile.am): Use them.
46292         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46293         * MODULES.html.sh (File system functions): Mention module.
46294         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46295         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46296         * modules/mkfifoat-tests: New test.
46297         * tests/test-mkfifoat.c: Likewise.
46298
46299         strchrnul: relax license
46300         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46301         okay.
46302         Reported by Jim Meyering.
46303
46304 2009-09-08  Eric Blake  <ebb9@byu.net>
46305
46306         fstatat: fix compilation on Solaris
46307         * lib/fstatat.c (includes): Add fcntl.h.
46308         Reported by Pádraig Brady.
46309
46310 2009-09-07  Eric Blake  <ebb9@byu.net>
46311
46312         rename: modernize replacement
46313         * modules/rename (Depends-on): Add stdio.
46314         (configure.ac): Declare witness.
46315         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46316         stdio take care of replacement.
46317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46318         * modules/stdio (Makefile.am): Substitute them.
46319         * lib/stdio.in.h (rename): Declare replacement.
46320         * lib/rename.c (includes): Allow cross-compilation to non-windows
46321         machines.
46322         * doc/posix-functions/rename.texi (rename): Improve
46323         documentation.
46324
46325         stdio: sort witness names
46326         * modules/stdio (Makefile.am): Sort replacements.
46327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46328         * lib/stdio.in.h: Likewise.
46329
46330         getcwd: minor cleanups
46331         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46332         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46333
46334         openat: provide more convenience names
46335         * modules/faccessat (configure.ac): Add C witness.
46336         * lib/unistd.in.h (readlinkat): Fix typo.
46337         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46338         convenience wrappers.
46339         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46340         wrappers in syntax checks.
46341
46342 2009-09-06  Eric Blake  <ebb9@byu.net>
46343
46344         doc: fix comments in recent patches
46345         * lib/faccessat.c: Mention correct function.
46346         * lib/fchmodat.c: Likewise.
46347         * lib/fchownat.c: Likewise.
46348         * lib/symlinkat.c: Likewise.
46349         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46350         constants.
46351
46352         faccessat, symlinkat: continue cleanup of previous patch
46353         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46354         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46355         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46357         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46358         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46359         set.
46360
46361 2009-09-06  Bruno Haible  <bruno@clisp.org>
46362
46363         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46364         (fstatat): Declare if GNULIB_FSTATAT is set.
46365         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46366         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46367         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46368         * modules/fcntl-h (Files): Remove m4/openat.m4.
46369         * modules/sys_stat (Files): Remove m4/openat.m4.
46370         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46371         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46372         * modules/unistd (Files): Remove m4/openat.m4.
46373         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46374         GNULIB_OPENAT.
46375         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46376         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46377         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46378         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46379         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46380         gl_OPENAT_DEFAULTS.
46381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46382         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46383         Don't require gl_OPENAT_DEFAULTS.
46384         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46385         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46386         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46387         (gl_OPENAT_DEFAULTS): Remove macro.
46388
46389 2009-09-06  Bruno Haible  <bruno@clisp.org>
46390
46391         * modules/openat (configure.ac): Remove unneeded witness.
46392
46393 2009-09-06  Bruno Haible  <bruno@clisp.org>
46394
46395         Set errno to ENOSYS when a function is entirely unsupported.
46396         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46397         EOPNOTSUPP.
46398         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46399         * modules/chown (Depends-on): Remove errno.
46400
46401 2009-09-06  Bruno Haible  <bruno@clisp.org>
46402
46403         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46404
46405 2009-09-06  Bruno Haible  <bruno@clisp.org>
46406
46407         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46408
46409 2009-09-06  Ben Pfaff  <blp@gnu.org>
46410             Bruno Haible  <bruno@clisp.org>
46411
46412         Work around a glibc bug in strtok_r.
46413         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46414         Undefine if UNDEFINE_STRTOK_R is set.
46415         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46416         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46417         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46418         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46419         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46420         UNDEFINE_STRTOK_R.
46421         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46422
46423 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46424
46425         exclude: minor fix
46426         * lib/exclude.c: Include wctype.h
46427
46428 2009-09-06  Akim Demaille  <demaille@gostai.com>
46429
46430         bootstrap: improve error message
46431         * build-aux/bootstrap (find_tool): Upon failure, report the list
46432         of candidates.
46433         Honor the initial value of the envvar.
46434
46435 2009-09-05  Eric Blake  <ebb9@byu.net>
46436
46437         symlinkat: new module
46438         * modules/symlinkat: New file.
46439         * lib/symlinkat.c: Likewise.
46440         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46442         * modules/unistd (Makefile.am): Use them.
46443         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46444         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46445         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46446         * MODULES.html.sh (File system functions): Mention module.
46447         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46448         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46449         * modules/symlinkat-tests: New test.
46450         * tests/test-symlinkat.c: Likewise.
46451
46452         test-openat-safer: add more checks
46453         * tests/test-openat-safer.c (main): Check more code paths.
46454
46455 2009-09-05  Jim Meyering  <meyering@redhat.com>
46456
46457         syntax-check: detect unnecessary inclusion of openat.h
46458         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46459
46460 2009-09-05  Bruno Haible  <bruno@clisp.org>
46461
46462         Support towlower, towupper.
46463         * doc/posix-functions/towlower.texi: Mention module wctype.
46464         * doc/posix-functions/towupper.texi: Likewise.
46465         * lib/wctype.in.h (towlower, towupper): New functions.
46466         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46467         (ASSERT): New macro.
46468         (e): New variable.
46469         (main): Test also towlower, towupper. Test WEOF argument.
46470         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46471
46472 2009-09-05  Bruno Haible  <bruno@clisp.org>
46473
46474         Fix conversion behaviour when the input is invalid.
46475         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46476         mark occurring in first pass of indirect conversion.
46477         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46478         input.
46479         Found by clang's static analyzer.
46480
46481 2009-09-05  Bruno Haible  <bruno@clisp.org>
46482
46483         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46484         where direct conversion is possible.
46485
46486 2009-09-04  Eric Blake  <ebb9@byu.net>
46487
46488         openat: fail with ENOENT on empty name
46489         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46490         buffer.
46491
46492         link-follow: fix logic bug in prior patch
46493         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46494         reversed sense of yes and no in prior patch.  Avoid confusing
46495         compilation failure with desired semantics.
46496
46497         link-follow: accommodate mingw and cross-compilation
46498         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46499         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46500         cross-compilation results to -1, to make linkat easier to
46501         implement when cross-compiling.  Trivially support mingw.
46502         * modules/link-follow (configure.ac): Call new name.
46503         * NEWS: Mention this.
46504
46505 2009-09-03  Eric Blake  <ebb9@byu.net>
46506
46507         faccessat: compile replacement
46508         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46509         needed.
46510
46511         fts: fix compilation error
46512         * lib/fts.c (includes): Re-add "openat.h", for
46513         openat_needs_fchdir.
46514
46515         faccessat: new module
46516         * modules/faccessat: New file.
46517         * lib/faccessat.c: Likewise.
46518         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46520         * modules/unistd (Makefile.am): Use it.
46521         * lib/unistd.in.h (faccessat): Declare it.
46522         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46523         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46524         * MODULES.html.sh (File system functions): Mention it.
46525         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46526         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46527
46528         euidaccess: prefer POSIX over non-standard implementation
46529         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46530         * lib/euidaccess.c (euidaccess): Use it if available.
46531
46532         openat: make template easier to use
46533         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46534         AT_FUNC_F2 to be undefined.
46535         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46536         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46537         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46538         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46539         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46540         Likewise.
46541         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46542         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46543         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46544         Likewise.
46545
46546         openat: declare in POSIX headers
46547         * NEWS: Mention this.
46548         * modules/openat (configure.ac): Declare witnesses.
46549         (Depends-on): Add fcntl-h, sys_stat, unistd.
46550         (Include): Mention correct headers.
46551         * modules/fcntl-h (Depends-on): Add link-warning.
46552         (Files): Add openat.m4.
46553         (Makefile.am): Substitute witnesses.
46554         * modules/sys_stat (Files, Makefile.am): Likewise.
46555         * modules/unistd (Files, Makefile.am): Likewise.
46556         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46557         (gl_OPENAT_DEFAULTS): New macro.
46558         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46561         (SYS_STAT_H): Remove unused variable.
46562         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46563         * lib/fcntl--.h (includes): Remove unneeded header.
46564         * lib/openat-safer.c (includes): Likewise.
46565         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46566         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46567         appropriate headers.
46568         (__OPENAT_PREFIX): Delete.
46569         * lib/fcntl.in.h (openat): Provide declaration.
46570         (AT_FDCWD): Fix Solaris bug.
46571         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46572         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46573         * lib/fchmodat.c (includes):  Adjust to find declaration.
46574         * lib/fchownat.c (includes): Likewise.
46575         * lib/mkdirat.c (includes): Likewise.
46576         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46577         still visible.
46578
46579 2009-09-02  Eric Blake  <ebb9@byu.net>
46580
46581         errno: use consistently
46582         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46583         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46584         * lib/canonicalize.c (ELOOP): Likewise.
46585         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46586         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46587         * lib/lchown.c (EOPNOTSUPP): Likewise.
46588         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46589         * lib/savewd.c (ESTALE): Likewise.
46590         * lib/settime.c (ENOSYS): Likewise.
46591         * lib/utimens.c (ENOSYS): Likewise.
46592         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46593         * lib/chdir-safer.c (ELOOP): Likewise.
46594         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46595         * modules/c-stack (Depends-on): Add errno.
46596         * modules/canonicalize (Depends-on): Likewise.
46597         * modules/chdir-safer (Depends-on): Likewise.
46598         * modules/fdopendir (Depends-on): Likewise.
46599         * modules/inet_ntop (Depends-on): Likewise.
46600         * modules/inet_pton (Depends-on): Likewise.
46601         * modules/lchown (Depends-on): Likewise.
46602         * modules/openat (Depends-on): Likewise.
46603         * modules/savewd (Depends-on): Likewise.
46604         * modules/settime (Depends-on): Likewise.
46605         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46606
46607         fts: avoid leaking fds
46608         * modules/fts (Depends-on): Add cloexec.
46609         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46610         flag.
46611
46612         fts: make directory fds more robust
46613         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46614         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46615
46616         backupfile, chdir-long, fts, savedir: make safer
46617         * lib/backupfile.c (includes): Use "dirent--.h", since
46618         numbered_backup can write to stderr during readdir.
46619         * lib/savedir.c (includes): Likewise.
46620         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46621         emulation can write to stderr on failure.
46622         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46623         * lib/getcwd.c: Document why opendir_safer is unused.
46624         * lib/glob.c: Likewise.
46625         * lib/scandir.c: Likewise.
46626         * lib/openat-proc.c: Likewise, for open_safer.
46627         * modules/backupfile (Depends-on): Add dirent-safer.
46628         * modules/savedir (Depends-on): Likewise.
46629         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46630         * modules/chdir-long (Depends-on): Add openat-safer.
46631
46632         openat-safer: new module
46633         * modules/openat-safer: New file.
46634         * lib/openat-safer.c: Likewise.
46635         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46636         * lib/fcntl-safer.h (openat_safer): Declare.
46637         * lib/fcntl--.h (openat): Override.
46638         * MODULES.html.sh (File descriptor based I/O): Mention it.
46639         * lib/openat.h: Add double-inclusion guards.
46640         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46641         "fcntl--.h", so we can implement openat.
46642         * modules/openat-safer-tests: New test.
46643         * tests/test-openat-safer.c: New file.
46644
46645         dirent-safer: new module
46646         * modules/dirent-safer: New file.
46647         * lib/dirent--.h: Likewise.
46648         * lib/dirent-safer.h: Likewise.
46649         * lib/opendir-safer.c: Likewise.
46650         * m4/dirent-safer.m4: Likewise.
46651         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46652         * modules/dirent-safer-tests: New test.
46653         * tests/test-dirent-safer.c: New file.
46654         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46655
46656         fdopendir: optimize on mingw
46657         * lib/unistd.in.h (_gl_directory_name): New prototype.
46658         * lib/fchdir.c (_gl_directory_name): Implement it.
46659         (fchdir): Use it to simplify implementation.
46660         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46661         fchdir, when available, to avoid calling [f]chdir().
46662
46663         fdopendir: split into its own module
46664         * lib/openat.c (fdopendir): Move...
46665         * lib/fdopendir.c: ...into new file.
46666         * modules/fdopendir: New module.
46667         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46668         * modules/openat (Depends-on): Add fdopendir.
46669         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46670         fdopendir here.
46671         * modules/savedir (Depends-on): Only need fdopendir, not full
46672         openat.
46673         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46674         * lib/openat.h (fdopendir): Drop prototype.
46675         * lib/dirent.in.h (fdopendir): Provide prototype.
46676         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46677         * modules/dirent (Makefile.am): Substitute them.
46678         * MODULES.html.sh (File system functions): Mention it.
46679         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46680         * modules/fdopendir-tests: New file.
46681         * tests/test-fdopendir.c: Likewise.
46682
46683         fchdir: use more consistent macro convention
46684         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46685         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46686         REPLACE_FCHDIR, rather than relying on config.h macros.
46687         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46688         inside a single make-time REPLACE_FCHDIR block, rather than using
46689         the config.h FCHDIR_REPLACEMENT.
46690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46691         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46692         Manage fstat replacement.
46693         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46694         REPLACE_FCHDIR.
46695         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46696         (Makefile.am): Substitute REPLACE_FCHDIR.
46697         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46698         FCHDIR_REPLACEMENT.
46699         * lib/dup-safer.c (dup_safer): Likewise.
46700         * lib/dup2.c (rpl_dup2): Likewise.
46701         * lib/dup3.c (rpl_dup3): Likewise.
46702         * lib/open.c (rpl_open): Likewise.
46703
46704         fchdir: simplify error handling, and support dup3
46705         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46706         stdbool, malloc-posix, realloc-posix.
46707         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46708         (ensure_dirs_slot): Return false on allocation failure.
46709         (rpl_dup2): Delete.
46710         (_gl_register_dup): New function.
46711         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46712         (_gl_register_fd): Close fd on allocation failure.
46713         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46714         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46715         prototype.
46716         (rpl_dup2_fchdir): Delete prototype.
46717         * lib/open.c (open): Update caller.
46718         * lib/dup2.c (dup2): Track fchdir metadata.
46719         * lib/dup3.c (dup3): Likewise.
46720         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46722
46723 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46724
46725         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46726         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46727         don't pass arguments to AC_OUTPUT.
46728
46729 2009-09-02  Bruno Haible  <bruno@clisp.org>
46730
46731         * modules/mkdtemp (License): Relicense under LGPLv2+.
46732         Reported by Paolo Bonzini.
46733
46734 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46735
46736         Replace uses of obsolete autoconf macros in Jim's modules.
46737         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46738         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46739         can evoke a warning from autoconf when run with -Wobsolete
46740         enabled.  They were declared obsolete for good reasons (see
46741         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46742         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46743         should not continue using the deprecated macros.
46744         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46745         obsolete Autoconf macros with modern counterparts.
46746         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46747         * m4/dos.m4 (gl_AC_DOS): Likewise.
46748         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46749         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46750         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46751         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46752         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46753         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46754         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46755         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46756         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46757         Likewise.
46758         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46759         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46760         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46761         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46762         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46763         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46764
46765 2009-09-01  Eric Blake  <ebb9@byu.net>
46766
46767         fchdir: fix off-by-one bug in previous patch
46768         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46769         (_gl_unregister_fd): Delete useless if.
46770
46771 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46772
46773         maint.mk: sort the list of syntax-check rules
46774         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46775         easier to get a sense of progress when the rules are run sequentially
46776         and take a long time.
46777
46778 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46779
46780         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46781         * modules/netinet_in: Likewise.
46782         * modules/sys_file: Likewise.
46783         * modules/sys_ioctl: Likewise.
46784         * modules/sys_select: Likewise.
46785         * modules/sys_socket: Likewise.
46786         * modules/sys_stat: Likewise.
46787         * modules/sys_time: Likewise.
46788         * modules/sys_times: Likewise.
46789         * modules/sys_utsname: Likewise.
46790         * modules/sys_wait: Likewise.
46791
46792 2009-09-01  Jim Meyering  <meyering@redhat.com>
46793
46794         fts: help ensure that return values are not ignored
46795         * lib/fts_.h (__GNUC_PREREQ): Define.
46796         (__attribute_warn_unused_result__): Define.
46797         (fts_children, fts_close, fts_open, fts_read): Declare with
46798         __attribute_warn_unused_result__.
46799
46800         fts: fts_close now fails also when closing a dir file descriptor fails
46801         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
46802         and propagate to caller, along with errno.
46803
46804         announce-gen: correct formatting in --help output
46805         * build-aux/announce-gen (usage): Move the one-line description in
46806         --help output "up", to where it belongs, just after Usage:.
46807
46808 2009-08-31  Eric Blake  <ebb9@byu.net>
46809
46810         fchdir: port to mingw
46811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
46812         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
46813         opened, then use a substitute.
46814         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
46815         replacement.
46816         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
46817         (_gl_register_fd): No need to check stat if open already filters
46818         all directories.
46819         (fchdir): Fix error condition to match POSIX.
46820         * modules/fchdir (Depends-on): Add sys_stat.
46821         * doc/posix-functions/open.texi (open): Document the limitation.
46822         * modules/fchdir-tests: New file.
46823         * tests/test-fchdir.c: Likewise.
46824
46825         canonicalize: allow cross-testing from cygwin to mingw
46826         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
46827         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
46828         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
46829         Likewise.
46830         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
46831         target does not support symlinks.
46832         * tests/test-canonicalize-lgpl.sh: Likewise.
46833
46834         chown: avoid compilation warning on mingw
46835         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
46836         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
46837         mingw.
46838         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46839         * modules/chown (Depends-on): Add errno.
46840
46841 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46842
46843         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46844         command.
46845
46846 2009-08-31  Jim Meyering  <meyering@redhat.com>
46847
46848         canonicalize: remove useless initialization
46849         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46850         initialization of local, "end".
46851
46852 2009-08-30  Bruno Haible  <bruno@clisp.org>
46853
46854         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46855         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46856         ENOSYS.
46857
46858 2009-08-30  Bruno Haible  <bruno@clisp.org>
46859
46860         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46861         /usr/xpg4/bin/tr when it exists.
46862         * tests/test-pipe-filter-gi1.sh: Likewise.
46863
46864 2009-08-30  Bruno Haible  <bruno@clisp.org>
46865
46866         Work around deficient /usr/bin/id program on Solaris.
46867         * tests/test-file-has-acl.sh (ID): New variable.
46868         * tests/test-set-mode-acl.sh (ID): Likewise.
46869         * tests/test-copy-acl.sh (ID): Likewise.
46870         * tests/test-copy-file.sh (ID): Likewise.
46871
46872 2009-08-30  Bruno Haible  <bruno@clisp.org>
46873
46874         New module 'xstriconveh'.
46875         * lib/xstriconveh.h: New file.
46876         * lib/xstriconveh.c: New file.
46877         * modules/xstriconveh: New file.
46878
46879 2009-08-30  Bruno Haible  <bruno@clisp.org>
46880
46881         Make it easier to use mem_cd_iconveh.
46882         * lib/striconveh.h (iconveh_t): New type.
46883         (iconveh_open, iconveh_close): New declarations.
46884         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46885         with a single 'const iconveh_t *' argument.
46886         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46887         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46888         with a single 'const iconveh_t *' argument.
46889         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46890         * tests/test-striconveh.c (main): Update.
46891         * NEWS: Mention the change.
46892
46893 2009-08-30  Bruno Haible  <bruno@clisp.org>
46894
46895         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46896         problem.
46897
46898 2009-08-30  Bruno Haible  <bruno@clisp.org>
46899
46900         Work around iconv_open problem on Solaris.
46901         * lib/iconv_open-solaris.gperf: New file.
46902         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46903         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46904         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46905         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46906         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46907         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46908
46909 2009-08-29  Jim Meyering  <meyering@redhat.com>
46910
46911         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46912         * top/maint.mk (cvs-check): Remove target; it was just an alias
46913         to the better-named vc-diff-check.
46914         (maintainer-distcheck): Remove rule.  It was used only from
46915         the (alpha/beta/major) target, and all of its commands but one
46916         were coreutils-specific.
46917         (vc-dist): Remove rule.
46918         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46919         Run vc-diff-check, not vc-dist.
46920         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46921
46922 2009-08-27  Bruno Haible  <bruno@clisp.org>
46923
46924         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46925         of 0.
46926
46927 2009-08-27  Bruno Haible  <bruno@clisp.org>
46928
46929         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46930         compilers.
46931         * doc/func.texi: Document the SunPRO C bug.
46932
46933 2009-08-27  Bruno Haible  <bruno@clisp.org>
46934
46935         Fix link error on Solaris.
46936         * tests/test-parse-duration.c (xstrdup): Remove function.
46937
46938 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46939
46940         ignore-value: handle pointer types, too
46941         * lib/ignore-value.h (__attribute__): Remove definition.
46942         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46943         of a more concise and more-often effective "(void) i" statement.
46944         (ignore_ptr): New function to suppress warnings from functions that
46945         return pointers, and to make it explicit that one function doesn't
46946         handle all cases.
46947
46948 2009-08-25  Bruno Haible  <bruno@clisp.org>
46949
46950         dup2: work around a Linux bug.
46951         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46952         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46953         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46954         Reported by Simon Josefsson.
46955
46956 2009-08-25  Jim Meyering  <meyering@redhat.com>
46957
46958         libguestfs uses gnulib
46959         * users.txt: Add libguestfs.
46960
46961 2009-08-24  Eric Blake  <ebb9@byu.net>
46962
46963         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46964         * lib/pipe2.c (includes): Add binary-io.h.
46965         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46966
46967 2009-08-24  Bruno Haible  <bruno@clisp.org>
46968
46969         Tolerate declared but missing accept4 syscall.
46970         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46971         available.
46972         * lib/sys_socket.in.h (accept4): If the function is already present,
46973         override it.
46974         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46975         * modules/accept4 (Makefile.am): Compile accept4.c always.
46976         Reported by Paolo Bonzini and Eric Blake.
46977
46978 2009-08-23  Bruno Haible  <bruno@clisp.org>
46979
46980         New module 'accept4'.
46981         * lib/sys_socket.in.h (accept4): New declaration.
46982         * lib/accept4.c: New file.
46983         * m4/accept4.m4: New file.
46984         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46985         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46986         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46987         HAVE_ACCEPT4.
46988         * modules/accept4: New file.
46989         * doc/glibc-functions/accept4.texi: Mention the new module.
46990
46991 2009-08-24  Jim Meyering  <meyering@redhat.com>
46992
46993         progname: also set global program_invocation_name, when possible
46994         Before this change, a libtool-enabled program that calls glibc's
46995         error function would report the program name as
46996         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46997         * modules/progname (configure.ac): Check for a declaration of
46998         program_invocation_name.
46999         * lib/progname.c:  Include <errno.h>.
47000         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47001         Set program_invocation_name.
47002
47003 2009-08-23  Bruno Haible  <bruno@clisp.org>
47004
47005         * lib/dup3.c: Include <string.h>.
47006
47007 2009-08-23  Bruno Haible  <bruno@clisp.org>
47008
47009         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47010         * lib/pipe2.c (pipe2): Likewise.
47011         Suggested by Eric Blake.
47012
47013 2009-08-23  Bruno Haible  <bruno@clisp.org>
47014
47015         Tolerate declared but missing dup3 syscall.
47016         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47017         * lib/unistd.in.h (dup3): If the function is already present,
47018         override it.
47019         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47020         * modules/dup3 (Makefile.am): Compile dup3.c always.
47021         Reported by Paolo Bonzini.
47022
47023 2009-08-23  Bruno Haible  <bruno@clisp.org>
47024
47025         Tolerate declared but missing pipe2 syscall.
47026         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47027         available.
47028         * lib/unistd.in.h (pipe2): If the function is already present,
47029         override it.
47030         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47031         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47032         Reported by Paolo Bonzini.
47033
47034 2009-08-23  Bruno Haible  <bruno@clisp.org>
47035
47036         * lib/pipe2.c (pipe2): Move #ifs inside function.
47037
47038 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47039
47040         quotearg: document limitations of quote_these_too
47041         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47042         those limitations are created.
47043         * lib/quotearg.h (set_char_quoting): Document that digits and
47044         letters that are special after backslash are not permitted.
47045         (quotearg_char): Cross-reference set_char_quoting documentation.
47046
47047 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47048
47049         quotearg: implement custom_quoting_style
47050         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47051         right_quote fields.
47052         (set_custom_quoting): New public function.
47053         (quotearg_buffer_restyled): Add left_quote and right_quote
47054         arguments, handle them very much like locale quoting, and update
47055         all uses.
47056         (quotearg_n_custom): New public function.
47057         (quotearg_n_custom_mem): New public function.
47058         (quotearg_custom): New public function.
47059         (quotearg_custom_mem): New public function.
47060         * lib/quotearg.h: Prototype and document new public functions.
47061         (enum quoting_style): For escape_quoting_style and
47062         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47063         ignored even though they're otherwise like c_quoting_style.
47064         Add custom_quoting_style member and document with comparison to
47065         clocale_quoting_style.
47066         * tests/test-quotearg.c (custom_quotes): New array.
47067         (custom_results): New array.
47068         (main): Extend to test custom quoting.
47069
47070 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47071
47072         quotearg: fix right quote escaping when it's in quote_these_too
47073         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47074         quote, be sure to prepend only one backslash.
47075         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47076         (main): Test it.
47077
47078 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47079
47080         quotearg-tests: test escaping of embedded locale quotes
47081         * tests/test-quotearg.c (struct result_strings): Add member for
47082         new input.
47083         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47084         (inputs): Add new input.
47085         (results_g): Add expected results.
47086         (flag_results): Likewise.
47087         (locale_results): Likewise.
47088         (compare_strings): Check those.
47089
47090 2009-08-23  Bruno Haible  <bruno@clisp.org>
47091
47092         Tests for module 'dup3'.
47093         * modules/dup3-tests: New file.
47094         * tests/test-dup3.c: New file.
47095
47096         New module 'dup3'.
47097         * lib/unistd.in.h (dup3): New declaration.
47098         * lib/dup3.c: New file.
47099         * m4/dup3.m4: New file.
47100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47101         HAVE_DUP3.
47102         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47103         * modules/dup3: New file.
47104         * doc/glibc-functions/dup3.texi: Mention the new module.
47105
47106 2009-08-23  Bruno Haible  <bruno@clisp.org>
47107
47108         Tweak the dup2 test.
47109         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47110         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47111         the test file is still empty. Fix argument order of lseek.
47112
47113 2009-08-23  Bruno Haible  <bruno@clisp.org>
47114
47115         Avoid test link errors when the modules getopt-gnu, gettext are used.
47116         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47117         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47118
47119 2009-08-23  Bruno Haible  <bruno@clisp.org>
47120
47121         Fix getdtablesize() on mingw.
47122         * lib/getdtablesize.c (getdtablesize): Implement differently.
47123         * lib/unistd.in.h (getdtablesize): Improve comment.
47124
47125 2009-08-23  Bruno Haible  <bruno@clisp.org>
47126
47127         New module 'mkostemp'.
47128         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47129         * lib/stdlib.in.h (mksotemp): New declaration.
47130         * lib/mkostemp.c: New file, from glibc with modifications.
47131         * lib/tempname.h (GT_FILE): Remove outdated comment.
47132         (gen_tempname): Add flags argument.
47133         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47134         (__GT_FILE): Map to 1.
47135         (small_open, large_open): Remove macros.
47136         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47137         * lib/mkstemp.c (mkstemp): Update.
47138         * lib/mkdtemp.c (mkdtemp): Likewise.
47139         * m4/mkostemp.m4: New file.
47140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47141         HAVE_MKOSTEMP.
47142         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47143         HAVE_MKOSTEMP.
47144         * modules/mkostemp: New file, based on modules/mkstemp.
47145         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47146         * NEWS: Mention the change.
47147
47148 2009-08-23  Bruno Haible  <bruno@clisp.org>
47149
47150         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47151         Reported by Eric Blake.
47152
47153 2009-08-23  Bruno Haible  <bruno@clisp.org>
47154
47155         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47156         Reported by Eric Blake.
47157
47158 2009-08-23  Bruno Haible  <bruno@clisp.org>
47159
47160         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47161         * modules/pipe2 (Depends-on): Likewise.
47162
47163 2009-08-23  Eric Blake  <ebb9@byu.net>
47164
47165         fcntl-h: add O_TTY_INIT support
47166         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47167         * tests/test-fcntl-h.c (o): Test it.
47168         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47169
47170         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47171         * modules/fcntl: Move <fcntl.h> header replacement...
47172         * modules/fcntl-h: ...to new name, so as not to collide with
47173         like-named function.
47174         * tests/test-fcntl.c: Rename...
47175         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47176         * modules/fcntl-tests: Rename...
47177         * modules/fcntl-h-tests: ...to this.  Update test file name.
47178         * modules/chdir-long (Depends-on): Update clients.
47179         * modules/chdir-safer (Depends-on): Likewise.
47180         * modules/fcntl-safer (Depends-on): Likewise.
47181         * modules/fts (Depends-on): Likewise.
47182         * modules/mkancesdirs (Depends-on): Likewise.
47183         * modules/mkdir-p (Depends-on): Likewise.
47184         * modules/open (Depends-on): Likewise.
47185         * modules/savewd (Depends-on): Likewise.
47186         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47187         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47188
47189 2009-08-22  Bruno Haible  <bruno@clisp.org>
47190
47191         * modules/binary-io (License): Relicense under LGPL.
47192         * modules/pipe2 (License): Likewise.
47193
47194 2009-08-22  Bruno Haible  <bruno@clisp.org>
47195
47196         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47197         return value.
47198         * lib/pipe-filter-gi.c (filter_init): Likewise.
47199         Reported by Eric Blake.
47200
47201 2009-08-22  Bruno Haible  <bruno@clisp.org>
47202
47203         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47204         * modules/pipe (Depends-on): Add pipe2.
47205
47206 2009-08-22  Bruno Haible  <bruno@clisp.org>
47207
47208         Tests for module 'pipe2'.
47209         * modules/pipe2-tests: New file.
47210         * tests/test-pipe2.c: New file.
47211
47212         New module 'pipe2'.
47213         * lib/unistd.in.h (pipe2): New declaration.
47214         * lib/pipe2.c: New file.
47215         * m4/pipe2.m4: New file.
47216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47217         HAVE_PIPE2.
47218         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47219         * modules/pipe2: New file.
47220         * doc/glibc-functions/pipe2.texi: Mention the new module.
47221
47222 2009-08-22  Bruno Haible  <bruno@clisp.org>
47223
47224         Reference some new glibc functions.
47225         * doc/glibc-functions/accept4.texi: New file.
47226         * doc/glibc-functions/dup3.texi: New file.
47227         * doc/glibc-functions/mkostemp.texi: New file.
47228         * doc/glibc-functions/pipe2.texi: New file.
47229         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47230         (Glibc sys/socket.h): Refer to accept4.
47231         (Glibc unistd.h): Refer to dup3, pipe2.
47232         Reported by Eric Blake.
47233
47234 2009-08-22  Jim Meyering  <meyering@redhat.com>
47235             Bruno Haible  <bruno@clisp.org>
47236
47237         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47238         This makes it so packages using automake-1.11's silent-rules option
47239         can print e.g., a single "GEN    configmake.h" line, rather than
47240         the 30+ statements that perform the job.  If you want to see the
47241         actual commands, you can still run "make V=1".
47242         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47243         so that make output is abbreviated when those variables are defined
47244         appropriately.
47245         * modules/argz: Likewise.
47246         * modules/arpa_inet: Likewise.
47247         * modules/byteswap: Likewise.
47248         * modules/configmake: Likewise.
47249         * modules/dirent: Likewise.
47250         * modules/errno: Likewise.
47251         * modules/fcntl: Likewise.
47252         * modules/float: Likewise.
47253         * modules/fnmatch: Likewise.
47254         * modules/getopt-posix: Likewise.
47255         * modules/glob: Likewise.
47256         * modules/iconv_open: Likewise.
47257         * modules/inttypes: Likewise.
47258         * modules/localcharset: Likewise.
47259         * modules/locale: Likewise.
47260         * modules/math: Likewise.
47261         * modules/netdb: Likewise.
47262         * modules/netinet_in: Likewise.
47263         * modules/poll: Likewise.
47264         * modules/posix_spawnp-tests: Likewise.
47265         * modules/sched: Likewise.
47266         * modules/search: Likewise.
47267         * modules/selinux-h: Likewise.
47268         * modules/signal: Likewise.
47269         * modules/spawn: Likewise.
47270         * modules/stdarg: Likewise.
47271         * modules/stdbool: Likewise.
47272         * modules/stddef: Likewise.
47273         * modules/stdint: Likewise.
47274         * modules/stdio: Likewise.
47275         * modules/stdlib: Likewise.
47276         * modules/string: Likewise.
47277         * modules/strings: Likewise.
47278         * modules/sys_file: Likewise.
47279         * modules/sys_ioctl: Likewise.
47280         * modules/sys_select: Likewise.
47281         * modules/sys_socket: Likewise.
47282         * modules/sys_stat: Likewise.
47283         * modules/sys_time: Likewise.
47284         * modules/sys_times: Likewise.
47285         * modules/sys_utsname: Likewise.
47286         * modules/sys_wait: Likewise.
47287         * modules/sysexits: Likewise.
47288         * modules/time: Likewise.
47289         * modules/unistd: Likewise.
47290         * modules/wchar: Likewise.
47291         * modules/wctype: Likewise.
47292
47293 2009-08-22  Jim Meyering  <meyering@redhat.com>
47294
47295         announce-gen: detect write failure
47296         * build-aux/announce-gen: Add Coda at end.
47297         Remove equivalent-but-more-verbose block at top.
47298
47299 2009-08-19  Akim Demaille  <demaille@gostai.com>
47300
47301         bootstrap: --help to stdout.
47302         * bootstrap (usage): Don't send --help to stderr.
47303         Use a here doc instead of a long string.
47304
47305 2009-08-21  Eric Blake  <ebb9@byu.net>
47306
47307         test-popen-safer: split from test-popen
47308         * tests/test-popen.c (main): Move...
47309         * tests/test-popen.h: ...into new file.
47310         * tests/test-popen-safer2.c: New file.
47311         * modules/popen-tests (Files): Add test-popen.h.
47312         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47313         Suggested by Bruno Haible.
47314
47315         test-fcntl-safer: split from test-open
47316         * tests/test-open.c (main): Move...
47317         * tests/test-open.h: ...into new file.
47318         * tests/test-fcntl-safer.c: New file.
47319         * modules/open-tests (Files): Add test-open.h.
47320         * modules/fcntl-safer-tests: New file.
47321         Suggested by Bruno Haible.
47322
47323         test-fopen-safer: split from test-fopen
47324         * tests/test-fopen.c (main): Move...
47325         * tests/test-fopen.h: ...into new file.
47326         * tests/test-fopen-safer.c: New file.
47327         * modules/fopen-tests (Files): Add test-fopen.h.
47328         * modules/fopen-safer-tests: New file.
47329         Suggested by Bruno Haible.
47330
47331 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47332
47333         popen-safer: test O_CLOEXEC at run-time.
47334         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47335
47336 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47337
47338         fcntl: move more flags to the header
47339         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47340         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47341         * lib/fcntl.in.h: Do both things here.
47342
47343 2009-08-21  Jim Meyering  <meyering@redhat.com>
47344
47345         consistently remove $@-t before redirecting to it
47346         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47347         * modules/alloca-opt: Likewise.
47348         * modules/byteswap: Likewise.
47349         * modules/fnmatch: Likewise.
47350         * modules/getopt-posix: Likewise.
47351         * modules/glob: Likewise.
47352         * modules/poll: Likewise.
47353         * modules/posix_spawnp-tests: Likewise.
47354         * modules/sys_socket: Likewise.
47355         * modules/sysexits: Likewise.
47356
47357 2009-08-21  Eric Blake  <ebb9@byu.net>
47358
47359         popen: simplify access to original popen
47360         * lib/popen.c (rpl_popen): No need to worry about popen being a
47361         macro.
47362         Reported by Bruno Haible.
47363
47364 2009-08-20  Eric Blake  <ebb9@byu.net>
47365
47366         build: avoid some compiler warnings
47367         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47368         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47369         type.
47370         (new_exclude_segment, excluded_file_pattern_p)
47371         (excluded_file_name_p): Reduce scope.
47372         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47373         old-style declaration.
47374
47375 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47376
47377         * tests/test-exclude1.sh: Handle Windows EOL.
47378         * tests/test-exclude2.sh: Likewise.
47379         * tests/test-exclude3.sh: Likewise.
47380         * tests/test-exclude4.sh: Likewise.
47381         * tests/test-exclude5.sh: Likewise.
47382         * tests/test-exclude6.sh: Likewise.
47383         * tests/test-exclude7.sh: Likewise.
47384
47385 2009-08-19  Akim Demaille  <demaille@gostai.com>
47386
47387         bootstrap: find sha1sum when named gsha1sum.
47388         * bootstrap (find_tool): New.
47389         ($SHA1SUM): New.
47390         Use it.
47391
47392 2009-08-20  Jim Meyering  <meyering@redhat.com>
47393
47394         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47395         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47396         expression that converts "." in a file name to "\." in the resulting
47397         regexp.  Start with a dummy statement, so that prior shell variable
47398         definitions are expanded portably.  Reported by Simon Josefsson.
47399
47400 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47401
47402         Fix polling for writeability of a screen buffer.
47403         * lib/poll.c: Distinguish input and screen buffers for the
47404         Win32 implementation.
47405         * lib/select.c: Likewise.
47406
47407 2009-08-19  Eric Blake  <ebb9@byu.net>
47408
47409         popen-safer: prevent popen from clobbering std descriptors
47410         * modules/popen-safer: New file.
47411         * lib/popen-safer.c: Likewise.
47412         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47413         * lib/stdio--.h (popen): Provide override.
47414         * lib/stdio-safer.h (popen_safer): Provide declaration.
47415         * tests/test-popen.c (includes): Partially test this.
47416         * modules/popen-safer-tests: New file, for more tests.
47417         * tests/test-popen-safer.c: Likewise.
47418         * MODULES.html.sh (file stream based Input/Output): Mention it.
47419
47420         tests: test some of the *-safer modules
47421         * modules/fopen-safer (Depends-on): Add fopen.
47422         * modules/fcntl-safer (Depends-on): Add fcntl.
47423         * modules/stdlib-safer (Depends-on): Add stdlib.
47424         (configure.ac): Set indicator.
47425         * modules/unistd-safer (configure.ac): Likewise.
47426         * modules/tmpfile-safer (configure.ac): Likewise.
47427         (Depends-on): Add tmpfile.
47428         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47429         active.
47430         * tests/test-fopen.c (includes): Test safer versions when they are
47431         in use.
47432         * tests/test-open.c (includes): Likewise.
47433
47434         popen: fix cygwin 1.5 bug when stdin closed
47435         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47436         * modules/popen: New file.
47437         * modules/popen-tests: Likewise.
47438         * tests/test-popen.c: Likewise.
47439         * m4/popen.m4: Likewise.
47440         * lib/popen.c: Likewise.
47441         * lib/stdio.in.h (popen): New declaration.
47442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47443         * modules/stdio (Makefile.am): Likewise.
47444         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47445
47446 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47447
47448         maint.mk: give full control over update-copyright exclusions
47449         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47450         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47451         (update-copyright): Don't force inclusion of top-level
47452         ChangeLog.  Don't force exclusion of all COPYING files, but make
47453         them the default exclusion instead.
47454
47455 2009-08-16  Bruno Haible  <bruno@clisp.org>
47456
47457         Fix test failures on Solaris 10.
47458         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47459         tests when Solaris iconv() is used.
47460         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47461         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47462         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47463         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47464         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47465
47466 2009-08-16  Bruno Haible  <bruno@clisp.org>
47467
47468         Fix test failures on Solaris 10.
47469         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47470         'tr' program and pass it as first argument.
47471         * tests/test-pipe-filter-gi1.sh: Likewise.
47472         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47473         program as first argument.
47474         * tests/test-pipe-filter-gi1.c (main): Likewise.
47475
47476 2009-08-16  Eric Blake  <ebb9@byu.net>
47477
47478         fpurge: fix previous commits
47479         * modules/fpurge (Makefile.am): Make replacement conditional,
47480         partially reverting 2007-04-29 change; missed in previous
47481         attempt.
47482         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47483         is missing.
47484
47485 2009-08-16  Bruno Haible  <bruno@clisp.org>
47486
47487         Clarify fpurge's effect on the file position.
47488         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47489         * tests/test-fpurge.c (main): Make a second pass for checking the file
47490         position.
47491
47492 2009-08-16  Bruno Haible  <bruno@clisp.org>
47493
47494         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47495         declaration of fpurge is missing.
47496         * tests/test-fpurge.c (main): Check that the file has not more contents
47497         than expected. Close the file before removing it.
47498
47499 2009-08-15  Eric Blake  <ebb9@byu.net>
47500
47501         fpurge: don't wrap working cygwin implementation
47502         * lib/fpurge.c (fpurge): Fix comment typo.
47503         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47504         1.7 to avoid replacement.
47505         * tests/test-fpurge.c (main): Enhance test.
47506
47507 2009-08-15  Eric Blake  <ebb9@byu.net>
47508         and Jim Meyering  <meyering@redhat.com>
47509
47510         test-update-copyright: skip if perl is insufficient
47511         * tests/test-update-copyright.sh: Failure to run maintainer tool
47512         should not cause testsuite failure on cygwin 1.5.
47513
47514 2009-08-14  Eric Blake  <ebb9@byu.net>
47515
47516         doc: mention more functions added in cygwin 1.7.0
47517         * doc/posix-headers/limits.texi (limits.h): Update for recent
47518         cygwin additions.
47519         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47520         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47521         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47522         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47523         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47524
47525 2009-08-14  Eric Blake  <ebb9@byu.net>
47526
47527         maint.mk: simplify update-copyright rule
47528         * top/maint.mk (update-copyright-local): Delete, and document how
47529         to do it in cfg.mk instead.
47530         (update-copyright-exclude-regexp): Delete, and document how to do
47531         it in .x-update-copyright instead.
47532         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47533         exclude ChangeLog.
47534
47535 2009-08-14  Bruno Haible  <bruno@clisp.org>
47536
47537         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47538
47539 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47540
47541         maint.mk: support update-copyright-env
47542         * top/maint.mk (update-copyright-env): Define place-holder.
47543         (update-copyright): Expand $(update-copyright-env) before
47544         invoking update-copyright.
47545
47546 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47547
47548         update-copyright: implement forced reformatting
47549         * build-aux/update-copyright: Implement and document
47550         UPDATE_COPYRIGHT_FORCE.
47551         * tests/test-update-copyright.sh: Test it.
47552
47553 2009-08-14  Eric Blake  <ebb9@byu.net>
47554         and Bruno Haible  <bruno@clisp.org>
47555
47556         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47557         * tests/test-locale.c: Revert previous patch related to NULL.
47558         * tests/test-stdio.c: Likewise.
47559         * tests/test-stdlib.c: Likewise.
47560         * tests/test-string.c: Likewise.
47561         * tests/test-unistd.c: Likewise.
47562         * modules/time-tests (Depends-on): Add verify.
47563         * modules/wchar-tests (Depends-on): Likewise.
47564         * tests/test-time.c: Test for NULL compliance.
47565         * tests/test-wchar.c: Likewise.
47566         * modules/locale (Depends-on): Add stddef.
47567         * modules/stdio (Depends-on): Likewise.
47568         * modules/stdlib (Depends-on): Likewise.
47569         * modules/string (Depends-on): Likewise.
47570         * modules/time (Depends-on): Likewise.
47571         * modules/unistd (Depends-on): Likewise.
47572         * modules/wchar (Depends-on): Likewise.
47573         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47574         * lib/stdlib.in.h (includes): Likewise.
47575         * lib/string.in.h (includes): Likewise.
47576         * lib/time.in.h (includes): Likewise.
47577         * lib/unistd.in.h (includes): Likewise.
47578         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47579         replaced.
47580         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47581         * m4/stddef_h.m4: New file.
47582         * modules/stddef: Likewise.
47583         * lib/stddef.in.h: Likewise.
47584         * modules/stddef-tests: Likewise.
47585         * tests/test-stddef.c: Likewise.
47586         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47587         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47588         * doc/posix-headers/locale.texi (locale.h): Likewise.
47589         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47590         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47591         * doc/posix-headers/string.texi (string.h): Likewise.
47592         * doc/posix-headers/time.texi (time.h): Likewise.
47593         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47594         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47595
47596 2009-08-14  Eric Blake  <ebb9@byu.net>
47597
47598         doc: improve git diff of texinfo files
47599         * .gitattributes: Add rule for *.texi files, with hint on how to
47600         use it.
47601         Copied from m4, and based on a report by Bruno Haible.
47602
47603 2009-08-14  Bruno Haible  <bruno@clisp.org>
47604
47605         Disable multithread support by default on Cygwin 1.5.x for real.
47606         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47607
47608 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47609
47610         update-copyright: much ado about intervals
47611         * build-aux/update-copyright: Implement and document
47612         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47613         of copyright year intervals.
47614         Also, document UPDATE_COPYRIGHT_YEAR.
47615         * tests/test-update-copyright.sh: Test it.
47616
47617         update-copyright: convert 2-digit to 4-digit years
47618         * build-aux/update-copyright: Implement and document.
47619         * tests/test-update-copyright.sh: Update.
47620
47621 2009-08-14  Jim Meyering  <meyering@redhat.com>
47622
47623         test-exclude: avoid coreutils "make check" failure
47624         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47625         just as in test-argmatch.c.
47626
47627 2009-08-13  Eric Blake  <ebb9@byu.net>
47628
47629         test-dup2: fix bad assumption
47630         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47631         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47632
47633         test-version-etc: fix CRLF portability issue
47634         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47635         recognize \r.
47636         * tests/test-argp-version-etc-1.sh: Likewise.
47637
47638         getopt: update client modules
47639         * modules/argp (Depends-on): Use getopt-gnu.
47640         * modules/git-merge-changelog (Depends-on): Likewise.
47641         * modules/long-options (Depends-on): Likewise.
47642         * modules/xstrtol (Depends-on): Likewise.
47643
47644 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47645
47646         * tests/test-version-etc.sh: Don't fail on different
47647         project/version.  Don't fail on CRLF differences.  Rewrite to use
47648         multiple -e instead of multiple sed forks, suggested by Eric Blake
47649         <ebb9@byu.net>.
47650         * tests/test-argp-version-etc-1.sh: Likewise.
47651
47652 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47653
47654         * tests/test-version-etc.sh: Don't fail on different
47655         project/version.
47656
47657 2009-08-12  Bruno Haible  <bruno@clisp.org>
47658
47659         Tests for modules 'getopt-posix', 'getopt-gnu'.
47660         * modules/getopt-posix-tests: New file.
47661         * tests/test-getopt.c: New file.
47662         * tests/test-getopt.h: New file.
47663         * tests/test-getopt_long.h: New file.
47664
47665         New modules 'getopt-posix', 'getopt-gnu'.
47666         * modules/getopt-gnu: New file, renamed from modules/getopt.
47667         * modules/getopt-posix: New file.
47668         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47669         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47670         (gl_GETOPT): Remove macro.
47671         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47672         Disable the test against BSD systems that declare optreset. Test
47673         against mingw bug. Test against lack of support of optional arguments
47674         on many platforms.
47675         * doc/glibc-headers/getopt.texi: Update module name and list of
47676         relevant platforms.
47677         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47678         'getopt-gnu' and more portability problems.
47679         * NEWS: Mention the changes.
47680
47681 2009-08-12  Bruno Haible  <bruno@clisp.org>
47682
47683         Ensure that optarg etc. get declared by <unistd.h>.
47684         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47685         AC_USE_SYSTEM_EXTENSIONS.
47686         * modules/getopt (Depends-on): Add 'extensions'.
47687
47688 2009-08-12  Bruno Haible  <bruno@clisp.org>
47689
47690         Avoid test link errors.
47691         * modules/pipe-filter-ii-tests (Makefile.am): Define
47692         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47693         * modules/pipe-filter-gi-tests (Makefile.am): Define
47694         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47696
47697 2009-08-12  Bruno Haible  <bruno@clisp.org>
47698
47699         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47700         gl_GETOPT_SUBSTITUTE before.
47701         (gl_GETOPT): Use it.
47702         * m4/argp.m4 (gl_ARGP): Update.
47703         Reported by Sergey Poznyakoff.
47704
47705         * m4/getopt.m4: Reorder macros.
47706         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47707         (gl_GETOPT_SUBSTITUTE): Remove macro.
47708
47709 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47710
47711         Minor improvement in gitlog-to-changelog
47712
47713         * build-aux/gitlog-to-changelog: New option `--format' makes
47714         output format string configurable.
47715
47716 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47717
47718         Optimize exclude: use hash tables for non-wildcard patterns.
47719
47720         * lib/exclude.c: Include hash.h and mbuiter.h
47721         (struct exclude_pattern, exclude_segment): New data types.
47722         (struct exclude): Rewrite.
47723         (fnmatch_pattern_has_wildcards): New function.
47724         (new_exclude_segment, free_exclude_segment): New functions.
47725         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47726         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47727         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47728         * modules/exclude: Depend on hash and mbuiter.
47729
47730         * modules/exclude-tests: New file.
47731         * tests/test-exclude.c: New file.
47732         * tests/test-exclude1.sh: New file.
47733         * tests/test-exclude2.sh: New file.
47734         * tests/test-exclude3.sh: New file.
47735         * tests/test-exclude4.sh: New file.
47736         * tests/test-exclude5.sh: New file.
47737         * tests/test-exclude6.sh: New file.
47738         * tests/test-exclude7.sh: New file.
47739
47740 2009-08-12  Bruno Haible  <bruno@clisp.org>
47741
47742         Ensure that getopt() gets declared by <unistd.h>.
47743         * lib/unistd.in.h: Conditionally include getopt.h.
47744         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47745         Set GNULIB_UNISTD_H_GETOPT.
47746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47747         GNULIB_UNISTD_H_GETOPT.
47748         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47749
47750 2009-08-12  Bruno Haible  <bruno@clisp.org>
47751
47752         Clarify logic.
47753         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47754         gl_replace_getopt instead of GETOPT_H.
47755
47756 2009-08-12  Bruno Haible  <bruno@clisp.org>
47757
47758         * m4/getopt.m4: Add comments.
47759
47760 2009-08-12  Bruno Haible  <bruno@clisp.org>
47761
47762         Disable multithread support by default on Cygwin 1.5.x.
47763         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47764         set gl_use_threads=no if not specified otherwise.
47765
47766 2009-08-11  Bruno Haible  <bruno@clisp.org>
47767
47768         Avoid compilation error on NetBSD 5.0.
47769         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47770         * tests/test-stdio.c: Likewise.
47771         * tests/test-stdlib.c: Likewise.
47772         * tests/test-string.c: Likewise.
47773         * tests/test-unistd.c: Likewise.
47774         Reported by Greg Troxel <gdt@ir.bbn.com>
47775         at <https://savannah.gnu.org/support/?106973>.
47776
47777 2009-08-11  Bruno Haible  <bruno@clisp.org>
47778
47779         * modules/dup2-tests (Depends-on): Remove close.
47780
47781         Undo 2009-07-19 commit.
47782         * modules/acl-tests (Depends-on): Remove close.
47783         * modules/binary-io-tests (Depends-on): Likewise.
47784         * modules/closein-tests (Depends-on): Likewise.
47785         * modules/flock-tests (Depends-on): Likewise.
47786         * modules/fsync-tests (Depends-on): Likewise.
47787         * modules/lseek-tests (Depends-on): Likewise.
47788         * modules/pipe-tests (Depends-on): Likewise.
47789         * modules/posix_spawn-tests (Depends-on): Likewise.
47790         * modules/posix_spawnp-tests (Depends-on): Likewise.
47791         * modules/stat-time-tests (Depends-on): Likewise.
47792         * modules/yesno-tests (Depends-on): Likewise.
47793
47794 2009-08-10  Bruno Haible  <bruno@clisp.org>
47795
47796         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
47797
47798 2009-08-10  Bruno Haible  <bruno@clisp.org>
47799
47800         Fix a gcc warning.
47801         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
47802
47803 2009-08-10  Bruno Haible  <bruno@clisp.org>
47804
47805         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
47806         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
47807         not only the first time.
47808         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
47809         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
47810         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
47811         is 1, not only the the first time.
47812
47813 2009-08-10  Bruno Haible  <bruno@clisp.org>
47814
47815         Make it possible to use module 'gethostname' without module 'close'.
47816         * lib/unistd.in.h (close): Evoke a link error only if
47817         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47819         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47820         * modules/unistd (Makefile.am): Substitute
47821         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47822         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
47823         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47824         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47825         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47826         * modules/sys_ioctl (Makefile.am): Substitute
47827         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47828         * modules/socket (configure.ac): On native Windows, set
47829         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
47830         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47831         Reported by Sam Steingold <sds@gnu.org>.
47832
47833 2009-08-10  Bruno Haible  <bruno@clisp.org>
47834
47835         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
47836         * modules/ioctl (configure.ac): Likewise.
47837
47838 2009-08-10  Bruno Haible  <bruno@clisp.org>
47839
47840         Avoid collision between gnulib wrapper and libintl wrapper.
47841         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
47842         already defined in intl/printf.c.
47843         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47844         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47845
47846 2009-08-09  Bruno Haible  <bruno@clisp.org>
47847
47848         Make <sys/select.h> really self-contained, also on Solaris 10.
47849         * lib/sys_select.in.h: Include <string.h>.
47850         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47851         Solaris 10 problem.
47852         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47853         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47854         Reported by Jim Meyering.
47855
47856 2009-08-09  Bruno Haible  <bruno@clisp.org>
47857
47858         Avoid warnings from 'aclocal' that are due to a use of macro name
47859         AM_XGETTEXT_OPTION that is not defined in automake.
47860         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47861         automake.
47862         * modules/error (configure.ac): Likewise.
47863         * modules/propername (configure.ac): Likewise.
47864         * modules/vasprintf (configure.ac): Likewise.
47865         * modules/verror (configure.ac): Likewise.
47866         * modules/xprintf (configure.ac): Likewise.
47867         * modules/xvasprintf (configure.ac): Likewise.
47868
47869 2009-08-08  Bruno Haible  <bruno@clisp.org>
47870
47871         Avoid compilation error in C++ mode.
47872         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47873         Reported by Sam Steingold <sds@gnu.org>.
47874
47875 2009-08-08  Bruno Haible  <bruno@clisp.org>
47876
47877         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47878         for the various Unix platforms.
47879         * doc/posix-headers/limits.texi: Update platforms list regarding
47880         HOST_NAME_MAX.
47881         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47882
47883 2009-08-07  Jim Meyering  <meyering@redhat.com>
47884
47885         selinux-at: fix typo in a comment
47886         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47887         Spotted by Paolo Bonzini.
47888
47889         selinux-at: remove redundant m4 code, add documentation
47890         * modules/selinux-at (configure.ac): Remove redundant code.
47891         LIB_SELINUX is already set via the dependent module, selinux-h.
47892         (Include): Add quotes around selinux-at.h.
47893         * lib/selinux-at.h: Add documentation.
47894         Reported by Bruno Haible in
47895         http://marc.info/?l=gnulib-bug&m=124958988300749
47896
47897 2009-08-07  Bruno Haible  <bruno@clisp.org>
47898
47899         Avoid link error on MacOS X 10.3 and 10.4.
47900         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47901         on non-ELF systems.
47902         * lib/argp-pv.c (argp_program_version): Likewise.
47903         Reported by Simon Josefsson.
47904
47905 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47906
47907         * tests/test-version-etc.sh: Use $EXEEXT.
47908
47909 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47910
47911         update-copyright: update documentation to point to maint.mk
47912         * build-aux/update-copyright: Here.
47913
47914 2009-08-06  Jim Meyering  <meyering@redhat.com>
47915
47916         maint.mk: support update-copyright-local
47917         * top/maint.mk (update-copyright-local): Define place-holder.
47918         (update-copyright): Depend on $(update-copyright-local).
47919
47920 2009-08-06  Jim Meyering  <meyering@redhat.com>
47921
47922         selinux-at: new module
47923         Initially written for coreutils, this module will soon be
47924         used by findutils, too.
47925         * MODULES.html.sh [Misc]: Add selinux-at.
47926         * lib/selinux-at.h: New file, from coreutils.
47927         * lib/selinux-at.c: Likewise.
47928         * modules/selinux-at: Likewise.
47929         (License): Change from LGPL to GPL, since it depends
47930         on the GPL'd openat module.
47931
47932         doc: update README
47933         * README: Remove references to cogito.
47934         Remove cvs-repo-updating instructions from 2007.
47935         Don't imply that CVS is better if you have limited disk space.
47936
47937 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47938
47939         update-copyright: support C-style comments
47940         * build-aux/update-copyright: Implement and document.
47941         * tests/test-update-copyright.sh: Test.
47942
47943 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47944
47945         update-copyright: support omitted "(C)"
47946         * build-aux/update-copyright: Implement and document.  Also,
47947         allow variable whitespace before "(C)".
47948         * tests/test-update-copyright.sh: Test.
47949
47950 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47951
47952         update-copyright: don't trip on non-FSF copyright statements
47953         * build-aux/update-copyright: Fix so that the first correctly
47954         formatted FSF copyright statement is recognized no matter what
47955         appears before it.  Update documentation.
47956         * tests/test-update-copyright.sh: Test that.
47957
47958 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47959
47960         update-copyright: clean up code a little
47961         * build-aux/update-copyright: Append "_re" to the name of any
47962         variable holding a regular expression.
47963         Replace "old" and "new" with "stmt" in variable names.
47964         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47965         handled correctly.
47966         Format code more consistently.
47967
47968 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47969
47970         update-copyright-tests: improve portability
47971         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47972         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47973
47974 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47975
47976         update-copyright: support @copyright{} and &copy;
47977         * build-aux/update-copyright: Implement and document.
47978         * tests/test-update-copyright.sh: Test.
47979
47980 2009-08-04  Jim Meyering  <meyering@redhat.com>
47981
47982         update-copyright-tests: correctly test EOL=\r\n handling
47983         * tests/test-update-copyright.sh: Put \r at the end of some lines
47984         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47985
47986         maint.mk: make update-copyright exclusion list more configurable
47987         * top/maint.mk (update-copyright): Default to excluding COPYING,
47988         but allow an override, in case someone does want to update that file.
47989
47990         maint.mk: don't update copyright date in COPYING
47991         * top/maint.mk (update-copyright): Exclude COPYING.
47992
47993         maint.mk: add a copyright-updating rule
47994         * top/maint.mk (update-copyright): New rule.
47995         Derived from coreutils/Makefile.am.
47996
47997         update-copyright: rename some variables
47998         * build-aux/update-copyright: Rename a few variables for clarity.
47999         Tweak syntax.  List Joel E. Denny as coauthor.
48000
48001 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48002
48003         update-copyright: fix bug for 2-digit last year and add tests
48004         * build-aux/update-copyright: Fix bug.
48005         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48006         specified.
48007         * modules/update-copyright-tests: New
48008         * tests/test-update-copyright.sh: New.
48009
48010 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48011
48012         update-copyright: handle leading tabs in line prefix
48013         * build-aux/update-copyright: Count leading tabs as 8 spaces
48014         when computing margin.  This helps with the formatting of
48015         ChangeLogs, for example.
48016         Fix documentation a little.
48017
48018 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48019
48020         update-copyright: support EOL=\r\n
48021         * build-aux/update-copyright: Implement that.
48022
48023 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48024
48025         update-copyright: automatically format copyright statements
48026         * build-aux/update-copyright: Implement that.
48027         Also, be a little more predictable and safer by always failing
48028         when the full copyright format is not perfectly recognized as an
48029         unbroken whole.  Discussed at
48030         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48031         Rewrite documentation.
48032
48033 2009-08-03  Bruno Haible  <bruno@clisp.org>
48034
48035         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48036
48037 2009-08-02  Bruno Haible  <bruno@clisp.org>
48038
48039         Tests for module 'uname'.
48040         * modules/uname-tests: New file.
48041         * tests/test-uname.c: New file.
48042
48043         New module 'uname'.
48044         * lib/uname.c: New file.
48045         * m4/uname.m4: New file.
48046         * modules/uname: New file.
48047         * doc/posix-functions/uname.texi: Mention the new module.
48048
48049 2009-08-02  Bruno Haible  <bruno@clisp.org>
48050
48051         Tests for module 'sys_utsname'.
48052         * modules/sys_utsname-tests: New file.
48053         * tests/test-sys_utsname.c: New file.
48054
48055         New module 'sys_utsname'.
48056         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48057         * m4/sys_utsname_h.m4: New file.
48058         * modules/sys_utsname: New file.
48059         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48060
48061 2009-08-02  Bruno Haible  <bruno@clisp.org>
48062
48063         Implicitly initialize the sockets library.
48064         * lib/gethostname.c: Include sockets.h.
48065         (rpl_gethostname): Invoke gl_sockets_startup.
48066         * lib/socket.c: Include sockets.h.
48067         (rpl_socket): Invoke gl_sockets_startup.
48068         * modules/gethostname (Depends-on): Add sockets.
48069         * modules/socket (Depends-on): Likewise.
48070         * tests/test-poll.c: Don't include sockets.h.
48071         (main): Don't invoke gl_sockets_startup.
48072         * tests/test-select.c: Don't include sockets.h.
48073         (main): Don't invoke gl_sockets_startup.
48074
48075 2009-08-02  Bruno Haible  <bruno@clisp.org>
48076
48077         Allow multiple calls to gl_sockets_startup.
48078         * lib/sockets.c (initialized_sockets_version): New variable.
48079         (gl_sockets_startup): Do nothing if already called for this or a higher
48080         version.
48081         (gl_sockets_cleanup): Reset initialized_sockets_version.
48082
48083 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48084
48085         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48086         different project/version.
48087
48088 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48089             Bruno Haible  <bruno@clisp.org>
48090
48091         Tests for module 'pipe-filter-gi'.
48092         * modules/pipe-filter-gi-tests: New file.
48093         * tests/test-pipe-filter-gi1.sh: New file.
48094         * tests/test-pipe-filter-gi1.c: New file.
48095         * tests/test-pipe-filter-gi2.sh: New file.
48096         * tests/test-pipe-filter-gi2-main.c: New file.
48097         * tests/test-pipe-filter-gi2-child.c: New file.
48098
48099         New module 'pipe-filter-gi'.
48100         * lib/pipe-filter-gi.c: New file.
48101         * modules/pipe-filter-gi: New file.
48102
48103 2009-08-02  Bruno Haible  <bruno@clisp.org>
48104             Paolo Bonzini  <bonzini@gnu.org>
48105
48106         Tests for module 'pipe-filter-ii'.
48107         * modules/pipe-filter-ii-tests: New file.
48108         * tests/test-pipe-filter-ii1.sh: New file.
48109         * tests/test-pipe-filter-ii1.c: New file.
48110         * tests/test-pipe-filter-ii2.sh: New file.
48111         * tests/test-pipe-filter-ii2-main.c: New file.
48112         * tests/test-pipe-filter-ii2-child.c: New file.
48113
48114         New module 'pipe-filter-ii'.
48115         * lib/pipe-filter.h: New file.
48116         * lib/pipe-filter-ii.c: New file.
48117         * lib/pipe-filter-aux.h: New file.
48118         * modules/pipe-filter-ii: New file.
48119
48120 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48121
48122         * lib/gc-libgcrypt.c: Change copyright to FSF.
48123         * lib/gc-gnulib.c: Likewise.
48124
48125 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48126
48127         * lib/gethostname.c: Include limits.h.
48128
48129 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48130             Bruno Haible  <bruno@clisp.org>
48131
48132         Ensure HOST_NAME_MAX as part of the gethostname module.
48133         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48134         define also HOST_NAME_MAX.
48135         * tests/test-gethostname.c: Include <limits.h>.
48136         (main): Check also HOST_NAME_MAX.
48137         * doc/posix-headers/limits.texi: Document the mingw problem.
48138
48139 2009-08-02  Bruno Haible  <bruno@clisp.org>
48140
48141         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48142         Add comments.
48143
48144 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48145
48146         * lib/gethostname.c: Add Windows wrapper.
48147         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48148         * modules/gethostname: Depend on sys_socket & errno, for also
48149         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48150         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48151
48152 2009-07-31  Jim Meyering  <meyering@redhat.com>
48153
48154         getloadavg: fix symbol name in comment
48155         * lib/getloadavg.c: Correct a typo I introduced when adding
48156         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48157         Matt Kraai spotted the problem.
48158
48159 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48160
48161         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48162         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48163         code also if ! defined N_NAME_POINTER.
48164         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48165         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48166         but the n_name member is a 12-byte array.
48167
48168 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48169
48170         update-copyright: generalize comment handling
48171         * build-aux/update-copyright: Handle copyright statements
48172         within more comment styles.
48173         Document usage.
48174         Report any file with an external copyright holder or parse failure.
48175
48176 2009-07-29  Jim Meyering  <meyering@redhat.com>
48177
48178         mktime: correct setting of REPLACE_MKTIME
48179         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48180
48181         update-copyright: new module
48182         * modules/update-copyright: New file.
48183         * build-aux/update-copyright: New file.
48184         * MODULES.html.sh (maint+release support): Add update-copyright.
48185
48186 2009-07-27  Bruno Haible  <bruno@clisp.org>
48187
48188         Fix compilation error when <ctime> is used and mktime is replaced.
48189         * lib/time.in.h (mktime): New declaration.
48190         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48191         REPLACE_MKTIME instead of defining mktime in config.h.
48192         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48193         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48194         Reported by Ross McFarland <rwmcfa1@neces.com>.
48195
48196 2009-07-27  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48199         Reported by Matt Kraai <mkraai@beckman.com>.
48200
48201 2009-07-25  Jim Meyering  <meyering@redhat.com>
48202
48203         maint.mk: avoid warnings about missing files
48204         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48205         diagnostic when .prev-version does not exist.
48206         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48207         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48208         nonexistent cfg.mk.
48209         Suggestions from Simon Josefsson.
48210
48211 2009-07-25  Bruno Haible  <bruno@clisp.org>
48212
48213         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48214         defined as macros. Needed on QNX 6.4.1.
48215         Reported by Matt Kraai <mkraai@beckman.com>.
48216
48217 2009-07-23  Jim Meyering  <meyering@redhat.com>
48218
48219         maint.mk: invoke "make dist" with a working value of XZ_OPT
48220         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48221
48222 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48223
48224         Make fseeko.c compile on QNX.
48225         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48226
48227 2009-07-22  Peter Simons  <simons@cryp.to>
48228
48229         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48230         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48231         * lib/md4.h: Likewise.
48232         * lib/md5.h: Likewise.
48233         * lib/sha1.h: Likewise.
48234         * lib/sha256.h: Likewise.
48235         * lib/sha512.h: Likewise.
48236
48237         tests-sha1: don't assign literal string to 'char *' variable
48238         * tests/test-sha1.c (main): Declare locals with "const" to match
48239         attributes of the right hand side.
48240
48241 2009-07-21  Eric Blake  <ebb9@byu.net>
48242
48243         dup2: fix more mingw problems
48244         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48245         fd to itself.
48246         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48247         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48248         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48249         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48250         care of mingw bugs.
48251
48252 2009-07-21  Jim Meyering  <meyering@redhat.com>
48253
48254         vc-list-files: avoid failure when /bin/sh is dash
48255         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48256         On some Debian based systems, /bin/sh is a symlink to dash, and running
48257         this command would omit the "/" following each 'tests' prefix:
48258           dash -x build-aux/vc-list-files -C . tests
48259         That is because bash and dash work differently:
48260           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48261           bash ok
48262           dash odd
48263
48264 2009-07-21  Eric Blake  <ebb9@byu.net>
48265
48266         dup2-tests: test previous patch
48267         * modules/dup2-tests: New file.
48268         * tests/test-dup2.c: Likewise.
48269         * tests/test-open.c (main): Avoid unspecified behavior.
48270         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48271         test.
48272
48273         dup2: work around mingw and cygwin 1.5 bug
48274         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48276         * modules/unistd (Makefile.am): Substitute it.
48277         * lib/unistd.in.h (dup2): Declare the replacement.
48278         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48279         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48280         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48281         * modules/execute (Depends-on): Add dup2.
48282         * modules/fseterr (Depends-on): Likewise.
48283         * modules/pipe (Depends-on): Likewise.
48284         * modules/posix_spawn-internal (Depends-on): Likewise.
48285
48286 2009-07-21  Bruno Haible  <bruno@clisp.org>
48287
48288         * modules/.gitattributes: New file.
48289
48290 2009-07-20  Bruno Haible  <bruno@clisp.org>
48291
48292         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48293         (main): Use it.
48294
48295 2009-07-20  Eric Blake  <ebb9@byu.net>
48296
48297         test-pipe: make a bit more robust.
48298         * tests/test-pipe.c (myerr): Allow error messages regardless of
48299         what we do to stderr.
48300         (test_pipe): Rearrange to avoid deadlock.
48301         (child_main): Try a larger read, to ensure we avoided deadlock.
48302         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48303         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48304         if misused.
48305
48306 2009-07-19  Jim Meyering  <meyering@redhat.com>
48307
48308         fts: avoid false-positive cycle-detection
48309         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48310         for each new command line argument.
48311
48312 2009-07-19  Bruno Haible  <bruno@clisp.org>
48313
48314         Fix build error on mingw with the modules sys_select and unistd.
48315         * modules/acl-tests (Depends-on): Add close.
48316         * modules/binary-io-tests (Depends-on): Likewise.
48317         * modules/closein-tests (Depends-on): Likewise.
48318         * modules/flock-tests (Depends-on): Likewise.
48319         * modules/fsync-tests (Depends-on): Likewise.
48320         * modules/lseek-tests (Depends-on): Likewise.
48321         * modules/pipe-tests (Depends-on): Likewise.
48322         * modules/posix_spawn-tests (Depends-on): Likewise.
48323         * modules/posix_spawnp-tests (Depends-on): Likewise.
48324         * modules/stat-time-tests (Depends-on): Likewise.
48325         * modules/yesno-tests (Depends-on): Likewise.
48326
48327 2009-07-19  Bruno Haible  <bruno@clisp.org>
48328
48329         Unify conditionals.
48330         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48331         macros, not at the compiler macros.
48332         * lib/pipe.c: Likewise.
48333         * lib/execute.c: Likewise.
48334         * lib/spawni.c: Likewise.
48335
48336 2009-07-19  Bruno Haible  <bruno@clisp.org>
48337
48338         Fix handling of closed stdin/stdout/stderr on mingw.
48339         * lib/w32spawn.h: Include unistd.h.
48340         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48341         file descriptor with O_NOINHERIT flag.
48342         (fd_safer_noinherit): New function, based on fd-safer.c.
48343         (dup_safer_noinherit): New function, based on dup-safer.c.
48344         (undup_safer_noinherit): New function.
48345         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48346         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48347         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48348         instead of fd_safer.
48349         * tests/test-pipe.c: Include <windows.h>.
48350         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48351         result.
48352
48353         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48354         from main.
48355         (test_pipe): Pass an extra argument for disambiguation.
48356         (main): Invoke parent_main or child_main.
48357
48358         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48359         consistently.
48360
48361 2009-07-18  Eric Blake  <ebb9@byu.net>
48362
48363         test-pipe: fix mingw build
48364         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48365
48366 2009-07-18  Bruno Haible  <bruno@clisp.org>
48367
48368         * modules/pipe-tests (Makefile.am): Fix typo.
48369
48370 2009-07-18  Eric Blake  <ebb9@byu.net>
48371
48372         error: fix mingw build
48373         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48374         Reported by Bruno Haible.
48375
48376         error: avoid undefined use of stdout
48377         * lib/error.c (error, error_at_line): Check that fd 1 is open
48378         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48379         is handling faults and the close_stdout module wants to report the
48380         detection of closed stdout as an error.
48381
48382 2009-07-17  Eric Blake  <ebb9@byu.net>
48383
48384         pipe: be robust in face of closed fds
48385         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48386         should cause child to misbehave.
48387         * modules/pipe-tests: New module.
48388         * tests/test-pipe.c: New file.
48389         * tests/test-pipe.sh: New file.
48390         Reported by Akim Demaille.
48391
48392 2009-07-14  Bruno Haible  <bruno@clisp.org>
48393
48394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48395         Reported by anonymous kc.
48396
48397 2009-07-07  Jim Meyering  <meyering@redhat.com>
48398
48399         maint.mk: don't look for translatable strings in *.m4 or *.mk
48400         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48401         when searching for translatable strings.
48402
48403 2009-07-05  Jim Meyering  <meyering@redhat.com>
48404
48405         remove superfluous parentheses in STREQ definition
48406         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48407         * lib/getugroups.c (STREQ): Likewise.
48408         * lib/fnmatch.c (STREQ): Likewise.
48409         Spotted by Bruno Haible.
48410
48411 2009-07-04  Jim Meyering  <meyering@redhat.com>
48412
48413         argv-iter: new module
48414         * MODULES.html.sh: Add argv-iter.
48415         * lib/argv-iter.c, lib/argv-iter.h: New files.
48416         * modules/argv-iter: New file.
48417         * modules/argv-iter-tests: New file.
48418         * tests/test-argv-iter.c: Test it.
48419
48420 2009-07-04  Bruno Haible  <bruno@clisp.org>
48421
48422         Fix assertion.
48423         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48424         contains more exact copies of a given entry than file2, leave the extra
48425         copies unpaired rather than aborting.
48426         Reported by Eric Blake.
48427
48428 2009-07-02  Bruno Haible  <bruno@clisp.org>
48429
48430         Speedup git-merge-changelog for git cherry-pick.
48431         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48432         (entries_mapping_get): New function, extracted from compute_mapping.
48433         (entries_mapping_reverse_get): New function.
48434         (compute_mapping): Add a 'full' argument. Return the result in a
48435         'struct entries_mapping'.
48436         (main): Update. Access the mappings through entries_mapping_get.
48437         Reported by Eric Blake.
48438
48439 2009-07-02  Bruno Haible  <bruno@clisp.org>
48440
48441         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48442         best_i.
48443
48444 2009-07-02  Bruno Haible  <bruno@clisp.org>
48445
48446         Speed up approximate search for matching ChangeLog entries.
48447         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48448         argument. Call fstrcmp_bounded instead of fstrcmp.
48449         (compute_mapping, try_split_merged_entry, main): Update callers.
48450
48451 2009-07-02  Bruno Haible  <bruno@clisp.org>
48452
48453         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48454
48455 2009-06-30  Bruno Haible  <bruno@clisp.org>
48456
48457         Reduce the number of uc_is_cased calls.
48458         * lib/unicase.h (casing_suffix_context_t): Add
48459         'first_char_except_ignorable' field.
48460         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48461         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48462         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48463         Update initializer.
48464         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48465         case-ignorable characters.
48466         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48467         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48468         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48469         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48470         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48471
48472 2009-06-30  Bruno Haible  <bruno@clisp.org>
48473
48474         Tests for module 'unicase/ignorable'.
48475         * modules/unicase/ignorable-tests: New file.
48476         * tests/unicase/test-ignorable.c: New file, generated by
48477         gen-uni-tables.
48478
48479         Tests for module 'unicase/cased'.
48480         * modules/unicase/cased-tests: New file.
48481         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48482         * tests/unicase/test-predicate-part1.h: New file, derived from
48483         tests/unictype/test-predicate-part1.h.
48484         * tests/unicase/test-predicate-part2.h: New file, same as
48485         tests/unictype/test-predicate-part2.h.
48486
48487         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48488         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48489         (output_casing_properties): New function.
48490         (main): Call it.
48491         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48492         * lib/unicase/cased.c: Include unictype/bitmap.h.
48493         (uc_is_cased): Define through a bitmap lookup.
48494         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48495         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48496         (uc_is_case_ignorable): Define through a bitmap lookup.
48497         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48498         lib/unictype/bitmap.h.
48499         (Depends-on): Add inline. Clean up.
48500         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48501         lib/unictype/bitmap.h.
48502         (Depends-on): Add inline. Clean up.
48503         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48504         recognition.
48505         * tests/unicase/test-u16-tolower.c (main): Likewise.
48506         * tests/unicase/test-u32-tolower.c (main): Likewise.
48507
48508 2009-06-30  Bruno Haible  <bruno@clisp.org>
48509
48510         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48511         * lib/unicase/u16-casemap.c: Likewise.
48512         * lib/unicase/u32-casemap.c: Likewise.
48513
48514 2009-06-29  Bruno Haible  <bruno@clisp.org>
48515
48516         Define u32_casefold as a wrapper around u32_ct_casefold.
48517         * lib/unicase/u32-casefold.c: Update.
48518         * modules/unicase/u32-casefold (Depends-on): Add
48519         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48520         unicase/empty-suffix-context. Clean up.
48521
48522         Define u16_casefold as a wrapper around u16_ct_casefold.
48523         * lib/unicase/u16-casefold.c: Update.
48524         * modules/unicase/u16-casefold (Depends-on): Add
48525         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48526         unicase/empty-suffix-context. Clean up.
48527
48528         Define u8_casefold as a wrapper around u8_ct_casefold.
48529         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48530         * lib/unicase/u8-casefold.c: Update.
48531         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48532         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48533
48534         Define u32_totitle as a wrapper around u32_ct_totitle.
48535         * lib/unicase/u32-totitle.c: Update.
48536         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48537         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48538
48539         Define u16_totitle as a wrapper around u16_ct_totitle.
48540         * lib/unicase/u16-totitle.c: Update.
48541         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48542         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48543
48544         Define u8_totitle as a wrapper around u8_ct_totitle.
48545         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48546         functions.
48547         (FUNC): Delegate to U_CT_TOTITLE.
48548         * lib/unicase/u8-totitle.c: Update.
48549         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48550         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48551
48552         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48553         invocation.
48554         * modules/unicase/u32-tolower (Depends-on): Add
48555         unicase/empty-prefix-context, unicase/empty-suffix-context.
48556
48557         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48558         invocation.
48559         * modules/unicase/u16-tolower (Depends-on): Add
48560         unicase/empty-prefix-context, unicase/empty-suffix-context.
48561
48562         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48563         * modules/unicase/u8-tolower (Depends-on): Add
48564         unicase/empty-prefix-context, unicase/empty-suffix-context.
48565
48566         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48567         invocation.
48568         * modules/unicase/u32-toupper (Depends-on): Add
48569         unicase/empty-prefix-context, unicase/empty-suffix-context.
48570
48571         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48572         invocation.
48573         * modules/unicase/u16-toupper (Depends-on): Add
48574         unicase/empty-prefix-context, unicase/empty-suffix-context.
48575
48576         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48577         * modules/unicase/u8-toupper (Depends-on): Add
48578         unicase/empty-prefix-context, unicase/empty-suffix-context.
48579
48580         New module 'unicase/u32-ct-casefold'.
48581         * lib/unicase/u32-ct-casefold.c: New file.
48582         * modules/unicase/u32-ct-casefold: New file.
48583
48584         New module 'unicase/u16-ct-casefold'.
48585         * lib/unicase/u16-ct-casefold.c: New file.
48586         * modules/unicase/u16-ct-casefold: New file.
48587
48588         New module 'unicase/u8-ct-casefold'.
48589         * lib/unicase/u8-ct-casefold.c: New file.
48590         * lib/unicase/u-ct-casefold.h: New file, derived from
48591         lib/unicase/u-casefold.h.
48592         * modules/unicase/u8-ct-casefold: New file.
48593
48594         New module 'unicase/u32-ct-totitle'.
48595         * lib/unicase/u32-ct-totitle.c: New file.
48596         * modules/unicase/u32-ct-totitle: New file.
48597
48598         New module 'unicase/u16-ct-totitle'.
48599         * lib/unicase/u16-ct-totitle.c: New file.
48600         * modules/unicase/u16-ct-totitle: New file.
48601
48602         New module 'unicase/u8-ct-totitle'.
48603         * lib/unicase/u8-ct-totitle.c: New file.
48604         * lib/unicase/u-ct-totitle.h: New file, derived from
48605         lib/unicase/u-totitle.h.
48606         * modules/unicase/u8-ct-totitle: New file.
48607
48608         New module 'unicase/u32-ct-tolower'.
48609         * lib/unicase/u32-ct-tolower.c: New file.
48610         * modules/unicase/u32-ct-tolower: New file.
48611
48612         New module 'unicase/u16-ct-tolower'.
48613         * lib/unicase/u16-ct-tolower.c: New file.
48614         * modules/unicase/u16-ct-tolower: New file.
48615
48616         New module 'unicase/u8-ct-tolower'.
48617         * lib/unicase/u8-ct-tolower.c: New file.
48618         * modules/unicase/u8-ct-tolower: New file.
48619
48620         New module 'unicase/u32-ct-toupper'.
48621         * lib/unicase/u32-ct-toupper.c: New file.
48622         * modules/unicase/u32-ct-toupper: New file.
48623
48624         New module 'unicase/u16-ct-toupper'.
48625         * lib/unicase/u16-ct-toupper.c: New file.
48626         * modules/unicase/u16-ct-toupper: New file.
48627
48628         New module 'unicase/u8-ct-toupper'.
48629         * lib/unicase/u8-ct-toupper.c: New file.
48630         * modules/unicase/u8-ct-toupper: New file.
48631
48632         Add context arguments to u*_casemap functions.
48633         * lib/unicase/unicasemap.h: Include unicase.h.
48634         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48635         suffix_context arguments.
48636         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48637         functions.
48638         (FUNC): Add prefix_context and suffix_context arguments. Use
48639         uc_is_cased and uc_is_case_ignorable.
48640         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48641         * lib/unicase/u16-casemap.c: Likewise.
48642         * lib/unicase/u32-casemap.c: Likewise.
48643         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48644         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48645         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48646         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48647         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48648         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48649
48650         New module 'unicase/u32-suffix-context'.
48651         * lib/unicase/u32-suffix-context.c: New file.
48652         * modules/unicase/u32-suffix-context: New file.
48653
48654         New module 'unicase/u16-suffix-context'.
48655         * lib/unicase/u16-suffix-context.c: New file.
48656         * modules/unicase/u16-suffix-context: New file.
48657
48658         New module 'unicase/u8-suffix-context'.
48659         * lib/unicase/u8-suffix-context.c: New file.
48660         * lib/unicase/u-suffix-context.h: New file.
48661         * modules/unicase/u8-suffix-context: New file.
48662
48663         New module 'unicase/empty-suffix-context'.
48664         * lib/unicase/empty-suffix-context.c: New file.
48665         * modules/unicase/empty-suffix-context: New file.
48666
48667         New module 'unicase/u32-prefix-context'.
48668         * lib/unicase/u32-prefix-context.c: New file.
48669         * modules/unicase/u32-prefix-context: New file.
48670
48671         New module 'unicase/u16-prefix-context'.
48672         * lib/unicase/u16-prefix-context.c: New file.
48673         * modules/unicase/u16-prefix-context: New file.
48674
48675         New module 'unicase/u8-prefix-context'.
48676         * lib/unicase/u8-prefix-context.c: New file.
48677         * lib/unicase/u-prefix-context.h: New file.
48678         * lib/unicase/context.h: New file.
48679         * modules/unicase/u8-prefix-context: New file.
48680
48681         New module 'unicase/empty-prefix-context'.
48682         * lib/unicase/empty-prefix-context.c: New file.
48683         * modules/unicase/empty-prefix-context: New file.
48684
48685         New module 'unicase/ignorable'.
48686         * lib/unicase/ignorable.c: New file.
48687         * modules/unicase/ignorable: New file.
48688
48689         New module 'unicase/cased'.
48690         * lib/unicase/caseprop.h: New file.
48691         * lib/unicase/cased.c: New file.
48692         * modules/unicase/cased: New file.
48693
48694         New functions for case mapping of substrings.
48695         * lib/unicase.h (casing_prefix_context_t): New type.
48696         (unicase_empty_prefix_context): New variable.
48697         (u8_casing_prefix_context, u16_casing_prefix_context,
48698         u32_casing_prefix_context, u8_casing_prefixes_context,
48699         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48700         declarations.
48701         (casing_suffix_context_t): New type.
48702         (unicase_empty_suffix_context): New variable.
48703         (u8_casing_suffix_context, u16_casing_suffix_context,
48704         u32_casing_suffix_context, u8_casing_suffixes_context,
48705         u16_casing_suffixes_context, u32_casing_suffixes_context,
48706         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48707         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48708         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48709         declarations.
48710
48711 2009-06-28  Jim Meyering  <meyering@redhat.com>
48712
48713         boostrap: indent only with spaces
48714         * build-aux/bootstrap: Indent only with spaces, never TABs.
48715
48716         bootstrap: split long lines
48717         * build-aux/bootstrap: Keep line length < 80.
48718
48719         bootstrap: sync from coreutils
48720         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48721         just as autoreconf does.  Verify a list of prerequisite
48722         package-name,version-number pairs if defined in bootstrap.conf.
48723         Refer to README-prereq, if prerequisites are not satisfied.
48724
48725 2009-06-27  Eric Blake  <ebb9@byu.net>
48726
48727         tests: add test for bogus NULL definition
48728         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48729         * tests/test-stdlib.c: Likewise.
48730         * tests/test-string.c: Likewise.
48731         * tests/test-locale.c: Likewise.
48732         * tests/test-unistd.c: Likewise.
48733         * modules/stdio-tests (Depends-on): Add verify.
48734         * modules/stdlib-tests (Depends-on): Likewise.
48735         * modules/string-tests (Depends-on): Likewise.
48736         * modules/locale-tests (Depends-on): Likewise.
48737         * modules/unistd-tests (Depends-on): Likewise.
48738
48739 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48740
48741         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48742         self-explaining comment.
48743         * m4/selinux-selinux-h: Update serial.
48744         (gl_LIBSELINUX): New macro, adding a warning for missing development
48745         packages to code extracted from...
48746         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48747         Add warning for missing development packages here, too.
48748
48749 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48750
48751         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48752
48753 2009-06-25  Eric Blake  <ebb9@byu.net>
48754
48755         version-etc: fix regression
48756         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48757         gcc.
48758         (version_etc): Use it, to catch bugs with trailing NULL.
48759         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48760         (version_etc_va): Fix logic bug.
48761         * modules/version-etc-tests: Add test.
48762         * tests/test-version-etc.c: New file.
48763         * tests/test-version-etc.sh: Likewise.
48764
48765 2009-06-25  Sam Steingold  <sds@gnu.org>
48766
48767         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48768         mbtowc declaration.
48769
48770 2009-06-25  Eric Blake  <ebb9@byu.net>
48771
48772         fpurge: migrate into <stdio.h>
48773         * lib/fpurge.h: Delete...
48774         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48775         * lib/fpurge.c (fpurge): Change declaring header.
48776         * modules/fpurge (Files): Drop deleted file.
48777         (Depends-on): Add stdio.
48778         (configure.ac): Set witness.
48779         * modules/stdio (Makefile.am): Support fpurge macros.
48780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48781         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48782         * lib/fflush.c: Update client.
48783         * tests/test-fpurge.c: Likewise.
48784         * NEWS: Mention the change.
48785
48786 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48787
48788         * lib/argp-version-etc.c (program_authors): Add const
48789         qualifier.
48790         * lib/version-etc.c: Fix typos in the comments.
48791         * modules/argp-version-etc: Depends on version-etc.
48792
48793 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48794
48795         argp-version-etc: new module.
48796
48797         * lib/argp-version-etc.c: New file.
48798         * lib/argp-version-etc.h: New file.
48799         * modules/argp-version-etc: New file.
48800         * modules/argp-version-etc-tests: New file.
48801         * tests/test-argp-version-etc.c: New test.
48802         * tests/test-argp-version-etc-1.sh: New test.
48803
48804 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48805
48806         Provide additional interfaces and documentation for version-etc
48807         module.
48808
48809         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
48810         interfaces.
48811         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
48812         prototypes.
48813
48814 2009-06-24  Bruno Haible  <bruno@clisp.org>
48815
48816         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
48817         HAVE_LIB${NAME} macro.
48818         Reported by Sam Steingold <sds@gnu.org>.
48819
48820 2009-06-23  Simon Josefsson  <simon@josefsson.org>
48821
48822         * modules/hash-tests (test_hash_LDADD): Link to libintl when
48823         needed.
48824
48825 2009-06-21  Bruno Haible  <bruno@clisp.org>
48826
48827         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
48828         work.
48829         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
48830         together with LIB${NAME}, LTLIB${NAME}.
48831         Reported by Sam Steingold <sds@gnu.org>.
48832
48833 2009-06-20  Jim Meyering  <meyering@redhat.com>
48834
48835         tests: make sc_require_test_exit_idiom more generic
48836         * top/maint.mk (Exit_witness_file): New overridable variable.
48837         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
48838         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
48839
48840 2009-06-19  Jim Meyering  <meyering@redhat.com>
48841
48842         hash: reverse order of src/dst parameters in an internal interface
48843         * lib/hash.c (transfer_entries): Reverse order of parameters to
48844         put DST before SRC.  Adjust callers.
48845
48846         tests: test-hash: avoid wholesale duplication
48847         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48848         Instead, use a loop and add a single conditional.
48849
48850         tests: test-hash: allow seed selection via a command line argument
48851         * tests/test-hash.c (get_seed): New function.
48852         (main): Use it.
48853
48854 2009-06-19  Eric Blake  <ebb9@byu.net>
48855
48856         hash: avoid memory leak on allocation failure
48857         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48858         failure.  Factor repeated algorithm...
48859         (transfer_entries): ...into new helper routine.
48860         (hash_delete): React to hash_rehash return value.
48861
48862         hash: reduce memory pressure in hash_rehash no-op case
48863         * lib/hash.c (next_prime): Avoid overflow.
48864         (hash_initialize): Factor bucket size computation...
48865         (compute_bucket_size): ...into new helper function.
48866         (hash_rehash): Use new function and open coding to reduce memory
48867         pressure, and avoid a memory leak in USE_OBSTACK code.
48868         Reported by Jim Meyering.
48869
48870 2009-06-18  Eric Blake  <ebb9@byu.net>
48871
48872         hash: make rotation more obvious
48873         * modules/hash (Depends-on): Add bitrotate and stdint.
48874         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48875         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48876         (SIZE_MAX): Rely on headers for definition.
48877         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48878         (raw_hasher): Use rotr_sz.
48879         Suggested by Jim Meyering.
48880
48881         hash: fix memory leak in last patch
48882         * lib/hash.c (hash_rehash): Avoid memory leak.
48883
48884         hash: avoid no-op rehashing
48885         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48886
48887         hash: provide default callback functions
48888         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48889         (hash_initialize): Use them as defaults.
48890         * tests/test-hash.c (main): Test this.
48891
48892         hash: minor optimization
48893         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48894         when possible.
48895         (hash_initialize): Document this promise.
48896         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48897         * tests/test-hash.c (hash_compare_strings): Test this.
48898
48899 2009-06-18  Bruno Haible  <bruno@clisp.org>
48900
48901         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48902         going to be replaced anyway.
48903
48904 2009-06-18  Bruno Haible  <bruno@clisp.org>
48905
48906         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48907         in one place.
48908         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48909         be replaced anyway.
48910
48911 2009-06-18  Eric Blake  <ebb9@byu.net>
48912
48913         hash: check for resize before insertion
48914         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48915         threshold before insertion, so that a pathological hash_rehash
48916         that fills every bucket can still trigger another rehash.
48917
48918 2009-06-18  Jim Meyering  <meyering@redhat.com>
48919
48920         hash-tests: add a loop around the small tests
48921         * tests/test-hash.c (main): Repeat small tests with selected
48922         small initial table sizes.
48923
48924 2009-06-17  Eric Blake  <ebb9@byu.net>
48925
48926         hash: minor cleanups
48927         * lib/hash.h (hash_entry): Make opaque, by moving...
48928         * lib/hash.c (hash_entry): ...here.
48929         (hash_insert): Clarify restrictions on what can be inserted.
48930         (hash_get_next): Clarify when it is safe to remove an element
48931         during traversal.
48932         (check_tuning): Skip verification when tuning is known safe.
48933         (hash_initialize): Clarify restrictions on tuning.
48934
48935 2009-06-17  Jim Meyering  <jim@meyering.net>
48936         and Eric Blake  <ebb9@byu.net>
48937
48938         hash-tests: new module
48939         * modules/hash-tests: New file.
48940         * tests/test-hash.c: New file.
48941
48942 2009-06-17  Eric Blake  <ebb9@byu.net>
48943
48944         strstr-simple: document new module
48945         * MODULES.html.sh: Document new module.
48946
48947         strstr, strcasestr: replace on platforms with broken memchr
48948         * modules/strstr: Split into...
48949         * modules/strstr-simple: ...new module that does not care about
48950         performance, but does care about glibc bug.
48951         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48952         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48953         if platform memchr is broken, per Debian bug 521737.
48954         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48955         memchr.
48956         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48957         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48958         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48959         * modules/mountlist (Depends-on): Add strstr-simple.
48960         * modules/gen-uni-tables (Depends-on): Likewise.
48961         * modules/argz (Depends-on): Add strstr.
48962
48963 2009-06-17  Bruno Haible  <bruno@clisp.org>
48964
48965         * modules/posix_spawn-internal (Depends-on): Add errno.
48966
48967 2009-06-17  Bruno Haible  <bruno@clisp.org>
48968
48969         Define missing ESTALE on Interix 3.5.
48970         * lib/errno.in.h (ESTALE): Assign a value if missing.
48971         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48972         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48973         missing.
48974         * doc/posix-headers/errno.texi: Mention the Interix bug.
48975         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48976
48977 2009-06-15  Eric Blake  <ebb9@byu.net>
48978
48979         memchr, memchr2: add valgrind exception
48980         * lib/memchr.valgrind: New file.
48981         * lib/memchr2.valgrind: New file.
48982         * modules/memchr (Files): Distribute valgrind file.
48983         * modules/memchr2 (Files): Likewise.
48984
48985         docs: memchr is no longer obsolete
48986         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48987         * lib/string.in.h (memchr): Simplify logic.
48988
48989 2009-06-14  Jim Meyering  <meyering@redhat.com>
48990
48991         link-follow: fix the "checking..." message to not mention trailing slash
48992         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48993         never considered trailing slashes.
48994
48995 2009-06-14  Bruno Haible  <bruno@clisp.org>
48996
48997         * m4/memchr.m4: Mention also the bug on IA-64.
48998         * doc/posix-functions/memchr.texi: Likewise.
48999
49000 2009-06-12  Eric Blake  <ebb9@byu.net>
49001
49002         memchr: detect broken x86_64 and alpha implementations
49003         * modules/memchr-tests (Depends-on): Move mmap detection...
49004         * modules/memchr (Depends-on): ...here.
49005         (configure.ac): Set indicator.
49006         * lib/string.in.h (memchr): Declare replacement.
49007         * modules/string (Makefile.am): Trigger replacement.
49008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49009         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49010         bugs.
49011         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49012         * modules/getpagesize (License): Relax license.
49013
49014 2009-06-11  Bruno Haible  <bruno@clisp.org>
49015
49016         * lib/idpriv.h: Add more references.
49017
49018 2009-06-08  Bruno Haible  <bruno@clisp.org>
49019
49020         Tests for module 'idpriv-droptemp'.
49021         * modules/idpriv-droptemp-tests: New file.
49022         * tests/test-idpriv-droptemp.sh: New file.
49023         * tests/test-idpriv-droptemp.su.sh: New file.
49024         * tests/test-idpriv-droptemp.c: New file.
49025
49026         New module 'idpriv-droptemp'.
49027         * lib/idpriv-droptemp.c: New file.
49028         * modules/idpriv-droptemp: New file.
49029
49030 2009-06-08  Bruno Haible  <bruno@clisp.org>
49031
49032         Tests for module 'idpriv-drop'.
49033         * modules/idpriv-drop-tests: New file.
49034         * tests/test-idpriv-drop.sh: New file.
49035         * tests/test-idpriv-drop.su.sh: New file.
49036         * tests/test-idpriv-drop.c: New file.
49037
49038         New module 'idpriv-drop'.
49039         * lib/idpriv.h: New file.
49040         * lib-idpriv-drop.c: New file.
49041         * m4/idpriv.m4: New file.
49042         * modules/idpriv-drop: New file.
49043
49044 2009-06-08  Bruno Haible  <bruno@clisp.org>
49045
49046         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49047         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49048         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49049         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49050         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49051         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49052         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49053
49054 2009-06-08  Eric Blake  <ebb9@byu.net>
49055
49056         test-strstr: use memory fence, when possible
49057         * tests/test-strstr.c (main): Use memory fence, in order to be
49058         more likely to trigger Debian bug 521737.
49059         * modules/strstr-tests (Files): Pull in additional files.
49060
49061         memchr: no longer obsolete, for wider field testing
49062         * modules/memchr (Status, Notice): Delete, this module is no
49063         longer obsolete.
49064         * modules/vasnprintf (Depends-on): Add memchr.
49065
49066 2009-06-07  Jim Meyering  <meyering@redhat.com>
49067
49068         hash: declare some functions with the warn_unused_result attribute
49069         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49070
49071 2009-06-07  Bruno Haible  <bruno@clisp.org>
49072
49073         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49074         Reported by Eric Blake.
49075
49076 2009-06-06  Eric Blake  <ebb9@byu.net>
49077
49078         test-alignof: fix typo with long double
49079         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49080         compiler error.
49081
49082 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49083
49084         Escape non-texinfo { and }s.
49085         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49086         markup error.
49087
49088 2009-06-04  Jim Meyering  <meyering@redhat.com>
49089
49090         gitlog-to-changelog: don't infloop on an empty commit log
49091         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49092         Reported by Boris Petersen <transacid@centerim.org>.
49093
49094 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49095
49096         version-etc: extend for packagers
49097         Add three new configure options, intended for packagers:
49098           --with-packager="packager name"
49099           --with-packager-version="packager-specific version"
49100           --with-packager-bug-reports="packager bug reporting"
49101         An example with coreutils:
49102           $ ./configure \
49103             --with-packager=Gentoo \
49104             --with-packager-bug-report=http://bugs.gentoo.org/ \
49105             --with-packager-version="patchset 1.6"
49106           $ ./src/ls --version | head -n2
49107           ls (GNU coreutils) 7.1-dirty
49108           Packaged by Gentoo (patchset 1.6)
49109         Note that the bug reporting info via --help doesn't show up because
49110         coreutils uses its own custom emit_bug_reporting_address() implementation
49111         in src/system.h.  If it didn't, it'd look like:
49112           $ ./src/ls --help | tail -n4
49113           Report bugs to <bug-coreutils@gnu.org>.
49114           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49115           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49116           General help using GNU software: <http://www.gnu.org/gethelp/>.
49117         * lib/version-etc.c: Print new information, if provided.
49118         * m4/version-etc.m4: New file.
49119         * modules/version-etc (Files): Add m4/version-etc.m4.
49120         (configure.ac): Add gl_VERSION_ETC.
49121
49122 2009-05-31  Bruno Haible  <bruno@clisp.org>
49123
49124         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49125         and 'int64_t'.
49126         * modules/alignof-tests (Dependencies): Add stdint.
49127         Reported by Eric Blake.
49128
49129 2009-05-31  Bruno Haible  <bruno@clisp.org>
49130
49131         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49132         restriction due to compiler bugs.
49133         Reported by Eric Blake.
49134
49135 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49136             Bruno Haible  <bruno@clisp.org>
49137
49138         Fix test-alignof failure.
49139         * lib/alignof.h (alignof_slot): New macro.
49140         (alignof_type): New macro, with the same semantics as the previous
49141         'alignof'.
49142         (alignof): Alias to alignof_slot.
49143         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49144         check that the results are usable as constant expressions.
49145
49146 2009-05-31  Bruno Haible  <bruno@clisp.org>
49147
49148         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49149         * tests/test-memchr.c (main): Check that memchr does not read past the
49150         first occurrence of the byte.
49151         * tests/test-strstr.c (main): Update comment.
49152         Suggested by Eric Blake.
49153
49154 2009-05-30  Bruno Haible  <bruno@clisp.org>
49155
49156         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49157         detail how to use dumpbin.
49158         Reported by David Byron <dbyron@dbyron.com>.
49159
49160 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49161
49162         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49163
49164 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49165
49166         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49167
49168 2009-05-28  Bruno Haible  <bruno@clisp.org>
49169
49170         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49171         build-aux/ files.
49172
49173 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49174
49175         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49176
49177 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49178
49179         * gnulib-tool (sed_transform_main_lib_file)
49180         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49181         regexps.
49182
49183 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49184
49185         * tests/test-strstr.c: Add another self-test.
49186         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49187         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49188
49189 2009-05-23  Bruno Haible  <bruno@clisp.org>
49190
49191         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49192         change.
49193
49194 2009-05-21  Bruno Haible  <bruno@clisp.org>
49195
49196         Simplify use of mode_t varargs.
49197         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49198         uses 'mode_t' or 'int'.
49199         * lib/openat.c (openat): Likewise.
49200         * lib/open-safer.c (open_safer): Likewise.
49201         * m4/mode_t.m4: New file.
49202         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49203         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49204         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49205         * modules/open (Files): Add m4/mode_t.m4.
49206         * modules/openat (Files): Likewise.
49207         * modules/fcntl-safer (Files): Likewise.
49208         Suggested by Eric Blake.
49209
49210 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49211
49212         * doc/glibc-functions/fallocate.texi: New file.
49213         * doc/gnulib.texi: Include it.
49214
49215 2009-05-21  Eric Blake  <ebb9@byu.net>
49216             Bruno Haible  <bruno@clisp.org>
49217
49218         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49219         invocations.
49220         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49221
49222 2009-05-21  Eric Blake  <ebb9@byu.net>
49223             Bruno Haible  <bruno@clisp.org>
49224
49225         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49226         include_next. Fix of 2008-11-20 commit.
49227         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49228         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49229         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49230         NEXT_MATH_H.
49231         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49232         instead of NEXT_MATH_H.
49233
49234 2009-05-21  Bruno Haible  <bruno@clisp.org>
49235
49236         Avoid redefinition warnings for SIZE_MAX.
49237         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49238         Reported by Simon Josefsson.
49239
49240 2009-05-21  Bruno Haible  <bruno@clisp.org>
49241
49242         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49243         AC_CACHE_VAL.
49244
49245 2009-05-20  Bruno Haible  <bruno@clisp.org>
49246
49247         Make zeroptr.h work on mingw.
49248         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49249         mprotect.
49250         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49251         * modules/memchr2-tests (configure.ac): Likewise.
49252         * modules/memcmp-tests (configure.ac): Likewise.
49253         * modules/memmem-tests (configure.ac): Likewise.
49254         * modules/memrchr-tests (configure.ac): Likewise.
49255         Reported by Simon Josefsson.
49256
49257 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49258
49259         * tests/test-glob.c: Include string.h for strcmp prototype.
49260
49261 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49262
49263         * modules/getdelim (Depends-on): Add explicit stdint, although it
49264         was implicitly already pulled in via realloc-posix.
49265         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49266
49267 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49268
49269         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49270         G. Christensen" <tgc@jupiterrise.com>.
49271         * m4/sys_socket_h.m4: Check for sa_family_t.
49272         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49273         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49274         * tests/test-sys_socket.c: Check that sa_family_t works.
49275
49276 2009-05-18  Eric Blake  <ebb9@byu.net>
49277
49278         maint.mk: allow gnulib_dir in VPATH build
49279         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49280
49281 2009-05-15  Jim Meyering  <meyering@redhat.com>
49282
49283         maint.mk: Give gnulib_dir a default definition.
49284         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49285         Thus, most packages no longer need to specify this variable in cfg.mk
49286
49287 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49288
49289         rename.m4: fix typos that would make non-mingw cross-configure fail
49290         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49291
49292 2009-05-13  Eric Blake  <ebb9@byu.net>
49293
49294         mmap-anon: avoid out-of-order autoconf expansion
49295         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49296         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49297         * modules/memchr-tests (Depends-on): Add extensions.
49298         * modules/memchr2-tests (Depends-on): Add extensions.
49299         * modules/memcmp-tests (Depends-on): Add extensions.
49300         * modules/memmem-tests (Depends-on): Add extensions.
49301         * modules/memrchr-tests (Depends-on): Add extensions.
49302
49303 2009-05-13  Bruno Haible  <bruno@clisp.org>
49304
49305         Make some tests ISO C 99 compliant.
49306         * tests/zerosize-ptr.h: New file.
49307         * tests/test-memchr.c: Include zerosize-ptr.h.
49308         (main): Use a zero-size object pointer instead of NULL.
49309         * tests/test-memchr2.c: Include zerosize-ptr.h.
49310         (main): Use a zero-size object pointer instead of NULL.
49311         * tests/test-memcmp.c: Include zerosize-ptr.h.
49312         (main): Use a zero-size object pointer instead of NULL.
49313         * tests/test-memmem.c: Include zerosize-ptr.h.
49314         (main): Use a zero-size object pointer instead of NULL.
49315         * tests/test-memrchr.c: Include zerosize-ptr.h.
49316         (main): Use a zero-size object pointer instead of NULL.
49317         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49318         m4/mmap-anon.m4.
49319         (Depends-on): Add getpagesize.
49320         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49321         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49322         m4/mmap-anon.m4.
49323         (Depends-on): Add getpagesize.
49324         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49325         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49326         m4/mmap-anon.m4.
49327         (Depends-on): Add getpagesize.
49328         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49329         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49330         m4/mmap-anon.m4.
49331         (Depends-on): Add getpagesize.
49332         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49333         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49334         m4/mmap-anon.m4.
49335         (Depends-on): Add getpagesize.
49336         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49337
49338 2009-05-12  Bruno Haible  <bruno@clisp.org>
49339
49340         Tests for module 'alignof'.
49341         * modules/alignof-tests: New file.
49342         * tests/test-alignof.c: New file.
49343
49344 2009-05-12  Bruno Haible  <bruno@clisp.org>
49345
49346         Fix alignof macro.
49347         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49348         vendor compilers that are always correct.
49349
49350 2009-05-12  Bruno Haible  <bruno@clisp.org>
49351
49352         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49353         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49354         not whether its fully works.
49355
49356 2009-05-12  Bruno Haible  <bruno@clisp.org>
49357
49358         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49359
49360 2009-05-12  Jim Meyering  <meyering@redhat.com>
49361
49362         * top/maint.mk: Adjust backslash alignment.
49363
49364 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49365
49366         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49367
49368 2009-05-11  Eric Blake  <ebb9@byu.net>
49369
49370         argp: avoid undefined behavior
49371         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49372         macros.
49373
49374 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49375
49376         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49377         user.name to prevent git commit from complaining.
49378
49379 2009-05-10  Bruno Haible  <bruno@clisp.org>
49380
49381         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49382         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49383         it rewrites every file name only once.
49384         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49385
49386 2009-05-08  Bruno Haible  <bruno@clisp.org>
49387
49388         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49389         instead of 'max'.
49390
49391 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49392
49393         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49394         sockaddr_storage test.
49395
49396 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49397
49398         * modules/sys_socket (Makefile.am): Substitute
49399         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49400         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49401         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49402         * tests/test-sys_socket.c: Check sockaddr_storage.
49403
49404 2009-05-08  Bruno Haible  <bruno@clisp.org>
49405
49406         New module 'alignof'.
49407         * lib/alignof.h: New file.
49408         * modules/alignof: New file.
49409
49410 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49411             Bruno Haible  <bruno@clisp.org>
49412
49413         Fix test-file-has-acl on FreeBSD.
49414         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49415         mask is implicitly added.
49416         * tests/test-file-has-acl.c: Include <signal.h>.
49417         (main): Terminate the test after 5 seconds.
49418         * modules/acl-tests (configure.ac): Check for alarm function.
49419
49420 2009-05-04  Bruno Haible  <bruno@clisp.org>
49421
49422         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49423         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49424         * modules/errno (configure.ac): Drop AC_REQUIRE.
49425         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49426         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49427
49428 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49429
49430         * modules/glob-tests: New module.
49431         * tests/test-glob.c: Add.
49432
49433 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49434
49435         * modules/fnmatch-tests: New module.
49436         * tests/test-fnmatch.c: Add.
49437
49438 2009-05-04  Eric Blake  <ebb9@byu.net>
49439
49440         maint: make the new no-submodule-changes rule VPATH-safe
49441         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49442
49443 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49444             Bruno Haible  <bruno@clisp.org>
49445
49446         acl: Fix infinite loop on FreeBSD.
49447         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49448         of return value from acl_get_entry.
49449         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49450         Likewise.
49451
49452 2009-05-03  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/acl-internal.h (acl_entries): Clarify return value.
49455         * lib/acl_entries.c (acl_entries): Likewise.
49456
49457 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49458
49459         Bug fix in acl module.
49460         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49461
49462 2009-05-03  Bruno Haible  <bruno@clisp.org>
49463
49464         Create gperf-generated file in the source dir, not in the build dir.
49465         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49466         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49467         * modules/unicase/locale-language (unicase/locale-languages.h):
49468         Likewise.
49469         * modules/unicase/special-casing (unicase/special-casing-table.h):
49470         Likewise.
49471         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49472         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49473         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49474         Reported by Ralf Wildenhues.
49475
49476 2009-05-03  Bruno Haible  <bruno@clisp.org>
49477
49478         * modules/fnmatch (Description, configure.ac): Taken from
49479         fnmatch-posix.
49480         * modules/fnmatch-posix: Turn into a symbolic reference to the
49481         'fnmatch' module, and deprecate.
49482         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49483
49484 2009-05-03  Bruno Haible  <bruno@clisp.org>
49485
49486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49487         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49488         Reported by Ralf Wildenhues.
49489
49490 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49491
49492         * m4/fnmatch.m4: Fix fnmatch re-define.
49493
49494 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49495
49496         priv-set: new module and tests; adapt write-any-file
49497         * lib/priv-set.c: New file.
49498         * lib/priv-set.h: New file.
49499         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49500         * lib/write-any-file.c: Simplify by using priv-set module.
49501         * m4/priv-set.m4: New file.
49502         * modules/priv-set: New file.
49503         * modules/unlinkdir: Add dependency on priv-set module.
49504         * modules/write-any-file: Likewise.
49505
49506         Tests for module 'priv-set'.
49507         * modules/priv-set-tests: New file.
49508         * tests/test-priv-set.c: New file.
49509
49510 2009-05-03  Jim Meyering  <meyering@redhat.com>
49511             Bruno Haible  <bruno@clisp.org>
49512
49513         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49514         use the converted UTF-8 variant of the name instead.
49515
49516 2009-05-03  Jim Meyering  <meyering@redhat.com>
49517
49518         tests: tighten some getdate tests
49519         * tests/test-getdate.c (main): Tighten tests: require equality,
49520         not just greater than.  Set TZ envvar to UTC0.
49521
49522 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49523
49524         getdate: correctly interpret "next monday" when run on a Monday
49525         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49526         that e.g., "next tues" (when run on a tuesday) results in a date
49527         that is one week in the future, and not today's date.
49528         I.e., add a week when the wday is the same as the current one.
49529         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49530         and earlier by Martin Bernreuther and Jan Minář.
49531         * tests/test-getdate.c (main): Check that "next DAY" is always in
49532         the future and that "last DAY" is always in the past.
49533
49534 2009-05-02  Jim Meyering  <meyering@redhat.com>
49535
49536         build: ensure that a release build fails when a submodule is unclean
49537         * top/maint.mk (no-submodule-changes): New rule.
49538         (alpha beta major): Depend on it.
49539
49540 2009-05-02  Bruno Haible  <bruno@clisp.org>
49541
49542         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49543         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49544         shell variable gl_fnmatch_required to detect which variant is
49545         requested.
49546         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49547         gl_FUNC_FNMATCH_POSIX.
49548         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49549         exclude fnmatch-posix.
49550
49551 2009-05-02  Bruno Haible  <bruno@clisp.org>
49552
49553         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49554         * modules/mbsrtowcs (License): Change to LGPLv2+.
49555         * modules/strnlen1 (License): Likewise.
49556         Reported by Simon Josefsson.
49557
49558 2009-05-02  Bruno Haible  <bruno@clisp.org>
49559
49560         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49561         "cross".
49562         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49563         gnulib-tool was called with option --source-base=lib.
49564
49565 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49566
49567         Use automake *-local hooks without commands, for extensibility.
49568         * modules/localcharset (Makefile.am): Rename install-exec-local
49569         rule to install-exec-localcharset, and make it a prerequisite of
49570         install-exec-local.  Likewise, rename the uninstall-local rule to
49571         uninstall-localcharset, and make it a prerequisite of the former.
49572
49573 2009-05-01  Bruno Haible  <bruno@clisp.org>
49574
49575         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49576         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49577         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49579         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49580         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49581         m4/locale-zh.m4, m4/codeset.m4.
49582
49583         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49584         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49585         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49586         m4/locale-zh.m4.
49587
49588         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49589         REPLACE_WCRTOMB if mbstate_t must be replaced.
49590         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49591         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49592
49593 2009-05-01  Bruno Haible  <bruno@clisp.org>
49594
49595         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49596         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49597         dngettext, dcngettext, textdomain, bindtextdomain,
49598         bind_textdomain_codeset): Undefine before redefining.
49599
49600 2009-04-30  Bruno Haible  <bruno@clisp.org>
49601
49602         Fix bug introduced on 2009-04-25.
49603         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49604         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49605         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49606         is defined.
49607         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49608         is defined.
49609         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49610         is defined.
49611         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49612
49613 2009-04-28  Bruno Haible  <bruno@clisp.org>
49614
49615         Comment tweaks.
49616         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49617         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49618         * lib/unicase.h (u*_casexfrm): Likewise.
49619         Reported by Paolo Bonzini.
49620
49621 2009-04-28  Bruno Haible  <bruno@clisp.org>
49622
49623         Fix a compilation error.
49624         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49625         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49626         Reported by Jim Meyering.
49627
49628 2009-04-27  Bruno Haible  <bruno@clisp.org>
49629
49630         New module 'libunistring'.
49631         * modules/libunistring: New file.
49632         * m4/libunistring.m4: New file.
49633         * MODULES.html.sh (Unicode string functions): Add it.
49634
49635 2009-04-27  Eric Blake  <ebb9@byu.net>
49636
49637         maint.mk: allow package-specific header to provide <config.h>
49638         * top/maint.mk (sc_require_config_h): New variable.
49639         (sc_require_config_h, sc_require_config_h_first): Use it.
49640
49641 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49642
49643         * top/maint.mk (sc_avoid_if_before_free): Except
49644         useless-if-before-free script.
49645
49646 2009-04-27  Eric Blake  <ebb9@byu.net>
49647
49648         maintainer-makefile: depend on all required helper scripts
49649         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49650         useless-if-before-free.
49651         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49652         version, rather than assuming gnulib checkout is available.
49653         Reported by Simen Josefsson.
49654
49655 2009-04-26  Bruno Haible  <bruno@clisp.org>
49656
49657         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49658         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49659         "../" or "..".
49660
49661 2009-04-26  Bruno Haible  <bruno@clisp.org>
49662
49663         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49664         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49665         AC_LIB_HAVE_LINKFLAGS.
49666
49667 2009-04-26  Bruno Haible  <bruno@clisp.org>
49668
49669         Simplify calling convention of u*_conv_from_encoding.
49670         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49671         u32_conv_from_encoding): Expect a resultbuf argument and return the
49672         result directly as a pointer.
49673         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49674         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49675         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49676         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49677         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49678         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49679         Update.
49680         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49681         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49682         * lib/vasnprintf.c (VASNPRINTF): Update.
49683         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49684         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49685         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49686         * NEWS: Mention the change.
49687
49688 2009-04-26  Bruno Haible  <bruno@clisp.org>
49689
49690         Simplify calling convention of u*_conv_to_encoding.
49691         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49692         u32_conv_to_encoding): Expect a resultbuf argument and return the
49693         result directly as a pointer.
49694         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49695         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49696         freeing scaled_offsets if mem_iconveha failed.
49697         * lib/unicase/u-casexfrm.h (FUNC): Update.
49698         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49699         * lib/vasnprintf.c (VASNPRINTF): Update.
49700         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49701         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49702         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49703         * NEWS: Mention the change.
49704
49705 2009-04-26  Bruno Haible  <bruno@clisp.org>
49706
49707         Avoid test failures on AIX and OSF/1.
49708         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49709         malloc(0).
49710         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49711         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49712         Likewise.
49713         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49714         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49715         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49716         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49717         * doc/posix-functions/malloc.texi: Document the portability problem
49718         related to malloc(0).
49719
49720 2009-04-26  Bruno Haible  <bruno@clisp.org>
49721
49722         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49723         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49724         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49725
49726 2009-04-25  Bruno Haible  <bruno@clisp.org>
49727
49728         Avoid link error when creating a namespace clean library.
49729         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49730         as macro with arguments if already defined as an alias.
49731         * lib/signbitf.c (gl_signbitf): Don't undefine.
49732         * lib/signbitd.c (gl_signbitd): Don't undefine.
49733         * lib/signbitl.c (gl_signbitl): Don't undefine.
49734
49735 2009-04-25  Jim Meyering  <meyering@redhat.com>
49736
49737         vc-list-files: fix another quoting bug
49738         * build-aux/vc-list-files: Avoid sed backslash expansion
49739         of pathological directory names.
49740
49741 2009-04-25  Eric Blake  <ebb9@byu.net>
49742
49743         vc-list-files: fix shell quoting error
49744         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49745         timestamp.
49746
49747 2009-04-25  Jim Meyering  <meyering@redhat.com>
49748
49749         vc-list-files: restore lost functionality with subdir argument
49750         * build-aux/vc-list-files: When given a non-"." sub-directory
49751         argument, substitute the $dir/ prefix back onto each resulting name.
49752         Otherwise, coreutils' root_tests check would fail.
49753
49754 2009-04-24  Eric Blake  <ebb9@byu.net>
49755
49756         vc-list-files: ignore git symlinks
49757         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49758         than ls-files, to ignore git symlinks.
49759
49760         maint.mk: import improvements from m4
49761         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49762         (move_if_change): Delete unused macro.
49763         (news-date-check, vc-diff-check): Support VPATH builds.
49764         (announcement): Likewise.  Split --bootstrap-tools list...
49765         (boostrap-tools): ...into separate list, which can be overridden
49766         in cfg.mk.
49767         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49768         requiring dependency on useless-if-before-free module.
49769         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49770         Support VPATH builds.
49771
49772 2009-04-24  Jim Meyering  <meyering@redhat.com>
49773
49774         maint.mk: remove coreutils-specific rules and variables
49775         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49776         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49777         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49778
49779         maint.mk: remove obsolete rule
49780         * top/maint.mk (rel-check): Remove rule.
49781         (WGET, WGETFLAGS): Remove now-unused variables.
49782
49783 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49784
49785         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49786         consistency.
49787
49788         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49789         '$(PATH_SEPARATOR)' instead of ':'.
49790
49791 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49792
49793         * lib/getopt1.c (main): Use 'const' for static array.
49794
49795 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49796
49797         * top/maint.mk: Sync with coreutils.
49798         * NEWS: Explain incompatibilities.
49799
49800 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49801             Bruno Haible  <bruno@clisp.org>
49802
49803         Fix cross-compilation results.
49804         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
49805         statement, as third argument of AC_TRY_RUN.
49806         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49807         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49808         Likewise.
49809         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49810         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49811         Likewise.
49812         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49813         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
49814         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
49815
49816 2009-04-20  Bruno Haible  <bruno@clisp.org>
49817
49818         Avoid test failure on mingw.
49819         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
49820
49821 2009-04-20  Bruno Haible  <bruno@clisp.org>
49822
49823         Avoid compilation error on mingw.
49824         * modules/localename-tests (Depends-on): Add locale.
49825
49826 2009-04-19  Bruno Haible  <bruno@clisp.org>
49827
49828         Support for building a shared library on Windows platforms.
49829         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
49830         (main): Test the presence of UNINORM_NFC here.
49831         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
49832         (main): Test the presence of UNINORM_NFD here.
49833         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
49834         (main): Test the presence of UNINORM_NFKC here.
49835         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
49836         (main): Test the presence of UNINORM_NFKD here.
49837
49838 2009-04-19  Bruno Haible  <bruno@clisp.org>
49839
49840         Avoid a compiler warning.
49841         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
49842         Change type of variable 'sequence'.
49843
49844 2009-04-19  Bruno Haible  <bruno@clisp.org>
49845
49846         * modules/configmake (Makefile.am): When the contents of configmake.h
49847         does not change, arrange to preserve its modification time.
49848
49849 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49850
49851         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49852         gettext domain.
49853
49854 2009-04-16  Jim Meyering  <meyering@redhat.com>
49855
49856         useless-if-before-free: improve conversion code
49857         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49858         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49859
49860 2009-04-14  Bruno Haible  <bruno@clisp.org>
49861
49862         * modules/fcntl (Depends-on): Add extensions.
49863         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49864
49865 2009-04-12  Ben Pfaff  <blp@gnu.org>
49866
49867         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49868         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49869
49870 2009-03-20  Ben Pfaff  <blp@gnu.org>
49871
49872         Make rename replace existing destinations on Windows.
49873         * m4/rename.m4: Add test for Mingw.
49874         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49875         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49876         * doc/posix-functions/rename.texi: Document.
49877
49878 2009-04-10  Bruno Haible  <bruno@clisp.org>
49879
49880         New include file "iconveh.h".
49881         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49882         * lib/striconveh.h: Include it.
49883         (enum iconv_ilseq_handler): Remove definition.
49884         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49885         striconveh.h.
49886         * lib/striconveha.c: Include striconveh.h.
49887         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49888         * modules/striconveh (Files): Add lib/iconveh.h.
49889         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49890         lib/striconveh.h.
49891
49892 2009-04-10  Bruno Haible  <bruno@clisp.org>
49893
49894         * lib/uniconv.h: Update comment.
49895
49896 2009-04-10  Bruno Haible  <bruno@clisp.org>
49897
49898         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49899         always.
49900         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49901         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49902         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49903         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49904         "unistring-notinline.h", so that the function gets defined always.
49905         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49906         * lib/unistr/u8-uctomb.c: Likewise.
49907         * lib/unistr/u16-mbtouc.c: Likewise.
49908         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49909         * lib/unistr/u16-uctomb.c: Likewise.
49910         * lib/unistr/u32-mbtouc.c: Likewise.
49911         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49912         * lib/unistr/u32-uctomb.c: Likewise.
49913
49914 2009-04-10  Bruno Haible  <bruno@clisp.org>
49915
49916         Mark 'utime' obsolete.
49917         * modules/utime (Status, Notice): New sections.
49918         Suggested by Jim Meyering.
49919
49920         Fix cross-compile guess for utime test.
49921         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49922         autoconf.
49923         * doc/posix-functions/utime.texi: Give more precisions.
49924         Reported by Jan <ipif@ymail.com>.
49925
49926 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49927
49928         filevercmp: correct today's change
49929         * lib/filevercmp.c: Also handle coreutils' test inputs.
49930         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49931
49932         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49933         for reporting it.
49934         * lib/filevercmp.c: Special handle for "", "." and "..".
49935         * tests/test-filevercmp.c: Enlarge the set suite.
49936
49937 2009-04-07  Jim Meyering  <meyering@redhat.com>
49938
49939         useless-if-before-free: show how to remove braced useless free, too
49940         * build-aux/useless-if-before-free: still only in a comment, though.
49941
49942 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49943
49944         maint.mk: import changes to syntax-check macros from coreutils
49945         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49946         Use them in the relevant macros.
49947
49948 2009-04-06  Bruno Haible  <bruno@clisp.org>
49949
49950         Fix unportable use of bit-fields.
49951         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49952         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49953         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49954
49955 2009-04-06  Bruno Haible  <bruno@clisp.org>
49956
49957         Avoid test failures on AIX and OSF/1.
49958         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49959         that malloc(0) = NULL.
49960         * tests/unicase/test-u8-tolower.c (check): Likewise.
49961         * tests/unicase/test-u8-totitle.c (check): Likewise.
49962         * tests/unicase/test-u8-toupper.c (check): Likewise.
49963         * tests/unicase/test-u16-casefold.c (check): Likewise.
49964         * tests/unicase/test-u16-tolower.c (check): Likewise.
49965         * tests/unicase/test-u16-totitle.c (check): Likewise.
49966         * tests/unicase/test-u16-toupper.c (check): Likewise.
49967         * tests/unicase/test-u32-casefold.c (check): Likewise.
49968         * tests/unicase/test-u32-tolower.c (check): Likewise.
49969         * tests/unicase/test-u32-totitle.c (check): Likewise.
49970         * tests/unicase/test-u32-toupper.c (check): Likewise.
49971         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49972         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49973         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49974         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49975         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49976         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49977         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49978         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49979         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49980         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49981         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49982         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49983
49984 2009-04-05  Bruno Haible  <bruno@clisp.org>
49985
49986         Work around an autoconf limitation.
49987         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49988         comment line if it would be longer than 3 KB.
49989
49990 2009-04-05  Bruno Haible  <bruno@clisp.org>
49991
49992         Avoid test failure with libiconv-1.13.
49993         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49994         of the expected test results.
49995
49996 2009-04-05  Bruno Haible  <bruno@clisp.org>
49997
49998         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49999         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50000         that it should be installed.
50001
50002 2009-04-05  Bruno Haible  <bruno@clisp.org>
50003
50004         * gnulib-tool: New option --copy-file.
50005         (func_usage): Document it.
50006         (func_dest_tmpfilename): Moved out of func_import.
50007         (func_add_file, func_update_file): New functions, extracted from
50008         func_import.
50009         (func_import): Update.
50010
50011 2009-04-05  Karl Berry  <karl@gnu.org>
50012
50013         * README: prominently mention gnulib-tool.
50014         Rearrange sections so getting the code is near the top.
50015
50016 2009-04-05  Bruno Haible  <bruno@clisp.org>
50017
50018         * lib/unicase.h: Mention u*_cmp2.
50019         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50020         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50021         * lib/unicase/ulc-casecmp.c: Likewise.
50022         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50023         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50024         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50025         unistr/u8-cmp.
50026         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50027         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50028         unistr/u16-cmp.
50029         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50030         unistr/u32-cmp.
50031
50032         * lib/uninorm.h: Mention u*_cmp2.
50033         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50034         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50035         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50036         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50037         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50038         unistr/u8-cmp.
50039         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50040         unistr/u16-cmp.
50041         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50042         unistr/u32-cmp.
50043
50044         New module 'unistr/u32-cmp2'.
50045         * lib/unistr/u32-cmp2.c: New file.
50046         * modules/unistr/u32-cmp2: New file.
50047
50048         New module 'unistr/u16-cmp2'.
50049         * lib/unistr/u16-cmp2.c: New file.
50050         * modules/unistr/u16-cmp2: New file.
50051
50052         New module 'unistr/u8-cmp2'.
50053         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50054         * lib/unistr/u8-cmp2.c: New file.
50055         * lib/unistr/u-cmp2.h: New file.
50056         * modules/unistr/u8-cmp2: New file.
50057
50058 2009-04-05  Bruno Haible  <bruno@clisp.org>
50059
50060         * lib/unictype.h (uc_property_is_valid): New macro.
50061         * tests/unictype/test-pr_byname.c (main): Use it.
50062
50063         * lib/unistr.h: Doc fixes.
50064         * lib/uniconv.h: Doc fixes.
50065         * lib/unictype.h: Doc fixes.
50066
50067 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50068
50069         Port coreutils 7.2 to Solaris 8.
50070
50071         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50072         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50073         for Solaris 8.  This is a bit of a hack, as it means it's the
50074         caller's responsibility to add -lnsl if needed, but most likely it
50075         won't be needed since only getaddrinfo uses this and getaddrinfo
50076         isn't needed on Solaris 8.
50077
50078         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50079         problem to Solaris 8 encountered with coreutils 7.2, which
50080         resulted in a message "fnmatch.c:292: warning: passing argument 4
50081         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50082         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50083
50084 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50085
50086         * m4/ld-version-script.m4: Add FIXME comment.
50087
50088 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50089
50090         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50091         SOVERSION variable.
50092
50093 2009-04-02  Bruno Haible  <bruno@clisp.org>
50094
50095         * Makefile (info, html, dvi, pdf): Combine the rules.
50096         Suggested by Jim Meyering.
50097
50098 2009-04-01  Bruno Haible  <bruno@clisp.org>
50099
50100         * Makefile (info, html, dvi, pdf): New targets.
50101         Reported by Reuben Thomas <rrt@sc3d.org>.
50102
50103 2009-04-01  Bruno Haible  <bruno@clisp.org>
50104
50105         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50106         can be put into PATH.
50107         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50108
50109 2009-04-01  Bruno Haible  <bruno@clisp.org>
50110
50111         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50112
50113 2009-04-01  Bruno Haible  <bruno@clisp.org>
50114
50115         Rename module 'visibility'.
50116         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50117         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50118         * doc/gnulib.texi: Update.
50119         * MODULES.html.sh (Misc): Update.
50120         * NEWS: Mention the change.
50121
50122 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50123
50124         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50125         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50126         Eric Blake <ebb9@byu.net> for review.
50127         * MODULES.html.sh: Add lib-msvc-compat.
50128         * doc/gnulib.texi: Link to new section.
50129         * m4/ld-output-def.m4: New file.
50130         * doc/ld-output-def.texi: New file.
50131
50132 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50133
50134         Rename ld-version-script to lib-symbol-versions.  Suggested by
50135         Bruno Haible <bruno@clisp.org>.
50136         * modules/ld-version-script: Renamed to lib-symbol-versions.
50137         * doc/ld-version-script.texi: Fix module name.
50138         * MODULES.html.sh: Add lib-symbol-versions.
50139
50140 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50141
50142         * modules/u64-tests: New file.
50143         * tests/test-u64.c: New file.
50144
50145 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50146
50147         * MODULES.html.sh: Mention u64.
50148         * modules/u64: New module.
50149         * modules/crypto/sha512: Depend on u64 module instead of providing
50150         u64.h.
50151
50152 2009-03-27  Eric Blake  <ebb9@byu.net>
50153
50154         test-strerror: make debugging EAI_SYSTEM easier
50155         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50156         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50157         failure was EAI_SYSTEM.
50158
50159 2009-03-25  Bruno Haible  <bruno@clisp.org>
50160
50161         Fix a problem with --enable-relocatable on Solaris 7.
50162         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50163         since 2008-02-24.
50164
50165 2009-03-25  Eric Blake  <ebb9@byu.net>
50166
50167         test-sockets: avoid gcc warning
50168         * tests/test-sockets.c (main): Silence compiler warning.
50169
50170 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50171
50172         New modules nproc, pthread, contributed by Glen Lenker.
50173
50174         * MODULES.html.sh: Add pthread, nproc.
50175         * lib/nproc.c: New file.
50176         * lib/nproc.h: New file.
50177         * lib/pthread.in.h: New file.
50178         * m4/pthread.m4: New file.
50179         * modules/nproc: New file.
50180         * modules/pthread: New file.
50181
50182 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50183
50184         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50185         New variable.
50186
50187 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50188
50189         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50190         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50191         * tests/test-filevercmp.c: Add tests for backup suffixes.
50192
50193 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50194
50195         * modules/stdlib (Depends-on): Add stdint, needed when defining
50196         struct random_data on, for example, HP-UX 10.20.  Reported by
50197         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50198
50199 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50200
50201         * lib/readline.c (readline): Call fflush on stdout after printing
50202         prompt.
50203
50204 2009-03-20  Bruno Haible  <bruno@clisp.org>
50205
50206         Remove dependency from 'close' module to -lws2_32 on native Windows.
50207         * lib/close-hook.h: New file.
50208         * lib/close-hook.c: New file.
50209         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50210         w32sock.h.
50211         (_gl_close_fd_maybe_socket): Remove function.
50212         (rpl_close): Invoke execute_all_close_hooks instead of
50213         _gl_close_fd_maybe_socket.
50214         * lib/sockets.c: Include close-hook.h, w32sock.h.
50215         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50216         (close_sockets_hook): New variable.
50217         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50218         (gl_sockets_cleanup): Unregister it.
50219         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50220         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50221         * modules/close-hook: New file.
50222         * modules/close (Files): Remove lib/w32sock.h.
50223         (Depends-on): Add close-hook.
50224         (Link): Remove section.
50225         * modules/sockets (Files): Add lib/w32sock.h.
50226         (Depends-on): Add close-hook.
50227         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50228         invocation.
50229         * NEWS: Mention that LIB_CLOSE is gone.
50230
50231 2009-03-23  Eric Blake  <ebb9@byu.net>
50232
50233         signal-tests: test previous patch
50234         * tests/test-signal.c: New file.
50235         * modules/signal-tests: Likewise.
50236
50237         signal.h: always support 'volatile sig_atomic_t'
50238         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50239         (gl_SIGNAL_H_DEFAULTS): Add a default.
50240         * modules/signal (Makefile.am): Substitute if needed.
50241         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50242         users can blindly add volatile.
50243         * doc/posix-headers/signal.texi (signal.h): Document it.
50244         Reported by Matthew Woehlke.
50245
50246 2009-03-23  Jim Meyering  <meyering@redhat.com>
50247
50248         pathmax: PATH_MAX: use pathconf only when available
50249         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50250         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50251         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50252         This avoids a link failure in a PSP cross-compilation environment
50253         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50254
50255         * lib/vasnprintf.c (divide): Fix typo in comment.
50256
50257 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50258
50259         * gnulib-tool (func_filter_filelist): Fix comment.
50260
50261 2009-03-20  Bruno Haible  <bruno@clisp.org>
50262
50263         Make sockets.h self-contained.
50264         * lib/sockets.c: Include sockets.h first.
50265         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50266
50267 2009-03-19  Eric Blake  <ebb9@byu.net>
50268
50269         doc: mention more functions added in cygwin 1.7.0
50270         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50271         addition.
50272         * doc/posix-functions/log2f.texi: Likewise.
50273
50274 2009-03-19  Jim Meyering  <meyering@redhat.com>
50275
50276         fsusage: avoid syntax error due to statement-before-declaration
50277         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50278         after all declarations.  Reported by Matthew Woehlke in
50279         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50280
50281 2009-03-18  Eric Blake  <ebb9@byu.net>
50282
50283         build-aux/compile: sync from automake
50284         * build-aux/compile: New file, from automake.
50285         * config/srclist.txt: Mention build-aux/compile.
50286
50287 2009-03-17  Bruno Haible  <bruno@clisp.org>
50288
50289         * lib/git-merge-changelog.c: Fix typo in comment.
50290         Reported by Reuben Thomas <rrt@sc3d.org>.
50291
50292 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50293
50294         * m4/regex.m4: update and improve help for
50295         --without-included-regex.
50296
50297 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50298
50299         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50300         failure on missing include files.
50301
50302 2009-03-17  Eric Blake  <ebb9@byu.net>
50303
50304         doc: mention more functions added in cygwin 1.7.0
50305         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50306         addition.
50307         * doc/posix-functions/fwscanf.texi: Likewise.
50308         * doc/posix-functions/swprintf.texi: Likewise.
50309         * doc/posix-functions/swscanf.texi: Likewise.
50310         * doc/posix-functions/vfwprintf.texi: Likewise.
50311         * doc/posix-functions/vfwscanf.texi: Likewise.
50312         * doc/posix-functions/vswprintf.texi: Likewise.
50313         * doc/posix-functions/vswscanf.texi: Likewise.
50314         * doc/posix-functions/vwprintf.texi: Likewise.
50315         * doc/posix-functions/vwscanf.texi: Likewise.
50316         * doc/posix-functions/wcscasecmp.texi: Likewise.
50317         * doc/posix-functions/wcsdup.texi: Likewise.
50318         * doc/posix-functions/wcsftime.texi: Likewise.
50319         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50320         * doc/posix-functions/wprintf.texi: Likewise.
50321         * doc/posix-functions/wscanf.texi: Likewise.
50322         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50323
50324 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50325
50326         maint.mk: really add $(AM_MAKEFLAGS)
50327         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50328         was inadvertently omitted in the last commit.
50329         Spotted by Bruno Haible.
50330
50331         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50332         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50333         $(AM_MAKEFLAGS)' rather than plain `make'.
50334
50335         gnulib-tool: execute $MAKE not make
50336         * gnulib-tool: Default $MAKE to 'make'.
50337         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50338         than make.  Initialize $MAKE in the do-autobuild script.
50339
50340         gnulib-tool: use $MAKE not make in generated files
50341         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50342         make, in generated files.  Initialize $MAKE in the do-autobuild
50343         script.
50344
50345         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50346
50347         GNUmakefile: disable parallelism only for multiple, recursive targets
50348         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50349         additions in the Makefile.
50350         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50351         by Automake.
50352         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50353         are listed on the command line and at least one of them is
50354         listed in $(ALL_RECURSIVE_TARGETS).
50355
50356 2009-03-14  Bruno Haible  <bruno@clisp.org>
50357
50358         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50359         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50360         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50361         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50362         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50363         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50364         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50365         unistr/u8-uctomb.
50366         * modules/unistr/u8-strchr (Depends-on): Likewise.
50367         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50368         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50369         unistr/u16-uctomb.
50370         * modules/unistr/u16-strchr (Depends-on): Likewise.
50371         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50372
50373 2009-03-12  Bruno Haible  <bruno@clisp.org>
50374
50375         Work around select() bug on Interix 3.5.
50376         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50377         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50378         * m4/select.m4: New file.
50379         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50380         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50381         * modules/select (Files): Add m4/select.m4.
50382         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50383         * modules/nanosleep (Depends-on): Add select.
50384         * modules/poll (Depends-on): Likewise.
50385         * doc/posix-functions/select.texi: Mention the Interix bug.
50386         Reported by Markus Duft <mduft@gentoo.org>.
50387
50388         * lib/select.c: Renamed from lib/winsock-select.c.
50389         * modules/select (Files): Add lib/select.c, remove
50390         lib/winsock-select.c.
50391         (configure.ac): Update.
50392
50393 2009-03-12  Jim Meyering  <meyering@redhat.com>
50394
50395         avoid gcc warnings about unused macro definitions
50396         * lib/readtokens.c (STREQ): Remove unused definition.
50397         * lib/xmalloc.c (SIZE_MAX): Likewise.
50398         * lib/openat-die.c (N_): Likewise.
50399         * lib/mountlist.c (SIZE_MAX): Remove definition.
50400         Instead, include <stdint.h>.
50401         * lib/readutmp.c: Likewise.
50402         * modules/readutmp (Depends-on): Add stdint.
50403         * modules/mountlist (Depends-on): Add stdint.
50404         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50405
50406 2009-03-10  Bruno Haible  <bruno@clisp.org>
50407
50408         Tests for module 'mbmemcasecoll'.
50409         * modules/mbmemcasecoll-tests: New file.
50410         * tests/test-mbmemcasecoll1.sh: New file.
50411         * tests/test-mbmemcasecoll2.sh: New file.
50412         * tests/test-mbmemcasecoll3.sh: New file.
50413         * tests/test-mbmemcasecoll.c: New file.
50414
50415         New module 'mbmemcasecoll'.
50416         * lib/mbmemcasecoll.h: New file.
50417         * lib/mbmemcasecoll.c: New file.
50418         * modules/mbmemcasecoll: New file.
50419
50420         * tests/test-mbmemcasecmp.h: New file, extracted from
50421         tests/test-mbmemcasecmp.c.
50422         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50423         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50424         (main): Update.
50425         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50426
50427 2009-03-09  Bruno Haible  <bruno@clisp.org>
50428
50429         Tests for module 'mbmemcasecmp'.
50430         * modules/mbmemcasecmp-tests: New file.
50431         * tests/test-mbmemcasecmp1.sh: New file.
50432         * tests/test-mbmemcasecmp2.sh: New file.
50433         * tests/test-mbmemcasecmp3.sh: New file.
50434         * tests/test-mbmemcasecmp.c: New file.
50435
50436         New module 'mbmemcasecmp'.
50437         * lib/mbmemcasecmp.h: New file.
50438         * lib/mbmemcasecmp.c: New file.
50439         * modules/mbmemcasecmp: New file.
50440
50441 2009-03-09  Bruno Haible  <bruno@clisp.org>
50442
50443         Tests for module 'unicase/ulc-casecoll'.
50444         * modules/unicase/ulc-casecoll-tests: New file.
50445         * tests/unicase/test-ulc-casecoll1.sh: New file.
50446         * tests/unicase/test-ulc-casecoll2.sh: New file.
50447         * tests/unicase/test-ulc-casecoll.c: New file.
50448
50449         New module 'unicase/ulc-casecoll'.
50450         * lib/unicase.h (ulc_casecoll): New declaration.
50451         * lib/unicase/ulc-casecoll.c: New file.
50452         * modules/unicase/ulc-casecoll: New file.
50453
50454         New module 'unicase/ulc-casexfrm'.
50455         * lib/unicase.h (ulc_casexfrm): New declaration.
50456         * lib/unicase/ulc-casexfrm.c: New file.
50457         * modules/unicase/ulc-casexfrm: New file.
50458
50459 2009-03-09  Bruno Haible  <bruno@clisp.org>
50460
50461         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50462         invocations.
50463
50464         * m4/mbscasecmp.m4: Remove file.
50465         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50466         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50467
50468         * m4/mbscasestr.m4: Remove file.
50469         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50470         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50471
50472         * m4/mbschr.m4: Remove file.
50473         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50474         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50475
50476         * m4/mbscspn.m4: Remove file.
50477         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50478         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50479
50480         * m4/mbslen.m4: Remove file.
50481         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50482         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50483
50484         * m4/mbsncasecmp.m4: Remove file.
50485         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50486         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50487
50488         * m4/mbsnlen.m4: Remove file.
50489         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50490         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50491
50492         * m4/mbspbrk.m4: Remove file.
50493         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50494         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50495
50496         * m4/mbspcasecmp.m4: Remove file.
50497         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50498         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50499
50500         * m4/mbsrchr.m4: Remove file.
50501         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50502         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50503
50504         * m4/mbssep.m4: Remove file.
50505         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50506         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50507
50508         * m4/mbsspn.m4: Remove file.
50509         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50510         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50511
50512         * m4/mbsstr.m4: Remove file.
50513         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50514         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50515
50516         * m4/mbstok_r.m4: Remove file.
50517         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50518         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50519
50520         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50521
50522         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50523         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50524
50525         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50526
50527 2009-03-08  Bruno Haible  <bruno@clisp.org>
50528
50529         Tests for module 'unicase/ulc-casecmp'.
50530         * modules/unicase/ulc-casecmp-tests: New file.
50531         * tests/unicase/test-ulc-casecmp1.sh: New file.
50532         * tests/unicase/test-ulc-casecmp2.sh: New file.
50533         * tests/unicase/test-ulc-casecmp.c: New file.
50534
50535         New module 'unicase/ulc-casecmp'.
50536         * lib/unicase.h (ulc_casecmp): New declaration.
50537         * lib/unicase/ulc-casecmp.c: New file.
50538         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50539         'const SRC_UNIT *'.
50540         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50541         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50542         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50543         * modules/unicase/ulc-casecmp: New file.
50544
50545         Tests for module 'unicase/u32-is-cased'.
50546         * modules/unicase/u32-is-cased-tests: New file.
50547         * tests/unicase/test-u32-is-cased.c: New file.
50548
50549         Tests for module 'unicase/u16-is-cased'.
50550         * modules/unicase/u16-is-cased-tests: New file.
50551         * tests/unicase/test-u16-is-cased.c: New file.
50552
50553         Tests for module 'unicase/u8-is-cased'.
50554         * modules/unicase/u8-is-cased-tests: New file.
50555         * tests/unicase/test-u8-is-cased.c: New file.
50556         * tests/unicase/test-is-cased.h: New file.
50557
50558         New module 'unicase/u32-is-cased'.
50559         * lib/unicase/u32-is-cased.c: New file.
50560         * modules/unicase/u32-is-cased: New file.
50561
50562         New module 'unicase/u16-is-cased'.
50563         * lib/unicase/u16-is-cased.c: New file.
50564         * modules/unicase/u16-is-cased: New file.
50565
50566         New module 'unicase/u8-is-cased'.
50567         * lib/unicase/u8-is-cased.c: New file.
50568         * lib/unicase/u-is-cased.h: New file.
50569         * modules/unicase/u8-is-cased: New file.
50570
50571         Tests for module 'unicase/u32-is-casefolded'.
50572         * modules/unicase/u32-is-casefolded-tests: New file.
50573         * tests/unicase/test-u32-is-casefolded.c: New file.
50574
50575         Tests for module 'unicase/u16-is-casefolded'.
50576         * modules/unicase/u16-is-casefolded-tests: New file.
50577         * tests/unicase/test-u16-is-casefolded.c: New file.
50578
50579         Tests for module 'unicase/u8-is-casefolded'.
50580         * modules/unicase/u8-is-casefolded-tests: New file.
50581         * tests/unicase/test-u8-is-casefolded.c: New file.
50582         * tests/unicase/test-is-casefolded.h: New file.
50583
50584         New module 'unicase/u32-is-casefolded'.
50585         * lib/unicase/u32-is-casefolded.c: New file.
50586         * modules/unicase/u32-is-casefolded: New file.
50587
50588         New module 'unicase/u16-is-casefolded'.
50589         * lib/unicase/u16-is-casefolded.c: New file.
50590         * modules/unicase/u16-is-casefolded: New file.
50591
50592         New module 'unicase/u8-is-casefolded'.
50593         * lib/unicase/u8-is-casefolded.c: New file.
50594         * modules/unicase/u8-is-casefolded: New file.
50595
50596         Tests for module 'unicase/u32-is-titlecase'.
50597         * modules/unicase/u32-is-titlecase-tests: New file.
50598         * tests/unicase/test-u32-is-titlecase.c: New file.
50599
50600         Tests for module 'unicase/u16-is-titlecase'.
50601         * modules/unicase/u16-is-titlecase-tests: New file.
50602         * tests/unicase/test-u16-is-titlecase.c: New file.
50603
50604         Tests for module 'unicase/u8-is-titlecase'.
50605         * modules/unicase/u8-is-titlecase-tests: New file.
50606         * tests/unicase/test-u8-is-titlecase.c: New file.
50607         * tests/unicase/test-is-titlecase.h: New file.
50608
50609         New module 'unicase/u32-is-titlecase'.
50610         * lib/unicase/u32-is-titlecase.c: New file.
50611         * modules/unicase/u32-is-titlecase: New file.
50612
50613         New module 'unicase/u16-is-titlecase'.
50614         * lib/unicase/u16-is-titlecase.c: New file.
50615         * modules/unicase/u16-is-titlecase: New file.
50616
50617         New module 'unicase/u8-is-titlecase'.
50618         * lib/unicase/u8-is-titlecase.c: New file.
50619         * modules/unicase/u8-is-titlecase: New file.
50620
50621         Tests for module 'unicase/u32-is-lowercase'.
50622         * modules/unicase/u32-is-lowercase-tests: New file.
50623         * tests/unicase/test-u32-is-lowercase.c: New file.
50624
50625         Tests for module 'unicase/u16-is-lowercase'.
50626         * modules/unicase/u16-is-lowercase-tests: New file.
50627         * tests/unicase/test-u16-is-lowercase.c: New file.
50628
50629         Tests for module 'unicase/u8-is-lowercase'.
50630         * modules/unicase/u8-is-lowercase-tests: New file.
50631         * tests/unicase/test-u8-is-lowercase.c: New file.
50632         * tests/unicase/test-is-lowercase.h: New file.
50633
50634         New module 'unicase/u32-is-lowercase'.
50635         * lib/unicase/u32-is-lowercase.c: New file.
50636         * modules/unicase/u32-is-lowercase: New file.
50637
50638         New module 'unicase/u16-is-lowercase'.
50639         * lib/unicase/u16-is-lowercase.c: New file.
50640         * modules/unicase/u16-is-lowercase: New file.
50641
50642         New module 'unicase/u8-is-lowercase'.
50643         * lib/unicase/u8-is-lowercase.c: New file.
50644         * modules/unicase/u8-is-lowercase: New file.
50645
50646         Tests for module 'unicase/u32-is-uppercase'.
50647         * modules/unicase/u32-is-uppercase-tests: New file.
50648         * tests/unicase/test-u32-is-uppercase.c: New file.
50649
50650         Tests for module 'unicase/u16-is-uppercase'.
50651         * modules/unicase/u16-is-uppercase-tests: New file.
50652         * tests/unicase/test-u16-is-uppercase.c: New file.
50653
50654         Tests for module 'unicase/u8-is-uppercase'.
50655         * modules/unicase/u8-is-uppercase-tests: New file.
50656         * tests/unicase/test-u8-is-uppercase.c: New file.
50657         * tests/unicase/test-is-uppercase.h: New file.
50658
50659         New module 'unicase/u32-is-uppercase'.
50660         * lib/unicase/u32-is-uppercase.c: New file.
50661         * modules/unicase/u32-is-uppercase: New file.
50662
50663         New module 'unicase/u16-is-uppercase'.
50664         * lib/unicase/u16-is-uppercase.c: New file.
50665         * modules/unicase/u16-is-uppercase: New file.
50666
50667         New module 'unicase/u8-is-uppercase'.
50668         * lib/unicase/u8-is-uppercase.c: New file.
50669         * modules/unicase/u8-is-uppercase: New file.
50670
50671         New module 'unicase/u32-is-invariant'.
50672         * lib/unicase/u32-is-invariant.c: New file.
50673         * modules/unicase/u32-is-invariant: New file.
50674
50675         New module 'unicase/u16-is-invariant'.
50676         * lib/unicase/u16-is-invariant.c: New file.
50677         * modules/unicase/u16-is-invariant: New file.
50678
50679         New module 'unicase/u8-is-invariant'.
50680         * lib/unicase/u8-is-invariant.c: New file.
50681         * lib/unicase/invariant.h: New file.
50682         * lib/unicase/u-is-invariant.h: New file.
50683         * modules/unicase/u8-is-invariant: New file.
50684
50685         Tests for module 'unicase/u32-casecoll'.
50686         * modules/unicase/u32-casecoll-tests: New file.
50687         * tests/unicase/test-u32-casecoll.c: New file.
50688
50689         Tests for module 'unicase/u16-casecoll'.
50690         * modules/unicase/u16-casecoll-tests: New file.
50691         * tests/unicase/test-u16-casecoll.c: New file.
50692
50693         Tests for module 'unicase/u8-casecoll'.
50694         * modules/unicase/u8-casecoll-tests: New file.
50695         * tests/unicase/test-u8-casecoll.c: New file.
50696
50697         New module 'unicase/u32-casecoll'.
50698         * lib/unicase/u32-casecoll.c: New file.
50699         * modules/unicase/u32-casecoll: New file.
50700
50701         New module 'unicase/u16-casecoll'.
50702         * lib/unicase/u16-casecoll.c: New file.
50703         * modules/unicase/u16-casecoll: New file.
50704
50705         New module 'unicase/u8-casecoll'.
50706         * lib/unicase/u8-casecoll.c: New file.
50707         * lib/unicase/u-casecoll.h: New file.
50708         * modules/unicase/u8-casecoll: New file.
50709
50710         New module 'unicase/u32-casexfrm'.
50711         * lib/unicase/u32-casexfrm.c: New file.
50712         * modules/unicase/u32-casexfrm: New file.
50713
50714         New module 'unicase/u16-casexfrm'.
50715         * lib/unicase/u16-casexfrm.c: New file.
50716         * modules/unicase/u16-casexfrm: New file.
50717
50718         New module 'unicase/u8-casexfrm'.
50719         * lib/unicase/u8-casexfrm.c: New file.
50720         * lib/unicase/u-casexfrm.h: New file.
50721         * modules/unicase/u8-casexfrm: New file.
50722
50723         Tests for module 'unicase/u32-casecmp'.
50724         * modules/unicase/u32-casecmp-tests: New file.
50725         * tests/unicase/test-u32-casecmp.c: New file.
50726
50727         Tests for module 'unicase/u16-casecmp'.
50728         * modules/unicase/u16-casecmp-tests: New file.
50729         * tests/unicase/test-u16-casecmp.c: New file.
50730
50731         Tests for module 'unicase/u8-casecmp'.
50732         * modules/unicase/u8-casecmp-tests: New file.
50733         * tests/unicase/test-u8-casecmp.c: New file.
50734         * tests/unicase/test-casecmp.h: New file.
50735
50736         New module 'unicase/u32-casecmp'.
50737         * lib/unicase/u32-casecmp.c: New file.
50738         * modules/unicase/u32-casecmp: New file.
50739
50740         New module 'unicase/u16-casecmp'.
50741         * lib/unicase/u16-casecmp.c: New file.
50742         * modules/unicase/u16-casecmp: New file.
50743
50744         New module 'unicase/u8-casecmp'.
50745         * lib/unicase/u8-casecmp.c: New file.
50746         * lib/unicase/u-casecmp.h: New file.
50747         * modules/unicase/u8-casecmp: New file.
50748
50749         Tests for module 'unicase/u32-casefold'.
50750         * modules/unicase/u32-casefold-tests: New file.
50751         * tests/unicase/test-u32-casefold.c: New file.
50752
50753         Tests for module 'unicase/u16-casefold'.
50754         * modules/unicase/u16-casefold-tests: New file.
50755         * tests/unicase/test-u16-casefold.c: New file.
50756
50757         Tests for module 'unicase/u8-casefold'.
50758         * modules/unicase/u8-casefold-tests: New file.
50759         * tests/unicase/test-u8-casefold.c: New file.
50760
50761         New module 'unicase/u32-casefold'.
50762         * lib/unicase/u32-casefold.c: New file.
50763         * modules/unicase/u32-casefold: New file.
50764
50765         New module 'unicase/u16-casefold'.
50766         * lib/unicase/u16-casefold.c: New file.
50767         * modules/unicase/u16-casefold: New file.
50768
50769         New module 'unicase/u8-casefold'.
50770         * lib/unicase/u8-casefold.c: New file.
50771         * lib/unicase/u-casefold.h: New file.
50772         * modules/unicase/u8-casefold: New file.
50773
50774         New module 'unicase/tocasefold'.
50775         * lib/unicase/casefold.h: New file.
50776         * lib/unicase/tocasefold.c: New file.
50777         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50778         * modules/unicase/tocasefold: New file.
50779
50780         Tests for module 'unicase/u32-totitle'.
50781         * modules/unicase/u32-totitle-tests: New file.
50782         * tests/unicase/test-u32-totitle.c: New file.
50783
50784         Tests for module 'unicase/u16-totitle'.
50785         * modules/unicase/u16-totitle-tests: New file.
50786         * tests/unicase/test-u16-totitle.c: New file.
50787
50788         Tests for module 'unicase/u8-totitle'.
50789         * modules/unicase/u8-totitle-tests: New file.
50790         * tests/unicase/test-u8-totitle.c: New file.
50791
50792         New module 'unicase/u32-totitle'.
50793         * lib/unicase/u32-totitle.c: New file.
50794         * modules/unicase/u32-totitle: New file.
50795
50796         New module 'unicase/u16-totitle'.
50797         * lib/unicase/u16-totitle.c: New file.
50798         * modules/unicase/u16-totitle: New file.
50799
50800         New module 'unicase/u8-totitle'.
50801         * lib/unicase/u8-totitle.c: New file.
50802         * lib/unicase/u-totitle.h: New file.
50803         * modules/unicase/u8-totitle: New file.
50804
50805         Tests for module 'unicase/u32-tolower'.
50806         * modules/unicase/u32-tolower-tests: New file.
50807         * tests/unicase/test-u32-tolower.c: New file.
50808
50809         Tests for module 'unicase/u16-tolower'.
50810         * modules/unicase/u16-tolower-tests: New file.
50811         * tests/unicase/test-u16-tolower.c: New file.
50812
50813         Tests for module 'unicase/u8-tolower'.
50814         * modules/unicase/u8-tolower-tests: New file.
50815         * tests/unicase/test-u8-tolower.c: New file.
50816
50817         New module 'unicase/u32-tolower'.
50818         * lib/unicase/u32-tolower.c: New file.
50819         * modules/unicase/u32-tolower: New file.
50820
50821         New module 'unicase/u16-tolower'.
50822         * lib/unicase/u16-tolower.c: New file.
50823         * modules/unicase/u16-tolower: New file.
50824
50825         New module 'unicase/u8-tolower'.
50826         * lib/unicase/u8-tolower.c: New file.
50827         * modules/unicase/u8-tolower: New file.
50828
50829         Tests for module 'unicase/u32-toupper'.
50830         * modules/unicase/u32-toupper-tests: New file.
50831         * tests/unicase/test-u32-toupper.c: New file.
50832
50833         Tests for module 'unicase/u16-toupper'.
50834         * modules/unicase/u16-toupper-tests: New file.
50835         * tests/unicase/test-u16-toupper.c: New file.
50836
50837         Tests for module 'unicase/u8-toupper'.
50838         * modules/unicase/u8-toupper-tests: New file.
50839         * tests/unicase/test-u8-toupper.c: New file.
50840
50841         New module 'unicase/u32-toupper'.
50842         * lib/unicase/u32-toupper.c: New file.
50843         * modules/unicase/u32-toupper: New file.
50844
50845         New module 'unicase/u16-toupper'.
50846         * lib/unicase/u16-toupper.c: New file.
50847         * modules/unicase/u16-toupper: New file.
50848
50849         New module 'unicase/u8-toupper'.
50850         * lib/unicase/u8-toupper.c: New file.
50851         * modules/unicase/u8-toupper: New file.
50852
50853         New module 'unicase/u32-casemap'.
50854         * lib/unicase/u32-casemap.c: New file.
50855         * modules/unicase/u32-casemap: New file.
50856
50857         New module 'unicase/u16-casemap'.
50858         * lib/unicase/u16-casemap.c: New file.
50859         * modules/unicase/u16-casemap: New file.
50860
50861         New module 'unicase/u8-casemap'.
50862         * lib/unicase/unicasemap.h: New file.
50863         * lib/unicase/u8-casemap.c: New file.
50864         * lib/unicase/u-casemap.h: New file.
50865         * modules/unicase/u8-casemap: New file.
50866
50867         New module 'unicase/special-casing'.
50868         * lib/unicase/special-casing.h: New file.
50869         * lib/unicase/special-casing.c: New file.
50870         * lib/unicase/special-casing-table.gperf: New file, generated by
50871         gen-uni-tables.c.
50872         * modules/unicase/special-casing: New file.
50873
50874         Tests for module 'unicase/locale-language'.
50875         * modules/unicase/locale-language-tests: New file.
50876         * tests/unicase/test-locale-language.sh: New file.
50877         * tests/unicase/test-locale-language.c: New file.
50878
50879         New module 'unicase/locale-language'.
50880         * lib/unicase/locale-language.c: New file.
50881         * lib/unicase/locale-languages.gperf: New file.
50882         * modules/unicase/locale-language: New file.
50883
50884         Generate more tables for case conversion and case folding.
50885         * lib/gen-uni-tables.c (SCC_*): New enum items.
50886         (struct special_casing_rule): New type.
50887         (casing_rules, num_casing_rules, allocated_casing_rules): New
50888         variables.
50889         (add_casing_rule, fill_casing_rules): New functions.
50890         (struct casefold_rule): New type.
50891         (casefolding_rules, num_casefolding_rules,
50892         allocated_casefolding_rules): New variables.
50893         (fill_casefolding_rules): New function.
50894         (unicode_casefold): New variable.
50895         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50896         sort_casing_rules, output_casing_rules): New functions.
50897         (main): Accept to more arguments: SpecialCasing.txt and
50898         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50899         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50900         Output mapping for casefolding.
50901
50902         * lib/unicase.h: Include stdbool.h, uninorm.h.
50903         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50904         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50905         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50906         arguments.
50907         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50908         resultp arguments.
50909         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50910         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50911         resultp arguments.
50912         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50913         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50914         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50915         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50916         declarations.
50917         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50918
50919 2009-03-08  Bruno Haible  <bruno@clisp.org>
50920
50921         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50922         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50923         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50924         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50925
50926 2009-03-07  Bruno Haible  <bruno@clisp.org>
50927
50928         Adjust u*_normcmp, u*_normcoll API.
50929         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50930         u16_normcoll, u32_normcoll): Change failure conventions.
50931         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50932         errno and return -1.
50933         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50934
50935 2009-03-07  Bruno Haible  <bruno@clisp.org>
50936
50937         Tests for module 'uninorm/u32-normcoll'.
50938         * modules/uninorm/u32-normcoll-tests: New file.
50939         * tests/uninorm/test-u32-normcoll.c: New file.
50940
50941         Tests for module 'uninorm/u16-normcoll'.
50942         * modules/uninorm/u16-normcoll-tests: New file.
50943         * tests/uninorm/test-u16-normcoll.c: New file.
50944
50945         Tests for module 'uninorm/u8-normcoll'.
50946         * modules/uninorm/u8-normcoll-tests: New file.
50947         * tests/uninorm/test-u8-normcoll.c: New file.
50948
50949 2009-03-07  Bruno Haible  <bruno@clisp.org>
50950
50951         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50952         tests/uninorm/test-u32-normcmp.c.
50953         * tests/uninorm/test-u32-normcmp.c: Include it.
50954         (test_nonascii): New function, extracted from main. Add some more
50955         tests.
50956         (main): Invoke test_ascii and test_nonascii.
50957         * modules/uninorm/u32-normcmp-tests (Files): Add
50958         tests/uninorm/test-u32-normcmp.h.
50959         (Depends-on): Remove uninorm/u32-normcmp.
50960
50961         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50962         tests/uninorm/test-u16-normcmp.c.
50963         * tests/uninorm/test-u16-normcmp.c: Include it.
50964         (test_nonascii): New function, extracted from main. Add some more
50965         tests.
50966         (main): Invoke test_ascii and test_nonascii.
50967         * modules/uninorm/u16-normcmp-tests (Files): Add
50968         tests/uninorm/test-u16-normcmp.h.
50969         (Depends-on): Remove uninorm/u16-normcmp.
50970
50971         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50972         tests/uninorm/test-u8-normcmp.c.
50973         * tests/uninorm/test-u8-normcmp.c: Include it.
50974         (test_nonascii): New function, extracted from main. Add some more
50975         tests.
50976         (main): Invoke test_ascii and test_nonascii.
50977         * modules/uninorm/u8-normcmp-tests (Files): Add
50978         tests/uninorm/test-u8-normcmp.h.
50979         (Depends-on): Remove uninorm/u8-normcmp.
50980
50981 2009-03-07  Bruno Haible  <bruno@clisp.org>
50982
50983         New module 'uninorm/u32-normcoll'.
50984         * lib/uninorm/u32-normcoll.c: New file.
50985         * modules/uninorm/u32-normcoll: New file.
50986
50987         New module 'uninorm/u16-normcoll'.
50988         * lib/uninorm/u16-normcoll.c: New file.
50989         * modules/uninorm/u16-normcoll: New file.
50990
50991         New module 'uninorm/u8-normcoll'.
50992         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50993         declarations.
50994         * lib/uninorm/u8-normcoll.c: New file.
50995         * lib/uninorm/u-normcoll.h: New file.
50996         * modules/uninorm/u8-normcoll: New file.
50997
50998         New module 'uninorm/u32-normxfrm'.
50999         * lib/uninorm/u32-normxfrm.c: New file.
51000         * modules/uninorm/u32-normxfrm: New file.
51001
51002         New module 'uninorm/u16-normxfrm'.
51003         * lib/uninorm/u16-normxfrm.c: New file.
51004         * modules/uninorm/u16-normxfrm: New file.
51005
51006         New module 'uninorm/u8-normxfrm'.
51007         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51008         declarations.
51009         * lib/uninorm/u8-normxfrm.c: New file.
51010         * lib/uninorm/u-normxfrm.h: New file.
51011         * modules/uninorm/u8-normxfrm: New file.
51012
51013 2009-03-07  Bruno Haible  <bruno@clisp.org>
51014
51015         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51016         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51017         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51018
51019 2009-03-07  Bruno Haible  <bruno@clisp.org>
51020
51021         New module 'memxfrm'.
51022         * lib/memxfrm.h: New file.
51023         * lib/memxfrm.c: New file.
51024         * modules/memxfrm: New file.
51025
51026 2009-03-07  Bruno Haible  <bruno@clisp.org>
51027
51028         New module 'memcmp2'.
51029         * lib/memcmp2.h: New file.
51030         * lib/memcmp2.c: New file.
51031         * modules/memcmp2: New file.
51032
51033 2009-03-07  Bruno Haible  <bruno@clisp.org>
51034
51035         Tests for module 'uninorm/decomposing-form'.
51036         * modules/uninorm/decomposing-form-tests: New file.
51037         * tests/uninorm/test-decomposing-form.c: New file.
51038
51039         New module 'uninorm/decomposing-form'.
51040         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51041         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51042         Add 'decomposing_variant' field.
51043         * lib/uninorm/decomposing-form.c: New file.
51044         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51045         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51046         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51047         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51048         * modules/uninorm/decomposing-form: New file.
51049         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51050         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51051
51052 2009-03-07  Bruno Haible  <bruno@clisp.org>
51053
51054         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51055         strings.
51056
51057 2009-03-06  Bruno Haible  <bruno@clisp.org>
51058
51059         Tests for module 'uninorm/u32-normcmp'.
51060         * tests/uninorm/test-u32-normcmp.c: New file.
51061         * modules/uninorm/u32-normcmp-tests: New file.
51062
51063         Tests for module 'uninorm/u16-normcmp'.
51064         * tests/uninorm/test-u16-normcmp.c: New file.
51065         * modules/uninorm/u16-normcmp-tests: New file.
51066
51067         Tests for module 'uninorm/u8-normcmp'.
51068         * tests/uninorm/test-u8-normcmp.c: New file.
51069         * modules/uninorm/u8-normcmp-tests: New file.
51070
51071         New module 'uninorm/u32-normcmp'.
51072         * lib/uninorm/u32-normcmp.c: New file.
51073         * modules/uninorm/u32-normcmp: New file.
51074
51075         New module 'uninorm/u16-normcmp'.
51076         * lib/uninorm/u16-normcmp.c: New file.
51077         * modules/uninorm/u16-normcmp: New file.
51078
51079         New module 'uninorm/u8-normcmp'.
51080         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51081         declarations.
51082         * lib/uninorm/u8-normcmp.c: New file.
51083         * lib/uninorm/u-normcmp.h: New file.
51084         * modules/uninorm/u8-normcmp: New file.
51085
51086 2009-03-06  Bruno Haible  <bruno@clisp.org>
51087
51088         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51089         Reported by Eric Blake.
51090
51091 2009-03-06  Eric Blake  <ebb9@byu.net>
51092             Bruno Haible  <bruno@clisp.org>
51093
51094         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51095         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51096         condition.
51097         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51098         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51099         condition.
51100         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51101
51102 2009-03-06  Eric Blake  <ebb9@byu.net>
51103
51104         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51105         to avoid compiler warnings.
51106         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51107
51108 2009-03-05  Bruno Haible  <bruno@clisp.org>
51109
51110         * tests/test-ftell.c (main): Disable test beyond end of file on
51111         FreeMiNT.
51112         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51113
51114 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51115
51116         * lib/filevercmp.c: Move hidden files up in ordering.
51117         * tests/test-filevercmp.c: Add tests for hidden files.
51118
51119 2009-03-04  Bruno Haible  <bruno@clisp.org>
51120
51121         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51122         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51123         AM_CFLAGS.
51124         Reported by Simon Josefsson.
51125
51126 2009-03-03  Bruno Haible  <bruno@clisp.org>
51127
51128         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51129         Reported by Simon Josefsson.
51130
51131         * doc/ld-version-script.texi: Update node reference.
51132
51133 2009-03-03  Bruno Haible  <bruno@clisp.org>
51134
51135         * modules/visibility (License): Change to 'unlimited'.
51136         Suggested by Simon Josefsson.
51137
51138 2009-03-03  Jim Meyering  <meyering@redhat.com>
51139
51140         unlinkdir: cannot_unlink_dir may modify process state
51141         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51142         it's neither thread-safe nor appropriate for use in a library.
51143
51144 2009-03-03  Eric Blake  <ebb9@byu.net>
51145
51146         test-closein: silence test under Darwin
51147         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51148         care if it dies from EPIPE or EBADF.
51149
51150 2009-03-03  Bruno Haible  <bruno@clisp.org>
51151
51152         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51153         earlier.
51154         * doc/visibility.texi: Fix @node and @section.
51155
51156 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51157
51158         * doc/gnulib.texi: Link to sections for ld version script and
51159         visibility.
51160         * doc/visibility.texi: Add @node and @section.
51161         * modules/ld-version-script: New module.
51162         * m4/ld-version-script.m4: New file.
51163         * doc/ld-version-script.texi: New file.
51164
51165 2009-03-02  David Lutterkort  <lutter@redhat.com>
51166
51167         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51168         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51169
51170 2009-03-02  Bruno Haible  <bruno@clisp.org>
51171
51172         * doc/visibility.texi: Mention libtool's -export-symbols option.
51173
51174 2009-03-02  Jim Meyering  <meyering@redhat.com>
51175
51176         announce-gen: new option: --no-print-checksums
51177         * build-aux/announce-gen (usage): Describe it.
51178         (print_checksums): Print a newline here, not in the [*] footnote.
51179         (main): Honor it.
51180
51181 2009-03-01  Bruno Haible  <bruno@clisp.org>
51182
51183         Use socklen_t in the native Windows replacements prototypes.
51184         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51185         instead of 'int'.
51186         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51187         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51188         * modules/getsockopt (Depends-on): Add socklen.
51189         * modules/setsockopt (Depends-on): Add socklen.
51190
51191 2009-03-01  Bruno Haible  <bruno@clisp.org>
51192
51193         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51194         least 4.2.
51195
51196 2009-03-01  Eric Blake  <ebb9@byu.net>
51197             Bruno Haible  <bruno@clisp.org>
51198
51199         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51200         error messages.
51201         * lib/wait-process.c (wait_subprocess): Omit error message about
51202         deadly signal sent to the child of termsigp != NULL.
51203
51204 2009-03-01  Eric Blake  <ebb9@byu.net>
51205
51206         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51207
51208 2009-03-01  Bruno Haible  <bruno@clisp.org>
51209
51210         Avoid a gcc warning.
51211         * tests/test-sched.c (b): Make global.
51212         Reported by Eric Blake.
51213
51214 2009-01-19  Martin Lambers  <marlam@marlam.de>
51215
51216         Provide POSIX semantics for socket timeout options on W32.
51217         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51218         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51219         * modules/setsockopt: Depend on sys_time module for struct timeval.
51220         * modules/getsockopt: Depend on sys_time module for struct timeval.
51221
51222 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51223
51224         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51225         __USE_GNU, for consistency with netdb.in.h.
51226         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51227
51228 2009-03-01  Bruno Haible  <bruno@clisp.org>
51229
51230         More support for FreeMiNT.
51231         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51232         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51233
51234 2009-03-01  Bruno Haible  <bruno@clisp.org>
51235
51236         More support for FreeMiNT.
51237         * lib/fpurge.c (fpurge): Correct last commit.
51238         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51239
51240 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51241
51242         Fix unportable awk script in vc-list-files.
51243         * build-aux/vc-list-files: In the replacement awk script, use
51244         substr with a second argument of 1, not zero.
51245         Report by Simon Josefsson.
51246
51247 2009-02-28  Bruno Haible  <bruno@clisp.org>
51248
51249         More support for FreeMiNT.
51250         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51251         to FreeMiNT today.
51252         * lib/fwriting.c (fwriting): Likewise.
51253         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51254
51255 2009-02-28  Bruno Haible  <bruno@clisp.org>
51256
51257         * tests/test-freadseek.c (main): Disable test beyond end of file on
51258         FreeMiNT.
51259         * tests/test-ftello.c (main): Likewise.
51260         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51261
51262 2009-02-28  Bruno Haible  <bruno@clisp.org>
51263
51264         Add tentative support for FreeMiNT.
51265         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51266         * lib/fpurge.c (fpurge): Likewise.
51267         * lib/freadable.c (freadable): Likewise.
51268         * lib/freading.c (freading): Likewise.
51269         * lib/freadptr.c (freadptr): Likewise.
51270         * lib/freadseek.c (freadptrinc): Likewise.
51271         * lib/fseeko.c (rpl_fseeko): Likewise.
51272         * lib/fseterr.c (fseterr): Likewise.
51273         * lib/fwritable.c (fwritable): Likewise.
51274         * lib/fwriting.c (fwriting): Likewise.
51275         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51276         Hourihane.
51277         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51278
51279 2009-02-28  Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51282         SIGCHLD.
51283         Reported by Jim Meyering.
51284
51285 2009-02-28  Bruno Haible  <bruno@clisp.org>
51286
51287         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51288         Mention the results of these tests on various platforms.
51289         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51290         order.
51291         * doc/posix-functions/printf.texi: Likewise.
51292         * doc/posix-functions/snprintf.texi: Likewise.
51293         * doc/posix-functions/sprintf.texi: Likewise.
51294         * doc/posix-functions/vfprintf.texi: Likewise.
51295         * doc/posix-functions/vprintf.texi: Likewise.
51296         * doc/posix-functions/vsnprintf.texi: Likewise.
51297         * doc/posix-functions/vsprintf.texi: Likewise.
51298         * doc/glibc-functions/obstack_printf.texi: Likewise.
51299         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51300
51301 2009-02-28  Bruno Haible  <bruno@clisp.org>
51302
51303         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51304         Reported by Loïc Minier <lool@dooz.org>.
51305
51306 2009-02-27  Bruno Haible  <bruno@clisp.org>
51307
51308         * gnulib-tool (func_import): Make the sed expression used to create the
51309         sed script for updating the .gitignore file POSIX compliant.
51310         Reported by Eric Blake.
51311
51312 2009-02-27  Bruno Haible  <bruno@clisp.org>
51313
51314         * gnulib-tool (sed): Don't alias as "sed --posix".
51315         Reported by Eric Blake.
51316
51317 2009-02-27  Bruno Haible  <bruno@clisp.org>
51318
51319         Avoid test link errors.
51320         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51321         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51322         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51323         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51325
51326 2009-02-27  Bruno Haible  <bruno@clisp.org>
51327
51328         Avoid spurious "(cached)" in configure output.
51329         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51330         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51331         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51332         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51333         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51334         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51335         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51336         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51337         Reported by Eric Blake.
51338
51339 2009-02-27  Eric Blake  <ebb9@byu.net>
51340
51341         printf: fix regression in previous patch
51342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51343
51344 2009-02-27  Bruno Haible  <bruno@clisp.org>
51345
51346         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51347         value.
51348         * lib/stdint.in.h: Likewise.
51349         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51350
51351 2009-02-27  Eric Blake  <ebb9@byu.net>
51352
51353         doc: mention more functions added in cygwin 1.7.0
51354         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51355         addition.
51356         * doc/posix-functions/open_wmemstream.texi: Likewise.
51357         * doc/posix-functions/wcsnlen.texi: Likewise.
51358         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51359         * doc/posix-functions/wcstod.texi: Likewise.
51360         * doc/posix-functions/wcstof.texi: Likewise.
51361         * doc/posix-functions/wcstoimax.texi: Likewise.
51362         * doc/posix-functions/wcstok.texi: Likewise.
51363         * doc/posix-functions/wcstoumax.texi: Likewise.
51364
51365         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51366         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51367         * doc/posix-functions/fprintf.texi: Update.
51368         * doc/posix-functions/printf.texi: Update.
51369         * doc/posix-functions/snprintf.texi: Update.
51370         * doc/posix-functions/sprintf.texi: Update.
51371         * doc/posix-functions/vfprintf.texi: Update.
51372         * doc/posix-functions/vprintf.texi: Update.
51373         * doc/posix-functions/vsnprintf.texi: Update.
51374         * doc/posix-functions/vsprintf.texi: Update.
51375         * doc/glibc-functions/obstack_printf.texi: Update.
51376         * doc/glibc-functions/obstack_vprintf.texi: Update.
51377
51378 2009-02-26  Eric Blake  <ebb9@byu.net>
51379
51380         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51381         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51382         compilation bug by using runtime conversion.
51383         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51384         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51385         * modules/ceill-tests (Files): Use nan.h.
51386         * modules/floorl-tests (Files): Likewise.
51387         * modules/frexpl-tests (Files): Likewise.
51388         * modules/isnanl-tests (Files): Likewise.
51389         * modules/ldexpl-tests (Files): Likewise.
51390         * modules/roundl-tests (Files): Likewise.
51391         * modules/truncl-tests (Files): Likewise.
51392         * tests/test-ceill.c (main): Use a working NaN.
51393         * tests/test-floorl.c (main): Likewise.
51394         * tests/test-frexpl.c (main): Likewise.
51395         * tests/test-isnan.c (test_long_double): Likewise.
51396         * tests/test-isnanl.h (main): Likewise.
51397         * tests/test-ldexpl.h (main): Likewise.
51398         * tests/test-roundl.h (main): Likewise.
51399         * tests/test-truncl.h (main): Likewise.
51400         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51401
51402 2009-02-26  Eric Blake  <ebb9@byu.net>
51403             Bruno Haible  <bruno@clisp.org>
51404
51405         Work around a *printf bug with %ls on Solaris.
51406         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51407         precision is specified, sprintf stops converting the wide string
51408         argument when the number of bytes that have been produced by this
51409         conversion equals or exceeds the precision.
51410         * doc/posix-functions/fprintf.texi: Update.
51411         * doc/posix-functions/printf.texi: Update.
51412         * doc/posix-functions/snprintf.texi: Update.
51413         * doc/posix-functions/sprintf.texi: Update.
51414         * doc/posix-functions/vfprintf.texi: Update.
51415         * doc/posix-functions/vprintf.texi: Update.
51416         * doc/posix-functions/vsnprintf.texi: Update.
51417         * doc/posix-functions/vsprintf.texi: Update.
51418         * doc/glibc-functions/obstack_printf.texi: Update.
51419         * doc/glibc-functions/obstack_vprintf.texi: Update.
51420
51421 2009-02-26  Eric Blake  <ebb9@byu.net>
51422
51423         stdlib: favor compiler check of random.h
51424         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51425         to avoid an ObjC random.h installed by Swarm.
51426
51427 2009-02-26  Bruno Haible  <bruno@clisp.org>
51428
51429         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51430         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51431         Reported by Gary V. Vaughan <gary@gnu.org>.
51432
51433 2009-02-26  Bruno Haible  <bruno@clisp.org>
51434
51435         Fix *printf behaviour regarding the %ls directive.
51436         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51437         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51438         NEED_PRINTF_DIRECTIVE_LS.
51439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51440         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51441         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51442         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51443         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51444         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51445         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51446         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51447         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51448         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51449         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51450         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51451         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51452         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51453         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51454         * doc/posix-functions/fprintf.texi: Update.
51455         * doc/posix-functions/printf.texi: Update.
51456         * doc/posix-functions/snprintf.texi: Update.
51457         * doc/posix-functions/sprintf.texi: Update.
51458         * doc/posix-functions/vfprintf.texi: Update.
51459         * doc/posix-functions/vprintf.texi: Update.
51460         * doc/posix-functions/vsnprintf.texi: Update.
51461         * doc/posix-functions/vsprintf.texi: Update.
51462         * doc/glibc-functions/obstack_printf.texi: Update.
51463         * doc/glibc-functions/obstack_vprintf.texi: Update.
51464         Reported by Eric Blake.
51465
51466 2009-02-25  Bruno Haible  <bruno@clisp.org>
51467
51468         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51469         with known value.
51470         Reported by Gary V. Vaughan <gary@gnu.org>.
51471
51472 2009-02-25  Bruno Haible  <bruno@clisp.org>
51473
51474         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51475         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51476         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51477         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51478         Reported by Gary V. Vaughan <gary@gnu.org>.
51479
51480 2009-02-25  Bruno Haible  <bruno@clisp.org>
51481
51482         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51483         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51484         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51485         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51486         Reported by Gary V. Vaughan <gary@gnu.org>.
51487
51488 2009-02-25  Eric Blake  <ebb9@byu.net>
51489
51490         tests: skip fseek/ftell tests if ungetc is broken
51491         * m4/ungetc.m4: New file.
51492         * modules/fseek-tests: Split test, so ungetc dependency is
51493         separate from rest of test.
51494         * modules/fseeko-tests: Likewise.
51495         * modules/ftell-tests: Likewise.
51496         * modules/ftello-tests: Likewise.
51497         * tests/test-fseek.c (main): Isolate ungetc dependency.
51498         * tests/test-fseeko.c (main): Likewise.
51499         * tests/test-ftell.c (main): Likewise.
51500         * tests/test-ftello.c (main): Likewise.
51501         * tests/test-fseek2.sh: New file.
51502         * tests/test-fseeko2.sh: Likewise.
51503         * tests/test-ftell2.sh: Likewise.
51504         * tests/test-ftello2.sh: Likewise.
51505
51506 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51507
51508         test-getaddrinfo: fix usage of skip return code 77
51509         * tests/test-gettaddrinfo.c: Return skip code 77 only
51510         for first occurrence of skip (4x77 is not 77)
51511
51512 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51513
51514         strtod: avoid C99 decl-after-statement
51515         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51516
51517 2009-02-24  Eric Blake  <ebb9@byu.net>
51518
51519         strtod: detect HP-UX 11.31 bug
51520         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51521         Reported by Gary V. Vaughan.
51522
51523 2009-02-23  Bruno Haible  <bruno@clisp.org>
51524
51525         Fix invalid read past end of memory block.
51526         * lib/vasnprintf.c (DCHAR_SET): Define.
51527         (local_wcslen): Define only when needed.
51528         (local_strnlen, local_wcsnlen): New functions.
51529         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51530         directives that involve a conversion ourselves.
51531         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51532         wcsnlen, mbrtowc, wcrtomb.
51533         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51534         * tests/test-vasprintf-posix.c (test_function): Likewise.
51535         * tests/test-snprintf-posix.h (test_function): Likewise.
51536         * tests/test-sprintf-posix.h (test_function): Likewise.
51537         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51538
51539 2009-02-22  Bruno Haible  <bruno@clisp.org>
51540
51541         Implement new clarified decomposition of Hangul syllables.
51542         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51543         of type LTV, return only a pairwise decomposition.
51544         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51545         Likewise.
51546         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51547         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51548         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51549
51550 2009-02-22  Bruno Haible  <bruno@clisp.org>
51551
51552         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51553         zero-length results and shrink excess allocated memory.
51554         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51555         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51556         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51557         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51558         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51559         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51560         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51561         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51562         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51563         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51564         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51565         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51566
51567 2009-02-21  Bruno Haible  <bruno@clisp.org>
51568
51569         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51570         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51571         spaces after a period. Put a space between a macro name and its
51572         argument list. Trivial rewordings.
51573         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51574         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51575         (main): Return 0 explicitly.
51576
51577 2009-02-21  Bruno Haible  <bruno@clisp.org>
51578
51579         Tests for module 'uninorm/filter'.
51580         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51581         * modules/uninorm/filter-tests: New file.
51582
51583         New module 'uninorm/filter'.
51584         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51585         uninorm_filter_flush, uninorm_filter_free): New declarations.
51586         * lib/uninorm/uninorm-filter.c: New file.
51587         * modules/uninorm/filter: New file.
51588
51589 2009-02-21  Bruno Haible  <bruno@clisp.org>
51590
51591         Tests for module 'uninorm/nfkc'.
51592         * tests/uninorm/test-nfkc.c: New file.
51593         * tests/uninorm/test-u8-nfkc.c: New file.
51594         * tests/uninorm/test-u16-nfkc.c: New file.
51595         * tests/uninorm/test-u32-nfkc.c: New file.
51596         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51597         * tests/uninorm/test-u32-nfkc-big.c: New file.
51598         * modules/uninorm/nfkc-tests: New file.
51599
51600         New module 'uninorm/nfkc'.
51601         * lib/uninorm/nfkc.c: New file.
51602         * modules/uninorm/nfkc: New file.
51603
51604         Tests for module 'uninorm/nfkd'.
51605         * tests/uninorm/test-nfkd.c: New file.
51606         * tests/uninorm/test-u8-nfkd.c: New file.
51607         * tests/uninorm/test-u16-nfkd.c: New file.
51608         * tests/uninorm/test-u32-nfkd.c: New file.
51609         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51610         * tests/uninorm/test-u32-nfkd-big.c: New file.
51611         * modules/uninorm/nfkd-tests: New file.
51612
51613         New module 'uninorm/nfkd'.
51614         * lib/uninorm/nfkd.c: New file.
51615         * modules/uninorm/nfkd: New file.
51616
51617         Tests for module 'uninorm/nfc'.
51618         * tests/uninorm/test-nfc.c: New file.
51619         * tests/uninorm/test-u8-nfc.c: New file.
51620         * tests/uninorm/test-u16-nfc.c: New file.
51621         * tests/uninorm/test-u32-nfc.c: New file.
51622         * tests/uninorm/test-u32-nfc-big.sh: New file.
51623         * tests/uninorm/test-u32-nfc-big.c: New file.
51624         * modules/uninorm/nfc-tests: New file.
51625
51626         New module 'uninorm/nfc'.
51627         * lib/uninorm/nfc.c: New file.
51628         * modules/uninorm/nfc: New file.
51629
51630         Tests for module 'uninorm/nfd'.
51631         * tests/uninorm/test-nfd.c: New file.
51632         * tests/uninorm/test-u8-nfd.c: New file.
51633         * tests/uninorm/test-u16-nfd.c: New file.
51634         * tests/uninorm/test-u32-nfd.c: New file.
51635         * tests/uninorm/test-u32-nfd-big.sh: New file.
51636         * tests/uninorm/test-u32-nfd-big.c: New file.
51637         * tests/uninorm/test-u32-normalize-big.h: New file.
51638         * tests/uninorm/test-u32-normalize-big.c: New file.
51639         * tests/uninorm/NormalizationTest.txt: New file, created from
51640         Unicode 5.1.0 NormalizationTest.txt.
51641         * modules/uninorm/nfd-tests: New file.
51642
51643         New module 'uninorm/nfd'.
51644         * lib/uninorm/nfd.c: New file.
51645         * modules/uninorm/nfd: New file.
51646
51647         New module 'uninorm/u32-normalize'.
51648         * lib/uninorm/u32-normalize.c: New file.
51649         * modules/uninorm/u32-normalize: New file.
51650
51651         New module 'uninorm/u16-normalize'.
51652         * lib/uninorm/u16-normalize.c: New file.
51653         * modules/uninorm/u16-normalize: New file.
51654
51655         New module 'uninorm/u8-normalize'.
51656         * lib/uninorm/u8-normalize.c: New file.
51657         * lib/uninorm/normalize-internal.h: New file.
51658         * lib/uninorm/u-normalize-internal.h: New file.
51659         * modules/uninorm/u8-normalize: New file.
51660
51661         New module 'uninorm/decompose-internal'.
51662         * lib/uninorm/decompose-internal.c: New file.
51663         * modules/uninorm/decompose-internal: New file.
51664
51665         Tests for module 'uninorm/composition'.
51666         * tests/uninorm/test-composition.c: New file.
51667         * modules/uninorm/composition-tests: New file.
51668
51669         New module 'uninorm/composition'.
51670         * lib/uninorm/composition.c: New file.
51671         * lib/uninorm/composition-table.gperf: New file, generated by
51672         gen-uni-tables.
51673         * modules/uninorm/composition: New file.
51674
51675         Tests for module 'uninorm/compat-decomposition'.
51676         * tests/uninorm/test-compat-decomposition.c: New file.
51677         * modules/uninorm/compat-decomposition-tests: New file.
51678
51679         New module 'uninorm/compat-decomposition'.
51680         * lib/uninorm/decompose-internal.h: New file.
51681         * lib/uninorm/compat-decomposition.c: New file.
51682         * modules/uninorm/compat-decomposition: New file.
51683
51684         Tests for module 'uninorm/canonical-decomposition'.
51685         * tests/uninorm/test-canonical-decomposition.c: New file.
51686         * modules/uninorm/canonical-decomposition-tests: New file.
51687
51688         New module 'uninorm/canonical-decomposition'.
51689         * lib/uninorm/canonical-decomposition.c: New file.
51690         * modules/uninorm/canonical-decomposition: New file.
51691
51692         Tests for module 'uninorm/decomposition'.
51693         * tests/uninorm/test-decomposition.c: New file.
51694         * modules/uninorm/decomposition-tests: New file.
51695
51696         New module 'uninorm/decomposition'.
51697         * lib/uninorm/decomposition.c: New file.
51698         * modules/uninorm/decomposition: New file.
51699
51700         New module 'uninorm/decomposition-table'.
51701         * lib/uninorm/decomposition-table.h: New file.
51702         * lib/uninorm/decomposition-table.c: New file.
51703         * lib/uninorm/decomposition-table1.h: New file, generated by
51704         gen-uni-tables.
51705         * lib/uninorm/decomposition-table2.h: New file, generated by
51706         gen-uni-tables.
51707         * modules/uninorm/decomposition-table: New file.
51708
51709         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51710         (UC_DECOMP_*): New enumeration items.
51711         (get_decomposition): New function.
51712         (struct decomp_table): New type.
51713         (output_decomposition, output_decomposition_tables): New functions.
51714         (unicode_composition_exclusions): New variable.
51715         (fill_composition_exclusions, debug_output_composition_tables): New
51716         functions.
51717         (main): Accept one more argument. Invoke fill_composition_exclusions.
51718         Output decomposition and composition tables.
51719
51720         New module 'uninorm/base'.
51721         * lib/uninorm.h: New file.
51722         * lib/unictype.h: Update comment.
51723         * modules/uninorm/base: New file.
51724
51725 2009-02-21  David Lutterkort  <lutter@redhat.com>
51726
51727         Tests for module 'safe-alloc'.
51728         * tests/test-safe-alloc.c: New file.
51729         * modules/safe-alloc-tests: New file.
51730
51731         New module 'safe-alloc'.
51732         * lib/safe-alloc.h: New file.
51733         * lib/safe-alloc.c: New file.
51734         * m4/safe-alloc.m4: New file.
51735         * modules/safe-alloc: New file.
51736         * doc/safe-alloc.texi: New file.
51737         * doc/gnulib.texi: Include it.
51738         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51739         safe-alloc.
51740
51741 2009-02-18  Bruno Haible  <bruno@clisp.org>
51742
51743         Fix link error on non-glibc systems.
51744         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51745         variable.
51746         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51747
51748 2009-02-18  Jim Meyering  <meyering@redhat.com>
51749
51750         fts: avoid used-uninitialized error due to recent change
51751         * lib/fts.c (fts_read): Guard uses of the new member,
51752         parent->fts_n_dirs_remaining, since it's not relevant for
51753         the parent of a directory specified on the command-line.
51754
51755 2009-02-17  James Youngman  <jay@gnu.org>
51756             Bruno Haible  <bruno@clisp.org>
51757
51758         * m4/include_next.m4: Reformulate comment.
51759
51760 2009-02-16  Jim Meyering  <meyering@redhat.com>
51761
51762         fts: add #if guards so that the fts_lgpl module still builds
51763         * lib/fts.c: Guard just-added hash-table-using parts with
51764         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51765         Reported by Simon Josefsson.
51766
51767 2009-02-15  Bruno Haible  <bruno@clisp.org>
51768
51769         * modules/array-mergesort-tests: New file.
51770         * tests/test-array-mergesort.c: New file.
51771
51772         New module 'array-mergesort'.
51773         * modules/array-mergesort: New file.
51774         * lib/array-mergesort.h: New file.
51775
51776 2009-02-15  Bruno Haible  <bruno@clisp.org>
51777
51778         Fix 2009-02-07 commit.
51779         * lib/gen-uni-tables.c (output_predicate, output_category,
51780         output_combclass, output_bidi_category, output_decimal_digit,
51781         output_digit, output_numeric, output_mirror, output_scripts,
51782         output_ident_category, output_simple_mapping): Fix format directives.
51783         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51784
51785 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51786
51787         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51788         fixes are available from IBM.
51789
51790 2009-02-13  Jim Meyering  <meyering@redhat.com>
51791
51792         fts: arrange not to stat non-directories in more cases
51793         This makes GNU find (when it doesn't need to stat each file)
51794         *much* more efficient at traversing reiserfs file systems.
51795         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
51796         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
51797         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
51798         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
51799         (leaf_optimization_applies): New function.
51800         (LCO_hash, LCO_compare): New helper functions.
51801         (link_count_optimize_ok): New function.
51802         (fts_stat): Initialize new member (if dir).
51803         (fts_read): Decrement parent's fts_n_dirs_remaining count if
51804         we've just stat'ed a directory.  Skip the stat call when possible.
51805         ---
51806         Note this AFS-related exchange:
51807         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
51808         and note find's pioctl call in find/fstype.c.
51809         But that is necessary only if you want to enable the
51810         optimization for AFS, and for now, I don't.
51811
51812         fts: move a function definition "up" (no semantic change)
51813         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
51814         "up" to precede upcoming use of a related function.
51815
51816 2009-02-11  Jim Meyering  <meyering@redhat.com>
51817
51818         fts: correct internal computation of nlinks (optimization-related)
51819         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
51820         whether the current entry is a directory, so don't test it.
51821
51822 2009-02-10  Bruno Haible  <bruno@clisp.org>
51823
51824         Tests for module 'uniwbrk/ulc-wordbreaks'.
51825         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
51826         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
51827         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
51828
51829         Tests for module 'uniwbrk/u32-wordbreaks'.
51830         * modules/uniwbrk/u32-wordbreaks-tests: New file.
51831         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
51832
51833         Tests for module 'uniwbrk/u16-wordbreaks'.
51834         * modules/uniwbrk/u16-wordbreaks-tests: New file.
51835         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
51836
51837         Tests for module 'uniwbrk/u8-wordbreaks'.
51838         * modules/uniwbrk/u8-wordbreaks-tests: New file.
51839         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
51840
51841 2009-02-10  Bruno Haible  <bruno@clisp.org>
51842
51843         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51844         property.
51845         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51846         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51847         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51848
51849 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51850
51851         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51852         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51853
51854 2009-02-10  Bruno Haible  <bruno@clisp.org>
51855
51856         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51857         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51858         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51859         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51860         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51861         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51862
51863 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51864
51865         * lib/sockets.h (gl_fd_to_handle): New function.
51866
51867         * tests/test-sockets.c: Call gl_fd_to_handle.
51868
51869 2009-02-09  Bruno Haible  <bruno@clisp.org>
51870
51871         * doc/havelib.texi: Document the conventions on bi-arch systems.
51872
51873 2009-02-08  Bruno Haible  <bruno@clisp.org>
51874
51875         Document the AC_LIB_LINKFLAGS macro.
51876         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51877         * doc/gnulib.texi: Include it.
51878
51879 2009-02-08  Bruno Haible  <bruno@clisp.org>
51880
51881         Fix wrong order of sections, compared to TOC.
51882         * doc/gnulib.texi: Include relocatable-maint.texi after the
51883         "Regular expressions" node, not before.
51884
51885 2009-02-08  Bruno Haible  <bruno@clisp.org>
51886
51887         Tests for module 'unicase/totitle'.
51888         * modules/unicase/totitle-tests: New file.
51889
51890         Tests for module 'unicase/tolower'.
51891         * modules/unicase/tolower-tests: New file.
51892
51893         Tests for module 'unicase/toupper'.
51894         * modules/unicase/toupper-tests: New file.
51895         * tests/unicase/test-mapping-part1.h: New file.
51896         * tests/unicase/test-mapping-part2.h: New file.
51897
51898         New module 'unicase/totitle'.
51899         * modules/unicase/totitle: New file.
51900         * lib/unicase/totitle.c: New file.
51901
51902         New module 'unicase/tolower'.
51903         * modules/unicase/tolower: New file.
51904         * lib/unicase/tolower.c: New file.
51905
51906         New module 'unicase/toupper'.
51907         * modules/unicase/toupper: New file.
51908         * lib/unicase/toupper.c: New file.
51909         * lib/unicase/simple-mapping.h: New file.
51910
51911         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51912         (mapping_table): New structure.
51913         (output_simple_mapping): New function.
51914         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51915         * modules/gen-uni-tables (Description): Update.
51916         * lib/unicase/toupper.h: New file, automatically generated by
51917         gen-uni-tables.
51918         * lib/unicase/tolower.h: New file, automatically generated by
51919         gen-uni-tables.
51920         * lib/unicase/totitle.h: New file, automatically generated by
51921         gen-uni-tables.
51922         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51923         gen-uni-tables.
51924         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51925         gen-uni-tables.
51926         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51927         gen-uni-tables.
51928
51929         New module 'unicase/base'.
51930         * modules/unicase/base: New file.
51931         * lib/unicase.h: New file.
51932
51933 2009-02-08  Bruno Haible  <bruno@clisp.org>
51934
51935         New module 'uniwbrk/ulc-wordbreaks'.
51936         * modules/uniwbrk/ulc-wordbreaks: New file.
51937         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51938
51939         New module 'uniwbrk/u32-wordbreaks'.
51940         * modules/uniwbrk/u32-wordbreaks: New file.
51941         * lib/uniwbrk/u32-wordbreaks.c: New file.
51942
51943         New module 'uniwbrk/u16-wordbreaks'.
51944         * modules/uniwbrk/u16-wordbreaks: New file.
51945         * lib/uniwbrk/u16-wordbreaks.c: New file.
51946
51947         New module 'uniwbrk/u8-wordbreaks'.
51948         * modules/uniwbrk/u8-wordbreaks: New file.
51949         * lib/uniwbrk/u8-wordbreaks.c: New file.
51950         * lib/uniwbrk/u-wordbreaks.h: New file.
51951
51952         New module 'uniwbrk/table'.
51953         * modules/uniwbrk/table: New file.
51954         * lib/uniwbrk/wbrktable.h: New file.
51955         * lib/uniwbrk/wbrktable.c: New file.
51956
51957         New module 'uniwbrk/wordbreak-property'.
51958         * modules/uniwbrk/wordbreak-property: New file.
51959         * lib/uniwbrk/wordbreak-property.c: New file.
51960
51961         * lib/gen-uni-tables.c (WBP_*): New enum items.
51962         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51963         (unicode_org_wbp): New variable.
51964         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51965         New functions.
51966         (wbp_table): New structure.
51967         (output_wbp, output_wbrk_tables): New functions.
51968         (main): Accept additional argument. Invoke fill_org_wbp,
51969         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51970         output_wbrk_tables.
51971         * modules/gen-uni-tables (Description): Update.
51972         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51973         gen-uni-tables.
51974
51975         New module 'uniwbrk/base'.
51976         * modules/uniwbrk/base: New file.
51977         * lib/uniwbrk.h: New file.
51978
51979 2009-02-08  Bruno Haible  <bruno@clisp.org>
51980
51981         Update to Unicode 5.1.0.
51982         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51983         U+2185..U+2188.
51984         (is_property_default_ignorable_code_point): Don't include characters
51985         of category Cc or Cs and not-a-characters.
51986         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51987         U+0D79, U+109E, U+109F, U+A60C.
51988         * lib/unictype/bidi_of.h: Regenerated.
51989         * lib/unictype/blocks.h: Regenerated.
51990         * lib/unictype/categ_C.h: Regenerated.
51991         * lib/unictype/categ_Cf.h: Regenerated.
51992         * lib/unictype/categ_Cn.h: Regenerated.
51993         * lib/unictype/categ_L.h: Regenerated.
51994         * lib/unictype/categ_Ll.h: Regenerated.
51995         * lib/unictype/categ_Lm.h: Regenerated.
51996         * lib/unictype/categ_Lo.h: Regenerated.
51997         * lib/unictype/categ_Lu.h: Regenerated.
51998         * lib/unictype/categ_M.h: Regenerated.
51999         * lib/unictype/categ_Mc.h: Regenerated.
52000         * lib/unictype/categ_Me.h: Regenerated.
52001         * lib/unictype/categ_Mn.h: Regenerated.
52002         * lib/unictype/categ_N.h: Regenerated.
52003         * lib/unictype/categ_Nd.h: Regenerated.
52004         * lib/unictype/categ_Nl.h: Regenerated.
52005         * lib/unictype/categ_No.h: Regenerated.
52006         * lib/unictype/categ_P.h: Regenerated.
52007         * lib/unictype/categ_Pd.h: Regenerated.
52008         * lib/unictype/categ_Pe.h: Regenerated.
52009         * lib/unictype/categ_Pf.h: Regenerated.
52010         * lib/unictype/categ_Pi.h: Regenerated.
52011         * lib/unictype/categ_Po.h: Regenerated.
52012         * lib/unictype/categ_Ps.h: Regenerated.
52013         * lib/unictype/categ_S.h: Regenerated.
52014         * lib/unictype/categ_Sk.h: Regenerated.
52015         * lib/unictype/categ_Sm.h: Regenerated.
52016         * lib/unictype/categ_So.h: Regenerated.
52017         * lib/unictype/categ_of.h: Regenerated.
52018         * lib/unictype/combining.h: Regenerated.
52019         * lib/unictype/ctype_alnum.h: Regenerated.
52020         * lib/unictype/ctype_alpha.h: Regenerated.
52021         * lib/unictype/ctype_graph.h: Regenerated.
52022         * lib/unictype/ctype_lower.h: Regenerated.
52023         * lib/unictype/ctype_print.h: Regenerated.
52024         * lib/unictype/ctype_punct.h: Regenerated.
52025         * lib/unictype/ctype_upper.h: Regenerated.
52026         * lib/unictype/decdigit.h: Regenerated.
52027         * lib/unictype/digit.h: Regenerated.
52028         * lib/unictype/mirror.h: Regenerated.
52029         * lib/unictype/numeric.h: Regenerated.
52030         * lib/unictype/pr_alphabetic.h: Regenerated.
52031         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52032         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52033         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52034         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52035         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52036         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52037         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52038         * lib/unictype/pr_combining.h: Regenerated.
52039         * lib/unictype/pr_dash.h: Regenerated.
52040         * lib/unictype/pr_decimal_digit.h: Regenerated.
52041         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52042         * lib/unictype/pr_deprecated.h: Regenerated.
52043         * lib/unictype/pr_diacritic.h: Regenerated.
52044         * lib/unictype/pr_extender.h: Regenerated.
52045         * lib/unictype/pr_format_control.h: Regenerated.
52046         * lib/unictype/pr_grapheme_base.h: Regenerated.
52047         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52048         * lib/unictype/pr_grapheme_link.h: Regenerated.
52049         * lib/unictype/pr_id_continue.h: Regenerated.
52050         * lib/unictype/pr_id_start.h: Regenerated.
52051         * lib/unictype/pr_ideographic.h: Regenerated.
52052         * lib/unictype/pr_ignorable_control.h: Regenerated.
52053         * lib/unictype/pr_lowercase.h: Regenerated.
52054         * lib/unictype/pr_math.h: Regenerated.
52055         * lib/unictype/pr_numeric.h: Regenerated.
52056         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52057         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52058         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52059         * lib/unictype/pr_other_id_continue.h: Regenerated.
52060         * lib/unictype/pr_other_lowercase.h: Regenerated.
52061         * lib/unictype/pr_other_math.h: Regenerated.
52062         * lib/unictype/pr_punctuation.h: Regenerated.
52063         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52064         * lib/unictype/pr_soft_dotted.h: Regenerated.
52065         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52066         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52067         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52068         * lib/unictype/pr_uppercase.h: Regenerated.
52069         * lib/unictype/pr_xid_continue.h: Regenerated.
52070         * lib/unictype/pr_xid_start.h: Regenerated.
52071         * lib/unictype/pr_zero_width.h: Regenerated.
52072         * lib/unictype/scripts.h: Regenerated.
52073         * lib/unictype/scripts_byname.gperf: Regenerated.
52074         * lib/unictype/sy_java_ident.h: Regenerated.
52075         * lib/unilbrk/lbrkprop1.h: Regenerated.
52076         * lib/unilbrk/lbrkprop2.h: Regenerated.
52077         * tests/unictype/test-categ_C.c: Regenerated.
52078         * tests/unictype/test-categ_Cf.c: Regenerated.
52079         * tests/unictype/test-categ_Cn.c: Regenerated.
52080         * tests/unictype/test-categ_L.c: Regenerated.
52081         * tests/unictype/test-categ_Ll.c: Regenerated.
52082         * tests/unictype/test-categ_Lm.c: Regenerated.
52083         * tests/unictype/test-categ_Lo.c: Regenerated.
52084         * tests/unictype/test-categ_Lu.c: Regenerated.
52085         * tests/unictype/test-categ_M.c: Regenerated.
52086         * tests/unictype/test-categ_Mc.c: Regenerated.
52087         * tests/unictype/test-categ_Me.c: Regenerated.
52088         * tests/unictype/test-categ_Mn.c: Regenerated.
52089         * tests/unictype/test-categ_N.c: Regenerated.
52090         * tests/unictype/test-categ_Nd.c: Regenerated.
52091         * tests/unictype/test-categ_Nl.c: Regenerated.
52092         * tests/unictype/test-categ_No.c: Regenerated.
52093         * tests/unictype/test-categ_P.c: Regenerated.
52094         * tests/unictype/test-categ_Pd.c: Regenerated.
52095         * tests/unictype/test-categ_Pe.c: Regenerated.
52096         * tests/unictype/test-categ_Pf.c: Regenerated.
52097         * tests/unictype/test-categ_Pi.c: Regenerated.
52098         * tests/unictype/test-categ_Po.c: Regenerated.
52099         * tests/unictype/test-categ_Ps.c: Regenerated.
52100         * tests/unictype/test-categ_S.c: Regenerated.
52101         * tests/unictype/test-categ_Sk.c: Regenerated.
52102         * tests/unictype/test-categ_Sm.c: Regenerated.
52103         * tests/unictype/test-categ_So.c: Regenerated.
52104         * tests/unictype/test-ctype_alnum.c: Regenerated.
52105         * tests/unictype/test-ctype_alpha.c: Regenerated.
52106         * tests/unictype/test-ctype_graph.c: Regenerated.
52107         * tests/unictype/test-ctype_lower.c: Regenerated.
52108         * tests/unictype/test-ctype_print.c: Regenerated.
52109         * tests/unictype/test-ctype_punct.c: Regenerated.
52110         * tests/unictype/test-ctype_upper.c: Regenerated.
52111         * tests/unictype/test-decdigit.h: Regenerated.
52112         * tests/unictype/test-digit.h: Regenerated.
52113         * tests/unictype/test-numeric.h: Regenerated.
52114         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52115         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52116         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52117         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52118         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52119         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52120         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52121         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52122         * tests/unictype/test-pr_combining.c: Regenerated.
52123         * tests/unictype/test-pr_dash.c: Regenerated.
52124         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52125         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52126         * tests/unictype/test-pr_deprecated.c: Regenerated.
52127         * tests/unictype/test-pr_diacritic.c: Regenerated.
52128         * tests/unictype/test-pr_extender.c: Regenerated.
52129         * tests/unictype/test-pr_format_control.c: Regenerated.
52130         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52131         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52132         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52133         * tests/unictype/test-pr_id_continue.c: Regenerated.
52134         * tests/unictype/test-pr_id_start.c: Regenerated.
52135         * tests/unictype/test-pr_ideographic.c: Regenerated.
52136         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52137         * tests/unictype/test-pr_lowercase.c: Regenerated.
52138         * tests/unictype/test-pr_math.c: Regenerated.
52139         * tests/unictype/test-pr_numeric.c: Regenerated.
52140         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52141         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52142         Regenerated.
52143         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52144         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52145         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52146         * tests/unictype/test-pr_other_math.c: Regenerated.
52147         * tests/unictype/test-pr_punctuation.c: Regenerated.
52148         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52149         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52150         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52151         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52152         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52153         * tests/unictype/test-pr_uppercase.c: Regenerated.
52154         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52155         * tests/unictype/test-pr_xid_start.c: Regenerated.
52156         * tests/unictype/test-pr_zero_width.c: Regenerated.
52157
52158         Update to Unicode 5.1.0.
52159         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52160         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52161         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52162         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52163         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52164         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52165         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52166         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52167         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52168         (nonspacing_table_ind): Update.
52169         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52170
52171         Update to Unicode 5.1.0.
52172         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52173         code transform.
52174         * lib/uniname/uniname.c (unicode_character_name,
52175         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52176         * lib/uniname/uninames.h: Regenerated.
52177         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52178
52179 2009-02-07  Bruno Haible  <bruno@clisp.org>
52180
52181         Merge gen-ctype and gen-lbrk into a single program.
52182         * lib/gen-uni-tables.c: New file, incorporating
52183         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52184         Add directory prefixes to the names of the generated files.
52185         * lib/unictype/gen-ctype.c: Remove file.
52186         * lib/unilbrk/gen-lbrk.c: Remove file.
52187         * modules/gen-uni-tables: New file.
52188         * modules/unictype/gen-ctype: Remove file.
52189         * modules/unilbrk/gen-lbrk: Remove file.
52190
52191 2009-02-07  Bruno Haible  <bruno@clisp.org>
52192
52193         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52194
52195         New module 'unistr/u32-strcoll'.
52196         * modules/unistr/u32-strcoll: New file.
52197         * lib/unistr/u32-strcoll.c: New file.
52198
52199         New module 'unistr/u16-strcoll'.
52200         * modules/unistr/u16-strcoll: New file.
52201         * lib/unistr/u16-strcoll.c: New file.
52202
52203         New module 'unistr/u8-strcoll'.
52204         * modules/unistr/u8-strcoll: New file.
52205         * lib/unistr/u8-strcoll.c: New file.
52206         * lib/unistr/u-strcoll.h: New file.
52207
52208 2009-02-07  Bruno Haible  <bruno@clisp.org>
52209
52210         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52211         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52212         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52213         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52214         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52215         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52216
52217 2009-02-07  Bruno Haible  <bruno@clisp.org>
52218
52219         Make 64-bit clean.
52220         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52221         output_combclass, output_bidi_category, output_decimal_digit,
52222         output_digit, output_numeric, output_mirror, output_scripts,
52223         output_ident_category): Use proper width specifier in format strings.
52224
52225 2009-02-07  Bruno Haible  <bruno@clisp.org>
52226
52227         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52228         failure behaviour.
52229
52230 2009-02-07  Jim Meyering  <meyering@redhat.com>
52231
52232         regex: avoid compilation failure with upcoming gcc-4.4
52233         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52234         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52235         "... error: integer overflow in preprocessor expression".
52236
52237 2009-02-05  Ben Pfaff  <blp@gnu.org>
52238
52239         Fix link errors on Windows when close module is used.
52240         * modules/close: Add $(LIB_CLOSE) to Link section.
52241         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52242         $(LIB_CLOSE) on Windows.
52243
52244 2009-02-05  Jim Meyering  <meyering@redhat.com>
52245
52246         still avoid unused-parameter warnings, but do it cleanly
52247         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52248         (get_fs_usage): Cast to void instead.
52249         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52250         (dev_from_mount_options, read_file_system_list): Cast to void.
52251         Prompted by Bruno Haible.
52252
52253 2009-02-04  Jim Meyering  <meyering@redhat.com>
52254
52255         fsusage.c: correct copyright year
52256         * lib/fsusage.c: Reflect year in which the change is pushed into
52257
52258         avoid misc. warnings
52259         * lib/fsusage.c (UNUSED_PARAM): Define.
52260         (get_fs_usage): Mark parameter "disk" as unused.
52261         * lib/getugroups.c (getgrent): Use "void" in prototype.
52262         * lib/mountlist.c: Mark unused parameters.
52263         (read_file_system_list): Declare a local with "const".
52264         * lib/nanosleep.c (getnow): Declare static.
52265         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52266
52267         dirfd: set errno upon failure
52268         * lib/dirfd.c: Include <errno.h>.
52269         Set errno to ENOTSUP when returning -1.
52270         * modules/dirfd (Depends-on): Add errno.
52271         Suggested by John Kodis <kodis@comcast.net>.
52272
52273 2009-02-01  Bruno Haible  <bruno@clisp.org>
52274
52275         Don't assume sizeof (long) >= sizeof (void *).
52276         * lib/memcmp.c: Include stdint.h.
52277         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52278         srcp2 to 'const byte *'.
52279         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52280         types to uintptr_t.
52281         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52282         * modules/memcmp (Depends-on): Add stdint.
52283         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52284
52285 2009-01-30  Eric Blake  <ebb9@byu.net>
52286
52287         fix more require-before-expand issues
52288         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52289         expand, AC_PROG_AWK.
52290         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52291
52292 2009-01-28  Eric Blake  <ebb9@byu.net>
52293
52294         version-etc: use consistent URL formatting
52295         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52296         Improve formatting.  Use fputs for string without %.
52297
52298 2009-01-28  Jim Meyering  <meyering@redhat.com>
52299
52300         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52301         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52302         "underquoted definition of NAME" from autoconf-2.59.
52303
52304 2009-01-28  Bruno Haible  <bruno@clisp.org>
52305
52306         * doc/gnulib.texi: Add "Obsolete modules" to index.
52307
52308 2009-01-28  Jim Meyering  <meyering@redhat.com>
52309
52310         useless-if-before-free: recognize more variants
52311         * build-aux/useless-if-before-free: Also recognize e.g.,
52312         if (NULL != p) free (p);
52313
52314 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52315
52316         test-getaddrinfo: skip (don't fail) this test when there's no network
52317         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52318         on the presumption that it means you lack network access.
52319
52320 2009-01-26  Jim Meyering  <meyering@redhat.com>
52321
52322         fflush: avoid warnings on modern systems
52323         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52324         pos and result, into scopes where they're used.
52325
52326 2009-01-26  Eric Blake  <ebb9@byu.net>
52327
52328         Silence warning reintroduced by recent extensions patch.
52329         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52330         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52331         autoconf.
52332
52333         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52334         * m4/00gnulib.m4: New file.
52335         * gnulib-tool (func_get_filelist): Always use it.
52336         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52337         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52338
52339 2009-01-25  Bruno Haible  <bruno@clisp.org>
52340
52341         Make test-quotearg work on MacOS X and AIX.
52342         * tests/test-quotearg.sh: New file.
52343         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52344         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52345         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52346         include <libintl.h>.
52347         (fake_locale): Remove variable.
52348         (gettext, dgettext, dcgettext): Remove functions.
52349         (main): Instead of setting a fake locale, set a real locale. Call
52350         textdomain and bindtextdomain.
52351         * modules/quotearg-tests (Files): Add the new files.
52352         (Depends-on): Add gettext, setenv, unsetenv.
52353         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52354         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52355         Augment TESTS_ENVIRONMENT.
52356
52357 2009-01-25  Bruno Haible  <bruno@clisp.org>
52358
52359         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52360         fr_FR.ISO8859-1 locale on MacOS X.
52361         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52362         ja_JP.eucJP locale on MacOS X.
52363         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52364         zh_CN.GB18030 locale on MacOS X.
52365
52366 2009-01-25  Bruno Haible  <bruno@clisp.org>
52367
52368         Avoid link errors on MacOS X 10.3.
52369         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52370         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52371
52372 2009-01-25  Bruno Haible  <bruno@clisp.org>
52373
52374         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52375         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52376         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52377         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52378         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52379         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52380         posix_spawnattr_init, posix_spawnattr_setsigmask,
52381         posix_spawnattr_setflags, posix_spawnattr_destroy.
52382
52383         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52384         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52385         * modules/execute (Files): Remove m4/posix_spawn.m4.
52386         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52387         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52388         posix_spawnattr_init, posix_spawnattr_setsigmask,
52389         posix_spawnattr_setflags, posix_spawnattr_destroy.
52390
52391 2009-01-25  Bruno Haible  <bruno@clisp.org>
52392
52393         * lib/glthread/threadlib.c: Include <stdlib.h>.
52394
52395 2009-01-25  Bruno Haible  <bruno@clisp.org>
52396
52397         * lib/glthread/threadlib.c (dummy): New declaration.
52398
52399 2009-01-25  Bruno Haible  <bruno@clisp.org>
52400
52401         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52402         multibyte characters also for the GB18030 encoding. Don't crash when
52403         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52404
52405 2009-01-25  Bruno Haible  <bruno@clisp.org>
52406
52407         Avoid redefining 'struct random_data' on OSF/1 5.1.
52408         * lib/stdlib.in.h: Include <random.h> if it exists.
52409         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52410         HAVE_RANDOM_H. Include <random.h> when testing whether
52411         'struct random_data' exists.
52412         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52413
52414 2009-01-25  Bruno Haible  <bruno@clisp.org>
52415
52416         Don't install charset.alias on MacOS X >= 10.3.
52417         * lib/localcharset.c (DARWIN7): New macro.
52418         (get_charset_aliases): Hardcode the result for Darwin7.
52419         * modules/localcharset (install-exec-local): Don't install
52420         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52421
52422 2009-01-25  Bruno Haible  <bruno@clisp.org>
52423
52424         Don't install charset.alias on mingw and Cygwin.
52425         * modules/localcharset (install-exec-local): Don't install
52426         charset.alias on mingw and Cygwin, if the file does not yet exist.
52427         The result for these platforms is hardcoded in localcharset.c.
52428
52429 2009-01-25  Bruno Haible  <bruno@clisp.org>
52430
52431         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52433         before requiring AC_USE_SYSTEM_EXTENSIONS.
52434
52435 2009-01-25  Jim Meyering  <meyering@redhat.com>
52436
52437         c-strtod: avoid warnings
52438         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52439         "assignment discards qualifiers from pointer target type" warnings.
52440
52441 2009-01-24  Bruno Haible  <bruno@clisp.org>
52442
52443         Add support for non-UTF-8 locales on MacOS X.
52444         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52445         canonical encodings. For Darwin 7 and newer, don't map traditional
52446         encodings to UTF-8.
52447         Reported by Vincent Lefevre <vincent@vinc17.org>
52448         at <http://savannah.gnu.org/bugs/?25235>.
52449
52450 2009-01-24  Bruno Haible  <bruno@clisp.org>
52451
52452         * doc/gnulib.texi (Obsolete modules): New section.
52453         Reported by Mike Frysinger <vapier@gentoo.org>.
52454
52455 2009-01-24  Bruno Haible  <bruno@clisp.org>
52456
52457         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52458         (%.dvi): New rule.
52459
52460 2009-01-24  Bruno Haible  <bruno@clisp.org>
52461
52462         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52463         Reported by Eric Blake.
52464
52465 2009-01-24  Bruno Haible  <bruno@clisp.org>
52466
52467         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52468         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52469         Reported by Gary V. Vaughan <gary@gnu.org>.
52470
52471 2009-01-24  Bruno Haible  <bruno@clisp.org>
52472
52473         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52474
52475 2009-01-23  Bruno Haible  <bruno@clisp.org>
52476
52477         Make c-strtod, c-strtold usable in libraries.
52478         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52479         (C_STRTOD): Call strdup instead of xstrdup.
52480         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52481         * modules/c-strtold (Depends-on): Likewise.
52482         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52483         * NEWS: Mention the change.
52484         Reported by Michael Gold <mgold@ncf.ca>.
52485
52486 2009-01-23  Jim Meyering  <meyering@redhat.com>
52487
52488         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52489         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52490         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52491
52492 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52493
52494         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52495         GNU CoreUtils.
52496         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52497         * modules/version-etc (Description): Update.
52498
52499 2009-01-22  Bruno Haible  <bruno@clisp.org>
52500
52501         Cache the C locale object.
52502         * lib/c-strtod.c (c_locale_cache): New variable.
52503         (c_locale): New function.
52504         (C_STRTOD): Use it, and don't call freelocale.
52505         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52506         Suggested by Paolo Bonzini.
52507
52508 2009-01-21  Bruno Haible  <bruno@clisp.org>
52509
52510         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52511         conditions other than overflow.
52512
52513 2009-01-21  Bruno Haible  <bruno@clisp.org>
52514
52515         * lib/c-strtod.c: Include errno.h.
52516         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52517         value from STRTOD_L and STRTOD.
52518
52519 2009-01-21  Bruno Haible  <bruno@clisp.org>
52520         and Jim Meyering  <meyering@redhat.com>
52521
52522         nanosleep: skip configure test (fail it) for apple universal builds
52523         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52524         universal builds, assume that nanosleep does not work.
52525         * modules/nanosleep (Depends-on): Add multiarch.
52526
52527         mktime: skip configure test (fail it) for apple universal builds
52528         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52529         universal builds, assume that mktime does not work.
52530         * modules/mktime (Depends-on): Add multiarch.
52531
52532 2009-01-21  Eric Blake  <ebb9@byu.net>
52533
52534         multiarch: avoid expand-before-require warning
52535         * modules/multiarch (configure.ac): Require, rather than expand,
52536         gl_MULTIARCH.
52537         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52538         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52539         enforce that all clients require it.  Partial reversion of
52540         2008-12-29 patch.
52541
52542         error: avoid expand-before-require warning
52543         * modules/errno (configure.ac): Require, rather than expand,
52544         gl_HEADER_ERRNO_H.
52545         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52546         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52547         enforce that all clients require it.
52548
52549         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52550         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52551         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52552         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52553
52554 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52555
52556         Revert:
52557         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52558
52559         regex: do not depend on obsolete modules.
52560         * modules/regex: Remove memcmp and memmove.
52561
52562 2009-01-20  Bruno Haible  <bruno@clisp.org>
52563
52564         Make the 'link' module link on Windows NT 4.
52565         * lib/link.c (_WIN32_WINNT): Don't define.
52566         (CreateHardLinkFuncType): New type.
52567         (CreateHardLinkFunc, initialized): New variables.
52568         (initialize): New function.
52569         (link): Invoke CreateHardLink indirectly through the function pointer.
52570
52571 2009-01-20  Bruno Haible  <bruno@clisp.org>
52572
52573         Fix compilation failure on mingw.
52574         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52575
52576 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52577
52578         * doc/c-strtod.texi: Mention a couple of restrictions.
52579
52580 2009-01-20  Jim Meyering  <meyering@redhat.com>
52581
52582         gettimeofday: move more declarations out of functions
52583         * lib/gettimeofday.c: Move extern declarations of tzset and
52584         gmtime out of containing functions.  Prompted by Bruno Haible.
52585
52586 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52587
52588         regex: do not depend on obsolete modules.
52589         * modules/regex: Remove memcmp and memmove.
52590
52591 2009-01-19  Bruno Haible  <bruno@clisp.org>
52592
52593         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52594         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52595         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52596         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52597         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52598
52599 2009-01-19  Bruno Haible  <bruno@clisp.org>
52600
52601         * tests/test-link.c: Include <errno.h>.
52602         (main): Exit with code 77 when a hard link cannot be created due to
52603         the file system.
52604         * tests/test-link.sh: Skip test when a hard link cannot be created due
52605         to the file system.
52606         Suggested by Eric Blake.
52607
52608 2009-01-19  Martin Lambers  <marlam@marlam.de>
52609
52610         * modules/link-tests: New file.
52611         * tests/test-link.sh: New file.
52612         * tests/test-link.c: New file.
52613
52614 2009-01-19  Eric Blake  <ebb9@byu.net>
52615
52616         doc: mention another function added in cygwin 1.7.0
52617         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52618         Another new function in cygwin 1.7.
52619
52620 2009-01-19  Bruno Haible  <bruno@clisp.org>
52621
52622         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52623         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52624         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52625         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52626         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52627         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52628         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52629         * m4/md4.m4 (gl_MD4): Likewise.
52630         * m4/md5.m4 (gl_MD5): Likewise.
52631         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52632         * m4/sha1.m4 (gl_SHA1): Likewise.
52633         * m4/sha256.m4 (gl_SHA256): Likewise.
52634         * m4/sha512.m4 (gl_SHA512): Likewise.
52635
52636 2009-01-19  Bruno Haible  <bruno@clisp.org>
52637
52638         * modules/uniname/uniname-tests (Depends-on): Add progname.
52639         * tests/uniname/test-uninames.c: Include progname.h.
52640         (main): Call set_program_name.
52641
52642         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52643         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52644         (main): Call set_program_name.
52645
52646         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52647         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52648         (main): Call set_program_name.
52649
52650         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52651         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52652         (main): Call set_program_name.
52653
52654         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52655         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52656         (main): Call set_program_name.
52657
52658         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52659         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52660         (main): Call set_program_name.
52661
52662         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52663         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52664         (main): Call set_program_name.
52665
52666         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52667         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52668         (main): Call set_program_name.
52669
52670         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52671         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52672         (main): Call set_program_name.
52673
52674 2009-01-19  Eric Blake  <ebb9@byu.net>
52675
52676         test-unistd: test previous patch
52677         * tests/test-unistd.c: Test *_FILENO macros.
52678
52679         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52680         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52681         Guarantee a definition.
52682         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52683         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52684         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52685         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52686         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52687         Likewise.
52688         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52689         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52690         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52691         Likewise.
52692         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52693         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52694         (STDERR_FILENO): Likewise.
52695         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52696         (STDERR_FILENO): Likewise.
52697         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52698         (STDERR_FILENO): Likewise.
52699         Reported by Elbert Pol.
52700
52701 2009-01-19  Eric Blake  <ebb9@byu.net>
52702
52703         doc: mention more functions added in cygwin 1.7.0
52704         * doc/posix-functions/abort.texi (abort): Update wording related
52705         to cygwin.
52706         * doc/posix-functions/daylight.texi (daylight): Likewise.
52707         * doc/posix-functions/optarg.texi (optarg): Likewise.
52708         * doc/posix-functions/optarg.texi (opterr): Likewise.
52709         * doc/posix-functions/optarg.texi (optind): Likewise.
52710         * doc/posix-functions/optarg.texi (optopt): Likewise.
52711         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52712         worked in 1.5.x, and was withdrawn in 1.7.
52713         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52714         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52715         cygwin versions.
52716         * doc/posix-functions/perror.texi (perror): Likewise.
52717         * doc/posix-functions/printf.texi (printf): Likewise.
52718         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52719         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52720         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52721         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52722         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52723         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52724         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52725         Likewise.
52726         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52727         Likewise.
52728         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52729         this function.
52730         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52731         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52732         Likewise.
52733         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52734         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52735         * doc/posix-functions/confstr.texi (confstr): Likewise.
52736         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52737         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52738         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52739         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52740         * doc/posix-functions/fputws.texi (fputws): Likewise.
52741         * doc/posix-functions/fwide.texi (fwide): Likewise.
52742         * doc/posix-functions/getwc.texi (getwc): Likewise.
52743         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52744         * doc/posix-functions/putwc.texi (putwc): Likewise.
52745         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52746         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52747         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52748         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52749         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52750         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52751         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52752         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52753         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52754         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52755         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52756
52757 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52758
52759         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52760         * lib/ioctl.c: Include <sys/ioctl.h>.
52761
52762 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52763
52764         * modules/getdate-tests (Depends-on): Add progname.
52765         * tests/test-getdate.c: Use progname module, to avoid link errors
52766         on non-glibc systems.
52767
52768 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52769
52770         * modules/filenamecat-tests (Depends-on): Add progname.
52771         * modules/fstrcmp-tests (Depends-on): Likewise.
52772
52773         * tests/test-filenamecat.c: Use progname module, to avoid link
52774         errors on non-glibc systems.
52775         * tests/test-fstrcmp.c: Likewise.
52776
52777 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52778
52779         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52780         * lib/gettimeofday.c: Move extern declaration out of function.
52781
52782 2009-01-18  Bruno Haible  <bruno@clisp.org>
52783
52784         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52785         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52786         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52787
52788 2009-01-18  Bruno Haible  <bruno@clisp.org>
52789
52790         * lib/strftime.c (MEMPCPY): Remove unused macro.
52791         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52792
52793 2009-01-18  Martin Lambers  <marlam@marlam.de>
52794
52795         New module 'link'.
52796         * lib/unistd.in.h (link): New declaration.
52797         * lib/link.c: New file.
52798         * m4/link.m4: New file.
52799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
52800         HAVE_LINK.
52801         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
52802         * modules/link: New file.
52803         * doc/posix-functions/link.texi: Mention the new module.
52804
52805 2009-01-18  Bruno Haible  <bruno@clisp.org>
52806
52807         * tests/test-avltree_list.c (main): Call set_program_name.
52808         * tests/test-avltree_oset.c (main): Likewise.
52809         * tests/test-obstack-printf.c: Include progname.h.
52810         (main): Call set_program_name.
52811         * tests/test-quotearg.c: Include progname.h.
52812         (main): Call set_program_name.
52813         * tests/test-xmemdup0.c: Include progname.h.
52814         (main): Call set_program_name.
52815
52816 2009-01-18  Bruno Haible  <bruno@clisp.org>
52817
52818         New module 'alphasort'.
52819         * lib/dirent.in.h (alphasort): New declaration.
52820         * lib/alphasort.c: New file, from glibc with modifications.
52821         * m4/alphasort.m4: New file.
52822         * modules/alphasort: New file.
52823         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
52824         HAVE_ALPHASORT.
52825         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
52826         HAVE_ALPHASORT.
52827         * doc/posix-functions/alphasort.texi: Mention the new module and the
52828         portability problems.
52829
52830 2009-01-18  Bruno Haible  <bruno@clisp.org>
52831
52832         New module 'scandir'.
52833         * lib/dirent.in.h (scandir): New declaration.
52834         * lib/scandir.c: New file, from glibc with modifications.
52835         * m4/scandir.m4: New file.
52836         * modules/scandir: New file.
52837         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
52838         HAVE_SCANDIR.
52839         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
52840         HAVE_SCANDIR.
52841         * doc/posix-functions/scandir.texi: Mention the new module and the
52842         portability problems.
52843
52844 2009-01-17  Bruno Haible  <bruno@clisp.org>
52845
52846         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52847         Update documentation.
52848         (func_remove_suffix): Escape all dots in the suffix. Update
52849         documentation.
52850         (func_filter_filelist): Update documentation.
52851         Reported by Ralf Wildenhues.
52852
52853 2009-01-17  Bruno Haible  <bruno@clisp.org>
52854
52855         * modules/dprintf-posix-tests: New file.
52856         * tests/test-dprintf-posix.sh: New file.
52857         * tests/test-dprintf-posix.c: New file.
52858
52859         New modules 'dprintf', 'dprintf-posix'.
52860         * lib/stdio.in.h (dprintf): New declaration.
52861         * lib/dprintf.c: New file.
52862         * m4/dprintf.m4: New file.
52863         * m4/dprintf-posix.m4: New file.
52864         * modules/dprintf: New file.
52865         * modules/dprintf-posix: New file.
52866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52867         HAVE_DPRINTF, REPLACE_DPRINTF.
52868         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52869         HAVE_DPRINTF, REPLACE_DPRINTF.
52870         * doc/posix-functions/dprintf.texi: Mention the new modules.
52871
52872 2009-01-17  Bruno Haible  <bruno@clisp.org>
52873
52874         * modules/vdprintf-posix-tests: New file.
52875         * tests/test-vdprintf-posix.sh: New file.
52876         * tests/test-vdprintf-posix.c: New file.
52877
52878         New modules 'vdprintf', 'vdprintf-posix'.
52879         * lib/stdio.in.h (vdprintf): New declaration.
52880         * lib/vdprintf.c: New file.
52881         * m4/vdprintf.m4: New file.
52882         * m4/vdprintf-posix.m4: New file.
52883         * modules/vdprintf: New file.
52884         * modules/vdprintf-posix: New file.
52885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52886         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52887         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52888         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52889         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52890
52891 2009-01-17  Bruno Haible  <bruno@clisp.org>
52892
52893         Fix replacement of fopen on mingw.
52894         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52895         mingw.
52896
52897 2009-01-17  Bruno Haible  <bruno@clisp.org>
52898
52899         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52900         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52901
52902 2009-01-17  Bruno Haible  <bruno@clisp.org>
52903
52904         Avoid test-fflush2.sh failure on mingw.
52905         * tests/test-fflush2.c: Include binary-io.h.
52906         (main): Put standard input into binary mode.
52907         * modules/fflush-tests (Depends-on): Add binary-io.
52908
52909 2009-01-17  Bruno Haible  <bruno@clisp.org>
52910
52911         * lib/wchar.in.h: In another particular situation, include only the
52912         system's <wchar.h> file.
52913         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52914         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52915         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52916
52917 2009-01-17  Bruno Haible  <bruno@clisp.org>
52918
52919         Support for stripping executables in --enable-relocatable.
52920         * build-aux/install-reloc: Expect one more argument, or an environment
52921         variable RELOC_STRIP_PROG. If set, strip the destination program and
52922         its wrapper.
52923         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52924         RELOC_STRIP_PROG.
52925         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52926         to set RELOCATABLE_STRIP.
52927         * NEWS: Mention the new Makefile requirement.
52928
52929 2009-01-17  Bruno Haible  <bruno@clisp.org>
52930
52931         * build-aux/install-reloc: Remove debugging information left over by
52932         C compiler on MacOS X.
52933
52934 2009-01-17  Bruno Haible  <bruno@clisp.org>
52935
52936         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52937         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52938         _NSGetExecutablePath.
52939
52940 2009-01-16  Jim Meyering  <meyering@redhat.com>
52941
52942         strerror: avoid warnings about discarding "const"
52943         * lib/strerror.c (rpl_strerror): Instead of returning a const
52944         string from each and every "case", use a variable, and add a single
52945         cast after the switch.
52946
52947 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52948
52949         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52950
52951 2009-01-16  Bruno Haible  <bruno@clisp.org>
52952
52953         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52954         array initializer syntax that also works in C++ mode.
52955         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52956
52957 2009-01-16  Jim Meyering  <meyering@redhat.com>
52958
52959         poll: suppress a warning
52960         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52961         to ignore "...unsigned expression < 0 is always false" warnings.
52962
52963 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52964
52965         poll: remove declarations of unused variables
52966         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52967         sockbuf and optlen.
52968
52969 2009-01-15  Bruno Haible  <bruno@clisp.org>
52970
52971         Make fflush-after-ungetc POSIX compliant on BSD systems.
52972         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52973         (clear_ungetc_buffer): Implement also for other systems.
52974         (rpl_fflush): On glibc systems, invoke
52975         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52976         clear_ungetc_buffer after fetching the stream's position, not before.
52977
52978 2009-01-15  Bruno Haible  <bruno@clisp.org>
52979
52980         Make fflush-after-ungetc POSIX compliant on glibc systems.
52981         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52982         after ungetc.
52983         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52984         (rpl_fflush): On glibc systems, simply call the system's fflush
52985         function after clearing the ungetc buffer.
52986         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52987         Instead, lseek only to the end of file, then use the system's fseeko
52988         for the rest. On glibc systems, reset the EOF indicator bit.
52989
52990 2009-01-15  Jim Meyering  <meyering@redhat.com>
52991
52992         openmp.m4: revert quote-adding change, for portability to older autoconf
52993         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52994         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52995         Simon Josefsson noticed the problem when using autoconf-2.61.
52996
52997 2009-01-15  Bruno Haible  <bruno@clisp.org>
52998
52999         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53000         * tests/test-fflush2.c (ASSERT): Always fail.
53001         (main): Add two tests for fflush() after ungetc(), taking into account
53002         the Austin Group's clarification.
53003         Suggested by Eric Blake.
53004
53005 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53006
53007         mktime.m4: remove K&R-style function prototypes
53008         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53009         for the Sun C++ compiler.
53010
53011 2009-01-14  Bruno Haible  <bruno@clisp.org>
53012
53013         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53014         while including <wchar.h>.
53015         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53016         the system's <wchar.h> file.
53017         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53018
53019 2009-01-14  Bruno Haible  <bruno@clisp.org>
53020
53021         * m4/csharp.m4: Don't mention gettext on the serial number line.
53022         * m4/csharpexec.m4: Likewise.
53023         * m4/eaccess.m4: Likewise.
53024         * m4/javaexec.m4: Likewise.
53025         * m4/sig_atomic_t.m4: Likewise.
53026         * m4/tmpdir.m4: Likewise.
53027         * m4/intldir.m4: Bump gettext version.
53028         * m4/lib-ld.m4: Likewise.
53029
53030 2009-01-14  Bruno Haible  <bruno@clisp.org>
53031
53032         * lib/progname.c (set_program_name): Add more comments.
53033         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53034
53035 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53036
53037         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53038         were sys/stat.h does not define it.
53039
53040 2009-01-14  Jim Meyering  <meyering@redhat.com>
53041
53042         many *.m4 files: improve m4 quoting
53043         99% of this change was performed by running the following commands:
53044         git ls-files | grep '\.m4$' | xargs perl -pi \
53045           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53046           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53047           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53048           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53049         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53050         The remainder were to add Copyright dates, increment serial numbers,
53051         undo some changes in comments, exclude m4/intl.m4, and add quotes
53052         around the "1" in ",1" where the unusual spacing prohibited the
53053         above regexps from doing the job.  For more details, see
53054         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53055         * m4/acl.m4: Modified.
53056         * m4/afs.m4: Likewise.
53057         * m4/alloca.m4: Likewise.
53058         * m4/argp.m4: Likewise.
53059         * m4/argz.m4: Likewise.
53060         * m4/atexit.m4: Likewise.
53061         * m4/bison-i18n.m4: Likewise.
53062         * m4/bison.m4: Likewise.
53063         * m4/byteswap.m4: Likewise.
53064         * m4/c-stack.m4: Likewise.
53065         * m4/c-strtod.m4: Likewise.
53066         * m4/calloc.m4: Likewise.
53067         * m4/canonicalize-lgpl.m4: Likewise.
53068         * m4/chown.m4: Likewise.
53069         * m4/clock_time.m4: Likewise.
53070         * m4/codeset.m4: Likewise.
53071         * m4/copy-file.m4: Likewise.
53072         * m4/csharp.m4: Likewise.
53073         * m4/csharpcomp.m4: Likewise.
53074         * m4/csharpexec.m4: Likewise.
53075         * m4/d-ino.m4: Likewise.
53076         * m4/d-type.m4: Likewise.
53077         * m4/dirfd.m4: Likewise.
53078         * m4/double-slash-root.m4: Likewise.
53079         * m4/eaccess.m4: Likewise.
53080         * m4/eealloc.m4: Likewise.
53081         * m4/environ.m4: Likewise.
53082         * m4/errno_h.m4: Likewise.
53083         * m4/euidaccess.m4: Likewise.
53084         * m4/execute.m4: Likewise.
53085         * m4/fatal-signal.m4: Likewise.
53086         * m4/fchdir.m4: Likewise.
53087         * m4/fcntl_h.m4: Likewise.
53088         * m4/fileblocks.m4: Likewise.
53089         * m4/filenamecat.m4: Likewise.
53090         * m4/findprog.m4: Likewise.
53091         * m4/flexmember.m4: Likewise.
53092         * m4/fnmatch.m4: Likewise.
53093         * m4/fopen.m4: Likewise.
53094         * m4/fpending.m4: Likewise.
53095         * m4/fprintf-posix.m4: Likewise.
53096         * m4/free.m4: Likewise.
53097         * m4/frexp.m4: Likewise.
53098         * m4/frexpl.m4: Likewise.
53099         * m4/fsusage.m4: Likewise.
53100         * m4/ftruncate.m4: Likewise.
53101         * m4/gc-camellia.m4: Likewise.
53102         * m4/gc-random.m4: Likewise.
53103         * m4/gc.m4: Likewise.
53104         * m4/getaddrinfo.m4: Likewise.
53105         * m4/getcwd-abort-bug.m4: Likewise.
53106         * m4/getcwd-path-max.m4: Likewise.
53107         * m4/getdate.m4: Likewise.
53108         * m4/getdomainname.m4: Likewise.
53109         * m4/getgroups.m4: Likewise.
53110         * m4/gethostname.m4: Likewise.
53111         * m4/gethrxtime.m4: Likewise.
53112         * m4/getline.m4: Likewise.
53113         * m4/getloadavg.m4: Likewise.
53114         * m4/getndelim2.m4: Likewise.
53115         * m4/getpass.m4: Likewise.
53116         * m4/gettext.m4: Likewise.
53117         * m4/gettime.m4: Likewise.
53118         * m4/gettimeofday.m4: Likewise.
53119         * m4/gnulib-common.m4: Likewise.
53120         * m4/group-member.m4: Likewise.
53121         * m4/host-os.m4: Likewise.
53122         * m4/iconv.m4: Likewise.
53123         * m4/iconv_open.m4: Likewise.
53124         * m4/inet_ntop.m4: Likewise.
53125         * m4/inet_pton.m4: Likewise.
53126         * m4/inline.m4: Likewise.
53127         * m4/intldir.m4: Likewise.
53128         * m4/intlmacosx.m4: Likewise.
53129         * m4/intmax.m4: Likewise.
53130         * m4/intmax_t.m4: Likewise.
53131         * m4/inttypes.m4: Likewise.
53132         * m4/inttypes_h.m4: Likewise.
53133         * m4/inttypes-pri.m4: Likewise.
53134         * m4/isapipe.m4: Likewise.
53135         * m4/isnand.m4: Likewise.
53136         * m4/isnanf.m4: Likewise.
53137         * m4/isnanl.m4: Likewise.
53138         * m4/javacomp.m4: Likewise.
53139         * m4/javaexec.m4: Likewise.
53140         * m4/jm-winsz1.m4: Likewise.
53141         * m4/jm-winsz2.m4: Likewise.
53142         * m4/lchown.m4: Likewise.
53143         * m4/lcmessage.m4: Likewise.
53144         * m4/ldexpl.m4: Likewise.
53145         * m4/lib-ld.m4: Likewise.
53146         * m4/lib-link.m4: Likewise.
53147         * m4/libsigsegv.m4: Likewise.
53148         * m4/link-follow.m4: Likewise.
53149         * m4/localcharset.m4: Likewise.
53150         * m4/locale-fr.m4: Likewise.
53151         * m4/locale-ja.m4: Likewise.
53152         * m4/locale-tr.m4: Likewise.
53153         * m4/locale-zh.m4: Likewise.
53154         * m4/lock.m4: Likewise.
53155         * m4/longlong.m4: Likewise.
53156         * m4/ls-mntd-fs.m4: Likewise.
53157         * m4/lstat.m4: Likewise.
53158         * m4/malloc.m4: Likewise.
53159         * m4/mathl.m4: Likewise.
53160         * m4/mbrtowc.m4: Likewise.
53161         * m4/mbstate_t.m4: Likewise.
53162         * m4/mbswidth.m4: Likewise.
53163         * m4/memchr.m4: Likewise.
53164         * m4/memcmp.m4: Likewise.
53165         * m4/memcpy.m4: Likewise.
53166         * m4/memmem.m4: Likewise.
53167         * m4/memmove.m4: Likewise.
53168         * m4/mempcpy.m4: Likewise.
53169         * m4/memrchr.m4: Likewise.
53170         * m4/memset.m4: Likewise.
53171         * m4/minmax.m4: Likewise.
53172         * m4/mkdir-slash.m4: Likewise.
53173         * m4/mkdtemp.m4: Likewise.
53174         * m4/mktime.m4: Likewise.
53175         * m4/mmap-anon.m4: Likewise.
53176         * m4/mountlist.m4: Likewise.
53177         * m4/nanosleep.m4: Likewise.
53178         * m4/nls.m4: Likewise.
53179         * m4/nocrash.m4: Likewise.
53180         * m4/open.m4: Likewise.
53181         * m4/openat.m4: Likewise.
53182         * m4/openmp.m4: Likewise.
53183         * m4/pathmax.m4: Likewise.
53184         * m4/perl.m4: Likewise.
53185         * m4/physmem.m4: Likewise.
53186         * m4/pipe.m4: Likewise.
53187         * m4/po.m4: Likewise.
53188         * m4/poll.m4: Likewise.
53189         * m4/posixtm.m4: Likewise.
53190         * m4/posixver.m4: Likewise.
53191         * m4/printf-frexp.m4: Likewise.
53192         * m4/printf-frexpl.m4: Likewise.
53193         * m4/printf-posix.m4: Likewise.
53194         * m4/printf-posix-rpl.m4: Likewise.
53195         * m4/printf.m4: Likewise.
53196         * m4/progtest.m4: Likewise.
53197         * m4/putenv.m4: Likewise.
53198         * m4/readline.m4: Likewise.
53199         * m4/readlink.m4: Likewise.
53200         * m4/readutmp.m4: Likewise.
53201         * m4/realloc.m4: Likewise.
53202         * m4/regex.m4: Likewise.
53203         * m4/relocatable.m4: Likewise.
53204         * m4/relocatable-lib.m4: Likewise.
53205         * m4/rename-dest-slash.m4: Likewise.
53206         * m4/rename.m4: Likewise.
53207         * m4/rmdir-errno.m4: Likewise.
53208         * m4/rmdir.m4: Likewise.
53209         * m4/roundf.m4: Likewise.
53210         * m4/roundl.m4: Likewise.
53211         * m4/rpmatch.m4: Likewise.
53212         * m4/save-cwd.m4: Likewise.
53213         * m4/selinux-selinux-h.m4: Likewise.
53214         * m4/setenv.m4: Likewise.
53215         * m4/settime.m4: Likewise.
53216         * m4/sig2str.m4: Likewise.
53217         * m4/sig_atomic_t.m4: Likewise.
53218         * m4/signalblocking.m4: Likewise.
53219         * m4/signbit.m4: Likewise.
53220         * m4/sigpipe.m4: Likewise.
53221         * m4/sockets.m4: Likewise.
53222         * m4/sockpfaf.m4: Likewise.
53223         * m4/st_dm_mode.m4: Likewise.
53224         * m4/stat-time.m4: Likewise.
53225         * m4/stdbool.m4: Likewise.
53226         * m4/stdint.m4: Likewise.
53227         * m4/stdint_h.m4: Likewise.
53228         * m4/stpcpy.m4: Likewise.
53229         * m4/stpncpy.m4: Likewise.
53230         * m4/strcase.m4: Likewise.
53231         * m4/strchrnul.m4: Likewise.
53232         * m4/strcspn.m4: Likewise.
53233         * m4/strdup.m4: Likewise.
53234         * m4/strftime.m4: Likewise.
53235         * m4/strndup.m4: Likewise.
53236         * m4/strnlen.m4: Likewise.
53237         * m4/strpbrk.m4: Likewise.
53238         * m4/strptime.m4: Likewise.
53239         * m4/strsep.m4: Likewise.
53240         * m4/strtod.m4: Likewise.
53241         * m4/strtoimax.m4: Likewise.
53242         * m4/strtok_r.m4: Likewise.
53243         * m4/strtol.m4: Likewise.
53244         * m4/strtoll.m4: Likewise.
53245         * m4/strtoul.m4: Likewise.
53246         * m4/strtoull.m4: Likewise.
53247         * m4/strtoumax.m4: Likewise.
53248         * m4/strverscmp.m4: Likewise.
53249         * m4/threadlib.m4: Likewise.
53250         * m4/timegm.m4: Likewise.
53251         * m4/tm_gmtoff.m4: Likewise.
53252         * m4/tmpdir.m4: Likewise.
53253         * m4/tmpfile.m4: Likewise.
53254         * m4/tzset.m4: Likewise.
53255         * m4/uintmax_t.m4: Likewise.
53256         * m4/unlinkdir.m4: Likewise.
53257         * m4/unlocked-io.m4: Likewise.
53258         * m4/uptime.m4: Likewise.
53259         * m4/userspec.m4: Likewise.
53260         * m4/utimbuf.m4: Likewise.
53261         * m4/utime.m4: Likewise.
53262         * m4/utimes-null.m4: Likewise.
53263         * m4/utimes.m4: Likewise.
53264         * m4/vararrays.m4: Likewise.
53265         * m4/vasnprintf.m4: Likewise.
53266         * m4/vfprintf-posix.m4: Likewise.
53267         * m4/vprintf-posix.m4: Likewise.
53268         * m4/wait-process.m4: Likewise.
53269         * m4/wchar_t.m4: Likewise.
53270         * m4/wint_t.m4: Likewise.
53271         * m4/write-any-file.m4: Likewise.
53272         * m4/yield.m4: Likewise.
53273
53274 2009-01-13  Bruno Haible  <bruno@clisp.org>
53275
53276         Avoid test-copy-file.sh failures when ACL support insufficient.
53277         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53278         TESTS_ENVIRONMENT.
53279         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53280         Reported by Jim Meyering.
53281
53282 2009-01-13  Bruno Haible  <bruno@clisp.org>
53283
53284         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53285         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53286         * modules/unistdio/u8-printf-parse (Files): Likewise.
53287         * modules/unistdio/u32-printf-parse (Files): Likewise.
53288         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53289
53290 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53291
53292         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53293         and m4/inttypes_h.m4 too.
53294
53295 2009-01-12  Eric Blake  <ebb9@byu.net>
53296
53297         tests: IRIX 6.2 cc can't compile -0.0 into .data
53298         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53299         rather than at compile-time.
53300         * tests/test-floorl.c (minus_zero): Likewise.
53301         * tests/test-frexpl.c (minus_zero): Likewise.
53302         * tests/test-isnan.c (minus_zerol): Likewise.
53303         * tests/test-isnanl.h (minus_zero): Likewise.
53304         * tests/test-ldexpl.c (minus_zero): Likewise.
53305         * tests/test-roundl.c (minus_zero): Likewise.
53306         * tests/test-signbit.c (minus_zerol): Likewise.
53307         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53308         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53309         * tests/test-truncl.c (minus_zero): Likewise.
53310         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53311         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53312         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53313
53314 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53315
53316         regex: fix glibc bug 9697
53317         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53318         handling.
53319
53320 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53321
53322         regex: fix glibc bug 697
53323         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53324         being NULL also if there are no backreferences.
53325
53326 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53327
53328         regex: merge glibc changes
53329         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53330         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53331         re_string_skip_chars, re_string_reconstruct): Likewise.
53332         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53333
53334 2009-01-07  Jim Meyering  <meyering@redhat.com>
53335
53336         poll: filter through cppi
53337         * lib/poll.c: Indent cpp directives to reflect nesting.
53338
53339 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53340
53341         poll: don't return uninitialized
53342         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53343
53344 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53345
53346         avoid compile failure on AIX 6.1
53347         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53348         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53349
53350 2009-01-04  Jim Meyering  <meyering@redhat.com>
53351
53352         remove duplicate inclusion of <stdio.h>
53353         * tests/test-fprintf-posix.c: Likewise.
53354         * tests/test-printf-posix.c: Likewise.
53355         * tests/test-snprintf-posix.c: Likewise.
53356         * tests/test-sprintf-posix.c: Likewise.
53357         * tests/test-vasprintf-posix.c: Likewise.
53358         * tests/test-vfprintf-posix.c: Likewise.
53359         * tests/test-vprintf-posix.c: Likewise.
53360         * tests/test-vsnprintf-posix.c: Likewise.
53361         * tests/test-vsprintf-posix.c: Likewise.
53362
53363 2009-01-03  Jim Meyering  <meyering@redhat.com>
53364
53365         gnulib-tool: fix sed-based filtering
53366         * gnulib-tool (func_filter_filelist): Remove extra backslash
53367         in sed_fff_filter definition.
53368
53369 2009-01-02  Jim Meyering  <meyering@redhat.com>
53370
53371         strftime: avoid compilation failure on Solaris 2.6
53372         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53373         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53374         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53375         be available.  Reported by Tom G. Christensen.  Details in
53376         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53377
53378 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53379             Bruno Haible  <bruno@clisp.org>
53380
53381         Speed up gnulib-tool by doing more string processing through shell
53382         built-ins.
53383         * gnulib-tool (fast_func_append): New variable.
53384         (func_remove_prefix, func_remove_suffix): New functions.
53385         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53386         (func_filter_filelist): New function.
53387         (func_get_dependencies): Use func_remove_suffix instead of sed.
53388         (func_get_automake_snippet): Use func_filter_filelist instead of a
53389         subshell and sed invocation.
53390
53391 2009-01-01  Bruno Haible  <bruno@clisp.org>
53392
53393         Fix a security bug.
53394         * gnulib-tool (func_import, import, update): Don't allow the characters
53395         '"', '$', '`', '\' in macro arguments that become part of commands that
53396         are evaluated.
53397
53398 2009-01-01  Bruno Haible  <bruno@clisp.org>
53399
53400         * gnulib-tool (func_reset_sigpipe): Add more comments.
53401
53402 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53403
53404         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53405         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53406         already know the answer.
53407
53408 2009-01-01  Jim Meyering  <meyering@redhat.com>
53409
53410         * lib/version-etc.c (version_etc_va): Update copyright year.
53411
53412 2008-12-30  Bruno Haible  <bruno@clisp.org>
53413
53414         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53415         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53416         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53417
53418 2008-12-29  Eric Blake  <ebb9@byu.net>
53419
53420         multiarch: avoid autoconf AC_REQUIRE bug
53421         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53422         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53423         2.63 and older.
53424         Reported by Bruno Haible, and analyzed in
53425         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53426
53427 2008-12-29  Bruno Haible  <bruno@clisp.org>
53428
53429         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53430         files in subdirectories correctly.
53431         Reported by Ralf Wildenhues.
53432
53433 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53434
53435         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53436         rather than 'join FILE -', for Solaris join.
53437
53438 2008-12-29  Bruno Haible  <bruno@clisp.org>
53439
53440         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53441         quoting.
53442         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53443         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53444         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53445         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53446         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53447         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53448         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53449         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53450         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53451         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53452         * m4/nls.m4 (AM_NLS): Likewise.
53453         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53454         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53455         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53456         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53457         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53458         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53459         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53460         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53461         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53462         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53463         * m4/xsize.m4 (gl_XSIZE): Likewise.
53464         Suggested by Jim Meyering.
53465
53466 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53467
53468         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53469         * lib/parse-duration.c: use a switch instead of cascading if's.
53470
53471 2008-12-29  Eric Blake  <ebb9@byu.net>
53472
53473         wchar.h: supply WEOF on Irix 5.3
53474         * lib/wchar.in.h (wint_t): Also supply WEOF.
53475         * lib/wctype.in.h (wint_t): Likewise.
53476         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53477         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53478         Reported by Tom G. Christensen.
53479
53480 2008-12-26  Bruno Haible  <bruno@clisp.org>
53481
53482         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53483         i486, i586, i686.
53484
53485 2008-12-26  Bruno Haible  <bruno@clisp.org>
53486
53487         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53488
53489 2008-12-26  Bruno Haible  <bruno@clisp.org>
53490
53491         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53492         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53493         not __STDC_CONSTANT_MACROS.
53494         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53495
53496 2008-12-25  Bruno Haible  <bruno@clisp.org>
53497
53498         Add support for universal builds to vasnprintf.
53499         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53500         universal builds, guess no.
53501         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53502         * modules/vasprintf-posix (Depends-on): Likewise.
53503         * modules/fprintf-posix (Depends-on): Likewise.
53504         * modules/vfprintf-posix (Depends-on): Likewise.
53505         * modules/snprintf-posix (Depends-on): Likewise.
53506         * modules/vsnprintf-posix (Depends-on): Likewise.
53507         * modules/sprintf-posix (Depends-on): Likewise.
53508         * modules/vsprintf-posix (Depends-on): Likewise.
53509         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53510         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53511         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53512         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53513         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53514         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53515         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53516
53517         Add support for universal builds to <inttypes.h>.
53518         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53519         _SCNu64_PREFIX): In Apple
53520         universal builds, define directly, using _LP64.
53521         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53522         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53523         * modules/inttypes (Depends-on): Add multiarch.
53524         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53525
53526         Add support for universal builds to <stdint.h>.
53527         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53528         universal builds, define directly, using _LP64.
53529         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53530         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53531         and size_t.
53532         * modules/stdint (Depends-on): Add multiarch.
53533         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53534
53535         New module 'multiarch'.
53536         * modules/multiarch: New file.
53537         * m4/multiarch.m4: New file.
53538
53539 2008-12-25  Bruno Haible  <bruno@clisp.org>
53540
53541         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53542
53543 2008-12-25  Bruno Haible  <bruno@clisp.org>
53544
53545         * modules/btowc (License): Relicense under LGPLv2+.
53546         * modules/mbsinit (License): Likewise.
53547         * modules/mbrtowc (License): Likewise.
53548         * modules/wcrtomb (License): Likewise.
53549         * modules/streq (License): Likewise.
53550         Reported by David Lutterkort <lutter@redhat.com>.
53551
53552 2008-12-23  Bruno Haible  <bruno@clisp.org>
53553
53554         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53555
53556 2008-12-23  Bruno Haible  <bruno@clisp.org>
53557
53558         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53559         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53560         GETADDRINFO_LIB, not in LIBS.
53561         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53562         * modules/canon-host (Link): Likewise.
53563         * NEWS: Mention the change.
53564         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53565         GETADDRINFO_LIB.
53566
53567 2008-12-22  Bruno Haible  <bruno@clisp.org>
53568
53569         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53570         * doc/posix-functions/iswalpha_l.texi: Likewise.
53571         * doc/posix-functions/iswblank_l.texi: Likewise.
53572         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53573         * doc/posix-functions/iswctype_l.texi: Likewise.
53574         * doc/posix-functions/iswdigit_l.texi: Likewise.
53575         * doc/posix-functions/iswgraph_l.texi: Likewise.
53576         * doc/posix-functions/iswlower_l.texi: Likewise.
53577         * doc/posix-functions/iswprint_l.texi: Likewise.
53578         * doc/posix-functions/iswpunct_l.texi: Likewise.
53579         * doc/posix-functions/iswspace_l.texi: Likewise.
53580         * doc/posix-functions/iswupper_l.texi: Likewise.
53581         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53582         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53583         * doc/posix-functions/open_wmemstream.texi: Likewise.
53584         * doc/posix-functions/swscanf.texi: Likewise.
53585         * doc/posix-functions/towctrans_l.texi: Likewise.
53586         * doc/posix-functions/towlower.texi: Likewise.
53587         * doc/posix-functions/towlower_l.texi: Likewise.
53588         * doc/posix-functions/towupper.texi: Likewise.
53589         * doc/posix-functions/towupper_l.texi: Likewise.
53590         * doc/posix-functions/vfwprintf.texi: Likewise.
53591         * doc/posix-functions/vfwscanf.texi: Likewise.
53592         * doc/posix-functions/vswscanf.texi: Likewise.
53593         * doc/posix-functions/vwprintf.texi: Likewise.
53594         * doc/posix-functions/vwscanf.texi: Likewise.
53595         * doc/posix-functions/wcpcpy.texi: Likewise.
53596         * doc/posix-functions/wcpncpy.texi: Likewise.
53597         * doc/posix-functions/wcscasecmp.texi: Likewise.
53598         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53599         * doc/posix-functions/wcscoll_l.texi: Likewise.
53600         * doc/posix-functions/wcsdup.texi: Likewise.
53601         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53602         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53603         * doc/posix-functions/wcsnlen.texi: Likewise.
53604         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53605         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53606         * doc/posix-functions/wctrans_l.texi: Likewise.
53607         * doc/posix-functions/wctype_l.texi: Likewise.
53608         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53609         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53610         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53611         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53612         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53613         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53614         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53615         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53616         * doc/glibc-functions/wcschrnul.texi: Likewise.
53617         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53618         * doc/glibc-functions/wcstod_l.texi: Likewise.
53619         * doc/glibc-functions/wcstof_l.texi: Likewise.
53620         * doc/glibc-functions/wcstol_l.texi: Likewise.
53621         * doc/glibc-functions/wcstold_l.texi: Likewise.
53622         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53623         * doc/glibc-functions/wcstoq.texi: Likewise.
53624         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53625         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53626         * doc/glibc-functions/wcstouq.texi: Likewise.
53627         * doc/glibc-functions/wmempcpy.texi: Likewise.
53628
53629 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53630             Eric Blake  <ebb9@byu.net>
53631             Paolo Bonzini  <bonzini@gnu.org>
53632             Bruno Haible  <bruno@clisp.org>
53633
53634         Make c-stack work on Haiku.
53635         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53636         (c_stack_action): Use SA_ONSTACK flag.
53637
53638 2008-12-22  Bruno Haible  <bruno@clisp.org>
53639
53640         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53641
53642 2008-12-22  Bruno Haible  <bruno@clisp.org>
53643
53644         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53645         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53646         being overridden.
53647         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53648         New macros.
53649         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53650         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53651         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53652         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53653
53654 2008-12-22  Bruno Haible  <bruno@clisp.org>
53655
53656         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53657         from test code.
53658
53659 2008-12-22  Eric Blake  <ebb9@byu.net>
53660
53661         Avoid gcc warnings on cygwin.
53662         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53663         Avoid unused variable.
53664         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53665         Likewise.
53666
53667 2008-12-22  Bruno Haible  <bruno@clisp.org>
53668
53669         Remove HAVE_MBRTOWC conditionals.
53670         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53671         (mbscasecmp): Assume mbrtowc function.
53672         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53673         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53674         * lib/mbschr.c: Include mbuiter.h unconditionally.
53675         (mbschr): Assume mbrtowc function.
53676         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53677         (mbscspn): Assume mbrtowc function.
53678         * lib/mbslen.c: Include mbuiter.h unconditionally.
53679         (mbslen): Assume mbrtowc function.
53680         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53681         (mbsncasecmp): Assume mbrtowc function.
53682         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53683         (mbsnlen): Assume mbrtowc function.
53684         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53685         (mbspbrk): Assume mbrtowc function.
53686         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53687         (mbspcasecmp): Assume mbrtowc function.
53688         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53689         (mbsrchr): Assume mbrtowc function.
53690         * lib/mbssep.c: Include mbuiter.h unconditionally.
53691         (mbssep): Assume mbrtowc function.
53692         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53693         (mbsspn): Assume mbrtowc function.
53694         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53695         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53696         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53697         (mbstok_r): Assume mbrtowc function.
53698         * lib/propername.c: Include mbuiter.h unconditionally.
53699         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53700         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53701         (trim2): Assume mbrtowc function.
53702         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53703         (mbsnwidth): Assume mbrtowc function.
53704         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53705         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53706         fallback definitions.
53707         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53708
53709 2008-12-22  Bruno Haible  <bruno@clisp.org>
53710
53711         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53712
53713 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53714
53715         * modules/regex: Request emulations for the mb*/wc* functions we need.
53716         * m4/regex.m4: Don't look for those functions here.
53717         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53718
53719 2008-12-22  Bruno Haible  <bruno@clisp.org>
53720
53721         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53722
53723 2008-12-21  Bruno Haible  <bruno@clisp.org>
53724
53725         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53726         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53727         (Include): Remove conditionalization.
53728         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53729         (Include): Remove conditionalization.
53730         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53731         (Include): Remove conditionalization.
53732         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53733         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53734         * NEWS: Mention the change.
53735         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53736         via Sergey Poznyakoff <gray@gnu.org.ua>.
53737
53738 2008-12-21  Bruno Haible  <bruno@clisp.org>
53739
53740         * MODULES.html.sh (Extended multibyte and wide character utilities
53741         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53742         wcrtomb, wcsrtombs.
53743         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53744         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53745         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53746         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53747
53748 2008-12-21  Bruno Haible  <bruno@clisp.org>
53749
53750         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53751
53752 2008-12-21  Bruno Haible  <bruno@clisp.org>
53753
53754         * modules/wcsnrtombs-tests: New file.
53755         * tests/test-wcsnrtombs1.sh: New file.
53756         * tests/test-wcsnrtombs2.sh: New file.
53757         * tests/test-wcsnrtombs3.sh: New file.
53758         * tests/test-wcsnrtombs4.sh: New file.
53759         * tests/test-wcsnrtombs.c: New file.
53760
53761         New module 'wcsnrtombs'.
53762         * lib/wchar.in.h (wcsnrtombs): New declaration.
53763         * lib/wcsnrtombs.c: New file.
53764         * lib/wcsrtombs-state.c: New file.
53765         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53766         (internal_state): Remove variable.
53767         * m4/wcsnrtombs.m4: New file.
53768         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53769         compilation units.
53770         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53771         HAVE_WCSNRTOMBS.
53772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53773         HAVE_WCSNRTOMBS.
53774         * modules/wcsnrtombs: New file.
53775         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53776         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53777
53778 2008-12-21  Bruno Haible  <bruno@clisp.org>
53779
53780         * modules/wcsrtombs-tests: New file.
53781         * tests/test-wcsrtombs1.sh: New file.
53782         * tests/test-wcsrtombs2.sh: New file.
53783         * tests/test-wcsrtombs3.sh: New file.
53784         * tests/test-wcsrtombs4.sh: New file.
53785         * tests/test-wcsrtombs.c: New file.
53786
53787         New module 'wcsrtombs'.
53788         * lib/wchar.in.h (wcsrtombs): New declaration.
53789         * lib/wcsrtombs.c: New file.
53790         * m4/wcsrtombs.m4: New file.
53791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53792         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53793         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53794         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53795         * modules/wcsrtombs: New file.
53796         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
53797         bugs.
53798
53799 2008-12-21  Bruno Haible  <bruno@clisp.org>
53800
53801         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
53802         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
53803         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
53804         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
53805         if not correct.
53806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
53807         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
53808         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53809         m4/locale-zh.m4, m4/codeset.m4.
53810         * doc/posix-functions/wcrtomb.texi: Document the bug.
53811
53812 2008-12-21  Bruno Haible  <bruno@clisp.org>
53813
53814         Work around a btowc() bug on IRIX 6.5.
53815         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
53816         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
53817         REPLACE_WTOBC if not.
53818         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
53819         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
53820         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
53821
53822 2008-12-21  Bruno Haible  <bruno@clisp.org>
53823
53824         * modules/wcrtomb-tests: New file.
53825         * tests/test-wcrtomb.sh: New file.
53826         * tests/test-wcrtomb.c: New file.
53827
53828         New module 'wcrtomb'.
53829         * lib/wchar.in.h (wcrtomb): New declaration.
53830         * lib/wcrtomb.c: New file.
53831         * m4/wcrtomb.m4: New file.
53832         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
53833         HAVE_WCRTOMB.
53834         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
53835         HAVE_WCRTOMB.
53836         * modules/wcrtomb: New file.
53837         * doc/posix-functions/wcrtomb.texi: Mention the new module.
53838
53839 2008-12-21  Bruno Haible  <bruno@clisp.org>
53840
53841         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
53842         * modules/mbsrtowcs (Files): Likewise.
53843         * modules/wctob (Files): Likewise.
53844         * modules/c-strcase-tests (Files): Likewise.
53845         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53846         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53847         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53848         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53849         * modules/vasnprintf-posix-tests (Files): Likewise.
53850
53851 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53852
53853         gitlog-to-changelog: pass all command-line arguments to git-log
53854         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53855         it is sometimes convenient to filter the commits in various ways.
53856         gitlog-to-changelog only allows --since to specify a start date,
53857         but git-log itself supports many other filtering mechanisms.
53858         At the moment, I want to filter by branch name.  Rather than
53859         adding a --branch option to gitlog-to-changelog, it seems more
53860         flexible to simply pass all options directly to git-log and let
53861         git do the work.  Notice that this effectively makes --since a
53862         redundant option for gitlog-to-changelog, but removing it would
53863         require current usage to change since calls would then require
53864         an additional '--'.
53865
53866 2008-12-21  Bruno Haible  <bruno@clisp.org>
53867
53868         * modules/mbsnrtowcs-tests: New file.
53869         * tests/test-mbsnrtowcs1.sh: New file.
53870         * tests/test-mbsnrtowcs2.sh: New file.
53871         * tests/test-mbsnrtowcs3.sh: New file.
53872         * tests/test-mbsnrtowcs4.sh: New file.
53873         * tests/test-mbsnrtowcs.c: New file.
53874
53875         New module 'mbsnrtowcs'.
53876         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53877         * lib/mbsnrtowcs.c: New file.
53878         * lib/mbsrtowcs-state.c: New file.
53879         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53880         (internal_state): Remove variable.
53881         * m4/mbsnrtowcs.m4: New file.
53882         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53883         compilation units.
53884         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53885         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53886         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53887         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53888         * modules/mbsnrtowcs: New file.
53889         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53890         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53891         portability problem.
53892
53893 2008-12-21  Bruno Haible  <bruno@clisp.org>
53894
53895         Work around mbsrtowcs bug.
53896         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53897         (gl_FUNC_MBSRTOWCS): Invoke it.
53898         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53899         m4/locale-zh.m4.
53900         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53901
53902 2008-12-21  Bruno Haible  <bruno@clisp.org>
53903
53904         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53905
53906 2008-12-21  Bruno Haible  <bruno@clisp.org>
53907
53908         Update doc for AIX.
53909         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53910         16-bit wchar_t type.
53911         * doc/posix-functions/btowc.texi: Likewise.
53912         * doc/posix-functions/fgetwc.texi: Likewise.
53913         * doc/posix-functions/fgetws.texi: Likewise.
53914         * doc/posix-functions/fputwc.texi: Likewise.
53915         * doc/posix-functions/fputws.texi: Likewise.
53916         * doc/posix-functions/fwide.texi: Likewise.
53917         * doc/posix-functions/fwprintf.texi: Likewise.
53918         * doc/posix-functions/fwscanf.texi: Likewise.
53919         * doc/posix-functions/getwchar.texi: Likewise.
53920         * doc/posix-functions/getwc.texi: Likewise.
53921         * doc/posix-functions/iswalnum.texi: Likewise.
53922         * doc/posix-functions/iswalpha.texi: Likewise.
53923         * doc/posix-functions/iswblank.texi: Likewise.
53924         * doc/posix-functions/iswcntrl.texi: Likewise.
53925         * doc/posix-functions/iswctype.texi: Likewise.
53926         * doc/posix-functions/iswdigit.texi: Likewise.
53927         * doc/posix-functions/iswgraph.texi: Likewise.
53928         * doc/posix-functions/iswlower.texi: Likewise.
53929         * doc/posix-functions/iswprint.texi: Likewise.
53930         * doc/posix-functions/iswpunct.texi: Likewise.
53931         * doc/posix-functions/iswspace.texi: Likewise.
53932         * doc/posix-functions/iswupper.texi: Likewise.
53933         * doc/posix-functions/iswxdigit.texi: Likewise.
53934         * doc/posix-functions/mbrtowc.texi: Likewise.
53935         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53936         * doc/posix-functions/mbstowcs.texi: Likewise.
53937         * doc/posix-functions/mbtowc.texi: Likewise.
53938         * doc/posix-functions/putwchar.texi: Likewise.
53939         * doc/posix-functions/putwc.texi: Likewise.
53940         * doc/posix-functions/swprintf.texi: Likewise.
53941         * doc/posix-functions/tolower.texi: Likewise.
53942         * doc/posix-functions/toupper.texi: Likewise.
53943         * doc/posix-functions/towctrans.texi: Likewise.
53944         * doc/posix-functions/ungetwc.texi: Likewise.
53945         * doc/posix-functions/vswprintf.texi: Likewise.
53946         * doc/posix-functions/wcrtomb.texi: Likewise.
53947         * doc/posix-functions/wcscat.texi: Likewise.
53948         * doc/posix-functions/wcschr.texi: Likewise.
53949         * doc/posix-functions/wcscmp.texi: Likewise.
53950         * doc/posix-functions/wcscoll.texi: Likewise.
53951         * doc/posix-functions/wcscpy.texi: Likewise.
53952         * doc/posix-functions/wcscspn.texi: Likewise.
53953         * doc/posix-functions/wcsftime.texi: Likewise.
53954         * doc/posix-functions/wcslen.texi: Likewise.
53955         * doc/posix-functions/wcsncat.texi: Likewise.
53956         * doc/posix-functions/wcsncmp.texi: Likewise.
53957         * doc/posix-functions/wcsncpy.texi: Likewise.
53958         * doc/posix-functions/wcspbrk.texi: Likewise.
53959         * doc/posix-functions/wcsrchr.texi: Likewise.
53960         * doc/posix-functions/wcsrtombs.texi: Likewise.
53961         * doc/posix-functions/wcsspn.texi: Likewise.
53962         * doc/posix-functions/wcsstr.texi: Likewise.
53963         * doc/posix-functions/wcstod.texi: Likewise.
53964         * doc/posix-functions/wcstof.texi: Likewise.
53965         * doc/posix-functions/wcstoimax.texi: Likewise.
53966         * doc/posix-functions/wcstok.texi: Likewise.
53967         * doc/posix-functions/wcstold.texi: Likewise.
53968         * doc/posix-functions/wcstoll.texi: Likewise.
53969         * doc/posix-functions/wcstol.texi: Likewise.
53970         * doc/posix-functions/wcstombs.texi: Likewise.
53971         * doc/posix-functions/wcstoull.texi: Likewise.
53972         * doc/posix-functions/wcstoul.texi: Likewise.
53973         * doc/posix-functions/wcstoumax.texi: Likewise.
53974         * doc/posix-functions/wcswidth.texi: Likewise.
53975         * doc/posix-functions/wcsxfrm.texi: Likewise.
53976         * doc/posix-functions/wctob.texi: Likewise.
53977         * doc/posix-functions/wctomb.texi: Likewise.
53978         * doc/posix-functions/wctrans.texi: Likewise.
53979         * doc/posix-functions/wctype.texi: Likewise.
53980         * doc/posix-functions/wcwidth.texi: Likewise.
53981         * doc/posix-functions/wmemchr.texi: Likewise.
53982         * doc/posix-functions/wmemcmp.texi: Likewise.
53983         * doc/posix-functions/wmemcpy.texi: Likewise.
53984         * doc/posix-functions/wmemmove.texi: Likewise.
53985         * doc/posix-functions/wmemset.texi: Likewise.
53986         * doc/posix-functions/wprintf.texi: Likewise.
53987         * doc/posix-functions/wscanf.texi: Likewise.
53988
53989 2008-12-21  Bruno Haible  <bruno@clisp.org>
53990
53991         Update doc for HP-UX 11.11.
53992         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53993         in HP-UX version 11.00, not in all versions of HP-UX 11.
53994         * doc/posix-functions/fwide.texi: Likewise.
53995         * doc/posix-functions/fwprintf.texi: Likewise.
53996         * doc/posix-functions/fwscanf.texi: Likewise.
53997         * doc/posix-functions/inet_ntop.texi: Likewise.
53998         * doc/posix-functions/inet_pton.texi: Likewise.
53999         * doc/posix-functions/mbrlen.texi: Likewise.
54000         * doc/posix-functions/mbrtowc.texi: Likewise.
54001         * doc/posix-functions/mbsinit.texi: Likewise.
54002         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54003         * doc/posix-functions/swprintf.texi: Likewise.
54004         * doc/posix-functions/swscanf.texi: Likewise.
54005         * doc/posix-functions/towctrans.texi: Likewise.
54006         * doc/posix-functions/vfwprintf.texi: Likewise.
54007         * doc/posix-functions/vswprintf.texi: Likewise.
54008         * doc/posix-functions/vwprintf.texi: Likewise.
54009         * doc/posix-functions/wcrtomb.texi: Likewise.
54010         * doc/posix-functions/wcsrtombs.texi: Likewise.
54011         * doc/posix-functions/wcsstr.texi: Likewise.
54012         * doc/posix-functions/wctob.texi: Likewise.
54013         * doc/posix-functions/wctrans.texi: Likewise.
54014         * doc/posix-functions/wmemchr.texi: Likewise.
54015         * doc/posix-functions/wmemcmp.texi: Likewise.
54016         * doc/posix-functions/wmemcpy.texi: Likewise.
54017         * doc/posix-functions/wmemmove.texi: Likewise.
54018         * doc/posix-functions/wmemset.texi: Likewise.
54019         * doc/posix-functions/wprintf.texi: Likewise.
54020         * doc/posix-functions/wscanf.texi: Likewise.
54021
54022 2008-12-21  Bruno Haible  <bruno@clisp.org>
54023
54024         Work around a portability problem.
54025         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54026         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54027
54028 2008-12-20  Bruno Haible  <bruno@clisp.org>
54029
54030         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54031         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54032         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54033         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54034         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54035
54036         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54037         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54038         set.
54039         (GNULIB_defined_mbstate_t): New macro.
54040         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54041         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54042         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54043         reuses the system's mbrtowc function but works around the bugs.
54044         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54045         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54046         macros.
54047         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54048         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54049         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54050         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54051         REPLACE_MBSINIT if mbsinit needs to be overridden.
54052         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54053         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54054         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54055         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54056         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54057         m4/locale-zh.m4.
54058         (Depends): Add mbsinit.
54059         * modules/mbsinit (Depends): Add mbrtowc.
54060         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54061
54062 2008-12-20  Bruno Haible  <bruno@clisp.org>
54063
54064         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54065         so that there are no conversion errors on AIX.
54066         * tests/test-mbsrtowcs.c (main): LIkewise.
54067
54068 2008-12-20  Bruno Haible  <bruno@clisp.org>
54069
54070         Work around wctob bug on Solaris <= 9.
54071         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54072         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54074         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54075         * modules/wctob (Files): Add m4/locale-fr.m4.
54076         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54077
54078 2008-12-20  Bruno Haible  <bruno@clisp.org>
54079
54080         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54081         /dev/null.
54082         * tests/test-select-in.sh: Likewise.
54083         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54084
54085 2008-12-20  Bruno Haible  <bruno@clisp.org>
54086
54087         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54088         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54089         Cygwin 1.5.x.
54090
54091 2008-12-20  Bruno Haible  <bruno@clisp.org>
54092
54093         Ensure mbstate_t is defined on HP-UX 11.11.
54094         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54095         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54096         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54097         AC_USE_SYSTEM_EXTENSIONS.
54098         * modules/fnmatch (Depends-on): Add extensions.
54099         * modules/mbrlen (Depends-on): Likewise.
54100         * modules/mbrtowc (Depends-on): Likewise.
54101         * modules/mbsinit (Depends-on): Likewise.
54102         * modules/mbsrtowcs (Depends-on): Likewise.
54103         * modules/mbswidth (Depends-on): Likewise.
54104         * modules/quotearg (Depends-on): Likewise.
54105         * modules/strftime (Depends-on): Likewise.
54106
54107 2008-12-20  Bruno Haible  <bruno@clisp.org>
54108
54109         Ensure wctob is declared on IRIX 6.5.
54110         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54111         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54112         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54113         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54114         of HAVE_WCTOB.
54115         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54116         HAVE_WCTOB.
54117         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54118
54119 2008-12-19  Bruno Haible  <bruno@clisp.org>
54120
54121         * modules/mbsrtowcs-tests: New file.
54122         * tests/test-mbsrtowcs1.sh: New file.
54123         * tests/test-mbsrtowcs2.sh: New file.
54124         * tests/test-mbsrtowcs3.sh: New file.
54125         * tests/test-mbsrtowcs4.sh: New file.
54126         * tests/test-mbsrtowcs.c: New file.
54127
54128         New module 'mbsrtowcs'.
54129         * lib/wchar.in.h (mbsrtowcs): New declaration.
54130         * lib/mbsrtowcs.c: New file.
54131         * m4/mbsrtowcs.m4: New file.
54132         * modules/mbsrtowcs: New file.
54133         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54134         HAVE_MBSRTOWCS.
54135         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54136         HAVE_MBSRTOWCS.
54137         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54138
54139 2008-12-19  Bruno Haible  <bruno@clisp.org>
54140
54141         New module 'mbrlen'.
54142         * lib/wchar.in.h (mbrlen): New declaration.
54143         * lib/mbrlen.c: New file.
54144         * m4/mbrlen.m4: New file.
54145         * modules/mbrlen: New file.
54146         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54147         HAVE_MBRLEN.
54148         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54149         HAVE_MBRLEN.
54150         * doc/posix-functions/mbrlen.texi: Document the new module.
54151
54152 2008-12-19  Bruno Haible  <bruno@clisp.org>
54153
54154         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54155         * modules/mbrtowc (Depends-on): Add verify.
54156         Suggested by Paul Eggert.
54157
54158 2008-12-18  Bruno Haible  <bruno@clisp.org>
54159
54160         * modules/mbsinit-tests: New file.
54161         * tests/test-mbsinit.sh: New file.
54162         * tests/test-mbsinit.c: New file.
54163
54164 2008-12-18  Bruno Haible  <bruno@clisp.org>
54165
54166         * modules/mbrtowc-tests: New file.
54167         * tests/test-mbrtowc1.sh: New file.
54168         * tests/test-mbrtowc2.sh: New file.
54169         * tests/test-mbrtowc3.sh: New file.
54170         * tests/test-mbrtowc4.sh: New file.
54171         * tests/test-mbrtowc.c: New file.
54172
54173         New module 'mbrtowc'.
54174         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54175         mbsinit and mbrtowc.
54176         (mbrtowc): New declaration.
54177         * lib/mbrtowc.c: New file.
54178         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54179         * modules/mbrtowc: New file.
54180         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54181         HAVE_MBRTOWC.
54182         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54183         HAVE_MBRTOWC.
54184         * doc/posix-functions/mbrtowc.texi: Document the new module.
54185
54186 2008-12-18  Bruno Haible  <bruno@clisp.org>
54187
54188         New module 'wctob'.
54189         * lib/wchar.in.h (wctob): New declaration.
54190         * lib/wctob.c: New file.
54191         * m4/wctob.m4: New file.
54192         * modules/wctob: New file.
54193         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54194         HAVE_WCTOB.
54195         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54196         * doc/posix-functions/wctob.texi: Document the new module.
54197
54198 2008-12-18  Bruno Haible  <bruno@clisp.org>
54199
54200         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54201         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54202
54203 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54204
54205         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54206         G. Christensen" <tgc@jupiterrise.com>.
54207
54208         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54209         G. Christensen" <tgc@jupiterrise.com>.
54210
54211         * lib/flock.c: Need to include string.h.  Reported by "Tom
54212         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54213         <ebb9@byu.net>.
54214
54215 2008-12-18  Bruno Haible  <bruno@clisp.org>
54216
54217         * m4/locale-ja.m4: New file, from GNU gettext.
54218
54219 2008-12-17  Bruno Haible  <bruno@clisp.org>
54220
54221         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54222         Suggested by Eric Blake.
54223
54224 2008-12-17  Bruno Haible  <bruno@clisp.org>
54225
54226         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54227
54228 2008-12-17  Bruno Haible  <bruno@clisp.org>
54229
54230         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54231         * modules/mbsinit (Depends-on): Add verify.
54232         Suggested by Paul Eggert.
54233
54234 2008-12-17  Bruno Haible  <bruno@clisp.org>
54235
54236         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54237         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54238         gl_FUNC_MBRTOWC.
54239         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54240         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54241         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54242         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54243         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54244         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54245         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54246         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54247         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54248         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54249         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54250         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54251         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54252         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54253         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54254         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54255         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54256         * modules/trim (configure.ac): Likewise.
54257
54258 2008-12-17  Bruno Haible  <bruno@clisp.org>
54259
54260         * modules/btowc-tests: New file.
54261         * tests/test-btowc1.sh: New file.
54262         * tests/test-btowc2.sh: New file.
54263         * tests/test-btowc.c: New file.
54264
54265         New module 'btowc'.
54266         * lib/wchar.in.h (btowc): New declaration.
54267         * lib/btowc.c: New file.
54268         * m4/btowc.m4: New file.
54269         * modules/btowc: New file.
54270         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54271         HAVE_BTOWC.
54272         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54273         * doc/posix-functions/btowc.texi: Document the new module.
54274
54275 2008-12-17  Bruno Haible  <bruno@clisp.org>
54276
54277         New module 'mbsinit'.
54278         * lib/wchar.in.h (mbsinit): New declaration.
54279         * lib/mbsinit.c: New file.
54280         * m4/mbsinit.m4: New file.
54281         * modules/mbsinit: New file.
54282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54283         HAVE_MBSINIT.
54284         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54285         HAVE_MBSINIT.
54286         * doc/posix-functions/mbsinit.texi: Document the new module.
54287
54288 2008-12-16  Bruno Haible  <bruno@clisp.org>
54289
54290         * lib/unistd.in.h: Add comment.
54291         * tests/test-environ.c: Don't include <stdlib.h>.
54292
54293 2008-12-16  Bruno Haible  <bruno@clisp.org>
54294
54295         * lib/parse-duration.h (parse_duration): Document return value
54296         convention.
54297         * lib/parse-duration.c: Include specification header first. Add
54298         comments.
54299         (_): Remove macro.
54300         (parse_year_month_day, parse_hour_minute_second): Move side effects
54301         outside of strchr call.
54302         (parse_non_iso8601): Move side effects outside of isspace call.
54303         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54304         call.
54305
54306 2008-12-16  Bruno Haible  <bruno@clisp.org>
54307
54308         * tests/test-parse-duration.sh: Produce no output when the test
54309         succeeds.
54310
54311 2008-12-16  Bruno Haible  <bruno@clisp.org>
54312
54313         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54314         expressions.
54315
54316 2008-12-15  Bruno Haible  <bruno@clisp.org>
54317
54318         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54319         * doc/glibc-functions/flistxattr.texi: Likewise.
54320         * doc/glibc-functions/fopencookie.texi: Likewise.
54321         * doc/glibc-functions/fremovexattr.texi: Likewise.
54322         * doc/glibc-functions/fsetxattr.texi: Likewise.
54323         * doc/glibc-functions/getxattr.texi: Likewise.
54324         * doc/glibc-functions/lgetxattr.texi: Likewise.
54325         * doc/glibc-functions/listxattr.texi: Likewise.
54326         * doc/glibc-functions/llistxattr.texi: Likewise.
54327         * doc/glibc-functions/lremovexattr.texi: Likewise.
54328         * doc/glibc-functions/lsetxattr.texi: Likewise.
54329         * doc/glibc-functions/removexattr.texi: Likewise.
54330         * doc/glibc-functions/setxattr.texi: Likewise.
54331         * doc/posix-functions/open_memstream.texi: Likewise.
54332
54333 2008-12-15  Eric Blake  <ebb9@byu.net>
54334
54335         Update doc for cygwin 1.7.
54336         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54337         functions.
54338         * doc/posix-functions/fchmodat.texi: Likewise.
54339         * doc/posix-functions/fchownat.texi: Likewise.
54340         * doc/posix-functions/fdopendir.texi: Likewise.
54341         * doc/posix-functions/fmemopen.texi: Likewise.
54342         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54343         * doc/posix-functions/fstatat.texi: Likewise.
54344         * doc/posix-functions/futimens.texi: Likewise.
54345         * doc/posix-functions/gai_strerror.texi: Likewise.
54346         * doc/posix-functions/getaddrinfo.texi: Likewise.
54347         * doc/posix-functions/getnameinfo.texi: Likewise.
54348         * doc/posix-functions/if_freenameindex.texi: Likewise.
54349         * doc/posix-functions/if_indextoname.texi: Likewise.
54350         * doc/posix-functions/if_nameindex.texi: Likewise.
54351         * doc/posix-functions/if_nametoindex.texi: Likewise.
54352         * doc/posix-functions/insque.texi: Likewise.
54353         * doc/posix-functions/linkat.texi: Likewise.
54354         * doc/posix-functions/llrint.texi: Likewise.
54355         * doc/posix-functions/llrintf.texi: Likewise.
54356         * doc/posix-functions/llrintl.texi: Likewise.
54357         * doc/posix-functions/lockf.texi: Likewise.
54358         * doc/posix-functions/lrintl.texi: Likewise.
54359         * doc/posix-functions/mkdirat.texi: Likewise.
54360         * doc/posix-functions/mkfifoat.texi: Likewise.
54361         * doc/posix-functions/mknodat.texi: Likewise.
54362         * doc/posix-functions/mq_close.texi: Likewise.
54363         * doc/posix-functions/mq_getattr.texi: Likewise.
54364         * doc/posix-functions/mq_notify.texi: Likewise.
54365         * doc/posix-functions/mq_open.texi: Likewise.
54366         * doc/posix-functions/mq_receive.texi: Likewise.
54367         * doc/posix-functions/mq_send.texi: Likewise.
54368         * doc/posix-functions/mq_setattr.texi: Likewise.
54369         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54370         * doc/posix-functions/mq_timedsend.texi: Likewise.
54371         * doc/posix-functions/mq_unlink.texi: Likewise.
54372         * doc/posix-functions/open_memstream.texi: Likewise.
54373         * doc/posix-functions/openat.texi: Likewise.
54374         * doc/posix-functions/posix_fadvise.texi: Likewise.
54375         * doc/posix-functions/posix_fallocate.texi: Likewise.
54376         * doc/posix-functions/posix_madvise.texi: Likewise.
54377         * doc/posix-functions/posix_memalign.texi: Likewise.
54378         * doc/posix-functions/posix_openpt.texi: Likewise.
54379         * doc/posix-functions/readlinkat.texi: Likewise.
54380         * doc/posix-functions/remque.texi: Likewise.
54381         * doc/posix-functions/renameat.texi: Likewise.
54382         * doc/posix-functions/rintl.texi: Likewise.
54383         * doc/posix-functions/sem_unlink.texi: Likewise.
54384         * doc/posix-functions/shm_open.texi: Likewise.
54385         * doc/posix-functions/shm_unlink.texi: Likewise.
54386         * doc/posix-functions/signgam.texi: Likewise.
54387         * doc/posix-functions/sigset.texi: Likewise.
54388         * doc/posix-functions/stpcpy.texi: Likewise.
54389         * doc/posix-functions/stpncpy.texi: Likewise.
54390         * doc/posix-functions/strerror.texi: Likewise.
54391         * doc/posix-functions/strtod.texi: Likewise.
54392         * doc/posix-functions/symlinkat.texi: Likewise.
54393         * doc/posix-functions/unlinkat.texi: Likewise.
54394         * doc/posix-functions/utimensat.texi: Likewise.
54395         * doc/glibc-functions/bindresvport.texi: Likewise.
54396         * doc/glibc-functions/dn_expand.texi: Likewise.
54397         * doc/glibc-functions/exp10.texi: Likewise.
54398         * doc/glibc-functions/exp10f.texi: Likewise.
54399         * doc/glibc-functions/fgetxattr.texi: Likewise.
54400         * doc/glibc-functions/flistxattr.texi: Likewise.
54401         * doc/glibc-functions/fopencookie.texi: Likewise.
54402         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54403         * doc/glibc-functions/fremovexattr.texi: Likewise.
54404         * doc/glibc-functions/fsetxattr.texi: Likewise.
54405         * doc/glibc-functions/getifaddrs.texi: Likewise.
54406         * doc/glibc-functions/getxattr.texi: Likewise.
54407         * doc/glibc-functions/lgetxattr.texi: Likewise.
54408         * doc/glibc-functions/listxattr.texi: Likewise.
54409         * doc/glibc-functions/llistxattr.texi: Likewise.
54410         * doc/glibc-functions/lremovexattr.texi: Likewise.
54411         * doc/glibc-functions/lsetxattr.texi: Likewise.
54412         * doc/glibc-functions/pow10.texi: Likewise.
54413         * doc/glibc-functions/pow10f.texi: Likewise.
54414         * doc/glibc-functions/rcmd_af.texi: Likewise.
54415         * doc/glibc-functions/removexattr.texi: Likewise.
54416         * doc/glibc-functions/res_init.texi: Likewise.
54417         * doc/glibc-functions/res_mkquery.texi: Likewise.
54418         * doc/glibc-functions/res_query.texi: Likewise.
54419         * doc/glibc-functions/res_querydomain.texi: Likewise.
54420         * doc/glibc-functions/res_send.texi: Likewise.
54421         * doc/glibc-functions/rresvport_af.texi: Likewise.
54422         * doc/glibc-functions/setxattr.texi: Likewise.
54423         * doc/glibc-functions/strcasestr.texi: Likewise.
54424
54425 2008-12-15  Bruno Haible  <bruno@clisp.org>
54426
54427         Fix compilation error on OSF/1 4.0.
54428         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54429         <sys/time.h>, simply delegate to the system header.
54430         Reported by Daniel Richard G. <oss@teragram.com>.
54431
54432 2008-12-15  Bruno Haible  <bruno@clisp.org>
54433
54434         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54435         * doc/posix-functions/fchmodat.texi: Likewise.
54436         * doc/posix-functions/fchownat.texi: Likewise.
54437         * doc/posix-functions/fdopendir.texi: Likewise.
54438         * doc/posix-functions/fstatat.texi: Likewise.
54439         * doc/posix-functions/mkdirat.texi: Likewise.
54440         * doc/posix-functions/unlinkat.texi: Likewise.
54441
54442 2008-12-14  Bruno Haible  <bruno@clisp.org>
54443
54444         Update doc for POSIX:2008.
54445         * doc/posix-functions/faccessat.texi: New file.
54446         * doc/posix-functions/fchmodat.texi: New file.
54447         * doc/posix-functions/fchownat.texi: New file.
54448         * doc/posix-functions/fdopendir.texi: New file.
54449         * doc/posix-functions/fstatat.texi: New file.
54450         * doc/posix-functions/futimens.texi: New file.
54451         * doc/posix-functions/linkat.texi: New file.
54452         * doc/posix-functions/mkdirat.texi: New file.
54453         * doc/posix-functions/mkfifoat.texi: New file.
54454         * doc/posix-functions/mknodat.texi: New file.
54455         * doc/posix-functions/open_wmemstream.texi: New file.
54456         * doc/posix-functions/openat.texi: New file.
54457         * doc/posix-functions/psiginfo.texi: New file.
54458         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54459         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54460         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54461         * doc/posix-functions/readlinkat.texi: New file.
54462         * doc/posix-functions/renameat.texi: New file.
54463         * doc/posix-functions/strerror_l.texi: New file.
54464         * doc/posix-functions/symlinkat.texi: New file.
54465         * doc/posix-functions/unlinkat.texi: New file.
54466         * doc/posix-functions/utimensat.texi: New file.
54467         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54468
54469 2008-12-14  Bruno Haible  <bruno@clisp.org>
54470
54471         Update doc for POSIX:2008.
54472         * doc/posix-functions/alphasort.texi: Renamed from
54473         doc/glibc-functions/alphasort.texi.
54474         * doc/posix-functions/dirfd.texi: Renamed from
54475         doc/glibc-functions/dirfd.texi.
54476         * doc/posix-functions/dprintf.texi: Renamed from
54477         doc/glibc-functions/dprintf.texi.
54478         * doc/posix-functions/duplocale.texi: Renamed from
54479         doc/glibc-functions/duplocale.texi.
54480         * doc/posix-functions/fexecve.texi: Renamed from
54481         doc/glibc-functions/fexecve.texi.
54482         * doc/posix-functions/fmemopen.texi: Renamed from
54483         doc/glibc-functions/fmemopen.texi.
54484         * doc/posix-functions/freelocale.texi: Renamed from
54485         doc/glibc-functions/freelocale.texi.
54486         * doc/posix-functions/getdate_err.texi: Renamed from
54487         doc/glibc-functions/getdate_err.texi.
54488         * doc/posix-functions/isalnum_l.texi: Renamed from
54489         doc/glibc-functions/isalnum_l.texi.
54490         * doc/posix-functions/isalpha_l.texi: Renamed from
54491         doc/glibc-functions/isalpha_l.texi.
54492         * doc/posix-functions/isblank_l.texi: Renamed from
54493         doc/glibc-functions/isblank_l.texi.
54494         * doc/posix-functions/iscntrl_l.texi: Renamed from
54495         doc/glibc-functions/iscntrl_l.texi.
54496         * doc/posix-functions/isdigit_l.texi: Renamed from
54497         doc/glibc-functions/isdigit_l.texi.
54498         * doc/posix-functions/isgraph_l.texi: Renamed from
54499         doc/glibc-functions/isgraph_l.texi.
54500         * doc/posix-functions/islower_l.texi: Renamed from
54501         doc/glibc-functions/islower_l.texi.
54502         * doc/posix-functions/isprint_l.texi: Renamed from
54503         doc/glibc-functions/isprint_l.texi.
54504         * doc/posix-functions/ispunct_l.texi: Renamed from
54505         doc/glibc-functions/ispunct_l.texi.
54506         * doc/posix-functions/isspace_l.texi: Renamed from
54507         doc/glibc-functions/isspace_l.texi.
54508         * doc/posix-functions/isupper_l.texi: Renamed from
54509         doc/glibc-functions/isupper_l.texi.
54510         * doc/posix-functions/iswalnum_l.texi: Renamed from
54511         doc/glibc-functions/iswalnum_l.texi.
54512         * doc/posix-functions/iswalpha_l.texi: Renamed from
54513         doc/glibc-functions/iswalpha_l.texi.
54514         * doc/posix-functions/iswblank_l.texi: Renamed from
54515         doc/glibc-functions/iswblank_l.texi.
54516         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54517         doc/glibc-functions/iswcntrl_l.texi.
54518         * doc/posix-functions/iswctype_l.texi: Renamed from
54519         doc/glibc-functions/iswctype_l.texi.
54520         * doc/posix-functions/iswdigit_l.texi: Renamed from
54521         doc/glibc-functions/iswdigit_l.texi.
54522         * doc/posix-functions/iswgraph_l.texi: Renamed from
54523         doc/glibc-functions/iswgraph_l.texi.
54524         * doc/posix-functions/iswlower_l.texi: Renamed from
54525         doc/glibc-functions/iswlower_l.texi.
54526         * doc/posix-functions/iswprint_l.texi: Renamed from
54527         doc/glibc-functions/iswprint_l.texi.
54528         * doc/posix-functions/iswpunct_l.texi: Renamed from
54529         doc/glibc-functions/iswpunct_l.texi.
54530         * doc/posix-functions/iswspace_l.texi: Renamed from
54531         doc/glibc-functions/iswspace_l.texi.
54532         * doc/posix-functions/iswupper_l.texi: Renamed from
54533         doc/glibc-functions/iswupper_l.texi.
54534         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54535         doc/glibc-functions/iswxdigit_l.texi.
54536         * doc/posix-functions/isxdigit_l.texi: Renamed from
54537         doc/glibc-functions/isxdigit_l.texi.
54538         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54539         doc/glibc-functions/mbsnrtowcs.texi.
54540         * doc/posix-functions/mkdtemp.texi: Renamed from
54541         doc/glibc-functions/mkdtemp.texi.
54542         * doc/posix-functions/newlocale.texi: Renamed from
54543         doc/glibc-functions/newlocale.texi.
54544         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54545         doc/glibc-functions/nl_langinfo_l.texi.
54546         * doc/posix-functions/open_memstream.texi: Renamed from
54547         doc/glibc-functions/open_memstream.texi.
54548         * doc/posix-functions/opterr.texi: Renamed from
54549         doc/glibc-functions/opterr.texi.
54550         * doc/posix-functions/optind.texi: Renamed from
54551         doc/glibc-functions/optind.texi.
54552         * doc/posix-functions/optopt.texi: Renamed from
54553         doc/glibc-functions/optopt.texi.
54554         * doc/posix-functions/psignal.texi: Renamed from
54555         doc/glibc-functions/psignal.texi.
54556         * doc/posix-functions/scandir.texi: Renamed from
54557         doc/glibc-functions/scandir.texi.
54558         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54559         doc/glibc-functions/sched_get_priority_min.texi.
54560         * doc/posix-functions/signgam.texi: Renamed from
54561         doc/glibc-functions/signgam.texi.
54562         * doc/posix-functions/stpcpy.texi: Renamed from
54563         doc/glibc-functions/stpcpy.texi.
54564         * doc/posix-functions/stpncpy.texi: Renamed from
54565         doc/glibc-functions/stpncpy.texi.
54566         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54567         doc/glibc-functions/strcasecmp_l.texi.
54568         * doc/posix-functions/strcoll_l.texi: Renamed from
54569         doc/glibc-functions/strcoll_l.texi.
54570         * doc/posix-functions/strfmon_l.texi: Renamed from
54571         doc/glibc-functions/strfmon_l.texi.
54572         * doc/posix-functions/strftime_l.texi: Renamed from
54573         doc/glibc-functions/strftime_l.texi.
54574         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54575         doc/glibc-functions/strncasecmp_l.texi.
54576         * doc/posix-functions/strndup.texi: Renamed from
54577         doc/glibc-functions/strndup.texi.
54578         * doc/posix-functions/strnlen.texi: Renamed from
54579         doc/glibc-functions/strnlen.texi.
54580         * doc/posix-functions/strsignal.texi: Renamed from
54581         doc/glibc-functions/strsignal.texi.
54582         * doc/posix-functions/strxfrm_l.texi: Renamed from
54583         doc/glibc-functions/strxfrm_l.texi.
54584         * doc/posix-functions/timer_gettime.texi: Renamed from
54585         doc/glibc-functions/timer_gettime.texi.
54586         * doc/posix-functions/tolower_l.texi: Renamed from
54587         doc/glibc-functions/tolower_l.texi.
54588         * doc/posix-functions/toupper_l.texi: Renamed from
54589         doc/glibc-functions/toupper_l.texi.
54590         * doc/posix-functions/towctrans_l.texi: Renamed from
54591         doc/glibc-functions/towctrans_l.texi.
54592         * doc/posix-functions/towlower_l.texi: Renamed from
54593         doc/glibc-functions/towlower_l.texi.
54594         * doc/posix-functions/towupper_l.texi: Renamed from
54595         doc/glibc-functions/towupper_l.texi.
54596         * doc/posix-functions/uselocale.texi: Renamed from
54597         doc/glibc-functions/uselocale.texi.
54598         * doc/posix-functions/vdprintf.texi: Renamed from
54599         doc/glibc-functions/vdprintf.texi.
54600         * doc/posix-functions/wcpcpy.texi:
54601         Renamed from doc/glibc-functions/wcpcpy.texi.
54602         * doc/posix-functions/wcpncpy.texi: Renamed from
54603         doc/glibc-functions/wcpncpy.texi.
54604         * doc/posix-functions/wcscasecmp.texi: Renamed from
54605         doc/glibc-functions/wcscasecmp.texi.
54606         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54607         doc/glibc-functions/wcscasecmp_l.texi.
54608         * doc/posix-functions/wcscoll_l.texi: Renamed from
54609         doc/glibc-functions/wcscoll_l.texi.
54610         * doc/posix-functions/wcsdup.texi: Renamed from
54611         doc/glibc-functions/wcsdup.texi.
54612         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54613         doc/glibc-functions/wcsncasecmp.texi.
54614         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54615         doc/glibc-functions/wcsncasecmp_l.texi.
54616         * doc/posix-functions/wcsnlen.texi: Renamed from
54617         doc/glibc-functions/wcsnlen.texi.
54618         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54619         doc/glibc-functions/wcsnrtombs.texi.
54620         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54621         doc/glibc-functions/wcsxfrm_l.texi.
54622         * doc/posix-functions/wctrans_l.texi: Renamed from
54623         doc/glibc-functions/wctrans_l.texi.
54624         * doc/posix-functions/wctype_l.texi: Renamed from
54625         doc/glibc-functions/wctype_l.texi.
54626         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54627         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54628         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54629         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54630         these subsections.
54631         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54632         Remove sections.
54633
54634 2008-12-14  Bruno Haible  <bruno@clisp.org>
54635
54636         Update doc for POSIX:2008.
54637         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54638
54639 2008-12-14  Bruno Haible  <bruno@clisp.org>
54640
54641         Update doc for POSIX:2008.
54642         * doc/pastposix-functions/bcmp.texi: Renamed from
54643         doc/posix-functions/bcmp.texi.
54644         * doc/pastposix-functions/bcopy.texi: Renamed from
54645         doc/posix-functions/bcopy.texi.
54646         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54647         doc/posix-functions/bsd_signal.texi.
54648         * doc/pastposix-functions/bzero.texi: Renamed from
54649         doc/posix-functions/bzero.texi.
54650         * doc/pastposix-functions/ecvt.texi: Renamed from
54651         doc/posix-functions/ecvt.texi.
54652         * doc/pastposix-functions/fcvt.texi: Renamed from
54653         doc/posix-functions/fcvt.texi.
54654         * doc/pastposix-functions/ftime.texi: Renamed from
54655         doc/posix-functions/ftime.texi.
54656         * doc/pastposix-functions/gcvt.texi: Renamed from
54657         doc/posix-functions/gcvt.texi.
54658         * doc/pastposix-functions/getcontext.texi: Renamed from
54659         doc/posix-functions/getcontext.texi.
54660         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54661         doc/posix-functions/gethostbyaddr.texi.
54662         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54663         doc/posix-functions/gethostbyname.texi.
54664         * doc/pastposix-functions/getwd.texi: Renamed from
54665         doc/posix-functions/getwd.texi.
54666         * doc/pastposix-functions/h_errno.texi: Renamed from
54667         doc/posix-functions/h_errno.texi.
54668         * doc/pastposix-functions/index.texi: Renamed from
54669         doc/posix-functions/index.texi.
54670         * doc/pastposix-functions/makecontext.texi: Renamed from
54671         doc/posix-functions/makecontext.texi.
54672         * doc/pastposix-functions/mktemp.texi: Renamed from
54673         doc/posix-functions/mktemp.texi.
54674         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54675         doc/posix-functions/pthread_attr_getstackaddr.texi.
54676         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54677         doc/posix-functions/pthread_attr_setstackaddr.texi.
54678         * doc/pastposix-functions/rindex.texi: Renamed from
54679         doc/posix-functions/rindex.texi.
54680         * doc/pastposix-functions/scalb.texi: Renamed from
54681         doc/posix-functions/scalb.texi.
54682         * doc/pastposix-functions/setcontext.texi: Renamed from
54683         doc/posix-functions/setcontext.texi.
54684         * doc/pastposix-functions/swapcontext.texi: Renamed from
54685         doc/posix-functions/swapcontext.texi.
54686         * doc/pastposix-functions/ualarm.texi: Renamed from
54687         doc/posix-functions/ualarm.texi.
54688         * doc/pastposix-functions/usleep.texi: Renamed from
54689         doc/posix-functions/usleep.texi.
54690         * doc/pastposix-functions/vfork.texi: Renamed from
54691         doc/posix-functions/vfork.texi.
54692         * doc/pastposix-functions/wcswcs.texi: Renamed from
54693         doc/posix-functions/wcswcs.texi.
54694         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54695         (Function Substitutes): Update.
54696
54697 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54698
54699         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54700         m4/strerror.m4.
54701
54702 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54703             Bruno Haible  <bruno@clisp.org>
54704
54705         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54706
54707 2008-12-13  Bruno Haible  <bruno@clisp.org>
54708
54709         * modules/strtoull (Depends-on): Remove unistd.
54710
54711 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54712
54713         * modules/strtoull (Depends-on): Add stdlib.
54714
54715 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54716
54717         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54718
54719 2008-12-10  Jim Meyering  <meyering@redhat.com>
54720
54721         gl_ASSERT: don't say assertions are disabled when they're not
54722         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54723         "checking whether to enable assertions... no", when they are in
54724         fact enabled.  This is solely a bug in the output of configure.
54725         In spite of saying "no", NDEBUG was not defined in that case.
54726         Also, as noted by Eric Blake, leave assertions enabled upon
54727         --enable-assert=INVALID.
54728
54729 2008-12-10  Bruno Haible  <bruno@clisp.org>
54730
54731         Change MODULES.html to refer to POSIX:2008 where possible.
54732         * MODULES.html.sh (POSIX2008_URL): New variable.
54733         (posix_headers): Remove sys/timeb, ucontext.
54734         (posix2001_headers): New variable.
54735         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54736         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54737         index, makecontext, mktemp, pthread_attr_getstackaddr,
54738         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54739         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54740         (posix2001_functions): New variable.
54741         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54742         otherwise.
54743
54744 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54745
54746         add missing include to parse-duration.c
54747         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54748         * modules/parse-duration (Depends-on): Add xalloc.
54749
54750         fix sed script reading maint.mk
54751         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54752         (syntax-check-rules): Use it.
54753
54754 2008-12-09  Bruno Haible  <bruno@clisp.org>
54755
54756         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54757         MacOS X 10.4/PowerPC.
54758         Reported by Simon Josefsson.
54759
54760 2008-12-08  Jim Meyering  <meyering@redhat.com>
54761
54762         work around mingw's lack of some S_IF definitions
54763         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54764         Reported by Simon Josefsson.
54765
54766 2008-12-08  Bruno Haible  <bruno@clisp.org>
54767
54768         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54769         applied to variables. Needed on MacOS X 10.4/PowerPC.
54770         Reported by Simon Josefsson.
54771
54772 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54773         and Eric Blake  <ebb9@byu.net>
54774
54775         assert: honor --enable-assert
54776         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54777         order to honor --enable-assert, rather than treating it as a
54778         synonym for --disable-assert.
54779
54780 2008-12-08  Jim Meyering  <meyering@redhat.com>
54781
54782         * lib/posixtm.c: Remove now-useless declaration of mktime.
54783
54784         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54785
54786 2008-12-07  Bruno Haible  <bruno@clisp.org>
54787
54788         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54789         test_once): Mark functions as static.
54790         * tests/test-tls.c (test_tls): Likewise.
54791
54792 2008-12-07  Bruno Haible  <bruno@clisp.org>
54793
54794         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54795         iconv_register_autodetect.
54796
54797 2008-12-07  Jim Meyering  <meyering@redhat.com>
54798
54799         posixtm.c: avoid a warning
54800         * lib/posixtm.c (posixtime): Don't initialize tm0.
54801         It's no longer needed to placate gcc4's -Wuninitialized,
54802         and the attempt to placate would elicit a new warning.
54803
54804         unicodeio.c: mark unused parameters
54805         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54806         (fallback_failure_callback): Likewise.
54807
54808 2008-12-07  Bruno Haible  <bruno@clisp.org>
54809
54810         * gnulib-tool (func_create_testdir): When building the tests
54811         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
54812         Reported by Simon Josefsson.
54813
54814 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54815
54816         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
54817
54818 2008-12-06  Bruno Haible  <bruno@clisp.org>
54819
54820         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
54821         Suggested by Eric Blake.
54822
54823 2008-12-06  Bruno Haible  <bruno@clisp.org>
54824
54825         Fix a c-stack test failure on MacOS X.
54826         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
54827         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
54828         handler for SIGBUS as well.
54829         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
54830         install a signal handler for SIGBUS as well.
54831         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
54832
54833 2008-12-06  Bruno Haible  <bruno@clisp.org>
54834
54835         Advocacy documentation.
54836         * doc/gnulib-intro.texi (Benefits): New section.
54837         * doc/gnulib.texi: Update.
54838
54839 2008-12-06  Bruno Haible  <bruno@clisp.org>
54840
54841         Document the 'manywarnings' module.
54842         * doc/manywarnings.texi: New file.
54843         * doc/gnulib.texi: Include it.
54844
54845 2008-12-05  Eric Blake  <ebb9@byu.net>
54846
54847         tests: silence some gcc warnings
54848         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54849         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54850         type mismatches.
54851
54852 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54853             Bruno Haible  <bruno@clisp.org>
54854
54855         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54856
54857 2008-11-29  Jim Meyering  <meyering@redhat.com>
54858
54859         unicodeio.c: mark unused parameters
54860         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54861         (fallback_failure_callback): Likewise.
54862
54863         fts: fix a thinko
54864         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54865         (set_stat_type): Return S_IF*-valued "type" directly.
54866         Prompted by James Youngman's spotting a related bug.
54867         Confirmed by further testing through find.
54868
54869         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54870         * lib/fts.c (D_TYPE): Define.
54871         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54872         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54873         (s_ifmt_shift_bits): New function.
54874         (set_stat_type): New function.
54875         (fts_build): When not calling fts_stat, call set_stat_type
54876         to propagate dirent.d_type info to fts_read caller.
54877         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54878         fts_statp->st_mode type information may be valid.
54879
54880 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54881
54882         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54883         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54884         <sds@gnu.org>.
54885
54886 2008-11-20  Bruno Haible  <bruno@clisp.org>
54887
54888         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54889         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54890         INCLUDE_NEXT.
54891         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54892         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54893         * modules/math (Makefile.am): Substitute
54894         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54895         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54896
54897 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54898             Bruno Haible  <bruno@clisp.org>
54899
54900         * lib/stdint.in.h: Define all type macros so that their expansion is
54901         a single typedef'ed token. Fixes a compilation failure in Boost which
54902         does "using ::int8_t;".
54903
54904 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54905
54906         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54907         gl_MANYWARN_ALL_GCC.
54908         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54909         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54910         * modules/manywarnings: New file.
54911         * MODULES.html.sh: Mention manywarnings module.
54912
54913 2008-11-18  Bruno Haible  <bruno@clisp.org>
54914
54915         * doc/gnulib-tool.texi (Unit tests): New section.
54916
54917 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54918
54919         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54920         paths like 'lib/po/foo.po'.
54921
54922 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54923
54924         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54925         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54926
54927 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54928
54929         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54930         parameter works.
54931
54932 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54933
54934         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54935
54936 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54937
54938         * modules/parse-duration-tests: New file.
54939         * tests/test-parse-duration.sh: New file.
54940         * tests/test-parse-duration.c: New file.
54941
54942         New module 'parse-duration'.
54943         * lib/parse-duration.h: New file.
54944         * lib/parse-duration.c: New file.
54945         * modules/parse-duration: New file.
54946
54947 2008-11-17  Bruno Haible  <bruno@clisp.org>
54948
54949         * tests/test-select-out.sh: Comment out the first pipe test.
54950         Reported by Simon Josefsson.
54951
54952 2008-11-17  Bruno Haible  <bruno@clisp.org>
54953
54954         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54955         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54956         gl_HOSTENT.
54957
54958 2008-11-17  Bruno Haible  <bruno@clisp.org>
54959
54960         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54961         -lnetwork and -lnet. Needed for Haiku and BeOS.
54962
54963 2008-11-16  Bruno Haible  <bruno@clisp.org>
54964
54965         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54966
54967 2008-11-16  Bruno Haible  <bruno@clisp.org>
54968
54969         Avoid test failure on Haiku.
54970         * tests/test-fsync.c: Include <errno.h>.
54971         (main): Don't require that fsync (0) fails.
54972
54973 2008-11-15  Bruno Haible  <bruno@clisp.org>
54974
54975         New module 'hostent'.
54976         * modules/hostent: New file.
54977         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54978
54979 2008-11-15  Bruno Haible  <bruno@clisp.org>
54980
54981         New module 'servent'.
54982         * modules/servent: New file.
54983         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54984
54985 2008-11-15  Bruno Haible  <bruno@clisp.org>
54986
54987         Avoid generating same test program with two different rules.
54988         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54989         test-frexp to test-frexp-nolibm.
54990         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54991         test-frexpl to test-frexpl-nolibm.
54992
54993 2008-11-15  Bruno Haible  <bruno@clisp.org>
54994
54995         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54996         $(FREXPL_LIBM).
54997
54998 2008-11-15  Bruno Haible  <bruno@clisp.org>
54999
55000         * lib/netdb.in.h: Activate the definitions also when the system's
55001         <netdb.h> has 'struct addrinfo'.
55002         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55003         EAI_OVERFLOW or AI_NUMERICSERV.
55004         * doc/posix-headers/netdb.texi: Document the problem.
55005
55006 2008-11-15  Bruno Haible  <bruno@clisp.org>
55007
55008         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55009
55010         Make the 'sched' module work on platforms where <sched.h> exists but
55011         is incomplete (such as Haiku).
55012         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55013         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55014         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55015         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55016         HAVE_STRUCT_SCHED_PARAM.
55017         * modules/sched (Depends-on): Add include_next.
55018         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55019         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55020         * doc/posix-headers/sched.texi: Document the issue.
55021
55022 2008-11-13  Jim Meyering  <meyering@redhat.com>
55023
55024         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55025         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55026         test would fail due to the difference in the Report bugs to ...
55027         line.  The expected address is empty, "<>", while the actual
55028         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55029
55030 2008-11-12  Bruno Haible  <bruno@clisp.org>
55031
55032         lstat: don't compile lstat.c on systems lacking lstat
55033         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55034         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55035         Reported by Daniel P. Berrange via Jim Meyering.
55036
55037 2008-11-12  Jim Meyering  <meyering@redhat.com>
55038
55039         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55040
55041 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55042
55043         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55044         instead.
55045
55046 2008-11-12  Bruno Haible  <bruno@clisp.org>
55047
55048         * lib/unicodeio.c: Include unistr.h.
55049         (utf8_wctomb): Remove function.
55050         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55051
55052 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55053
55054         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55055         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55056         <bruno@clisp.org>.
55057         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55058
55059 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55060
55061         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55062         * doc/gnulib.texi: Add section for warnings.
55063
55064 2008-11-11  Bruno Haible  <bruno@clisp.org>
55065
55066         * lib/sockets.h: Add a comment.
55067
55068 2008-11-11  Karl Berry  <karl@gnu.org>
55069
55070         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55071
55072 2008-11-11  Eric Blake  <ebb9@byu.net>
55073
55074         fdl.texi: avoid git symlinks
55075         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55076
55077 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55078
55079         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55080
55081 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55082
55083         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55084         (gl_WARN_ADD): Substitute $2 if literal.
55085
55086 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55087
55088         * m4/warning.m4: Remove.
55089
55090 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55091
55092         * m4/warnings.m4: Almost complete rewrite. :-)
55093
55094 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55095
55096         * modules/warnings: New module.
55097         * m4/warnings.m4: New file.
55098         * MODULES.html.sh: Mention warnings module.
55099         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55100         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55101
55102 2008-11-10  Eric Blake  <ebb9@byu.net>
55103
55104         fdl.texi: make a symlink to the latest version
55105         * doc/standards.texi: Revert today's earlier change.
55106         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55107         * doc/fdl.texi: ...and replace this with a symlink to the newer
55108         fdl-1.3.texi.
55109
55110 2008-11-10  Bruno Haible  <bruno@clisp.org>
55111
55112         * tests/test-select-fd.c (main): Accept the result file name as fourth
55113         argument.
55114         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55115         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55116
55117 2008-11-10  Bruno Haible  <bruno@clisp.org>
55118
55119         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55120         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55121         as autoconf-substituted macros.
55122         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55123         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55124         gl_NETDB_H_DEFAULTS. Set these variables.
55125         * modules/netdb (Makefile.am): Substitute these variables.
55126
55127 2008-11-10  Eric Blake  <ebb9@byu.net>
55128
55129         standards.texi: include correct file for FDL 1.3
55130         * doc/standards.texi (GNU Free Documentation License): Change
55131         include file to pull in FDL 1.3, not 1.2.
55132
55133         fdl.texi: revert accidental change to license
55134         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55135
55136 2008-11-10  Bruno Haible  <bruno@clisp.org>
55137
55138         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55139         cross-compiling guesses also when the native compile gives no result.
55140
55141 2008-11-10  Bruno Haible  <bruno@clisp.org>
55142
55143         * lib/spawni.c (__spawni): Force variable into the stack.
55144
55145 2008-11-10  Bruno Haible  <bruno@clisp.org>
55146
55147         Add support for Haiku.
55148         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55149         glibc and BeOS, but also on Haiku.
55150         * lib/fpurge.c (fpurge): Likewise.
55151         * lib/freadable.c (freadable): Likewise.
55152         * lib/freadahead.c (freadahead): Likewise.
55153         * lib/freading.c (freading): Likewise.
55154         * lib/freadptr.c (freadptr): Likewise.
55155         * lib/freadseek.c (freadptrinc): Likewise.
55156         * lib/fseeko.c (rpl_fseeko): Likewise.
55157         * lib/fseterr.c (fseterr): Likewise.
55158         * lib/fwritable.c (fwritable): Likewise.
55159         * lib/fwriting.c (fwriting): Likewise.
55160         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55161
55162 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55163
55164         * lib/config.charset: Treat Haiku like BeOS.
55165
55166 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55167
55168         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55169         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55170
55171 2008-11-08  Bruno Haible  <bruno@clisp.org>
55172
55173         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55174         AC_CACHE_CHECK.
55175
55176 2008-11-08  Bruno Haible  <bruno@clisp.org>
55177
55178         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55179
55180 2008-11-08  Bruno Haible  <bruno@clisp.org>
55181
55182         * tests/test-select-fd.c: New file.
55183         * tests/test-select-in.sh: New file.
55184         * tests/test-select-out.sh: New file.
55185         * tests/test-select-stdin.c: New file.
55186         * modules/select-tests (Files): Add the new files.
55187         (Depends-on): Add gettimeofday.
55188         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55189         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55190         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55191
55192 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55193             Bruno Haible  <bruno@clisp.org>
55194
55195         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55196
55197 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55198
55199         * build-aux/pmccabe2html: Added support for C++ source files.
55200
55201 2008-11-05  Ben Pfaff  <blp@gnu.org>
55202
55203         Fix lib/close.c build on Windows.
55204         * modules/close (Files): Add lib/w32sock.h.
55205
55206 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55207
55208         Accept Bison's NEWS format.
55209         * build-aux/announce-gen (print_news_deltas): Tweak
55210         $re_prefix.
55211
55212 2008-11-04  Bruno Haible  <bruno@clisp.org>
55213
55214         * modules/random_r (Maintainer): Add glibc.
55215
55216 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55217
55218         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55219         by karl@freefriends.org (Karl Berry).
55220         * doc/alloca.texi: Likewise.
55221         * doc/c-ctype.texi: Likewise.
55222         * doc/c-strcase.texi: Likewise.
55223         * doc/c-strcaseeq.texi: Likewise.
55224         * doc/c-strcasestr.texi: Likewise.
55225         * doc/c-strstr.texi: Likewise.
55226         * doc/c-strtod.texi: Likewise.
55227         * doc/c-strtold.texi: Likewise.
55228         * doc/ctime.texi: Likewise.
55229         * doc/error.texi: Likewise.
55230         * doc/fdl.texi: Likewise.
55231         * doc/gcd.texi: Likewise.
55232         * doc/getdate.texi: Likewise.
55233         * doc/gnulib-intro.texi: Likewise.
55234         * doc/gnulib-tool.texi: Likewise.
55235         * doc/gnulib.texi: Likewise.
55236         * doc/inet_ntoa.texi: Likewise.
55237         * doc/maintain.texi: Likewise.
55238         * doc/make-stds.texi: Likewise.
55239         * doc/quote.texi: Likewise.
55240         * doc/regexprops-generic.texi: Likewise.
55241         * doc/standards.texi: Likewise.
55242         * doc/verify.texi: Likewise.
55243         * doc/visibility.texi: Likewise.
55244         * doc/gnulib.texi (GNU Free Documentation License): Include
55245         fdl-1.3.texi instead of fdl.texi.
55246
55247 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55248
55249         * doc/fdl-1.3.texi: New file, from
55250         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55251         * modules/fdl-1.3: Add.
55252         * MODULES.html.sh: Add fdl-1.3.
55253
55254 2008-11-03  Bruno Haible  <bruno@clisp.org>
55255
55256         Make determination of absolute name of header file work with AIX xlc.
55257         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55258         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55259         preprocessing.
55260         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55261         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55262
55263 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55264
55265         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55266         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55267         <ludo@gnu.org>.
55268
55269 2008-11-02  Bruno Haible  <bruno@clisp.org>
55270
55271         Mark 'strpbrk' obsolete.
55272         * modules/strpbrk (Status, Notice): New sections.
55273         * modules/strtok_r (Depends-on): Add strpbrk.
55274
55275 2008-11-02  Bruno Haible  <bruno@clisp.org>
55276
55277         Mark 'strdup' obsolete.
55278         * modules/strdup (Status, Notice): New sections.
55279         * modules/findprog (Depends-on): Add strdup.
55280         * modules/getaddrinfo (Depends-on): Likewise.
55281         * modules/localename (Depends-on): Likewise.
55282         * modules/relocatable-lib (Depends-on): Likewise.
55283         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55284         * modules/relocatable-prog (Depends-on): Likewise.
55285         * modules/trim (Depends-on): Likewise.
55286         * modules/unictype/gen-ctype (Depends-on): Likewise.
55287         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55288
55289 2008-11-02  Bruno Haible  <bruno@clisp.org>
55290
55291         Mark 'strcspn' obsolete.
55292         * modules/strcspn (Status, Notice): New sections.
55293
55294 2008-11-02  Bruno Haible  <bruno@clisp.org>
55295
55296         Mark 'rmdir' obsolete.
55297         * modules/rmdir (Status, Notice): New sections.
55298         * modules/clean-temp (Depends-on): Add rmdir.
55299         * modules/openat (Depends-on): Likewise.
55300
55301 2008-11-02  Bruno Haible  <bruno@clisp.org>
55302
55303         Mark 'raise' obsolete.
55304         * modules/raise (Status, Notice): New sections.
55305         (Include): Specify <signal.h>.
55306         * modules/stdio (Depends-on): Add raise.
55307         * modules/write (Depends-on): Likewise.
55308
55309 2008-11-02  Bruno Haible  <bruno@clisp.org>
55310
55311         Mark 'memset' obsolete.
55312         * modules/memset (Status, Notice): New sections.
55313
55314 2008-11-02  Bruno Haible  <bruno@clisp.org>
55315
55316         Mark 'memmove' obsolete.
55317         * modules/memmove (Status, Notice): New sections.
55318         * modules/argp (Depends-on): Add memmove.
55319         * modules/argz (Depends-on): Likewise.
55320         * modules/canonicalize (Depends-on): Likewise.
55321         * modules/canonicalize-lgpl (Depends-on): Likewise.
55322         * modules/fts (Depends-on): Likewise.
55323         * modules/getcwd (Depends-on): Likewise.
55324         * modules/human (Depends-on): Likewise.
55325         * modules/regex (Depends-on): Likewise.
55326         * modules/striconveh (Depends-on): Likewise.
55327         * modules/trim (Depends-on): Likewise.
55328         * modules/unistr/u8-move (Depends-on): Likewise.
55329         * modules/unistr/u16-move (Depends-on): Likewise.
55330         * modules/unistr/u32-move (Depends-on): Likewise.
55331
55332 2008-11-02  Bruno Haible  <bruno@clisp.org>
55333
55334         Mark 'memcpy' obsolete.
55335         * modules/memcpy (Status, Notice): New sections.
55336
55337 2008-11-02  Bruno Haible  <bruno@clisp.org>
55338
55339         Mark 'memcmp' obsolete.
55340         * modules/memcmp (Status, Notice): New sections.
55341         * modules/argmatch (Depends-on): Add memchr.
55342         * modules/backupfile (Depends-on): Likewise.
55343         * modules/c-strcasestr (Depends-on): Likewise.
55344         * modules/crypto/des (Depends-on): Likewise.
55345         * modules/csharpcomp (Depends-on): Likewise.
55346         * modules/fnmatch (Depends-on): Likewise.
55347         * modules/git-merge-changelog (Depends-on): Likewise.
55348         * modules/isnand (Depends-on): Likewise.
55349         * modules/isnand-nolibm (Depends-on): Likewise.
55350         * modules/isnanf (Depends-on): Likewise.
55351         * modules/isnanf-nolibm (Depends-on): Likewise.
55352         * modules/isnanl (Depends-on): Likewise.
55353         * modules/isnanl-nolibm (Depends-on): Likewise.
55354         * modules/mbchar (Depends-on): Likewise.
55355         * modules/memcoll (Depends-on): Likewise.
55356         * modules/quotearg (Depends-on): Likewise.
55357         * modules/regex (Depends-on): Likewise.
55358         * modules/relocatable-prog (Depends-on): Likewise.
55359         * modules/same (Depends-on): Likewise.
55360         * modules/signbit (Depends-on): Likewise.
55361         * modules/strcasestr-simple (Depends-on): Likewise.
55362         * modules/unictype/gen-ctype (Depends-on): Likewise.
55363         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55364         * modules/uniname/uniname (Depends-on): Likewise.
55365         * modules/unistr/u8-cmp (Depends-on): Likewise.
55366
55367 2008-11-02  Bruno Haible  <bruno@clisp.org>
55368
55369         Mark 'memchr' obsolete.
55370         * modules/memchr (Status, Notice): New sections.
55371         * modules/argp (Depends-on): Add memchr.
55372         * modules/base64 (Depends-on): Likewise.
55373         * modules/c-strcasestr (Depends-on): Likewise.
55374         * modules/chdir-long (Depends-on): Likewise.
55375         * modules/fnmatch (Depends-on): Likewise.
55376         * modules/getsubopt (Depends-on): Likewise.
55377         * modules/git-merge-changelog (Depends-on): Likewise.
55378         * modules/glob (Depends-on): Likewise.
55379         * modules/strcasestr-simple (Depends-on): Likewise.
55380         * modules/strnlen (Depends-on): Likewise.
55381
55382 2008-11-02  Bruno Haible  <bruno@clisp.org>
55383
55384         Mark 'atexit' obsolete.
55385         * modules/atexit (Status, Notice): New sections.
55386         * modules/chdir-long (Depends-on): Add atexit.
55387         * modules/wait-process (Depends-on): Likewise.
55388
55389 2008-11-02  Bruno Haible  <bruno@clisp.org>
55390
55391         * gnulib-tool: New option --with-obsolete.
55392         (func_usage): Document it.
55393         (func_modules_transitive_closure): Drop obsolete dependencies if
55394         incobsolete is not true.
55395         (func_import): Read and save the incobsolete variable to the cache.
55396
55397 2008-11-02  Bruno Haible  <bruno@clisp.org>
55398
55399         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55400         * gnulib-tool: New option --extract-status.
55401         (func_usage): Document it.
55402         (sed_extract_prog): Recognize it.
55403         (func_get_status): New function.
55404
55405 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55406
55407         * modules/sockets (License): Change from LGPL to LGPLv2+.
55408
55409 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55410
55411         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55412
55413 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55414
55415         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55416         Mention times and sys_times.
55417         * modules/sys_times, modules/sys_times-tests: New modules.
55418         * modules/times, modules/times-tests: Likewise
55419         * m4/sys_times_h.m4: New file.
55420         * lib/sys_times.in.h: Likewise
55421         * lib/times.c: Likewise.
55422         * tests/test-sys_times.c: Likewise.
55423         * tests/test-times.c: Likewise.
55424         * doc/posix-headers/sys_times.texi: Update.
55425         * doc/posix-functions/times.texi: Update.
55426
55427 2008-10-28  Jim Meyering  <meyering@redhat.com>
55428
55429         * modules/tempname (Depends-on): Add lstat.
55430
55431         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55432
55433 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55434
55435         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55436         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55437         using idiom used elsewhere in gnulib.
55438
55439 2008-10-27  Jim Meyering  <meyering@redhat.com>
55440
55441         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55442
55443 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55444
55445         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55446         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55447         programs.
55448         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55449
55450 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55451
55452         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55453
55454 2008-10-27  Bruno Haible  <bruno@clisp.org>
55455
55456         * tests/test-lstat.c: Include <stdio.h>.
55457
55458 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55459
55460         * modules/lstat-tests: New module.
55461         * tests/test-lstat.c: New file.
55462
55463 2008-10-26  Jim Meyering  <meyering@redhat.com>
55464
55465         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55466
55467 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55468             Bruno Haible  <bruno@clisp.org>
55469
55470         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55471         * modules/configmake (Include): Add a note that the include must come
55472         after all system headers.
55473         * lib/javaversion.c: Include configmake.h after all other includes.
55474
55475 2008-10-26  Bruno Haible  <bruno@clisp.org>
55476
55477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55478         HAVE_STRUCT_RANDOM_DATA to 1.
55479         (gl_STDLIB_H): Simplify.
55480
55481 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55482
55483         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55484         substitute HAVE_STRUCT_RANDOM_DATA.
55485         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55486         random_data.
55487         * modules/stdlib (Makefile.am): Substitute
55488         HAVE_STRUCT_RANDOM_DATA.
55489
55490 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55491
55492         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55493         * doc/gnulib-intro.texi (Copyright): Likewise.
55494
55495 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55496
55497         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55498         findings.
55499
55500 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55501             Bruno Haible  <bruno@clisp.org>
55502
55503         * lib/unistd.in.h: Include <winsock2.h>.
55504         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55505         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55506         Provide dummy declarations.
55507         (gethostname): Override.
55508         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55509         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55510         gl_PREREQ_SYS_H_WINSOCK2.
55511         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55512         * doc/posix-functions/gethostname.texi: More details.
55513
55514 2008-10-25  Bruno Haible  <bruno@clisp.org>
55515
55516         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55517         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55518         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55519
55520         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55521         here ...
55522         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55523         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55524         gl_UNISTD_H_DEFAULTS.
55525
55526 2008-10-25  Eric Blake  <ebb9@byu.net>
55527
55528         signbit: avoid spurious compiler failure
55529         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55530         declarations inside function.
55531
55532 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55533             Bruno Haible  <bruno@clisp.org>
55534
55535         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55536         * modules/random_r (Depends-on): Add stdint.
55537
55538 2008-10-24  Bruno Haible  <bruno@clisp.org>
55539
55540         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55541         Eggert.
55542         * modules/strerror (License): Likewise.
55543
55544 2008-10-24  Jim Meyering  <meyering@redhat.com>
55545
55546         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55547         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55548
55549 2008-10-24  Eric Blake  <ebb9@byu.net>
55550
55551         getgroups: fix compilation when getgroups is available
55552         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55553         but with <config.h> override of getgroups disabled.
55554
55555 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55556
55557         * doc/gnulib.texi (Header files): Add note about C++ problems.
55558         Explained by Bruno Haible <bruno@clisp.org>.
55559
55560 2008-10-23  Bruno Haible  <bruno@clisp.org>
55561
55562         Define a dummy SA_NODEFER macro on Interix.
55563         * lib/signal.in.h (SA_NODEFER): Define fallback.
55564         Reported by Aleksey Cheusov <cheusov@tut.by> via
55565         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55566
55567 2008-10-23  Bruno Haible  <bruno@clisp.org>
55568
55569         * modules/freadahead (License): Change to LGPLv2+.
55570         Suggested by Simon Josefsson.
55571
55572 2008-10-23  Jim Meyering  <meyering@redhat.com>
55573
55574         random_r: new module
55575         * modules/random_r: New file.
55576         * m4/random_r.m4: New file.
55577         * lib/random_r.c: New file, from glibc.
55578         * modules/random_r-tests: New file.
55579         * tests/test-random_r.c: New file.
55580         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55581          Declare.
55582         (RAND_MAX): Define.
55583         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55584         * modules/stdlib: Substitute them, too.
55585         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55586         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55587         * doc/glibc-functions/random_r.texi: Likewise.
55588         * doc/glibc-functions/setstate_r.texi: Likewise.
55589         * doc/glibc-functions/srandom_r.texi: Likewise.
55590         * config/srclist.txt: Mention it.
55591
55592 2008-10-23  David Lutterkort  <lutter@redhat.com>
55593
55594         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55595         link requirement
55596
55597 2008-10-23  Jim Meyering  <meyering@redhat.com>
55598
55599         selinux-h: mark parameters of stub functions as intentionally unused
55600         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55601         * lib/se-context.in.h: Likewise.
55602
55603 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55604
55605         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55606
55607 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55608
55609         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55610
55611 2008-10-22  Eric Blake  <ebb9@byu.net>
55612
55613         glthread/thread: avoid compiler warning
55614         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55615         Add unreachable abort to silence compiler.
55616
55617 2008-10-22  Eric Blake  <ebb9@byu.net>
55618
55619         netdb: also supply struct addrinfo for cygwin 1.5.x
55620         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55621         older cygwin.
55622         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55623         cygwin.
55624         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55625
55626 2008-10-22  Bruno Haible  <bruno@clisp.org>
55627
55628         * users.txt: Update entry about pspp.
55629
55630 2008-10-21  Bruno Haible  <bruno@clisp.org>
55631
55632         Simplification.
55633         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55634         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55635
55636         Simplification.
55637         * lib/ioctl.c (ioctl): Don't undefine.
55638         * lib/socket.c (socket): Don't undefine.
55639
55640         Remove unused module indicator macros.
55641         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55642         GNULIB_$1 as a C macro.
55643
55644         * doc/posix-functions/close.texi: Undo last change.
55645         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55646         Windows platforms.
55647
55648 2008-10-21  Bruno Haible  <bruno@clisp.org>
55649
55650         Add gethostname() declaration to <unistd.h>.
55651         * lib/unistd.in.h (gethostname): New declaration.
55652         * lib/gethostname.c: Include <unistd.h>.
55653         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55654         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55656         and HAVE_GETHOSTNAME.
55657         * modules/gethostname (Depends-on): Add unistd.
55658         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55659         (Include): Specify <unistd.h>.
55660         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55661         HAVE_GETHOSTNAME.
55662         * tests/test-gethostname.c: Include <unistd.h> first.
55663
55664 2008-10-21  Bruno Haible  <bruno@clisp.org>
55665
55666         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55667         * modules/select-tests (Depends-on): Likewise.
55668         Reported by Simon Josefsson.
55669
55670 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55671
55672         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55673         * lib/accept.c: New file, based on winsock.c.
55674         * lib/bind.c: New file, based on winsock.c.
55675         * lib/connect.c: New file, based on winsock.c.
55676         * lib/getpeername.c: New file, based on winsock.c.
55677         * lib/getsockname.c: New file, based on winsock.c.
55678         * lib/getsockopt.c: New file, based on winsock.c.
55679         * lib/ioctl.c: New file, based on winsock.c.
55680         * lib/listen.c: New file, based on winsock.c.
55681         * lib/recv.c: New file, based on winsock.c.
55682         * lib/recvfrom.c: New file, based on winsock.c.
55683         * lib/send.c: New file, based on winsock.c.
55684         * lib/sendto.c: New file, based on winsock.c.
55685         * lib/setsockopt.c: New file, based on winsock.c.
55686         * lib/shutdown.c: New file, based on winsock.c.
55687         * lib/socket.c: New file, based on winsock.c.
55688         * lib/w32sock.h: New file, based on winsock.c.
55689         * lib/winsock.c: Remove file.
55690         * modules/accept: Likewise.
55691         * modules/bind: Likewise.
55692         * modules/connect: Likewise.
55693         * modules/getpeername: Likewise.
55694         * modules/getsockname: Likewise.
55695         * modules/getsockopt: Likewise.
55696         * modules/ioctl: Likewise.
55697         * modules/listen: Likewise.
55698         * modules/recv: Likewise.
55699         * modules/recvfrom: Likewise.
55700         * modules/send: Likewise.
55701         * modules/sendto: Likewise.
55702         * modules/setsockopt: Likewise.
55703         * modules/shutdown: Likewise.
55704         * modules/socket: Use socket.c instead of winsock.c.
55705         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55706         * doc/posix-functions/accept.texi: Doc fix.
55707         * doc/posix-functions/bind.texi: Doc fix.
55708         * doc/posix-functions/close.texi: Doc fix.
55709         * doc/posix-functions/connect.texi: Doc fix.
55710         * doc/posix-functions/getpeername.texi: Doc fix.
55711         * doc/posix-functions/getsockname.texi: Doc fix.
55712         * doc/posix-functions/getsockopt.texi: Doc fix.
55713         * doc/posix-functions/ioctl.texi: Doc fix.
55714         * doc/posix-functions/listen.texi: Doc fix.
55715         * doc/posix-functions/recv.texi: Doc fix.
55716         * doc/posix-functions/recvfrom.texi: Doc fix.
55717         * doc/posix-functions/send.texi: Doc fix.
55718         * doc/posix-functions/sendto.texi: Doc fix.
55719         * doc/posix-functions/setsockopt.texi: Doc fix.
55720         * doc/posix-functions/shutdown.texi: Doc fix.
55721         * doc/posix-functions/socket.texi: Doc fix.
55722
55723 2008-10-20  Bruno Haible  <bruno@clisp.org>
55724
55725         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55726         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55727         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55728         as an alias for SIGABRT.
55729         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55730         (sigaction): Map it to SIGABRT.
55731         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55732
55733 2008-10-20  Bruno Haible  <bruno@clisp.org>
55734
55735         * lib/fts.c: Don't include lstat.h.
55736         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55737
55738         Move the lstat() declaration to <sys/stat.h>.
55739         * lib/lstat.h: Remove file.
55740         * lib/sys_stat.in.h: Add special invocation convention.
55741         (lstat): New declaration.
55742         * lib/lstat.c (orig_lstat): New function.
55743         (rpl_lstat): Use orig_lstat instead of lstat.
55744         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55745         AC_C_INLINE. Set REPLACE_LSTAT.
55746         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55747         and REPLACE_LSTAT.
55748         * modules/lstat (Files): Remove lib/lstat.h.
55749         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55750         (Include): Specify <sys/stat.h> instead of lstat.h.
55751         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55752         REPLACE_LSTAT.
55753         * NEWS: Mention the change.
55754
55755 2008-10-20  Bruno Haible  <bruno@clisp.org>
55756
55757         * modules/posix_spawn-tests: New file.
55758         * tests/test-posix_spawn3.c: New file.
55759
55760 2008-10-20  Bruno Haible  <bruno@clisp.org>
55761
55762         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55763         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55764         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55765         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55766         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55767
55768 2008-10-20  Bruno Haible  <bruno@clisp.org>
55769
55770         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55771         of posix_spawn on AIX 5.3.
55772
55773 2008-10-20  Bruno Haible  <bruno@clisp.org>
55774
55775         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55776
55777 2008-10-20  Bruno Haible  <bruno@clisp.org>
55778
55779         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55780         of AC_LANG_PROGRAM.
55781
55782 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55783
55784         * lib/netdb.in.h: Don't define GNU specific constants until they
55785         are supported or needed.  Reported by Bruno Haible
55786         <bruno@clisp.org>.
55787
55788 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55789
55790         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55791
55792 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55793
55794         * lib/getaddrinfo.h: Remove file.
55795         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
55796         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
55797         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
55798         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
55799         * modules/netdb: Substitute GNULIB_GETADDRINFO.
55800         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
55801         * tests/test-getaddrinfo.c: Likewise.
55802         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
55803         * NEWS: Mention change.
55804
55805 2008-10-19  Bruno Haible  <bruno@clisp.org>
55806
55807         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
55808
55809 2008-10-19  Bruno Haible  <bruno@clisp.org>
55810
55811         * lib/wait-process.c: Include simply <sys/wait.h>.
55812         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
55813         WIFSTOPPED): Remove fallback definitions.
55814         * modules/wait-process (Depends-on): Add sys_wait.
55815
55816         New module 'sys_wait'.
55817         * modules/sys_wait: New file.
55818         * lib/sys_wait.in.h: New file, partially copied from
55819         lib/wait-process.c.
55820         * m4/sys_wait_h.m4: New file.
55821         * doc/posix-headers/sys_wait.texi: Mention the new module.
55822
55823 2008-10-19  Bruno Haible  <bruno@clisp.org>
55824
55825         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
55826
55827 2008-10-19  Bruno Haible  <bruno@clisp.org>
55828
55829         Assume that waitpid() fills an 'int' status, not a 'union wait'.
55830         * lib/wait-process.c (WAIT_T): Remove type.
55831         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
55832         (wait_subprocess): Update.
55833
55834 2008-10-19  Bruno Haible  <bruno@clisp.org>
55835
55836         New module 'atoll'.
55837         * modules/atoll: New file.
55838         * lib/stdlib.in.h (atoll): New declaration.
55839         * lib/atoll.c: New file, from glibc with modifications.
55840         * m4/atoll.m4: New file.
55841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
55842         HAVE_ATOLL.
55843         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55844         * doc/posix-functions/atoll.texi: Mention the new module.
55845
55846 2008-10-19  Bruno Haible  <bruno@clisp.org>
55847
55848         Add strtoull() declaration to <stdlib.h>.
55849         * lib/stdlib.in.h (strtoull): New declaration.
55850         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55851         Set HAVE_STRTOULL.
55852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55853         HAVE_STRTOULL.
55854         * modules/strtoull (Depends-on): Add stdlib.
55855         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55856         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55857         HAVE_STRTOULL.
55858
55859 2008-10-19  Bruno Haible  <bruno@clisp.org>
55860
55861         Add strtoll() declaration to <stdlib.h>.
55862         * lib/stdlib.in.h (strtoll): New declaration.
55863         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55864         Set HAVE_STRTOLL.
55865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55866         HAVE_STRTOLL.
55867         * modules/strtoll (Depends-on): Add stdlib.
55868         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55869         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55870
55871 2008-10-19  Bruno Haible  <bruno@clisp.org>
55872
55873         * modules/bcopy (Depends-on): Add strings.
55874         (Include): Specify <strings.h>.
55875
55876 2008-10-19  Bruno Haible  <bruno@clisp.org>
55877
55878         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55879
55880 2008-10-19  Bruno Haible  <bruno@clisp.org>
55881
55882         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55883         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55884         mingw.
55885
55886 2008-10-19  Bruno Haible  <bruno@clisp.org>
55887
55888         * lib/atanl.c: Don't include isnanl.h.
55889         * lib/cosl.c: Likewise.
55890         * lib/ldexpl.c: Likewise.
55891         * lib/logl.c: Likewise.
55892         * lib/sinl.c: Likewise.
55893         * lib/sqrtl.c: Likewise.
55894         * lib/tanl.c: Likewise.
55895
55896         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55897         * lib/isnanf.h: Remove file.
55898         * lib/isnand.h: Remove file.
55899         * lib/isnanl.h: Remove file.
55900         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55901         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55902         macros.
55903         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55904         HAVE_ISNANF, don't define it as a C macro.
55905         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55906         HAVE_ISNAND, don't define it as a C macro.
55907         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55908         HAVE_ISNANL, don't define it as a C macro.
55909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55910         HAVE_ISNAN[FDL].
55911         * modules/isnanf (Files): Remove lib/isnanf.h.
55912         (Depends-on): Add math.
55913         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55914         (Include): Specify <math.h> instead of isnanf.h.
55915         * modules/isnand (Files): Remove lib/isnand.h.
55916         (Depends-on): Add math.
55917         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55918         (Include): Specify <math.h> instead of isnand.h.
55919         * modules/isnanl (Files): Remove lib/isnanl.h.
55920         (Depends-on): Add math.
55921         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55922         (Include): Specify <math.h> instead of isnanl.h.
55923         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55924         HAVE_ISNAN[FDL].
55925         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55926         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55927         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55928         * NEWS: Mention the change.
55929
55930 2008-10-18  Bruno Haible  <bruno@clisp.org>
55931
55932         Add getusershell(), setusershell(), endusershell() declarations to
55933         <unistd.h>.
55934         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55935         declarations.
55936         * lib/getusershell.c: Include unistd.h.
55937         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55938         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55939         HAVE_GETUSERSHELL.
55940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55941         and HAVE_GETUSERSHELL.
55942         * modules/getusershell (Depends-on): Add unistd, extensions.
55943         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55944         (Include): Specify <unistd.h>.
55945         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55946         HAVE_GETUSERSHELL.
55947
55948 2008-10-18  Bruno Haible  <bruno@clisp.org>
55949
55950         Add a getloadavg() declaration to <stdlib.h>.
55951         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55952         getloadavg declaration.
55953         (getloadavg): New declaration.
55954         * lib/getloadavg.c: Include <stdlib.h> first.
55955         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55956         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55957         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55959         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55960         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55961         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55962         (Include): Specify <stdlib.h>.
55963         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55964         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55965
55966 2008-10-18  Bruno Haible  <bruno@clisp.org>
55967
55968         * lib/dirchownmod.c: Don't include lchmod.h.
55969
55970         Move the lchmod() declaration to <sys/stat.h>.
55971         * lib/lchmod.h: Remove file.
55972         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55973         (lchmod): New declaration, moved here from lib/lchown.h.
55974         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55975         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55976         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55977         and HAVE_LCHMOD.
55978         * modules/lchmod (Files): Remove lib/lchmod.h.
55979         (Depends-on): Add sys_stat, extensions.
55980         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55981         (Include): Specify <sys/stat.h> instead of lchmod.h.
55982         * modules/sys_stat (Depends-on): Add link-warning.
55983         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55984         definition of GL_LINK_WARNING.
55985         * NEWS: Mention the change.
55986
55987 2008-10-18  Bruno Haible  <bruno@clisp.org>
55988
55989         * lib/fchdir.c: Don't include dirfd.h.
55990         * lib/fts.c: Likewise.
55991         * lib/getcwd.c: Likewise.
55992         * lib/glob.c: Likewise.
55993
55994         Move the dirfd() declaration to <dirent.h>.
55995         * lib/dirfd.h: Remove file.
55996         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55997         (dirfd): New declaration.
55998         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55999         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56000         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56001         HAVE_DECL_DIRFD.
56002         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56003         HAVE_DECL_DIRFD.
56004         * modules/dirfd (Files): Remove lib/dirfd.h.
56005         (Depends-on): Add dirent, extensions.
56006         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56007         (Include): Specify <dirent.h> instead of dirfd.h.
56008         * modules/dirent (Depends-on): Add link-warning.
56009         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56010         definition of GL_LINK_WARNING.
56011         * NEWS: Mention the change.
56012
56013 2008-10-18  Bruno Haible  <bruno@clisp.org>
56014
56015         Move the euidaccess() declaration to <unistd.h>.
56016         * lib/euidaccess.h: Remove file.
56017         * lib/unistd.in.h (euidaccess): New declaration.
56018         * lib/euidaccess.c: Don't include euidaccess.h.
56019         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56020         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56022         and HAVE_EUIDACCESS.
56023         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56024         (Depends-on): Add unistd.
56025         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56026         (Include): Specify <unistd.h> instead of euidaccess.h.
56027         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56028         HAVE_EUIDACCESS.
56029         * NEWS: Mention the change.
56030
56031 2008-10-18  Bruno Haible  <bruno@clisp.org>
56032
56033         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56034
56035         Move the getdomainname() declaration to <unistd.h>.
56036         * lib/getdomainname.h: Remove file.
56037         * lib/unistd.in.h (getdomainname): New declaration.
56038         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56039         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56040         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56041         HAVE_GETDOMAINNAME.
56042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56043         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56044         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56045         (Depends-on): Add unistd, extensions.
56046         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56047         (Includes): Specify <unistd.h> instead of getdomainname.h.
56048         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56049         HAVE_GETDOMAINNAME.
56050         * NEWS: Mention the change.
56051
56052 2008-10-18  Bruno Haible  <bruno@clisp.org>
56053
56054         * modules/dirent: New file.
56055         * m4/dirent_h.m4: New file.
56056         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56057         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56058         * modules/fchdir (Files): Remove lib/dirent.in.h.
56059         (Depends-on): Add dirent.
56060         (Makefile.am): Move rules to modules/dirent.
56061         * doc/posix-headers/dirent.texi: Mention the new module.
56062
56063 2008-10-18  Bruno Haible  <bruno@clisp.org>
56064
56065         Avoid -Wunused-parameter warnings in public gnulib header files.
56066         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56067         macro.
56068         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56069
56070 2008-10-18  Bruno Haible  <bruno@clisp.org>
56071
56072         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56073         * doc/glibc-functions/error.texi: Mention the module 'error'.
56074         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56075         * doc/glibc-functions/getdomainname.texi: Mention the module
56076         'getdomainname'.
56077         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56078         * doc/glibc-functions/getpagesize.texi: Mention the module
56079         'getpagesize'.
56080         * doc/glibc-functions/getusershell.texi: Mention the module
56081         'getusershell'.
56082         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56083         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56084         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56085         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56086         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56087         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56088         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56089         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56090         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56091         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56092         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56093         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56094         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56095         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56096
56097 2008-10-17  Bruno Haible  <bruno@clisp.org>
56098
56099         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56100         HP-UX and IRIX, use -0.0L.
56101         * tests/test-ceill.c (minus_zero): Likewise.
56102         * tests/test-floorl.c (minus_zero): Likewise.
56103         * tests/test-frexpl.c (minus_zero): Likewise.
56104         * tests/test-isnan.c (minus_zerol): Likewise.
56105         * tests/test-isnanl.h (minus_zero): Likewise.
56106         * tests/test-ldexpl.c (minus_zero): Likewise.
56107         * tests/test-roundl.c (minus_zero): Likewise.
56108         * tests/test-signbit.c (minus_zerol): Likewise.
56109         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56110         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56111         * tests/test-truncl.c (minus_zero): Likewise.
56112         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56113         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56114         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56115         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56116
56117 2008-10-17  Bruno Haible  <bruno@clisp.org>
56118
56119         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56120         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56121         that it gets activated only for gcc >= 3.0.
56122         * lib/dirent.in.h: Likewise.
56123         * lib/errno.in.h: Likewise.
56124         * lib/fcntl.in.h: Likewise.
56125         * lib/float.in.h: Likewise.
56126         * lib/iconv.in.h: Likewise.
56127         * lib/inttypes.in.h: Likewise.
56128         * lib/locale.in.h: Likewise.
56129         * lib/math.in.h: Likewise.
56130         * lib/netdb.in.h: Likewise.
56131         * lib/netinet_in.in.h: Likewise.
56132         * lib/search.in.h: Likewise.
56133         * lib/signal.in.h: Likewise.
56134         * lib/spawn.in.h: Likewise.
56135         * lib/stdarg.in.h: Likewise.
56136         * lib/stdint.in.h: Likewise.
56137         * lib/stdio.in.h: Likewise.
56138         * lib/stdlib.in.h: Likewise.
56139         * lib/string.in.h: Likewise.
56140         * lib/strings.in.h: Likewise.
56141         * lib/sys_file.in.h: Likewise.
56142         * lib/sys_ioctl.in.h: Likewise.
56143         * lib/sys_select.in.h: Likewise.
56144         * lib/sys_socket.in.h: Likewise.
56145         * lib/sys_stat.in.h: Likewise.
56146         * lib/sys_time.in.h: Likewise.
56147         * lib/sysexits.in.h: Likewise.
56148         * lib/time.in.h: Likewise.
56149         * lib/unistd.in.h: Likewise.
56150         * lib/wchar.in.h: Likewise.
56151         * lib/wctype.in.h: Likewise.
56152         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56153
56154 2008-10-17  Jim Meyering  <meyering@redhat.com>
56155
56156         ignore-value: don't depend on inline module
56157         * modules/ignore-value (Depends-on): Remove 'inline'.
56158         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56159         Suggestion from Bruno Haible.
56160
56161 2008-10-17  Bruno Haible  <bruno@clisp.org>
56162
56163         New implementation of condition variables for Win32.
56164         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56165         (gl_linked_waitqueue_t): New type.
56166         (gl_cond_t): Use it.
56167         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56168         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56169         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56170         (glthread_cond_init_func, glthread_cond_wait_func,
56171         glthread_cond_timedwait_func, glthread_cond_signal_func,
56172         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56173         Reimplemented on the basis of gl_linked_waitqueue_t.
56174         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56175         gl_waitqueue_t.
56176         (gl_rwlock_t): Update.
56177         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56178
56179 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56180
56181         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56182         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56183
56184 2008-10-17  Jim Meyering  <meyering@redhat.com>
56185
56186         ignore-value: new module
56187         * modules/ignore-value: New file.
56188         * lib/ignore-value.h: New file.
56189         * MODULES.html.sh (Compiler warning management): New section,
56190         just for this module.  More to come.
56191
56192 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56193
56194         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56195         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56196         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56197
56198 2008-10-16  Jim Meyering  <meyering@redhat.com>
56199
56200         openat-die.c: avoid 'no previous prototype' warning
56201         * lib/openat-die.c: Include "openat.h".
56202         Reported by Reuben Thomas <rrt@sc3d.org>.
56203
56204 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56205
56206         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56207         * lib/netdb.in.h: Fix typo.
56208         Reported by Bruno Haible  <bruno@clisp.org>
56209
56210         * lib/netdb.in.h: Include sys/socket.h for platforms without
56211         netdb.h, to get structures like hostent on MinGW.
56212         * modules/netdb (Depends-on): Add sys_socket.
56213
56214 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56215
56216         * modules/netdb, modules/netdb-tests: New file.
56217         * m4/netdb_h.m4: New file.
56218         * lib/netdb.in.h: Add, currently just an empty file pending
56219         definitions.
56220         * tests/test-netdb.c: New file.
56221         * doc/posix-headers/netdb.texi: Mention that we replace it if
56222         needed.
56223         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56224         netdb.
56225
56226 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56227
56228         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56229         with code.
56230
56231 2008-10-13  Bruno Haible  <bruno@clisp.org>
56232
56233         * lib/glthread/cond.c (glthread_cond_wait_func,
56234         glthread_cond_timedwait_func): Add a comment.
56235
56236 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56237
56238         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56239         * tests/test-select.c: Likewise,
56240
56241 2008-10-13  Bruno Haible  <bruno@clisp.org>
56242
56243         * lib/glthread/cond.c (glthread_cond_wait_func,
56244         glthread_cond_timedwait_func): Fix variable name.
56245         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56246
56247 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56248
56249         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56251         struct sockaddr.sa_len.
56252         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56253
56254 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56255
56256         * build-aux/pmccabe2html: Add css and css_url parameters.
56257
56258 2008-10-12  Bruno Haible  <bruno@clisp.org>
56259
56260         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56261         calling aclx_get.
56262         Reported by Rainer Tammer <tammer@tammer.net>.
56263
56264 2008-10-12  Bruno Haible  <bruno@clisp.org>
56265
56266         Use msvcrt aware primitives for creation/termination of Win32 threads.
56267         * lib/glthread/thread.c: Include <process.h>.
56268         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56269         (wrapper_func): Update signature.
56270         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56271
56272 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56273             Bruno Haible  <bruno@clisp.org>
56274
56275         Provide a Win32 implementation of the 'cond' module.
56276         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56277         * lib/glthread/cond.c (glthread_cond_init_func,
56278         glthread_cond_wait_func, glthread_cond_timedwait_func,
56279         glthread_cond_signal_func, glthread_cond_broadcast_func,
56280         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56281         * modules/cond (Dependencies): Add gettimeofday.
56282
56283 2008-10-11  Bruno Haible  <bruno@clisp.org>
56284
56285         Make sleep work on older versions of mingw.
56286         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56287         only whether it exists.
56288         * doc/posix-functions/sleep.texi: Mention the problem with older
56289         versions of mingw.
56290
56291 2008-10-11  Bruno Haible  <bruno@clisp.org>
56292
56293         New module 'shutdown'.
56294         * modules/shutdown: New file.
56295         * lib/sys_socket.in.h (shutdown): New declaration.
56296         * lib/winsock.c (shutdown): New function.
56297         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56298         GNULIB_SHUTDOWN.
56299         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56300         * doc/posix-functions/shutdown.texi: Document the new module.
56301
56302 2008-10-11  Jim Meyering  <meyering@redhat.com>
56303
56304         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56305
56306 2008-10-11  Bruno Haible  <bruno@clisp.org>
56307
56308         New module 'fclose'.
56309         * modules/fclose: New file.
56310         * lib/stdio.in.h (fclose): New declaration.
56311         * lib/fclose.c: New file.
56312         * m4/fclose.m4: New file.
56313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56314         REPLACE_FCLOSE.
56315         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56316         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56317         REPLACE_FCLOSE.
56318         * modules/close (Depends-on): fclose.
56319         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56320
56321 2008-10-11  Bruno Haible  <bruno@clisp.org>
56322
56323         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56324         set errno and don't call _close.
56325
56326 2008-10-10  Bruno Haible  <bruno@clisp.org>
56327
56328         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56329         ACL, not afterwards. Fixes test failure on Cygwin.
56330
56331 2008-10-09  Ben Pfaff  <blp@gnu.org>
56332
56333         * build-aux/announce-gen: Fix gnulib version related part of usage
56334         message.  Die with a useful error message if no tarballs are
56335         found.
56336
56337 2008-10-10  Jim Meyering  <meyering@redhat.com>
56338
56339         bootstrap: use git's --depth=N option only if it's supported
56340         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56341         recognize the --depth option.  Reported by Pádraig Brady.
56342
56343 2008-10-09  Bruno Haible  <bruno@clisp.org>
56344
56345         New module 'ioctl'.
56346         * modules/ioctl: New file.
56347         * lib/sys_socket.in.h (ioctl): Remove declaration.
56348         * lib/winsock.c: Include <sys/ioctl.h>.
56349         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56350         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56351         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56352         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56353         * doc/posix-functions/ioctl.texi: Mention the new module.
56354
56355 2008-10-09  Bruno Haible  <bruno@clisp.org>
56356
56357         New module 'sys_ioctl'.
56358         * lib/sys_ioctl.in.h: New file.
56359         * m4/sys_ioctl_h.m4: New file.
56360         * modules/sys_ioctl: New file.
56361         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56362
56363 2008-10-09  Bruno Haible  <bruno@clisp.org>
56364
56365         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56366         * lib/winsock.c: Include <stdarg.h>.
56367         (rpl_ioctl): Change to second argument 'int' and then varargs.
56368
56369 2008-10-09  Bruno Haible  <bruno@clisp.org>
56370
56371         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56372         when the sys_socket module is present and the system has <winsock2.h>.
56373
56374 2008-10-09  Bruno Haible  <bruno@clisp.org>
56375
56376         * doc/posix-functions/close.texi: Mention module 'close' instead of
56377         module 'sys_socket'.
56378
56379 2008-10-09  Bruno Haible  <bruno@clisp.org>
56380
56381         * doc/glibc-headers/sys_ioctl.texi: New file.
56382         * doc/gnulib.texi: Include it.
56383
56384 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56385             Bruno Haible  <bruno@clisp.org>
56386
56387         Combine the two replacements of 'close'.
56388         * lib/sys_socket.in.h (close): Define to a reminder to include
56389         <unistd.h>.
56390         (_gl_close_fd_maybe_socket): New declaration.
56391         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56392         * lib/winsock.c (close): Remove undefinition.
56393         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56394         needed for the gnulib module 'close'.
56395         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56396         define to an error symbol or to a warning, if suitable.
56397         * lib/close.c: Include <sys/socket.h>.
56398         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56399         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56400         UNISTD_H_HAVE_WINSOCK2_H.
56401         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56403         UNISTD_H_HAVE_WINSOCK2_H.
56404         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56405         (configure.ac): Set a module indicator.
56406         (Makefile.am): Substitute GNULIB_CLOSE.
56407         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56408         * modules/poll-tests (Depends-on): Add close.
56409         * modules/select-tests (Depends-on): Likewise.
56410
56411 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56412             Bruno Haible  <bruno@clisp.org>
56413
56414         New module 'close'.
56415         * modules/close: New file.
56416         * lib/unistd.in.h (close): Move declaration out of the
56417         FCHDIR_REPLACEMENT scope.
56418         (_gl_unregister_fd): New declaration.
56419         * lib/close.c: New file.
56420         * lib/fchdir.c (rpl_close): Remove function.
56421         * m4/close.m4: New file.
56422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56423         close.
56424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56425         REPLACE_CLOSE.
56426         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56427         REPLACE_CLOSE.
56428         * modules/fchdir (Depends-on): Add close.
56429
56430 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56431             Bruno Haible  <bruno@clisp.org>
56432
56433         * lib/fcntl.in.h (open): Simplify conditionals.
56434         (_gl_register_fd): New declaration.
56435         * lib/fchdir.c (rpl_open): Remove function.
56436         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56437         also.
56438         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56440         open.
56441
56442 2008-10-09  Jim Meyering  <meyering@redhat.com>
56443
56444         GNUmakefile: use the more name-space-friendly "_version"
56445         * top/GNUmakefile (_dummy): Update.
56446         (_version): Rename from "version".
56447
56448 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56449             Bruno Haible  <bruno@clisp.org>
56450
56451         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56452         rpl_close.
56453         (_gl_register_fd): New function, extracted from rpl_open.
56454         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56455         (rpl_open, rpl_opendir): Use _gl_register_fd.
56456
56457 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56458
56459         Fix organization of 'open' replacement.
56460         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56461         (gl_FUNC_OPEN): Use it.
56462         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56463
56464 2008-10-08  Bruno Haible  <bruno@clisp.org>
56465
56466         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56467
56468 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56469
56470         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56471         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56472         listen).
56473
56474 2008-10-08  Eric Blake  <ebb9@byu.net>
56475
56476         GNUmakefile: add 'make version' target
56477         * top/GNUmakefile (_curr-ver): Split version update rules...
56478         (version): ...into a target.
56479
56480 2008-10-07  Bruno Haible  <bruno@clisp.org>
56481
56482         Use a more portable replacement expression for -0.0L.
56483         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56484         instead of -0.0L. Fix m4 quotation.
56485
56486         * tests/test-signbit.c: Include <float.h>.
56487         (minus_zero): New variable.
56488         (test_signbitl): Use minus_zero instead of -zero.
56489         * modules/signbit-tests (Depends-on): Add float.
56490
56491         * tests/test-ceill.c: Include <float.h>.
56492         (zero): Remove variable.
56493         (minus_zero): New variable.
56494         (main): Use minus_zero instead of -zero.
56495         * modules/ceill-tests (Depends-on): Add float.
56496
56497         * tests/test-floorl.c: Include <float.h>.
56498         (zero): Remove variable.
56499         (minus_zero): New variable.
56500         (main): Use minus_zero instead of -zero.
56501         * modules/floorl-tests (Depends-on): Add float.
56502
56503         * tests/test-roundl.c: Include <float.h>.
56504         (zero): Remove variable.
56505         (minus_zero): New variable.
56506         (main): Use minus_zero instead of -zero.
56507         * modules/roundl-tests (Depends-on): Add float.
56508
56509         * tests/test-truncl.c: Include <float.h>.
56510         (zero): Remove variable.
56511         (minus_zero): New variable.
56512         (main): Use minus_zero instead of -zero.
56513         * modules/truncl-tests (Depends-on): Add float.
56514
56515         * tests/test-frexpl.c (zero): Remove variable.
56516         (minus_zero): New variable.
56517         (main): Use minus_zero instead of -zero.
56518         * modules/frexpl-tests (Depends-on): Add float.
56519
56520         * tests/test-isnan.c (zerol): Remove variable.
56521         (minus_zerol): New variable.
56522         (test_long_double): Use minus_zerol instead of -zerol.
56523         * modules/isnan-tests (Depends-on): Add float.
56524
56525         * tests/test-isnanl.h (zero): Remove variable.
56526         (minus_zero): New variable.
56527         (main): Use minus_zero instead of -zero.
56528         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56529         * modules/isnanl-tests (Depends-on): Add float.
56530
56531         * tests/test-ldexpl.c (zero): Remove variable.
56532         (minus_zero): New variable.
56533         (main): Use minus_zero instead of -zero.
56534         * modules/ldexpl-tests (Depends-on): Add float.
56535
56536         * tests/test-snprintf-posix.h (zerol): Remove variable.
56537         (minus_zerol): New variable.
56538         (test_function): Use minus_zerol instead of -zerol.
56539         * modules/snprintf-posix-tests (Depends-on): Add float.
56540         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56541
56542         * tests/test-sprintf-posix.h (zerol): Remove variable.
56543         (minus_zerol): New variable.
56544         (test_function): Use minus_zerol instead of -zerol.
56545         * modules/sprintf-posix-tests (Depends-on): Add float.
56546         * modules/vsprintf-posix-tests (Depends-on): Add float.
56547
56548         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56549         (minus_zerol): New variable.
56550         (test_function): Use minus_zerol instead of -zerol.
56551         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56552
56553         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56554         (minus_zerol): New variable.
56555         (test_function): Use minus_zerol instead of -zerol.
56556         * modules/vasprintf-posix-tests (Depends-on): Add float.
56557
56558 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56559
56560         * MODULES.html.sh (Support for building documentation): Mention
56561         pmccabe2html.  Sort entries.
56562
56563         Add pmccabe2html module, from gnupdf.
56564         * build-aux/pmccabe.css: New file.
56565         * build-aux/pmccabe2html: New file.
56566         * m4/pmccabe2html.m4: New file.
56567         * modules/pmccabe2html: New file.
56568
56569 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56570
56571         flock: new module
56572         * MODULES.html.sh: Add to list of modules.
56573         * lib/flock.c: flock implementation for Windows and Unix systems
56574         which have fcntl.
56575         * doc/glibc-functions/flock.texi: Update documentation.
56576         * lib/sys_file.in.h: <sys/file.h> header file.
56577         * m4/flock.m4: M4 macros.
56578         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56579         * modules/flock: flock module.
56580         * modules/flock-tests: flock tests module.
56581         * modules/sys_file: sys/file.h module.
56582         * tests/test-flock.c: test suite for flock.
56583
56584 2008-10-06  Jim Meyering  <meyering@redhat.com>
56585
56586         bootstrap: check for LT_INIT more portably still ;-)
56587         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56588         Spotted by Bruno Haible.
56589
56590 2008-10-06  Eric Blake  <ebb9@byu.net>
56591
56592         test-signbit: avoid tripping Irix cc bug on -0.0L
56593         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56594         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56595         entire testsuite consistent and avoids an Irix 6.2 bug.
56596
56597 2008-10-05  Bruno Haible  <bruno@clisp.org>
56598             Jim Meyering  <jim@meyering.net>
56599
56600         Add an option for ignoring EPIPE during close_stdout.
56601         * lib/closeout.h: Include <stdbool.h>.
56602         (close_stdout_set_ignore_EPIPE): New declaration.
56603         * lib/closeout.c: Include <stdbool.h>.
56604         (ignore_EPIPE): New variable.
56605         (close_stdout_set_ignore_EPIPE): New function.
56606         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56607         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56608         failure.
56609         * modules/closeout (Depends-on): Add stdbool.
56610
56611 2008-10-05  Bruno Haible  <bruno@clisp.org>
56612
56613         * modules/accept: New file.
56614         * modules/bind: New file.
56615         * modules/connect: New file.
56616         * modules/getpeername: New file.
56617         * modules/getsockname: New file.
56618         * modules/getsockopt: New file.
56619         * modules/listen: New file.
56620         * modules/recv: New file.
56621         * modules/recvfrom: New file.
56622         * modules/send: New file.
56623         * modules/sendto: New file.
56624         * modules/setsockopt: New file.
56625         * modules/socket: New file.
56626         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56627         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56628         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56629         the particular module is requested. Add a link warning when the
56630         particular module is not requested.
56631         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56632         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56633         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56634         the particular module is requested.
56635         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56636         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56637         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56638         * modules/sys_socket (Depends-on): Add link-warning.
56639         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56640         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56641         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56642         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56643         GL_LINK_WARNING.
56644         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56645         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56646         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56647         * doc/posix-functions/getpeername.texi: Mention the new module
56648         'getpeername'.
56649         * doc/posix-functions/getsockname.texi: Mention the new module
56650         'getsockname'.
56651         * doc/posix-functions/getsockopt.texi: Mention the new module
56652         'getsockopt'.
56653         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56654         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56655         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56656         * doc/posix-functions/send.texi: Mention the new module 'send'.
56657         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56658         * doc/posix-functions/setsockopt.texi: Mention the new module
56659         'setsockopt'.
56660         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56661         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56662         listen, connect, accept.
56663         * modules/select-tests (Depends-on): Likewise.
56664
56665 2008-10-05  Bruno Haible  <bruno@clisp.org>
56666
56667         * lib/winsock.c (strerror): Remove unused #undef.
56668         (rpl_close): Remove unused local variable.
56669
56670         * modules/sys_socket (Depends-on); Add errno.
56671
56672 2008-10-05  Bruno Haible  <bruno@clisp.org>
56673
56674         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56675         (select): Add a link warning when the 'select' module is not used.
56676         * modules/sys_select (Depends-on): Add link-warning.
56677         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56678         Suggested by Paolo Bonzini.
56679
56680 2008-10-05  Jim Meyering  <meyering@redhat.com>
56681
56682         bootstrap: check for LT_INIT more portably
56683         * build-aux/bootstrap: Avoid using grep -E, since it's not
56684         portable enough.  Suggestion from Bruno Haible.
56685
56686 2008-10-05  Bruno Haible  <bruno@clisp.org>
56687
56688         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56689         as being fixed by gnulib.
56690
56691 2008-10-05  Bruno Haible  <bruno@clisp.org>
56692
56693         * modules/select-tests: New file, mostly copied from
56694         modules/sys_select-tests.
56695         * tests/test-select.c: New file, mostly copied from
56696         tests/test-sys_select.c.
56697         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56698         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56699         (Makefile.am): Remove test_sys_select_LDADD.
56700
56701         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56702         to an undefined symbol, for an error message.
56703         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56704         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56705         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56706         winsock-select.c here.
56707         * modules/sys_select (Files): Remove lib/winsock-select.c.
56708         (Depends-on): Remove alloca.
56709         (Makefile.am): Substitute GNULIB_SELECT.
56710         * modules/select: New file.
56711         * doc/posix-functions/select.texi: Update.
56712
56713 2008-10-05  Bruno Haible  <bruno@clisp.org>
56714
56715         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56716         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56717         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56718         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56719         getdtablesize.
56720         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56721         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56722
56723 2008-10-05  Bruno Haible  <bruno@clisp.org>
56724
56725         * modules/getdtablesize-tests: New file.
56726         * tests/test-getdtablesize.c: New file.
56727
56728         New module 'getdtablesize'.
56729         * lib/unistd.in.h (getdtablesize): New declaration.
56730         * lib/getdtablesize.c: New file.
56731         * m4/getdtablesize.m4: New file.
56732         * modules/getdtablesize: New file.
56733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56734         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56735         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56736         HAVE_GETDTABLESIZE.
56737         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56738
56739 2008-10-05  Bruno Haible  <bruno@clisp.org>
56740
56741         * modules/sched (Makefile.am): Fix typo.
56742         Reported by Simon Josefsson.
56743
56744 2008-10-05  Jim Meyering  <meyering@redhat.com>
56745
56746         bootstrap: check for LT_INIT, too
56747         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56748         are deprecated.  Suggestion from Ralf Wildenhues.
56749
56750 2008-10-05  Bruno Haible  <bruno@clisp.org>
56751
56752         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56753         overriding them by ours.
56754         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56755
56756 2008-10-05  Jim Meyering  <meyering@redhat.com>
56757
56758         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56759         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56760         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56761
56762 2008-10-04  Bruno Haible  <bruno@clisp.org>
56763
56764         * modules/dup2 (License): Change to LGPLv2+.
56765         * modules/sleep (License): Likewise.
56766         * modules/perror (License): Likewise.
56767         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56768         Blake.
56769         * modules/signal (License): Likewise.
56770         * modules/sigprocmask (License): Likewise.
56771         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56772         Meyering.
56773
56774 2008-10-04  Bruno Haible  <bruno@clisp.org>
56775
56776         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56777         Reported by Rainer Tammer <tammer@tammer.net>.
56778
56779 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56780             Bruno Haible  <bruno@clisp.org>
56781
56782         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56783         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56784         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56785
56786 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56787
56788         filevercmp: new module
56789         * lib/filevercmp.h: New function filevercmp comparing version strings.
56790         * lib/filevercmp.c: Implementation of filevercmp function.
56791         * modules/filevercmp: Module metadata.
56792         * tests/test-filevercmp.c: Unit test for new module.
56793         * modules/filevercmp-tests: Unit test metadata.
56794         * MODULES.html.sh: Add filevercmp module.
56795
56796 2008-10-03  Bruno Haible  <bruno@clisp.org>
56797
56798         * lib/c-ctype.h: Add comment.
56799         Reported by Jim Meyering.
56800
56801 2008-10-02  Bruno Haible  <bruno@clisp.org>
56802
56803         * modules/posix_spawn-internal (Depends-on): Add 'open'.
56804
56805 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56806
56807         * build-aux/bootstrap: Allow renaming bootstrap, and change the
56808         name of bootstrap.conf accordingly.
56809
56810 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56811
56812         * build-aux/bootstrap: Install git-merge-changelog configuration
56813         items into .gitconfig if needed.
56814
56815 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56816
56817         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
56818         git repository, and initialize/update it accordingly.
56819
56820 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
56821
56822         * modules/fsync-tests: New file.
56823         * tests/test-fsync.c: New file.
56824
56825         New module 'fsync'.
56826         * lib/fsync.c: New file.
56827         * m4/fsync.m4: New file.
56828         * modules/fsync: New file.
56829         * lib/unistd.in.h (fsync): New declaration.
56830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
56831         GNULIB_FSYNC and HAVE_FSYNC.
56832         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
56833         * MODULES.html.sh (posix_functions): Add fsync.
56834         * doc/posix-functions/fsync.texi: Mention the new module.
56835
56836 2008-10-02  Jim Meyering  <meyering@redhat.com>
56837
56838         fts.c: sync with similar code from coreutils' remove.c
56839         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
56840         Guard also with "#if defined __linux__", since for now at least,
56841         this code is Linux-kernel-specific.
56842
56843 2008-10-02  Jim Meyering  <meyering@redhat.com>
56844
56845         fts: bug fixes
56846         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56847         Include <sys/vfs.h>, not <sys/statfs.h>.
56848
56849         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56850         Include <sys/vfs.h>, not <sys/statfs.h>.
56851
56852 2008-10-01  Bruno Haible  <bruno@clisp.org>
56853
56854         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56855         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56856         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56857         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56858         * doc/posix-functions/posix_spawnp.texi: Likewise.
56859         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56860         whether posix_spawn actually works.
56861         * m4/pipe.m4 (gl_PIPE): Likewise.
56862         * modules/execute (Files): Add m4/posix_spawn.m4.
56863         * modules/pipe (Files): Add m4/posix_spawn.m4.
56864         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56865
56866 2008-10-01  Jim Meyering  <meyering@redhat.com>
56867
56868         remove trailing spaces
56869         * NEWS: Likewise.
56870         * lib/poll.c (poll): Likewise.
56871         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56872         * lib/winsock.c (rpl_close): Likewise.
56873         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56874         * modules/yield: Likewise.
56875         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56876         * tests/test-sys_select.c (connect_to_socket): Likewise.
56877
56878         fts.c: adjust a new interface to be more generally useful
56879         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56880         (fts_build): Adjust caller.
56881
56882 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56883
56884         * modules/cond-tests: New file.
56885         * tests/test-cond.c: New file.
56886
56887 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56888             Bruno Haible  <bruno@clisp.org>
56889
56890         * modules/cond (Dependencies): Add errno, time.
56891         * lib/glthread/cond.h: Include <time.h>.
56892         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56893         across platforms.
56894
56895 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56896             Bruno Haible  <bruno@clisp.org>
56897
56898         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56899
56900 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56901             Bruno Haible  <bruno@clisp.org>
56902
56903         * modules/tls-tests (Depends-on): Add thread, yield.
56904         (configure.ac): Remove all checks.
56905         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56906         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56907         gl_thread_self): Remove definitions. Include glthread/thread.h and
56908         glthread/yield.h instead.
56909         (test_tls): Pass an additional NULL argument to gl_thread_join.
56910
56911 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56912             Bruno Haible  <bruno@clisp.org>
56913
56914         * modules/lock-tests (Depends-on): Add thread, yield.
56915         (configure.ac): Remove all checks.
56916         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56917         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56918         gl_thread_self): Remove definitions. Include glthread/thread.h and
56919         glthread/yield.h instead.
56920         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56921         additional NULL argument to gl_thread_join.
56922
56923 2008-09-30  Bruno Haible  <bruno@clisp.org>
56924
56925         Fix the Win32 implementation of the 'thread' module.
56926         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56927         pointer type.
56928         (gl_thread_self): Invoke gl_thread_self_func.
56929         (gl_thread_self_func): New declaration.
56930         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56931         (do_init_self_key, init_self_key): New functions.
56932         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56933         Remove some fields.
56934         (running_threads, running_lock): Remove variables.
56935         (get_current_thread_handle): New function.
56936         (gl_thread_self_func, wrapper_func, glthread_create_func,
56937         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56938         simplified.
56939
56940 2008-09-30  Bruno Haible  <bruno@clisp.org>
56941
56942         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56943         files.
56944
56945 2008-09-30  Jim Meyering  <meyering@redhat.com>
56946
56947         fts.m4: correct the test for statfs.f_type
56948         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56949         when checking for statfs.f_type.
56950
56951 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56952
56953         tests: avoid some compiler warnings
56954         * tests/test-memchr.c (main): Pass NULL indirectly.
56955         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56956
56957 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
56958
56959         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56960         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56961         exactly specified dayshifts.
56962         (dayshift): New rule.
56963         (rel): Add dayshift.
56964         (relative_time_table) [tomorrow, yesterday, today, now]:
56965         Use tDAY_SHIFT in place of tDAY_UNIT.
56966         * tests/test-getdate.c: Add tests for now-disallowed countable
56967         dayshifts, e.g., "4 yesterday ago".
56968
56969 2008-09-29  Bruno Haible  <bruno@clisp.org>
56970
56971         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56972         * tests/test-posix_spawn1.in.sh: Renamed from
56973         tests/test-posix_spawn.in.sh.
56974         * tests/test-posix_spawn2.c: New file.
56975         * tests/test-posix_spawn2.in.sh: New file.
56976         * modules/posix_spawnp-tests (Files): Update.
56977         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56978
56979 2008-09-29  Bruno Haible  <bruno@clisp.org>
56980
56981         Propagate effects of putenv/setenv/unsetenv to child processes.
56982         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56983         * lib/pipe.c (create_pipe): Likewise.
56984
56985 2008-09-29  Bruno Haible  <bruno@clisp.org>
56986
56987         Enable use of shell scripts as executables in mingw.
56988         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56989         run the program as a shell script.
56990         * lib/pipe.c (create_pipe): Likewise.
56991         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56992         resulting array.
56993
56994 2008-09-29  Eric Blake  <ebb9@byu.net>
56995
56996         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56997
56998 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56999
57000         * doc/posix-functions/accept.texi: Update mingw problems.
57001         * doc/posix-functions/bind.texi: Update mingw problems.
57002         * doc/posix-functions/close.texi: Update mingw problems.
57003         * doc/posix-functions/connect.texi: Update mingw problems.
57004         * doc/posix-functions/getpeername.texi: Update mingw problems.
57005         * doc/posix-functions/getsockname.texi: Update mingw problems.
57006         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57007         * doc/posix-functions/ioctl.texi: Update mingw problems.
57008         * doc/posix-functions/listen.texi: Update mingw problems.
57009         * doc/posix-functions/recv.texi: Update mingw problems.
57010         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57011         * doc/posix-functions/select.texi: Update mingw problems.
57012         * doc/posix-functions/send.texi: Update mingw problems.
57013         * doc/posix-functions/sendto.texi: Update mingw problems.
57014         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57015         * doc/posix-functions/socket.texi: Update mingw problems.
57016
57017 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57018             Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/sys_select.in.h: Include sys/time.h.
57021         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57022         * modules/sys_select: Depend on sys_time.
57023         * tests/test-sys_select.c: Test that sys/select.h defines struct
57024         timeval fully.
57025
57026 2008-09-29  Bruno Haible  <bruno@clisp.org>
57027
57028         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57029         * lib/sys_select.in.h: Likewise.
57030
57031 2008-09-29  Bruno Haible  <bruno@clisp.org>
57032
57033         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57034
57035 2008-09-29  Bruno Haible  <bruno@clisp.org>
57036
57037         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57038         Set LIBSOCKET instead of augmenting LIBS.
57039         * modules/sockets (Link): New section.
57040         * modules/sockets-tests (test_sockets_LDADD): New variable.
57041         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57042         * modules/poll-tests (test_poll_LDADD): New variable.
57043         * NEWS: Document the change.
57044
57045 2008-09-29  Bruno Haible  <bruno@clisp.org>
57046
57047         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57048         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57049         ARPA_INET_H directly.
57050         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57051
57052 2008-09-28  Bruno Haible  <bruno@clisp.org>
57053
57054         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57055         from gl_HEADER_SYS_SOCKET.
57056         (gl_HEADER_SYS_SOCKET): Invoke it.
57057         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57058
57059 2008-09-28  Bruno Haible  <bruno@clisp.org>
57060
57061         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57062         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57063         Needed on OSF/1 4.0.
57064
57065 2008-09-28  Bruno Haible  <bruno@clisp.org>
57066
57067         Override open more carefully.
57068         * lib/open.c (orig_open): New function.
57069         (rpl_open): Use orig_open instead of open.
57070         * lib/fcntl.in.h: Add special invocation convention.
57071         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57072         (gl_FUNC_OPEN): Invoke it.
57073
57074         Override freopen more carefully.
57075         * lib/freopen.c (orig_freopen): New function.
57076         (rpl_freopen): Use orig_freopen instead of freopen.
57077         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57078         (gl_FUNC_FREOPEN): Invoke it.
57079
57080         Override fopen more carefully.
57081         * lib/fopen.c (orig_fopen): New function.
57082         (rpl_fopen): Use orig_fopen instead of fopen.
57083         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57084         (gl_FUNC_FOPEN): Invoke it.
57085         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57086
57087 2008-09-28  Bruno Haible  <bruno@clisp.org>
57088
57089         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57090         SIGPIPE.
57091
57092 2008-09-28  Bruno Haible  <bruno@clisp.org>
57093
57094         * tests/test-sigaction.c (handler, main): Disable the check whether
57095         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57096         glibc systems with LinuxThreads.
57097
57098 2008-09-28  Bruno Haible  <bruno@clisp.org>
57099
57100         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57101
57102         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57103         with AIX xlc.
57104         * lib/fcntl.in.h (open): Likewise.
57105         Reported by Rainer Tammer <tammer@tammer.net>.
57106
57107 2008-09-28  Bruno Haible  <bruno@clisp.org>
57108
57109         * modules/posix_spawnp-tests: New file.
57110         * tests/test-posix_spawn.c: New file.
57111         * tests/test-posix_spawn.in.sh: New file.
57112
57113         New module 'posix_spawnp'.
57114         * modules/posix_spawnp: New file.
57115         * lib/spawnp.c: New file, from GNU libc with modifications.
57116         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57117
57118         New module 'posix_spawn'.
57119         * modules/posix_spawn: New file.
57120         * lib/spawn.c: New file, from GNU libc with modifications.
57121         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57122
57123         New module 'posix_spawnattr_destroy'.
57124         * modules/posix_spawnattr_destroy: New file.
57125         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57126         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57127         module.
57128
57129         New module 'posix_spawnattr_setsigmask'.
57130         * modules/posix_spawnattr_setsigmask: New file.
57131         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57132         modifications.
57133         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57134         new module.
57135
57136         New module 'posix_spawnattr_getsigmask'.
57137         * modules/posix_spawnattr_getsigmask: New file.
57138         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57139         modifications.
57140         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57141         new module.
57142
57143         New module 'posix_spawnattr_setsigdefault'.
57144         * modules/posix_spawnattr_setsigdefault: New file.
57145         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57146         modifications.
57147         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57148         new module.
57149
57150         New module 'posix_spawnattr_getsigdefault'.
57151         * modules/posix_spawnattr_getsigdefault: New file.
57152         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57153         modifications.
57154         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57155         new module.
57156
57157         New module 'posix_spawnattr_setschedpolicy'.
57158         * modules/posix_spawnattr_setschedpolicy: New file.
57159         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57160         modifications.
57161         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57162         new module.
57163
57164         New module 'posix_spawnattr_getschedpolicy'.
57165         * modules/posix_spawnattr_getschedpolicy: New file.
57166         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57167         modifications.
57168         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57169         new module.
57170
57171         New module 'posix_spawnattr_setschedparam'.
57172         * modules/posix_spawnattr_setschedparam: New file.
57173         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57174         modifications.
57175         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57176         new module.
57177
57178         New module 'posix_spawnattr_getschedparam'.
57179         * modules/posix_spawnattr_getschedparam: New file.
57180         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57181         modifications.
57182         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57183         new module.
57184
57185         New module 'posix_spawnattr_setpgroup'.
57186         * modules/posix_spawnattr_setpgroup: New file.
57187         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57188         modifications.
57189         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57190         module.
57191
57192         New module 'posix_spawnattr_getpgroup'.
57193         * modules/posix_spawnattr_getpgroup: New file.
57194         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57195         modifications.
57196         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57197         module.
57198
57199         New module 'posix_spawnattr_setflags'.
57200         * modules/posix_spawnattr_setflags: New file.
57201         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57202         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57203         module.
57204
57205         New module 'posix_spawnattr_getflags'.
57206         * modules/posix_spawnattr_getflags: New file.
57207         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57208         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57209         module.
57210
57211         New module 'posix_spawnattr_init'.
57212         * modules/posix_spawnattr_init: New file.
57213         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57214         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57215         module.
57216
57217         New module 'posix_spawn_file_actions_destroy'.
57218         * modules/posix_spawn_file_actions_destroy: New file.
57219         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57220         modifications.
57221         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57222         the new module.
57223
57224         New module 'posix_spawn_file_actions_addopen'.
57225         * modules/posix_spawn_file_actions_addopen: New file.
57226         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57227         modifications.
57228         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57229         the new module.
57230
57231         New module 'posix_spawn_file_actions_adddup2'.
57232         * modules/posix_spawn_file_actions_adddup2: New file.
57233         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57234         modifications.
57235         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57236         the new module.
57237
57238         New module 'posix_spawn_file_actions_addclose'.
57239         * modules/posix_spawn_file_actions_addclose: New file.
57240         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57241         modifications.
57242         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57243         the new module.
57244
57245         New module 'posix_spawn_file_actions_init'.
57246         * modules/posix_spawn_file_actions_init: New file.
57247         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57248         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57249         new module.
57250
57251         New module 'posix_spawn-internal'.
57252         * modules/posix_spawn-internal: New file.
57253         * lib/spawn_int.h: New file, from GNU libc with modifications.
57254         * lib/spawni.c: New file, from GNU libc with modifications.
57255         * m4/posix_spawn.m4: New file.
57256
57257         New module 'spawn'.
57258         * modules/spawn: New file.
57259         * lib/spawn.in.h: New file, from GNU libc with modifications.
57260         * m4/spawn_h.m4: New file.
57261         * doc/posix-headers/spawn.texi: Mention the new module.
57262
57263 2008-09-28  Bruno Haible  <bruno@clisp.org>
57264
57265         * modules/sched-tests: New file.
57266         * tests/test-sched.c: New file.
57267
57268         New module 'sched'.
57269         * modules/sched: New file.
57270         * lib/sched.in.h: New file.
57271         * m4/sched_h.m4: New file.
57272         * doc/posix-headers/sched.texi: Mention the new module.
57273
57274 2008-09-27  Eric Blake  <ebb9@byu.net>
57275
57276         Fix previous patch, and tweak references to $0.
57277         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57278         (func_version, func_gnulib_dir): Don't call this program
57279         gnulib-tool.
57280         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57281         with using $0 in function.
57282         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57283         (func_fatal_error): Reuse the name the user invoked us with.
57284
57285 2008-09-27  Bruno Haible  <bruno@clisp.org>
57286
57287         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57288         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57289         (gl_ICONV_H): Not here.
57290         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57291         instead of assigning ICONV_H directly.
57292
57293         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57295         WCHAR_H directly.
57296
57297 2008-09-27  Bruno Haible  <bruno@clisp.org>
57298
57299         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57300         * modules/arpa_inet (Depends-on): Add link-warning.
57301         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57302         * modules/unistd (Makefile.am): Likewise.
57303
57304 2008-09-26  Bruno Haible  <bruno@clisp.org>
57305
57306         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57307         variables.
57308         (func_version): Essentially copied from gnulib-tool.
57309         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57310         func_readlink): Copied from gnulib-tool.
57311
57312 2008-09-26  Bruno Haible  <bruno@clisp.org>
57313
57314         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57315         invoking git-version-gen.
57316
57317 2008-09-26  Bruno Haible  <bruno@clisp.org>
57318
57319         * posix-modules: Update to directory names changed on 2008-01-19.
57320         Remove commas in output before splitting into words. No more need to
57321         avoid 'ftruncate' since 2007-02-19.
57322
57323 2008-09-26  Bruno Haible  <bruno@clisp.org>
57324
57325         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57326
57327 2008-09-26  Bruno Haible  <bruno@clisp.org>
57328
57329         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57330         * modules/fwriteerror (Depends-on): Add errno.
57331
57332 2008-09-26  Bruno Haible  <bruno@clisp.org>
57333
57334         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57335         * tests/test-vc-list-files-cvs.sh: Likewise.
57336
57337 2008-09-26  Bruno Haible  <bruno@clisp.org>
57338
57339         * doc/posix-headers/sys_resource.texi: Reorder items.
57340
57341 2008-09-26  Jim Meyering  <meyering@redhat.com>
57342
57343         fts: tweak inode comparison function
57344         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57345         inode numbers, as documented.
57346
57347         fts: sort dirent entries on inode number before traversing
57348         This avoids a quadratic, seek-related performance penalty when
57349         operating on a directory containing many entries (measurable at 10k;
57350         3.5 hours at 2 million entries with a cold cache) on certain types
57351         of file systems, including ext3 and ext4, but not tmpfs.
57352         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57353         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57354         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57355         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57356         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57357         (fts_build): Set the stat.st_ino member from D_INO.
57358         If it is likely to be useful, sort dirent entries on inode number.
57359
57360         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57361         and the struct statfs.f_type member.
57362         * modules/fts (Depends-on): Add d-ino.
57363
57364 2008-09-26  Bruno Haible  <bruno@clisp.org>
57365
57366         * modules/sigpipe-die (Depends-on): Add sigpipe.
57367
57368         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57369         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57370         and GNULIB_STDIO_H_SIGPIPE are set.
57371         * lib/stdio-write.c: New file.
57372         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57373         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57374         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57375         REPLACE_STDIO_WRITE_FUNCS.
57376         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57377         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57378         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57379         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57380         * modules/stdio (Files): Add lib/stdio-write.c.
57381         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57382         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57383         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57384         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57385         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57386         REPLACE_FPRINTF_POSIX.
57387         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57388         REPLACE_PRINTF_POSIX.
57389         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57390         REPLACE_VFPRINTF_POSIX.
57391         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57392         REPLACE_VPRINTF_POSIX.
57393         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57394         SIGPIPE issue.
57395         * doc/posix-functions/fputc.texi: Likewise.
57396         * doc/posix-functions/fputs.texi: Likewise.
57397         * doc/posix-functions/fwrite.texi: Likewise.
57398         * doc/posix-functions/printf.texi: Likewise.
57399         * doc/posix-functions/putc.texi: Likewise.
57400         * doc/posix-functions/putchar.texi: Likewise.
57401         * doc/posix-functions/puts.texi: Likewise.
57402         * doc/posix-functions/vfprintf.texi: Likewise.
57403         * doc/posix-functions/vprintf.texi: Likewise.
57404
57405         * modules/safe-write (Depends-on): Add write.
57406
57407         * modules/sigpipe-tests: New file.
57408         * tests/test-sigpipe.c: New file.
57409         * tests/test-sigpipe.sh: New file.
57410
57411         * modules/write: New file.
57412         * lib/unistd.in.h: Include <sys/types.h>.
57413         (write): New declaration.
57414         * lib/write.c: New file.
57415         * m4/write.m4: New file.
57416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57417         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57418         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57419         GNULIB_WRITE, REPLACE_WRITE.
57420         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57421         and the SIGPIPE issue.
57422
57423         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57424         (raise): New declaration.
57425         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57426         (ext_signal): New function.
57427         (rpl_raise): New function.
57428         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57429         GNULIB_SIGNAL_H_SIGPIPE.
57430         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57431         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57432
57433         * modules/sigpipe: New file.
57434         * m4/sigpipe.m4: New file.
57435
57436 2008-09-25  Derek Price  <derek@ximbiot.com>
57437             Bruno Haible  <bruno@clisp.org>
57438
57439         * gnulib-tool (func_import): Report all license incompatibilities, not
57440         just the first one.
57441
57442 2008-09-25  Bruno Haible  <bruno@clisp.org>
57443
57444         * gnulib-tool (func_import): When computing the edits, consider not
57445         only the Makefile.ams that exist but also those that will be generated.
57446
57447 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57448
57449         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57450         fixes gnulib-tool --test warning about duplicate dependency.
57451
57452 2008-09-25  Bruno Haible  <bruno@clisp.org>
57453
57454         * gnulib-tool: Don't ask the user to perform edits in the generated
57455         Makefile.ams.
57456         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57457         apply to the Makefile.am being generated.
57458         (func_emit_tests_Makefile_am): Execute edits that apply to the
57459         Makefile.am being generated.
57460         (func_import): Setup list of Makefile.am edits before emitting the
57461         Makefile.ams, not at the end.
57462         (func_create_testdir): Update.
57463         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57464
57465 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57466
57467         * gnulib-tool (func_import): Store the --tests-base option in the
57468         comment in gnulib-cache.m4.
57469
57470 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57471
57472         * NEWS: Document increased portability that sys_select now provides.
57473
57474         * lib/sys_select.in.h: Install select wrapper.
57475         * lib/sys_socket.in.h: Use more descriptive name when there is no
57476         select wrapper.
57477         * lib/winsock-select.c: New.
57478         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57479         Require gl_HEADER_SYS_SOCKET.
57480         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57481         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57482         * tests/test-sys_select.c: Add functional tests.
57483
57484 2008-09-24  Eric Blake  <ebb9@byu.net>
57485
57486         open, fopen: close fd leak in last patch
57487         * lib/open.c (rpl_open): Close fd before returning error.
57488         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57489         * doc/posix-functions/open.texi (open): Document that Irix also
57490         has the bug.
57491         * doc/posix-functions/fopen.texi (fopen): Likewise.
57492         Reported by Paolo Bonzini.
57493
57494 2008-09-24  Bruno Haible  <bruno@clisp.org>
57495
57496         Ensure that a filename ending in a slash cannot be used to access a
57497         non-directory.
57498         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57499         to check whether it's really a directory.
57500         * lib/fopen.c: Include fcntl.h, unistd.h.
57501         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57502         and fdopen().
57503         * modules/fopen (Depends-on): Add unistd.
57504         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57505         * tests/test-fopen.c (main): Likewise.
57506         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57507         * doc/posix-functions/fopen.texi: Likewise.
57508         Reported by Eric Blake.
57509
57510 2008-09-23  Eric Blake  <ebb9@byu.net>
57511
57512         c-stack: avoid compiler optimizations when provoking overflow
57513         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57514         recursion harder to optimize, to ensure a stack overflow occurs.
57515         * tests/test-c-stack.c (recurse): Likewise.
57516         Borrowed from libsigsegv.
57517
57518         c-stack: work around Irix sigaltstack bug
57519         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57520         whether sigaltstack uses wrong end of stack_t (copied in part from
57521         libsigsegv).
57522         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57523         Irix bug, without requiring an over-allocation.
57524         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57525         bug.
57526
57527         fopen: document mingw bug on directories
57528         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57529         not allowing a stream visiting a directory, even though reading
57530         from such a stream is not portable.
57531
57532 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57533
57534         * lib/poll.c: Rewrite.
57535         * modules/poll: Depend on alloca.
57536
57537 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57538
57539         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57540         instead define prototypes for a full set of wrappers.  Ensure
57541         that Cygwin does not use the compatibility code, which is only
57542         for MinGW.
57543         * lib/winsock.c: New.
57544         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57545         * modules/sys_socket: Add lib/winsock.c.
57546
57547         * modules/poll-tests: Add errno and perror.
57548         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57549
57550 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57551
57552         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57553
57554 2008-09-23  Bruno Haible  <bruno@clisp.org>
57555
57556         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57557         * doc/glibc-functions/*: Likewise.
57558
57559 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57560
57561         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57562         success.
57563
57564 2008-09-22  Eric Blake  <ebb9@byu.net>
57565             Bruno Haible  <bruno@clisp.org>
57566
57567         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57568         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57569         supply %A but mishandle pseudo-NaN.
57570         Reported by Simon Josefsson.
57571
57572 2008-09-21  Bruno Haible  <bruno@clisp.org>
57573
57574         * tests/test-lock.c (main): Tweak skip message.
57575         * tests/test-tls.c (main): Likewise.
57576
57577 2008-09-21  Bruno Haible  <bruno@clisp.org>
57578
57579         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57580         whether 'struct sigaction' has sa_sigaction here...
57581         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57582         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57583
57584 2008-09-21  Bruno Haible  <bruno@clisp.org>
57585
57586         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57587         section.
57588         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57589         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57590         the new section.
57591         (Support for obsolete systems lacking POSIX:2001): New section.
57592         (String handling <string.h>): Move strdup to the new section.
57593         Suggested by Simon Josefsson and Paolo Bonzini.
57594
57595 2008-09-21  Bruno Haible  <bruno@clisp.org>
57596
57597         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57598         exponents in %e and %g results on 'long double'. Needed for mingw's
57599         improved *printf functions.
57600         * tests/test-vasprintf-posix.c (test_function): Likewise.
57601         * tests/test-snprintf-posix.h (test_function): Likewise.
57602         * tests/test-sprintf-posix.h (test_function): Likewise.
57603         Reported by Eric Blake.
57604
57605 2008-09-21  Bruno Haible  <bruno@clisp.org>
57606
57607         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57608         * tests/test-sprintf-posix.h (test_function): Likewise.
57609
57610 2008-09-21  Bruno Haible  <bruno@clisp.org>
57611
57612         * modules/getpass (Depends-on): Add strdup-posix.
57613
57614         New module 'strdup-posix'.
57615         * modules/strdup-posix: New file.
57616         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57617         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57619         REPLACE_STRDUP.
57620         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57621         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57622         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57623         strdup-posix.
57624
57625         * modules/strdup (Depends-on): Remove malloc-posix.
57626
57627 2008-09-20  Bruno Haible  <bruno@clisp.org>
57628
57629         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57630         Wildenhues.
57631
57632 2008-09-20  Bruno Haible  <bruno@clisp.org>
57633
57634         Ensure that wint_t gets defined on IRIX 5.3.
57635         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57636         * lib/wctype.in.h (wint_t): Likewise.
57637         (__wctype_wint_t): Remove type.
57638         (isw*): Use wint_t instead of __wctype_wint_t.
57639         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57640         * modules/wchar (Files): Add m4/wint_t.m4.
57641         (Makefile.am): Substitute HAVE_WINT_T.
57642         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57643         * tests/test-wctype.c: Check that wint_t is defined.
57644         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57645         * doc/posix-headers/wctype.texi: Likewise.
57646         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57647
57648 2008-09-18  Bruno Haible  <bruno@clisp.org>
57649
57650         * gnulib-tool (func_exit): Update comment.
57651
57652 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57653
57654         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57655         assumes strdup exists and does not depend on strdup to return
57656         ENOMEM on out of memory conditions.
57657
57658 2008-09-18  Bruno Haible  <bruno@clisp.org>
57659
57660         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57661         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57662         digits for the exponent.
57663
57664 2008-09-18  Jim Meyering  <meyering@redhat.com>
57665             Bruno Haible  <bruno@clisp.org>
57666
57667         * lib/vasnprintf.c (decimal_point_char): Define also if
57668         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57669
57670 2008-09-16  Bruno Haible  <bruno@clisp.org>
57671         and Eric Blake  <ebb9@byu.net>
57672
57673         vasnprintf: support Irix 5.3
57674         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57675         that mishandle long double infinity.
57676         Reported by Tom G. Christensen.
57677
57678 2008-09-16  Bruno Haible  <bruno@clisp.org>
57679
57680         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57681         Solaris 9.
57682         * doc/glibc-functions/alphasort.texi: Likewise.
57683         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57684
57685 2008-09-16  Jim Meyering  <meyering@redhat.com>
57686
57687         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57688         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57689         a umask modification leak out of a subshell.  Otherwise, the
57690         opensolaris /bin/sh would be accepted and thus cause unwarranted
57691         failures in the coreutils test suite.
57692
57693 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57694
57695         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57696         to succeed.
57697
57698 2008-09-16  Jim Meyering  <meyering@redhat.com>
57699
57700         avoid spurious test failure when library is built without ACL support
57701         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57702         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57703         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57704         * tests/test-copy-acl.sh: Likewise.
57705
57706 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57707
57708         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57709         based on character occurrence counts.
57710
57711 2008-09-15  Eric Blake  <ebb9@byu.net>
57712
57713         tests: avoid some compiler warnings
57714         * tests/test-memchr.c (main): Pass NULL indirectly.
57715         * tests/test-closein.c (main): Avoid unused variable.
57716
57717 2008-09-15  Bruno Haible  <bruno@clisp.org>
57718
57719         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57720         are missing on OpenBSD 4.0 individually.
57721         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57722
57723 2008-09-15  Bruno Haible  <bruno@clisp.org>
57724
57725         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57726         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57727         * doc/posix-functions/perror.texi: Likewise.
57728         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57729         is missing.
57730         Reported by Eric Blake.
57731
57732         * lib/errno.in.h: Use replacement values >= 2000.
57733         Reported by Eric Blake.
57734
57735 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57736
57737         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57738         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57739         limit.
57740         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57741         compareseq was aborted.
57742
57743 2008-09-14  Bruno Haible  <bruno@clisp.org>
57744
57745         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57746         yvec_edit_count.
57747         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57748         (fstrcmp_bounded): Simplify result computation accordingly.
57749
57750 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57751
57752         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57753         (fstrcmp): Define in terms of fstrcmp_bounded.
57754         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57755         lower_bound argument.
57756         Return quickly if the result is certainly < lower_bound.
57757         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57758
57759 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57760
57761         * lib/diffseq.h (EARLY_ABORT): New macro.
57762         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57763         evaluates to true.
57764
57765 2008-09-14  Bruno Haible  <bruno@clisp.org>
57766
57767         * modules/perror-tests: New file.
57768         * tests/test-perror.sh: New file.
57769         * tests/test-perror.c: New file.
57770
57771         New module 'perror'.
57772         * lib/stdio.in.h (perror): New declaration.
57773         * lib/perror.c: New file.
57774         * m4/perror.m4: New file.
57775         * modules/perror: New file.
57776         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57777         * doc/posix-functions/perror.texi: Mention the perror module.
57778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57779         REPLACE_PERROR.
57780         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57781         REPLACE_PERROR.
57782
57783 2008-09-14  Bruno Haible  <bruno@clisp.org>
57784
57785         * modules/stdio (Makefile.am): Reorder to match the order in
57786         lib/stdio.in.h.
57787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57788
57789 2008-09-13  Bruno Haible  <bruno@clisp.org>
57790
57791         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57792
57793 2008-09-13  Bruno Haible  <bruno@clisp.org>
57794
57795         Extend strerror to cover the added errno values.
57796         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
57797         (rpl_strerror): Provide error messages for the added errno values and
57798         for the WSA* values.
57799         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57800         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
57801         strerror.
57802         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
57803         * modules/strerror (Depends-on): Add errno.
57804         * doc/posix-functions/strerror.texi: Document the change.
57805         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
57806         and EOVERFLOW.
57807
57808 2008-09-13  Bruno Haible  <bruno@clisp.org>
57809
57810         * modules/EOVERFLOW: Remove file.
57811         * m4/eoverflow.m4: Remove file.
57812         * modules/EOVERFLOW-tests: Remove file.
57813         * tests/test-EOVERFLOW.c: Remove file.
57814         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
57815         * modules/ftell (Depends-on): Likewise.
57816         * modules/getdelim (Depends-on): Likewise.
57817         * modules/getugroups (Depends-on): Likewise.
57818         * modules/poll (Depends-on): Likewise.
57819         * modules/snprintf (Depends-on): Likewise.
57820         * modules/sprintf-posix (Depends-on): Likewise.
57821         * modules/vasnprintf (Depends-on): Likewise.
57822         * modules/vasprintf (Depends-on): Likewise.
57823         * modules/vfprintf-posix (Depends-on): Likewise.
57824         * modules/vsnprintf (Depends-on): Likewise.
57825         * modules/vsprintf-posix (Depends-on): Likewise.
57826         * modules/xvasprintf (Depends-on): Likewise.
57827         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57828         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
57829         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
57830         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
57831         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57832         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
57833         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
57834         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
57835         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57836         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
57837         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
57838         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
57839         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57840         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
57841         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
57842         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
57843         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57844         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57845         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57846         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57847         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57848         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57849         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57850         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57851         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57852         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57853         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57854         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57855         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57856         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57857         * MODULES.html.sh: Remove EOVERFLOW.
57858         * NEWS: Mention the change.
57859
57860 2008-09-13  Bruno Haible  <bruno@clisp.org>
57861
57862         * modules/errno-tests: New file.
57863         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57864
57865         * lib/errno.in.h: New file.
57866         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57867         * modules/errno: New file.
57868         * doc/posix-headers/errno.texi: Update documentation.
57869         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57870
57871 2008-09-13  Bruno Haible  <bruno@clisp.org>
57872
57873         * tests/test-poll.c: Use #if for native Windows, rather than testing
57874         __MSVCRT__.
57875
57876 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57877             Bruno Haible  <bruno@clisp.org>
57878
57879         * lib/glob.c: Don't include <pwd.h> on native Windows.
57880         (WINDOWS32): New macro.
57881         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57882
57883 2008-09-13  Bruno Haible  <bruno@clisp.org>
57884
57885         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57886         (ETIMEDOUT): Remove macro.
57887         (glthread_cond_timedwait_multithreaded): New declaration.
57888         (glthread_cond_timedwait): Use it.
57889         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57890         (glthread_cond_timedwait_multithreaded): New function.
57891
57892 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57893
57894         * modules/poll-tests: Do not check for io.h.
57895         * tests/test-poll.c: Check for __MSVCRT__ instead.
57896
57897 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57898
57899         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57900         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57901         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57902
57903 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57904
57905         * modules/poll-tests: New.
57906         * tests/test-poll.c: New.
57907
57908 2008-09-12  Eric Blake  <ebb9@byu.net>
57909
57910         frexp: test for NetBSD failure on -0.0
57911         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57912         not all, bugs from NetBSD 3.0 have been fixed.
57913         * doc/posix-functions/frexp.texi (frexp): Document bug.
57914         Reported by Thomas Klausner.
57915
57916         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57917         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57918         literal -0.0.
57919         Reported by Jonathan C. Patschke <jp@centtech.com>.
57920
57921 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57922
57923         * lib/glthread/cond.h: Use dummy implementation also if
57924         USE_WIN32_THREADS.
57925
57926 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57927
57928         * modules/fnmatch-posix (License): Change to LGPLv2+.
57929         * modules/fnmatch-gnu (License): Likewise.
57930
57931 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57932
57933         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57934
57935 2008-09-11  Jim Meyering  <meyering@redhat.com>
57936
57937         * users.txt: Add gtk-vnc.
57938
57939 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57940
57941         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57942         rotate amounts.
57943
57944         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57945         required for 16-bit and 8-bit rotates.
57946         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57947         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57948         UINT8_MAX instead of hard-coded constants.
57949         Suggested by Paul Eggert.
57950
57951 2008-09-07  Bruno Haible  <bruno@clisp.org>
57952
57953         * tests/test-striconveh.c (main): Check behaviour when converting from
57954         UTF-7.
57955
57956         Make striconveh work better with stateful encodings.
57957         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57958         that iconv does not increment the inptr when returning -1/EINVAL.
57959
57960 2008-09-07  Bruno Haible  <bruno@clisp.org>
57961
57962         * build-aux/config.rpath: Update according to libtool-2.2.6.
57963         * build-aux/config.libpath: Likewise.
57964
57965 2008-09-06  Bruno Haible  <bruno@clisp.org>
57966
57967         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57968         * lib/freadptr.c (freadptr): Likewise.
57969         * lib/freadseek.c (freadptrinc): Likewise.
57970         Reported by Simon Josefsson.
57971
57972 2008-09-06  Bruno Haible  <bruno@clisp.org>
57973
57974         * modules/freadptr (License): Change to LGPLv2+.
57975         * modules/freadseek (License): Likewise.
57976         Suggested by Eric Blake.
57977
57978         * modules/memchr2 (License): Change to LGPLv2+.
57979         Approved by Eric Blake.
57980
57981 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57982             Bruno Haible  <bruno@clisp.org>
57983
57984         Make gnulib-tool work with native 'sed' on AIX.
57985         * gnulib-tool (sed_noop): New variable.
57986         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57987         func_add_or_update, func_create_testdir): Use it to initialize sed
57988         script variables.
57989         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57990
57991 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57992             Bruno Haible  <bruno@clisp.org>
57993
57994         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57995         also works after #include directives.
57996
57997 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
57998
57999         getdate.y: reject an out-of-range timezone value
58000         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58001         the range [-24...+24].  When specified with only one or two digits,
58002         * tests/test-getdate.c: Tests for the fix.
58003         * doc/getdate.texi: Document this change.
58004
58005 2008-09-03  Bruno Haible  <bruno@clisp.org>
58006
58007         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58008
58009 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58010
58011         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58012         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58013         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58014         Blake <ebb9@byu.net>.
58015
58016         * tests/test-bitrotate.c: Add more test vectors.
58017
58018 2008-09-02  Eric Blake  <ebb9@byu.net>
58019
58020         vasnprintf-posix: handle large precision via %.*d
58021         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58022         when handling it ourselves.
58023         * tests/test-vasnprintf-posix.c (test_function): Add test.
58024         * tests/test-snprintf-posix.h (test_function): Likewise.
58025         * tests/test-sprintf-posix.h (test_function): Likewise.
58026         * tests/test-vasprintf-posix.c (test_function): Likewise.
58027         Reported by Alain Guibert.
58028
58029 2008-09-01  Eric Blake  <ebb9@byu.net>
58030
58031         c-stack: make configure-time check more robust
58032         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58033         successful sigaction call.
58034         Reported by Tom G. Christensen.
58035
58036 2008-09-01  Bruno Haible  <bruno@clisp.org>
58037
58038         New module 'findprog-lgpl'.
58039         * modules/findprog-lgpl: New file.
58040         * lib/findprog-lgpl.c: New file.
58041         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58042         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58043         to decide whether to use strdup or xstrdup, concatenated_filename or
58044         xconcatenated_filename.
58045
58046 2008-09-01  Bruno Haible  <bruno@clisp.org>
58047
58048         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58049         'xconcat-filename' (GPL).
58050         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58051         (License): Change to LGPLv2+.
58052         * modules/xconcat-filename: New file.
58053         * lib/concat-filename.h (concatenated_filename): Change specification.
58054         (xconcatenated_filename): New declaration.
58055         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58056         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58057         memory situations.
58058         * lib/xconcat-filename.c: New file.
58059         * NEWS: Mention the change.
58060         * lib/findprog.c: Include concat-filename.h, not filename.h.
58061         (find_in_path): Use xconcatenated_filename instead of
58062         concatenated_filename.
58063         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58064         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58065         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58066         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58067         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58068         instead of concatenated_filename.
58069         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58070         (execute_java_class): Use xconcatenated_filename instead of
58071         concatenated_filename.
58072         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58073         * modules/javacomp (Depends-on): Likewise.
58074         * modules/javaexec (Depends-on): Likewise.
58075
58076 2008-09-01  Bruno Haible  <bruno@clisp.org>
58077
58078         Split module 'filename' into 'filename' and 'concat-filename'.
58079         * modules/filename: Keep only lib/filename.h.
58080         (License): Change to LGPLv2+.
58081         * modules/concat-filename: New file, extracted from modules/filename.
58082         * lib/filename.h (concatenated_filename): Remove declaration.
58083         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58084         * lib/concat-filename.c: Include concat-filename.h.
58085         * NEWS: Mention the change.
58086
58087 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58088
58089         * lib/bitrotate.h (rotl8, rotr8): Add.
58090
58091         * modules/bitrotate (configure.ac): Need
58092         AC_REQUIRE([AC_C_INLINE]).
58093         (Description): Mention stdint.h.  Reported by Bruno Haible
58094         <bruno@clisp.org>.
58095
58096         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58097         Paolo Bonzini <bonzini@gnu.org>.
58098
58099 2008-08-31  Bruno Haible  <bruno@clisp.org>
58100
58101         Assume Solaris specific bi-arch conventions on Solaris systems.
58102         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58103         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58104         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58105         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58106         like acl_libdirstem.
58107         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58108         acl_libdirstem.
58109         * NEWS: Mention the change.
58110         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58111
58112 2008-08-31  Jim Meyering  <meyering@redhat.com>
58113
58114         * lib/strftime.h: Add comments describing the two added arguments.
58115
58116         remove duplicate #include directives
58117         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58118         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58119
58120 2008-08-31  Bruno Haible  <bruno@clisp.org>
58121
58122         New module 'sigpipe-die'.
58123         * modules/sigpipe-die: New file.
58124         * lib/sigpipe-die.h: New file.
58125         * lib/sigpipe-die.c: New file.
58126         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58127
58128 2008-08-31  Bruno Haible  <bruno@clisp.org>
58129
58130         Don't override previously installed signal handlers.
58131         * lib/fatal-signal.c (saved_sigactions): New variable.
58132         (uninstall_handlers): Reset the signal to the saved handler, not
58133         to SIG_DFL (except when ignored).
58134         (install_handlers): Save the previous handlers.
58135
58136 2008-08-30  Bruno Haible  <bruno@clisp.org>
58137
58138         * gnulib-tool (func_reset_sigpipe): New function.
58139         (func_get_automake_snippet, func_modules_transitive_closure,
58140         func_import): Invoke it before a join command that reads from stdin,
58141         to avoid "echo: write error: Broken pipe" error messages on stderr.
58142         Reported by Sam Steingold <sds@gnu.org>.
58143
58144 2008-08-30  Bruno Haible  <bruno@clisp.org>
58145
58146         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58147         Code copied from m4/open.m4.
58148         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58149         access and the filename ends in a slash. Code copied from lib/open.c.
58150         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58151         * tests/test-fopen.c (main): Check against bug with trailing slash.
58152
58153 2008-08-29  Bruno Haible  <bruno@clisp.org>
58154
58155         Avoid some "gcc -pedantic" warnings.
58156         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58157         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58158         * lib/dirent.in.h: Likewise.
58159         * lib/fcntl.in.h: Likewise.
58160         * lib/float.in.h: Likewise.
58161         * lib/iconv.in.h: Likewise.
58162         * lib/inttypes.in.h: Likewise.
58163         * lib/locale.in.h: Likewise.
58164         * lib/math.in.h: Likewise.
58165         * lib/netinet_in.in.h: Likewise.
58166         * lib/search.in.h: Likewise.
58167         * lib/signal.in.h: Likewise.
58168         * lib/stdarg.in.h: Likewise.
58169         * lib/stdint.in.h: Likewise.
58170         * lib/stdio.in.h: Likewise.
58171         * lib/stdlib.in.h: Likewise.
58172         * lib/string.in.h: Likewise.
58173         * lib/strings.in.h: Likewise.
58174         * lib/sys_select.in.h: Likewise.
58175         * lib/sys_socket.in.h: Likewise.
58176         * lib/sys_stat.in.h: Likewise.
58177         * lib/sys_time.in.h: Likewise.
58178         * lib/sysexits.in.h: Likewise.
58179         * lib/time.in.h: Likewise.
58180         * lib/unistd.in.h: Likewise.
58181         * lib/wchar.in.h: Likewise.
58182         * lib/wctype.in.h: Likewise.
58183         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58184         * modules/fchdir (Makefile.am): Likewise.
58185         * modules/fcntl (Makefile.am): Likewise.
58186         * modules/float (Makefile.am): Likewise.
58187         * modules/iconv_open (Makefile.am): Likewise.
58188         * modules/inttypes (Makefile.am): Likewise.
58189         * modules/locale (Makefile.am): Likewise.
58190         * modules/math (Makefile.am): Likewise.
58191         * modules/netinet_in (Makefile.am): Likewise.
58192         * modules/search (Makefile.am): Likewise.
58193         * modules/signal (Makefile.am): Likewise.
58194         * modules/stdarg (Makefile.am): Likewise.
58195         * modules/stdint (Makefile.am): Likewise.
58196         * modules/stdio (Makefile.am): Likewise.
58197         * modules/stdlib (Makefile.am): Likewise.
58198         * modules/string (Makefile.am): Likewise.
58199         * modules/strings (Makefile.am): Likewise.
58200         * modules/sys_select (Makefile.am): Likewise.
58201         * modules/sys_socket (Makefile.am): Likewise.
58202         * modules/sys_stat (Makefile.am): Likewise.
58203         * modules/sys_time (Makefile.am): Likewise.
58204         * modules/sysexits (Makefile.am): Likewise.
58205         * modules/time (Makefile.am): Likewise.
58206         * modules/unistd (Makefile.am): Likewise.
58207         * modules/wchar (Makefile.am): Likewise.
58208         * modules/wctype (Makefile.am): Likewise.
58209         Reported by Reuben Thomas <rrt@sc3d.org>.
58210
58211 2008-08-29  Bruno Haible  <bruno@clisp.org>
58212
58213         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58214         any more.
58215
58216 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58217
58218         * MODULES.html.sh (Misc): Add bitrotate.
58219
58220         * modules/bitrotate: New file.
58221
58222         * lib/bitrotate.h: New file.
58223
58224         * modules/bitrotate-tests: New file.
58225
58226         * tests/test-bitrotate.c: New file.
58227
58228         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58229         on the bitrotate module.
58230
58231         * lib/arctwo.c: Use new bitrotate module.
58232
58233 2008-08-29  Jim Meyering  <meyering@redhat.com>
58234
58235         bootstrap: merge changes from coreutils
58236         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58237         of copied files.  Remove a kludge, now that this is fixed.
58238         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58239         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58240         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58241
58242 2008-08-29  Bruno Haible  <bruno@clisp.org>
58243
58244         * MODULES.html.sh: Remove --cvs-urls option.
58245
58246 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58247
58248         maint.mk: adjust to file name change
58249         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58250
58251 2008-08-28  Jim Meyering  <meyering@redhat.com>
58252
58253         * modules/getndelim2 (License): Relicense to LGPLv2+.
58254         Approved by Richard Stallman for the version of 1995, and by
58255         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58256
58257 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58258
58259         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58260         dummy if one is not available.  Do not touch them if
58261         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58262         (getc_maybe_unlocked): New.
58263         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58264
58265 2008-08-26  Eric Blake  <ebb9@byu.net>
58266
58267         doc/INSTALL: resync from autoconf
58268         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58269         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58270         moving...
58271         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58272         * INSTALL: Regenerate.
58273         * INSTALL.ISO: New file.
58274         * INSTALL.UTF-8: Likewise.
58275
58276 2008-08-26  Jim Meyering  <meyering@redhat.com>
58277
58278         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58279         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58280         these definitions conditional, so that they may be overridden, too.
58281
58282 2008-08-26  Bruno Haible  <bruno@clisp.org>
58283
58284         Generate INSTALL file variants with prettier quotes.
58285         * doc/Makefile (INSTALL_PRELUDE): New macro.
58286         (INSTALL): Use it.
58287         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58288
58289 2008-08-26  Bruno Haible  <bruno@clisp.org>
58290
58291         Run makeinfo in an English locale.
58292         * doc/Makefile (MAKEINFO): New variable.
58293
58294 2008-08-26  Bruno Haible  <bruno@clisp.org>
58295
58296         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58297         Suggested by Eric Blake.
58298
58299 2008-08-25  Bruno Haible  <bruno@clisp.org>
58300
58301         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58302
58303 2008-08-25  Eric Blake  <ebb9@byu.net>
58304
58305         c-stack: test that stack overflow can be caught
58306         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58307         that platform allows handling stack overflow; at least OS/2 EMX
58308         has sigaltstack, but crashes before transferring control to
58309         handler on stack overflow.
58310         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58311         check for HAVE_STACK_OVERFLOW_HANDLING.
58312         Reported by Elbert Pol.
58313
58314 2008-08-25  Bruno Haible  <bruno@clisp.org>
58315
58316         * doc/posix-functions/strftime.texi: Fix description of strftime
58317         module.
58318
58319 2008-08-24  Bruno Haible  <bruno@clisp.org>
58320
58321         * tests/uniwidth/test-uc_width2.c: New file.
58322         * tests/uniwidth/test-uc_width2.sh: New file.
58323         * modules/uniwidth/width-tests (Files): Add the new files.
58324         (TESTS): Add uniwidth/test-uc_width2.sh.
58325         (TESTS_ENVIRONMENT): New variable.
58326         (check_PROGRAMS): Add test-uc_width2.
58327         (test_uc_width2_SOURCES): New variable.
58328
58329         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58330         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58331         not 0x00AB.
58332         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58333
58334 2008-08-22  Eric Blake  <ebb9@byu.net>
58335
58336         test-lock, test-tls: mention why a test is skipped
58337         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58338         skipped.
58339         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58340
58341         count-one-bits: relax license
58342         * modules/count-one-bits (License): Relicense to LGPLv2+.
58343         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58344
58345 2008-08-22  Andreas Schwab  <schwab@suse.de>
58346
58347         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58348         Remove spurious space in assignment.
58349
58350 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58351
58352         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58353         Paul Eggert <eggert@CS.UCLA.EDU>.
58354
58355 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58356
58357         * modules/gettext: Add m4/threadlib.m4.
58358
58359 2008-08-19  Eric Blake  <ebb9@byu.net>
58360
58361         test-c-stack: fix compilation failure on FreeBSD 5.0
58362         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58363         headers before <sys/resource.h>.
58364         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58365         the bug.
58366         Reported by Nelson H. F. Beebe.
58367
58368         strverscmp: migrate from "strverscmp.h" to <string.h>
58369         * modules/string (Makefile.am): Add new hooks.
58370         * modules/strverscmp (Files): Remove strverscmp.h.
58371         (Depends-on): Add string.
58372         (configure.ac): Add indicator.
58373         (Include): Mention new header.
58374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58375         defaults.
58376         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58377         results.
58378         * lib/strverscmp.h: Delete.
58379         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58380         * tests/test-strverscmp.c (includes): Adjust client.
58381         * lib/check-version.c (includes): Likewise.
58382         * NEWS: Document the change.
58383
58384         strverscmp: add unit test
58385         * modules/strverscmp-tests: New file.
58386         * tests/test-strverscmp.c: Likewise.
58387
58388 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58389
58390         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58391         regarding Windows crypto stuff, from Mono.
58392
58393 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58394
58395         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58396         if present, for intel RND.  Return error on failures.
58397
58398 2008-08-18  Ben Pfaff  <blp@gnu.org>
58399
58400         gitlog-to-changelog: give better diagnostic for failed pipe-open
58401         * build-aux/gitlog-to-changelog: Improve error message: suggest
58402         that the version of Git may be too old.
58403
58404 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58405
58406         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58407         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58408
58409 2008-08-18  Bruno Haible  <bruno@clisp.org>
58410
58411         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58412         pthread_in_use().
58413
58414 2008-08-18  Bruno Haible  <bruno@clisp.org>
58415
58416         * lib/glthread/threadlib.c: Include <pthread.h>.
58417
58418 2008-08-18  Bruno Haible  <bruno@clisp.org>
58419
58420         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58421         glthread_recursive_lock_* macros.
58422         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58423         Fix syntax error.
58424
58425 2008-08-18  Bruno Haible  <bruno@clisp.org>
58426
58427         * lib/glthread/thread.c: Avoid forcing a context switch right after
58428         thread creation.
58429
58430 2008-08-17  Bruno Haible  <bruno@clisp.org>
58431
58432         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58433         * lib/glthread/thread.h: Provide Win32 specific implementation.
58434         * modules/thread (Files): Add lib/glthread/thread.c.
58435         (Depends-on): Add lock.
58436         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58437
58438 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58439
58440         New module 'yield'.
58441         * modules/yield: New file.
58442         * lib/glthread/yield.h: New file.
58443         * m4/yield.m4: New file.
58444         * MODULES.html.sh (Multithreading): Add yield.
58445
58446 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58447
58448         New module 'thread'.
58449         * modules/thread: New file.
58450         * lib/glthread/thread.h: New file.
58451         * m4/thread.m4: New file.
58452         * MODULES.html.sh (Multithreading): Add thread.
58453
58454 2008-08-17  Bruno Haible  <bruno@clisp.org>
58455
58456         * lib/glthread/lock.h: Include <stdlib.h> always.
58457         * lib/glthread/tls.h: Likewise.
58458         * lib/glthread/cond.h: Likewise.
58459
58460 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58461
58462         New module 'cond'.
58463         * modules/cond: New file.
58464         * lib/glthread/cond.h: New file.
58465         * lib/glthread/cond.c: New file.
58466         * m4/cond.m4: New file.
58467         * MODULES.html.sh (Multithreading): Add cond.
58468
58469 2008-08-16  Eric Blake  <ebb9@byu.net>
58470
58471         c-stack: fix regression on Irix 5.3 from 2008-06-21
58472         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58473         sa_sigaction...
58474         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58475         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58476         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58477         * modules/signal (Makefile.am): Use the value.
58478         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58479         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58480         * doc/posix-headers/signal.texi (signal.h): Document this
58481         portability issue.
58482         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58483         Reported by Tom G. Christensen.
58484
58485 2008-08-17  Bruno Haible  <bruno@clisp.org>
58486
58487         New module 'threadlib'.
58488         * modules/threadlib: New file.
58489         * lib/glthread/threadlib.c: New file, extracted from
58490         lib/glthread/lock.c.
58491         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58492         functions.
58493         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58494         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58495         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58496         macros.
58497         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58498         (gl_DISABLE_THREADS): Remove macro.
58499         * modules/lock (Files): Remove build-aux/config.rpath.
58500         (Depends-on): Remove havelib. Add threadlib.
58501         (configure.ac-early): Remove section.
58502         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58503         * modules/tls (Depends-on): Remove lock. Add threadlib.
58504         (Link): New section, copied from threadlib.
58505         * MODULES.html.sh (Multithreading): Add threadlib.
58506
58507 2008-08-14  Bruno Haible  <bruno@clisp.org>
58508
58509         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58510         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58511         glthread_rwlock_unlock, glthread_rwlock_destroy,
58512         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58513         glthread_recursive_lock_destroy): Define as macros always.
58514         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58515         glthread_lock_lock.
58516         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58517         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58518         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58519         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58520         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58521         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58522         (glthread_recursive_lock_lock_func): Renamed from
58523         glthread_recursive_lock_lock.
58524         (glthread_recursive_lock_unlock_func): Renamed from
58525         glthread_recursive_lock_unlock.
58526         (glthread_recursive_lock_destroy_func): Renamed from
58527         glthread_recursive_lock_destroy.
58528
58529 2008-08-14  Bruno Haible  <bruno@clisp.org>
58530
58531         * lib/glthread/lock.h: Renamed from lib/lock.h.
58532         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58533         * lib/glthread/tls.h: Renamed from lib/tls.h.
58534         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58535         * lib/fstrcmp.c: Update includes.
58536         * lib/strsignal.c: Update includes.
58537         * modules/lock (Files, Makefile.am): Update.
58538         (Include): Change to "glthread/lock.h".
58539         * modules/tls (Files, Makefile.am): Update.
58540         (Include): Change to "glthread/tls.h".
58541         * tests/test-lock.c: Update includes.
58542         * tests/test-tls.c: Update includes.
58543         * NEWS: Mention the renamed header files.
58544
58545 2008-08-11  Jim Meyering  <meyering@redhat.com>
58546
58547         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58548
58549 2008-08-11  Eric Blake  <ebb9@byu.net>
58550
58551         test-c-stack: avoid C99-ism
58552         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58553         before statement.
58554         Reported by Alain Guibert.
58555
58556 2008-08-10  Jim Meyering  <meyering@redhat.com>
58557
58558         ensure that return value of uinttostr et al are not ignored
58559         * lib/inttostr.h (__GNUC_PREREQ): Define.
58560         (__attribute_warn_unused_result__): Define.
58561         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58562
58563 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58564
58565         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58566         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58567
58568 2008-08-07  Jim Meyering  <meyering@redhat.com>
58569
58570         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58571
58572         * modules/mkstemp (License): Relicense under LGPLv2+.
58573         * modules/tempname (License): Likewise.
58574
58575 2008-08-06  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/poll.c (poll): Further micro-optimization.
58578
58579 2008-08-06  Jim Meyering  <meyering@redhat.com>
58580
58581         inet_pton.c: use locale-independent tolower
58582         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58583         (inet_pton6): Use c_tolower rather than tolower.
58584         * modules/inet_pton (Depends-on): Add c-ctype.
58585
58586 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58587
58588         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58589         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58590
58591 2008-08-06  Jim Meyering  <meyering@redhat.com>
58592
58593         * modules/inet_pton (License): Relicense under LGPLv2+.
58594
58595 2008-08-03  Bruno Haible  <bruno@clisp.org>
58596
58597         Additional non-aborting API for lock and tls.
58598         * lib/lock.h: Include <errno.h>.
58599         (glthread_lock_init): New macro/function.
58600         (gl_lock_init): Define as wrapper around glthread_lock_init.
58601         (glthread_lock_lock): New macro/function.
58602         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58603         (glthread_lock_unlock): New macro/function.
58604         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58605         (glthread_lock_destroy): New macro/function.
58606         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58607         (glthread_rwlock_init): New macro/function.
58608         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58609         (glthread_rwlock_rdlock): New macro/function.
58610         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58611         (glthread_rwlock_wrlock): New macro/function.
58612         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58613         (glthread_rwlock_unlock): New macro/function.
58614         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58615         (glthread_rwlock_destroy): New macro/function.
58616         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58617         (glthread_recursive_lock_init): New macro/function.
58618         (gl_recursive_lock_init): Define as wrapper around
58619         glthread_recursive_lock_init.
58620         (glthread_recursive_lock_lock): New macro/function.
58621         (gl_recursive_lock_lock): Define as wrapper around
58622         glthread_recursive_lock_lock.
58623         (glthread_recursive_lock_unlock): New macro/function.
58624         (gl_recursive_lock_unlock): Define as wrapper around
58625         glthread_recursive_lock_unlock.
58626         (glthread_recursive_lock_destroy): New macro/function.
58627         (gl_recursive_lock_destroy): Define as wrapper around
58628         glthread_recursive_lock_destroy.
58629         (glthread_once): New macro/function.
58630         (gl_once): Define as wrapper around glthread_once.
58631         Update function declarations.
58632         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58633         glthread_rwlock_init. Return error code.
58634         (glthread_rwlock_rdlock_multithreaded): Renamed from
58635         glthread_rwlock_rdlock. Return error code.
58636         (glthread_rwlock_wrlock_multithreaded): Renamed from
58637         glthread_rwlock_wrlock. Return error code.
58638         (glthread_rwlock_unlock_multithreaded): Renamed from
58639         glthread_rwlock_unlock. Return error code.
58640         (glthread_rwlock_destroy_multithreaded): Renamed from
58641         glthread_rwlock_destroy. Return error code.
58642         (glthread_recursive_lock_init_multithreaded): Renamed from
58643         glthread_recursive_lock_init. Return error code.
58644         (glthread_recursive_lock_lock_multithreaded): Renamed from
58645         glthread_recursive_lock_lock. Return error code.
58646         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58647         glthread_recursive_lock_unlock. Return error code.
58648         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58649         glthread_recursive_lock_destroy. Return error code.
58650         (glthread_once_call): Make static.
58651         (glthread_once_multithreaded): Renamed from glthread_once.
58652         * lib/tls.h: Include <errno.h>.
58653         (glthread_tls_key_init): New macro/function.
58654         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58655         (glthread_tls_set): New macro/function.
58656         (gl_tls_set): Define as wrapper around glthread_tls_set.
58657         (glthread_tls_key_destroy): New macro/function.
58658         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58659         Update function declarations.
58660         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58661         glthread_tls_get.
58662         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58663
58664 2008-08-04  Eric Blake  <ebb9@byu.net>
58665
58666         gnumakefile: use space, not TAB, outside of targets
58667         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58668
58669 2008-08-02  Jim Meyering  <meyering@redhat.com>
58670
58671         getdate.y: avoid locale-dependent date parsing failure
58672         In Turkish locales, getdate would fail to recognize keywords
58673         containing a lowercase "i".  The solution is not to rely on
58674         locale-sensitive case-conversion.
58675         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58676         (lookup_word): Use c_toupper in place of toupper.
58677         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58678         Reported by Vefa Bicakci <bicave@superonline.com> in
58679         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58680         * modules/getdate (Depends-on): Add c-ctype.
58681
58682 2008-08-02  Bruno Haible  <bruno@clisp.org>
58683
58684         * gnulib-tool (func_import): When updating or creating a .gitignore
58685         file, prepend each added line with a slash, and ignore leading slashes
58686         from the existing lines.
58687         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58688
58689 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58690
58691         Portability fix for GNU make 3.79.1.
58692         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58693         versions do not understand.
58694
58695 2008-08-01  Bruno Haible  <bruno@clisp.org>
58696
58697         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58698         * tests/test-isnanf.h (zero): New variable.
58699         (main): Avoid literal -0.0f.
58700         * tests/test-isnand.h (zero): New variable.
58701         (main): Avoid literal -0.0.
58702         * tests/test-isnanl.h (zero): New variable.
58703         (main): Avoid literal -0.0L.
58704         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58705         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58706         -0.0, -0.0L.
58707         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58708         (test_signbitd): Avoid literal -0.0.
58709         (test_signbitl): Avoid literal -0.0L.
58710         * tests/test-ceilf1.c (zero): New variable.
58711         (main): Avoid literal -0.0f.
58712         * tests/test-ceill.c (zero): New variable.
58713         (main): Avoid literal -0.0L.
58714         * tests/test-floorf1.c (zero): New variable.
58715         (main): Avoid literal -0.0f.
58716         * tests/test-floorl.c (zero): New variable.
58717         (main): Avoid literal -0.0L.
58718         * tests/test-roundf1.c (zero): New variable.
58719         (main): Avoid literal -0.0f.
58720         * tests/test-round1.c (zero): New variable.
58721         (main): Avoid literal -0.0.
58722         * tests/test-roundl.c (zero): New variable.
58723         (main): Avoid literal -0.0L.
58724         * tests/test-truncf1.c (zero): New variable.
58725         (main): Avoid literal -0.0f.
58726         * tests/test-trunc1.c (zero): New variable.
58727         (main): Avoid literal -0.0.
58728         * tests/test-truncl.c (zero): New variable.
58729         (main): Avoid literal -0.0L.
58730         * tests/test-frexp.c (zero): New variable.
58731         (main): Avoid literal -0.0.
58732         * tests/test-frexpl.c (zero): New variable.
58733         (main): Avoid literal -0.0L.
58734         * tests/test-ldexpl.c (zero): New variable.
58735         (main): Avoid literal -0.0L.
58736         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58737         (zerod, zerol): New variables.
58738         (test_function): Avoid literals -0.0, -0.0L.
58739         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58740         (zerod, zerol): New variables.
58741         (test_function): Avoid literals -0.0, -0.0L.
58742         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58743         (zerod, zerol): New variables.
58744         (test_function): Avoid literals -0.0, -0.0L.
58745         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58746         (zerod, zerol): New variables.
58747         (test_function): Avoid literals -0.0, -0.0L.
58748         * tests/test-strtod.c (zero): New variable.
58749         (main): Avoid literal -0.0.
58750         Reported by Jonathan C. Patschke <jp@centtech.com>.
58751
58752 2008-07-31  Jim Meyering  <meyering@redhat.com>
58753
58754         sha256.h: correct definition of SHA224_DIGEST_SIZE
58755         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58756         Reported by Paulie Pena IV <paulie4@gmail.com>.
58757         Define as 224 / 8, rather than as a literal.
58758         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58759         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58760         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58761
58762 2008-07-31  Bruno Haible  <bruno@clisp.org>
58763
58764         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58765         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58766         Reported by Jonathan Patschke <jp@centtech.com>.
58767
58768 2008-07-31  Bruno Haible  <bruno@clisp.org>
58769
58770         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58771         Reported by Paolo Bonzini <bonzini@gnu.org>.
58772
58773 2008-07-30  Eric Blake  <ebb9@byu.net>
58774
58775         test-strtod: allow compilation without -lm
58776         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58777         Reported by Dennis Clarke <blastwave@gmail.com>.
58778
58779 2008-07-28  Jim Meyering  <meyering@redhat.com>
58780
58781         bootstrap: work also when there are no .po files in po/
58782         * build-aux/bootstrap (update_po_files): Complete the change
58783         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58784
58785 2008-07-27  Jim Meyering  <meyering@redhat.com>
58786
58787         * users.txt: Add zile.
58788
58789 2008-07-26  Ben Pfaff  <blp@gnu.org>
58790
58791         Add missing dependencies on new m4/exponent[fdl].m4 files.
58792         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58793         * modules/isnand-nolibm: Add m4/exponentd.m4.
58794         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58795         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
58796         m4/isnan[fdl].m4, because the macros actually used moved.
58797         Reported by Jim Meyering.
58798
58799 2008-07-14  Ben Pfaff  <blp@gnu.org>
58800
58801         Add isinf module.
58802         * lib/isinf.c: New file.
58803         * lib/math.in.h: Define isinf macro if we have decided to replace
58804         it.
58805         * m4/isinf.m4: New file.
58806         * m4/math_h.m4: Initialize and substitute variables for isinf
58807         module.
58808         * modules/isinf: New file.
58809         * modules/isinf-tests: New file.
58810         * modules/math: Add substitutions for new module.
58811         * tests/test-isinf.c: New file.
58812         * doc/posix-functions/isinf.texi: Mention new module.
58813         * MODULES.html.sh: Mention new module.
58814
58815 2008-07-14  Ben Pfaff  <blp@gnu.org>
58816
58817         Factor out some macros for use by additional modules.
58818         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
58819         exponentf.m4.
58820         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
58821         exponentd.m4.
58822         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
58823         file exponentl.m4.
58824         * m4/exponentf.m4: New file.
58825         * m4/exponentd.m4: New file.
58826         * m4/exponentl.m4: New file.
58827         * modules/isnanf: Use new file m4/exponentf.m4.
58828         * modules/isnand: Use new file m4/exponentd.m4.
58829         * modules/isnanl: Use new file m4/exponentl.m4.
58830
58831 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
58832
58833         mktime.c: normalize tp->tm_isdst value to -1/0/1.
58834         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
58835         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
58836         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
58837
58838         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
58839         readlink on platforms without PATH_MAX.
58840
58841 2008-07-21  Eric Blake  <ebb9@byu.net>
58842
58843         Warn, not fail, on stale version.
58844         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58845
58846         Don't allow installation with stale devel version number.
58847         * top/GNUmakefile (_is-install-target): New macro.
58848         (_curr-ver): Forbid installation with stale version number.
58849
58850 2008-07-20  Bruno Haible  <bruno@clisp.org>
58851
58852         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58853         TESTS_ENVIRONMENT.
58854         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58855
58856 2008-07-20  Bruno Haible  <bruno@clisp.org>
58857
58858         * lib/c-stack.h (c_stack_action): Add documentation.
58859         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58860
58861 2008-07-20  Bruno Haible  <bruno@clisp.org>
58862
58863         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58864         * modules/readlink (License): Likewise.
58865
58866 2008-07-17  Eric Blake  <ebb9@byu.net>
58867
58868         * modules/c-stack (Link): Fix typo.
58869
58870         Make c-stack use libsigsegv, when available.
58871         * modules/c-stack (Depends-on): Add libsigsegv.
58872         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58873         needed.
58874         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58875         (segv_handler, overflow_handler, c_stack_action)
58876         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58877         implementation when libsigsegv is available, but only when using
58878         the library is necessary.
58879         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58880         comment, explaining why XSI check fails on Linux.
58881         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58882         * tests/test-c-stack2.sh: Tweak skip message.
58883         * NEWS: Document new link-time requirements.
58884
58885 2008-07-16  Eric Blake  <ebb9@byu.net>
58886
58887         c-stack: Expose false positives when not using libsigsegv.
58888         * modules/c-stack-tests (Files): Expand test.
58889         * tests/test-c-stack.c (main): Add means to conditionally trigger
58890         non-overflow SIGSEGV.
58891         * tests/test-c-stack2.sh: New file.
58892
58893 2008-07-14  Bruno Haible  <bruno@clisp.org>
58894
58895         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58896         Reported by Eric Blake.
58897
58898 2008-07-14  Sam Steingold  <sds@gnu.org>
58899             Bruno Haible  <bruno@clisp.org>
58900
58901         New module libsigsegv.
58902         * modules/libsigsegv: New file.
58903         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58904         modifications.
58905         * MODULES.html.sh (Signal handling): New section.
58906
58907 2008-07-14  Bruno Haible  <bruno@clisp.org>
58908
58909         * modules/unictype/ctype-* (Description): Add the word "function".
58910         Improves the resulting doc in MODULES.html.
58911
58912 2008-07-12  Ben Pfaff  <blp@gnu.org>
58913
58914         Add longlong module.
58915         * modules/longlong: New file.
58916
58917 2008-07-12  Bruno Haible  <bruno@clisp.org>
58918
58919         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58920         to empty.
58921
58922 2008-07-10  Ben Pfaff  <blp@gnu.org>
58923
58924         Add isnan module.
58925         * doc/posix-functions/isnan.texi: Mention new module.
58926         * lib/math.in.h: Define isnan macro if we have decided to replace
58927         it.
58928         * m4/isnan.m4: New file.
58929         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58930         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58931         also.
58932         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58933         redundancy.
58934         * m4/math_h.m4: Initialize and substitute variables for isnan
58935         module.
58936         * modules/isnan: New file.
58937         * modules/isnan-tests: New file.
58938         * modules/math: Add substitutions for new module.
58939         * tests/test-isnan.c: New file.
58940         * MODULES.html.sh: Mention new module.
58941
58942 2008-07-10  Ben Pfaff  <blp@gnu.org>
58943
58944         Add isnanf module.
58945         * lib/isnanf.m4: New file.
58946         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58947         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58948         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58949         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58950         * modules/isnanf: New file.
58951         * modules/isnanf-tests: New file.
58952         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58953         files.
58954         * tests/test-isnanf-nolibm.c: factored most of its contents into
58955         new file tests/test-isnanf.h.
58956         * tests/test-isnanf.h: New file.
58957         * tests/test-isnanf.c: New file.
58958         * MODULES.html.sh: Mention new module.
58959         * doc/glibc-functions/isnanf.texi: Mention new module.
58960
58961 2008-07-10  Ben Pfaff  <blp@gnu.org>
58962
58963         Add isnand module.
58964         * lib/isnand.h: New file.
58965         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58966         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58967         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58968         functionality also.
58969         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58970         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58971         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58972         * modules/isnand: New file.
58973         * modules/isnand-tests: New file.
58974         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58975         files.
58976         * tests/test-isnand-nolibm.c: factored most of its contents into
58977         new file tests/test-isnand.h.
58978         * tests/test-isnand.h: New file.
58979         * tests/test-isnand.c: New file.
58980         * MODULES.html.sh: Mention new module.
58981
58982 2008-07-10  Ben Pfaff  <blp@gnu.org>
58983
58984         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58985         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58986         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58987         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58988         * modules/isnanf-nolibm: Update references to renamed files.
58989         * modules/isnand-nolibm: Likewise.
58990         * modules/isnanf-nolibm-tests: Likewise.
58991         * modules/isnand-nolibm-tests: Likewise.
58992         * lib/frexp.c: Likewise.
58993         * lib/isfinite.c: Likewise.
58994         * lib/signbitd.c: Likewise.
58995         * lib/signbitf.c: Likewise.
58996         * lib/vasnprintf.c: Likewise.
58997         * tests/test-ceilf1.c: Likewise.
58998         * tests/test-ceilf2.c: Likewise.
58999         * tests/test-floorf1.c: Likewise.
59000         * tests/test-floorf2.c: Likewise.
59001         * tests/test-frexp.c: Likewise.
59002         * tests/test-round1.c: Likewise.
59003         * tests/test-round2.c: Likewise.
59004         * tests/test-roundf1.c: Likewise.
59005         * tests/test-strtod.c: Likewise.
59006         * tests/test-trunc1.c: Likewise.
59007         * tests/test-trunc2.c: Likewise.
59008         * tests/test-truncf1.c: Likewise.
59009         * tests/test-truncf2.c: Likewise.
59010         * NEWS: Mention the renamed header files.
59011
59012 2008-07-11  Jim Meyering  <meyering@redhat.com>
59013
59014         vc-list-files: make the last-resort awk code more portable
59015         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59016         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59017         does not support it.
59018
59019 2008-07-10  Eric Blake  <ebb9@byu.net>
59020
59021         Work with tar's bootstrap.
59022         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59023         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59024         an m4 comment.
59025
59026 2008-07-09  Jim Meyering  <meyering@redhat.com>
59027
59028         posix-shell.m4: fix typo that made this test malfunction
59029         * m4/posix-shell.m4: Remove capitalization in variable name.
59030
59031 2008-07-08  Bruno Haible  <bruno@clisp.org>
59032
59033         * m4/onceonly.m4: Update comments.
59034         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59035
59036 2008-07-04  Jim Meyering  <meyering@redhat.com>
59037
59038         * users.txt: Add vc-dwim.
59039         (bison, coreutils): Use the gitweb URL.
59040
59041 2008-07-03  Jim Meyering  <meyering@redhat.com>
59042
59043         * users.txt: Add libffcall.  From Sam Steingold.
59044
59045 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59046
59047         getdate.y: do not ignore TZ with relative day, month or year offset
59048         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59049         relative-date-handling, since otherwise, the latter would clobber the
59050         sole output (an updated Start value) of the tz-handling block.
59051         * tests/test-getdate.c: Tests for the fix
59052
59053 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59054
59055         Recognize 'foo_LIBRARIES += libgnu.a'.
59056         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59057         makefile snippet has already specified an installation location,
59058         also using '+='.
59059
59060 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59061
59062         getdate.y: factor out common actions
59063         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59064         Use them in place of open-coded actions.
59065
59066 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59067
59068         Add self-test for getdate module.
59069         * modules/getdate-tests: New file.
59070         * tests/test-getdate.c: New file.
59071
59072 2008-06-29  Bruno Haible  <bruno@clisp.org>
59073
59074         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59075         .gitignore.
59076         Reported by Sylvain Beucler <beuc@beuc.net>.
59077
59078 2008-06-29  Bruno Haible  <bruno@clisp.org>
59079
59080         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59081         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59082
59083 2008-06-29  Bruno Haible  <bruno@clisp.org>
59084
59085         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59086         EXTRA_DIST.
59087         Reported by Sylvain Beucler <beuc@beuc.net>.
59088
59089 2008-06-26  Jim Meyering  <meyering@redhat.com>
59090
59091         make several modules depend on the "open" module
59092         This provides slightly increased consistency when opening-for-write
59093         the name of a non-directory spelled with a trailing slash.
59094         * modules/chdir-safer: Likewise.
59095         * modules/chown: Likewise.
59096         * modules/clean-temp: Likewise.
59097         * modules/copy-file: Likewise.
59098         * modules/fchdir: Likewise.
59099         * modules/fcntl-safer: Likewise.
59100         * modules/pipe: Likewise.
59101         * modules/utime: Likewise.
59102         Prompted by Eric Blake and Bruno Haible.
59103
59104 2008-06-24  Andreas Schwab  <schwab@suse.de>
59105
59106         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59107         literals can be used as initializers for global variables.
59108
59109 2008-06-23  Eric Blake  <ebb9@byu.net>
59110
59111         Make gnulib-cache.m4 easier to diff.
59112         * gnulib-tool (func_import): Allow newlines when reading cached
59113         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59114
59115 2008-06-23  Bruno Haible  <bruno@clisp.org>
59116
59117         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59118         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59119         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59120         m4/signalblocking.m4.
59121         (gl_PREREQ_SIGACTION): Don't invoke it.
59122         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59123         gl_PREREQ_SIG_HANDLER_H.
59124         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59125         Don't check for sigaction here.
59126
59127 2008-06-23  Bruno Haible  <bruno@clisp.org>
59128
59129         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59130         (install_handlers): Don't set the SA_RESETHAND flag.
59131
59132 2008-06-23  Bruno Haible  <bruno@clisp.org>
59133
59134         * m4/sigaction.m4: Comment fixes.
59135         * lib/signal.in.h: Likewise.
59136
59137 2008-06-23  Eric Blake  <ebb9@byu.net>
59138
59139         Fix typo.
59140         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59141
59142         Avoid SA_ namespace.
59143         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59144         Reported by Ralf Wildenhues.
59145
59146         Avoid test failure due to SA_RESTORER.
59147         * tests/test-sigaction.c (SA_MASK): New macro.
59148         (main): Avoid failing due to extension flags being set.
59149         Reported by Jim Meyering.
59150
59151         Revert use of sig-handler.h in sigprocmask.c.
59152         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59153         it requires the existence of struct sigaction.
59154         * lib/sigprocmask.c (handler_t): Restore typedef.
59155         (rpl_signal, old_handlers): Use local type.
59156
59157 2008-06-22  Bruno Haible  <bruno@clisp.org>
59158
59159         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59160         conditionally.
59161         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59162
59163 2008-06-22  Bruno Haible  <bruno@clisp.org>
59164
59165         * doc/posix-functions/siginterrupt.texi: Move note.
59166
59167         * lib/signal.in.h (SA_RESTART): New macro.
59168         * lib/sigaction.c: Update comment.
59169
59170         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59171
59172         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59173         (gl_PREREQ_SIGPROCMASK): Invoke it.
59174         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59175
59176         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59177
59178         * lib/sigprocmask.c: Update a comment.
59179
59180 2008-06-21  Eric Blake  <ebb9@byu.net>
59181
59182         Use sigaction module rather than signal().
59183         * modules/c-stack (Depends-on): Add sigaction.
59184         * modules/fatal-signal (Depends-on): Likewise.
59185         * modules/nanosleep (Depends-on): Likewise.
59186         * modules/sigprocmask (Files): Add sig-handler.h.
59187         * modules/sigaction (Files): Likewise.
59188         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59189         Eggert.
59190         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59191         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59192         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59193         (init_fatal_signals): Likewise.
59194         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59195         (siginterrupt): Delete fallback.
59196         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59197         instead.
59198         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59199         siginterrupt.
59200
59201         New module sigaction, for mingw.
59202         * modules/sigaction: New module...
59203         * modules/sigaction-tests: ...and its test.
59204         * m4/sigaction.m4: New file.
59205         * lib/sigaction.c: Likewise.
59206         * tests/test-sigaction.c: Likewise.
59207         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59208         * modules/signal (Makefile.am): Likewise.
59209         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59210         needed.
59211         * doc/posix-headers/signal.texi (signal.h): Mention provided
59212         types.
59213         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59214         that sigaction is preferable.
59215         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59216         module.
59217         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59218         sigaction.
59219
59220         Improve robustness of sigprocmask by overriding signal.
59221         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59222         is in use.
59223         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59224         (SIGKILL, SIGSTOP): Provide fallbacks.
59225         (rpl_signal): Implement.
59226         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59227         signal can be called inside handlers.
59228
59229         Fix nanosleep module on mingw.
59230         * modules/nanosleep (Depends-on): Add sys_select.
59231         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59232
59233         Fix licensing of sigprocmask.
59234         * modules/raise (License): Relicense as LGPL.
59235
59236 2008-06-21  Bruno Haible  <bruno@clisp.org>
59237
59238         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59239         result if it contains question marks.
59240         Reported by Michael Geng <linux@michaelgeng.de>.
59241
59242 2008-06-19  Bruno Haible  <bruno@clisp.org>
59243
59244         Fix CVS-ism.
59245         * doc/gnulib.texi: Include updated-stamp.texi.
59246         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59247         (updated-stamp.texi): New rule.
59248         (gnulib.info): Depend on it.
59249         * doc/.gitignore: Add updated-stamp.texi.
59250         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59251
59252 2008-06-19  Bruno Haible  <bruno@clisp.org>
59253
59254         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59255         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59256
59257 2008-06-19  Eric Blake  <ebb9@byu.net>
59258
59259         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59260         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59261         Reported by Stepan Kasal.
59262
59263 2008-06-18  Bruno Haible  <bruno@clisp.org>
59264
59265         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59266         Reported by Eric Blake.
59267
59268 2008-06-18  Eric Blake  <ebb9@byu.net>
59269
59270         Work around cygwin 1.5.25 strsignal bug.
59271         * tests/test-strsignal.c: Allow for const char *.
59272         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59273
59274 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59275
59276         * users.txt: Update URL to article and add author/date
59277         information.
59278
59279 2008-06-17  Bruno Haible  <bruno@clisp.org>
59280
59281         New macro gl_DISABLE_THREADS.
59282         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59283         if the user did not pass --enable-threads or --disable-threads option.
59284         (gl_DISABLE_THREADS): New macro.
59285         Reported by Eric Blake <ebb9@byu.net>.
59286
59287 2008-06-17  Bruno Haible  <bruno@clisp.org>
59288
59289         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59290         when the macro ignores it.
59291         Based on a patch by Eric Blake <ebb9@byu.net>.
59292
59293 2008-06-17  Bruno Haible  <bruno@clisp.org>
59294
59295         * modules/tls (License): Change to LGPLv2+.
59296         Reported by Eric Blake.
59297
59298 2008-06-17  Eric Blake  <ebb9@byu.net>
59299
59300         Simplify c-stack prerequisites.
59301         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59302         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59303         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59304         check.
59305         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59306         <sys/resource.h>.
59307
59308         Move c-stack test into testsuite.
59309         * modules/c-stack-tests: New file.
59310         * lib/c-stack.c [DEBUG]: Move test program...
59311         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59312         fail test if sigaltstack is lacking.
59313         * tests/test-c-stack.sh: New driver file.
59314
59315 2008-06-16  Eric Blake  <ebb9@byu.net>
59316
59317         Use raise module consistently.
59318         * modules/fatal-signal (Depends-on): Add raise.
59319         * modules/sigprocmask (Depends-on): Likewise.
59320         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59321         * lib/sigprocmask.c (sigprocmask): Likewise.
59322         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59323         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59324
59325         Fix compliance bug in sigpending.
59326         * lib/sigprocmask.c (sigpending): Return pending array via
59327         parameter, not return value.
59328
59329 2008-06-14  Eric Blake  <ebb9@byu.net>
59330
59331         Improve obstack-printf test code.
59332         * tests/test-obstack-printf.c (test_function): Fix comment, and
59333         simplify usage of obstack_* in macros.  Add a test for coverage.
59334         Reported by Bruno Haible.
59335
59336 2008-06-14  Bruno Haible  <bruno@clisp.org>
59337
59338         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59339         array size as a constant, not as a const variable.
59340         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59341         AC_USE_SYSTEM_EXTENSIONS.
59342         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59343         Test whether the obstack_printf function actually exists.
59344         * modules/obstack-printf (Depends-on): Add extensions.
59345         (Include): Remove obstack.h.
59346         * modules/obstack-printf-posix (Depends-on): Add extensions.
59347         (Include): Remove obstack.h.
59348
59349 2008-06-13  Eric Blake  <ebb9@byu.net>
59350
59351         Add obstack-printf and obstack-printf-posix modules.
59352         * modules/obstack-printf: New file.
59353         * modules/obstack-printf-posix: Likewise.
59354         * MODULES.html.sh (Misc): Mention them.
59355         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59356         Likewise.
59357         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59358         Likewise.
59359         * modules/stdio (Makefile.am): Accomodate new modules.
59360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59361         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59362         Declare.
59363         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59364         functions.
59365         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59366         (gl_REPLACE_OBSTACK_PRINTF): New macros
59367         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59368         * tests/test-obstack-printf.c: New file.
59369         * modules/obstack-printf-tests: Likewise.
59370         * modules/obstack-printf-posix-tests: Likewise.
59371
59372 2008-06-11  Bruno Haible  <bruno@clisp.org>
59373
59374         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59375         * lib/open.c: Include errno.h.
59376         (open): Fail when attempting to write to a file that has a trailing
59377         slash.
59378         * tests/test-open.c (main): Test against trailing slash bug.
59379         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59380
59381 2008-06-10  Bruno Haible  <bruno@clisp.org>
59382
59383         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59384         for $? to work inside the trap command, with various /bin/sh-s.
59385         * tests/test-vc-list-files-cvs.sh: Likewise.
59386
59387 2008-06-10  Bruno Haible  <bruno@clisp.org>
59388
59389         * lib/acl-internal.h: Don't include gettext.h here.
59390         * lib/set-mode-acl.c: Include gettext.h here.
59391         * lib/copy-acl.c: Likewise.
59392
59393 2008-06-10  Bruno Haible  <bruno@clisp.org>
59394
59395         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59396         * lib/wait-process.c (wait_subprocess): Likewise.
59397         * lib/execute.h (execute): Add termsigp argument.
59398         * lib/execute.c (execute): Likewise.
59399         * lib/csharpcomp.c (compile_csharp_using_pnet,
59400         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59401         * lib/csharpexec.c (execute_csharp_using_pnet,
59402         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59403         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59404         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59405         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59406         is_jikes_present): Update.
59407         * lib/javaexec.c (execute_java_class): Update.
59408         * lib/javaversion.c (execute_and_read_line): Update.
59409         * NEWS: Document the changes.
59410         Reported by Eric Blake.
59411
59412 2008-06-10  Eric Blake  <ebb9@byu.net>
59413
59414         Add missing include.
59415         * tests/test-strstr.c (includes): Add <signal.h>.
59416         * tests/test-strcasestr.c (includes): Likewise.
59417         * tests/test-memmem.c (includes): Likewise.
59418
59419 2008-06-10  Bruno Haible  <bruno@clisp.org>
59420
59421         * lib/wait-process.c (wait_subprocess): Add an assertion.
59422
59423 2008-06-10  Bruno Haible  <bruno@clisp.org>
59424
59425         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59426
59427 2008-06-10  Bruno Haible  <bruno@clisp.org>
59428
59429         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59430         using alarm().
59431         * tests/test-strcasestr.c (main): Likewise.
59432         * tests/test-strstr.c (main): Likewise.
59433
59434 2008-06-09  Bruno Haible  <bruno@clisp.org>
59435
59436         Work around the Solaris 10 ACE ACLs ABI change.
59437         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59438         declare if ACL_NO_TRIVIAL is present.
59439         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59440         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59441         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59442         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59443         define if ACL_NO_TRIVIAL is present.
59444         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59445         and use the current ABI.
59446         (file_has_acl): Use same #if condition as elsewhere.
59447         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59448         in use, and use the current ABI.
59449         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59450         Reported by Jim Meyering.
59451
59452 2008-06-09  Eric Blake  <ebb9@byu.net>
59453
59454         Work around environments that (stupidly) ignore SIGALRM.
59455         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59456         before using alarm().
59457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59458         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59459         Reported by Ian Beckwith <ianb@erislabs.net>.
59460
59461         Produce autobuild blurb earlier in log.
59462         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59463
59464 2008-06-09  Jim Meyering  <meyering@redhat.com>
59465         and Ondřej Vašík  <ovasik@redhat.com>
59466
59467         utimens.c: correct kernel bug work-around
59468         Ondřej Vašík found that the invalid return value of 280 indicates
59469         failure, not success, and the kernel bug we're trying to work
59470         around affects not just the utimensat call, but also the fallback
59471         futimens call.
59472         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59473         not success.
59474         [HAVE_FUTIMENS]: Use the same work-around, here.
59475
59476 2008-06-09  Jim Meyering  <meyering@redhat.com>
59477
59478         add more guards around definition of ACE_-related code
59479         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59480         ALLOW and ACE_OWNER are also defined.
59481
59482 2008-06-08  Bruno Haible  <bruno@clisp.org>
59483
59484         * lib/acl-internal.h: Add me as co-author.
59485         * lib/file-has-acl.c: Likewise.
59486         * lib/set-mode-acl.c: Likewise.
59487         * lib/copy-acl.c: Likewise.
59488
59489 2008-06-08  Bruno Haible  <bruno@clisp.org>
59490
59491         Add support for AIX ACLs.
59492         * lib/acl-internal.h (acl_nontrivial): New declaration.
59493         * lib/file-has-acl.c (acl_nontrivial): New function.
59494         (file_has_acl): Add implementation using AIX 4 ACL API.
59495         * lib/set-mode-acl.c (qset_acl): Likewise.
59496         * lib/copy-acl.c (qcopy_acl): Likewise.
59497
59498 2008-06-08  Bruno Haible  <bruno@clisp.org>
59499
59500         Add support for HP-UX ACLs.
59501         * lib/acl-internal.h (acl_nontrivial): New declaration.
59502         * lib/file-has-acl.c (acl_nontrivial): New function.
59503         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59504         * lib/set-mode-acl.c (qset_acl): Likewise.
59505         * lib/copy-acl.c (qcopy_acl): Likewise.
59506
59507 2008-06-08  Bruno Haible  <bruno@clisp.org>
59508
59509         Add support for Cygwin ACLs.
59510         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59511         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59512         the chmod_or_fchmod call.
59513         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59514
59515 2008-06-08  Bruno Haible  <bruno@clisp.org>
59516
59517         Fix bug with setuid modes in Solaris 10+ code.
59518         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59519         succeeded, when the mode contains some special bits.
59520
59521 2008-06-08  Bruno Haible  <bruno@clisp.org>
59522
59523         Add support for Solaris 7..10 ACLs.
59524         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59525         declarations.
59526         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59527         functions.
59528         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59529         * lib/set-mode-acl.c (qset_acl): Likewise.
59530         * lib/copy-acl.c (qcopy_acl): Likewise.
59531
59532 2008-06-08  Bruno Haible  <bruno@clisp.org>
59533
59534         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59535         declaration.
59536         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59537         (acl_access_nontrivial): Remove MacOS X case.
59538         (file_has_acl): Use acl_extended_nontrivial.
59539         * lib/copy-acl.c (qcopy_acl): Likewise.
59540
59541 2008-06-08  Bruno Haible  <bruno@clisp.org>
59542
59543         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59544
59545 2008-06-08  Jim Meyering  <meyering@redhat.com>
59546
59547         * modules/acl (Maintainer): Add Bruno Haible.
59548
59549 2008-06-07  Bruno Haible  <bruno@clisp.org>
59550
59551         Improve support for Tru64 ACLs.
59552         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59553         ACL on OSF/1.
59554
59555 2008-06-07  Bruno Haible  <bruno@clisp.org>
59556
59557         Add support for MacOS X ACLs.
59558         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59559         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59560         * lib/set-mode-acl.c (qset_acl): Likewise.
59561         * lib/copy-acl.c (qcopy_acl): Likewise.
59562
59563 2008-06-07  Bruno Haible  <bruno@clisp.org>
59564
59565         Fix memory leak introduced on 2008-05-22.
59566         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59567         use.
59568
59569 2008-06-07  Bruno Haible  <bruno@clisp.org>
59570
59571         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59572         to construct an empty ACL.
59573
59574 2008-06-07  Bruno Haible  <bruno@clisp.org>
59575
59576         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59577         precisely.
59578         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59579
59580 2008-06-07  Bruno Haible  <bruno@clisp.org>
59581
59582         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59583         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59584
59585 2008-06-07  Bruno Haible  <bruno@clisp.org>
59586
59587         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59588         regardless of POSIX.
59589         * doc/posix-functions/_longjmp.texi: Likewise.
59590         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59591         SystemV platform in this case.
59592
59593 2008-06-06  Eric Blake  <ebb9@byu.net>
59594
59595         Document abort() bugs.
59596         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59597
59598         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59599         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59600         sigsetjmp.
59601         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59602         siglongjmp, but only as a macro.
59603         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59604         is obsolete.
59605         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59606
59607         Tweak documentation to cover cygwin argz bugs.
59608         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59609         argz bug fix; no code change needed since no cygwin releases
59610         occurred between the last fix and the bug being tested.
59611         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59612         module and recently fixed cygwin bugs.
59613         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59614         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59615         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59616         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59617         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59618         Likewise.
59619         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59620         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59621         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59622         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59623         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59624         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59625         Likewise.
59626
59627         Avoid gcc warning on cygwin.
59628         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59629         !ACL_NO_TRIVIAL]: Avoid unused variable.
59630
59631 2008-06-05  Eric Blake  <ebb9@byu.net>
59632
59633         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59634         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59635         git-version-gen fails to come up with a version.
59636         Reported by Simon Josefsson.
59637
59638 2008-06-05  Jim Meyering  <meyering@redhat.com>
59639             Paul Eggert  <eggert@cs.ucla.edu>
59640
59641         utimens.c: work around a probable Linux kernel bug
59642         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59643         appears to be a kernel bug that causes utimensat to return 280
59644         instead of 0, indicating success.
59645
59646 2008-06-04  Bruno Haible  <bruno@clisp.org>
59647
59648         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59649         2008-06-01 commit.
59650
59651 2008-06-04  Bruno Haible  <bruno@clisp.org>
59652
59653         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59654         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59655         (file_has_acl): Use it. Save errno afterwards.
59656         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59657
59658 2008-06-03  Bruno Haible  <bruno@clisp.org>
59659
59660         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59661         draft code. Simplify #ifs.
59662         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59663         Put Solaris code after POSIX-draft code. Fix comments regarding
59664         Solaris 10, HP-UX. Mention Cygwin.
59665         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59666
59667 2008-06-03  Eric Blake  <ebb9@byu.net>
59668
59669         Provide fallback for older kernels.
59670         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59671         Provide runtime fallback if kernel lacks support.
59672         Reported by Mike Frysinger.
59673
59674 2008-06-02  Bruno Haible  <bruno@clisp.org>
59675
59676         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59677         it exists.
59678
59679 2008-06-02  Bruno Haible  <bruno@clisp.org>
59680
59681         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59682         * lib/copy-acl.c (qcopy_acl): Update comment.
59683
59684 2008-06-02  Bruno Haible  <bruno@clisp.org>
59685
59686         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59687         like ACL APIs.
59688
59689 2008-06-02  Bruno Haible  <bruno@clisp.org>
59690
59691         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59692         * tests/test-set-mode-acl.sh: Likewise.
59693         * tests/test-copy-acl.sh: Likewise.
59694         * tests/test-copy-file.sh: Likewise.
59695
59696 2008-06-02  Bruno Haible  <bruno@clisp.org>
59697
59698         * tests/test-file-has-acl.sh: Remove unused code.
59699
59700 2008-06-01  Bruno Haible  <bruno@clisp.org>
59701
59702         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59703         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59704         messages.
59705         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59706
59707 2008-06-01  Bruno Haible  <bruno@clisp.org>
59708
59709         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59710         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59711         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59712         APIs.
59713         * modules/acl-tests (configure.ac): Remove tests now contained in
59714         m4/acl.m4.
59715
59716 2008-06-02  Jim Meyering  <meyering@redhat.com>
59717
59718         announce-gen: use a better key-server host name
59719         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59720         it may be more consistently reliable.  Suggested by Werner Koch
59721         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59722
59723 2008-06-01  Bruno Haible  <bruno@clisp.org>
59724
59725         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59726         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59727
59728 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59729
59730         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59731
59732 2008-06-01  Bruno Haible  <bruno@clisp.org>
59733
59734         New ACL tests.
59735         * tests/test-file-has-acl.sh: New file.
59736         * tests/test-file-has-acl.c: New file.
59737         * tests/test-set-mode-acl.sh: New file.
59738         * tests/test-set-mode-acl.c: New file.
59739         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59740         * tests/test-copy-acl.c: New file.
59741         * modules/acl-tests: New file, based on modules/copy-file-tests.
59742         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59743         (Depends-on): Add acl-tests.
59744         (configure.ac): Remove checks.
59745         (Makefile.am): Don't create test-sameacls program here any more.
59746
59747 2008-06-01  Bruno Haible  <bruno@clisp.org>
59748
59749         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59750         * tests/test-sameacls.c: Include progname.h.
59751         (main): Invoke set_program_name. Portability fixes for MacOS X,
59752         Solaris, HP-UX.
59753
59754 2008-06-01  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59757         function.
59758         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59759
59760 2008-06-01  Bruno Haible  <bruno@clisp.org>
59761
59762         * modules/rpmatch (Depends-on): Add strdup.
59763
59764 2008-06-01  Bruno Haible  <bruno@clisp.org>
59765
59766         * lib/pipe.c: Include unistd-safer.h.
59767         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59768         * modules/pipe (Depends-on): Add unistd-safer.
59769
59770 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59771
59772         * modules/autobuild (configure.ac): Call AB_INIT.
59773
59774 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59775
59776         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59777         Suggested by Bruno Haible <bruno@clisp.org>.
59778
59779 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59780
59781         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59782         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59783         <bruno@clisp.org>.
59784
59785 2008-05-29  Eric Blake  <ebb9@byu.net>
59786
59787         Prefer new POSIX 200x interfaces over futimesat.
59788         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59789         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59790         when available.
59791         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59792
59793 2008-05-28  Bruno Haible  <bruno@clisp.org>
59794
59795         * modules/stpcpy (License): Change to LGPLv2+.
59796         Requested by David Lutterkort <dlutter@redhat.com>.
59797
59798 2008-05-27  Bruno Haible  <bruno@clisp.org>
59799
59800         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
59801         current mingw.
59802         Reported by Jose E. Marchesi <jemarch@gnu.org>.
59803
59804 2008-05-27  Bruno Haible  <bruno@clisp.org>
59805
59806         * modules/iconv_open (Link): New section, from module 'iconv'.
59807         * modules/striconv (Link): Likewise.
59808         * modules/striconveh (Link): Likewise.
59809         * modules/xstriconv (Link): Likewise.
59810         * modules/unicodeio (Link): Likewise.
59811         * modules/propername (Link): Likewise.
59812         Reported by Jim Meyering.
59813
59814 2008-05-26  Jim Meyering  <meyering@redhat.com>
59815
59816         sha256: do not artificially restrict buffer length to be < 2^32
59817         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
59818         uint32_t to size_t.
59819         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
59820         to match.
59821
59822         avoid unaligned access errors, e.g., on sparc
59823         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
59824         direct access through a possibly-unaligned uint64* pointer.
59825         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
59826         direct access through a possibly-unaligned uint32* pointer.
59827         Prompted by this patch from Tom "spot" Callaway:
59828         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
59829
59830         sha512.c: fix typo in comment
59831         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
59832
59833 2008-05-25  Bruno Haible  <bruno@clisp.org>
59834
59835         * lib/set-mode-acl.c: Renamed from lib/acl.c.
59836         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
59837         (Makefile.am): Update lib_SOURCES.
59838
59839 2008-05-25  Bruno Haible  <bruno@clisp.org>
59840
59841         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
59842
59843 2008-05-25  Jim Meyering  <meyering@redhat.com>
59844
59845         useless-if-before-free: freed expr may have white-space differences
59846         * build-aux/useless-if-before-free: Recognize cases in which the
59847         freed expression differs from the tested one in embedded white
59848         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59849         $1 was used, so we can't make any regexp shy.  Improved tests now
59850         detect this.
59851
59852         useless-if-before-free: accept white space in the expression.
59853         * build-aux/useless-if-before-free: For now, any white space
59854         in the expression must be identical in the free argument.
59855
59856         useless-if-before-free: efficiency tweak
59857         * build-aux/useless-if-before-free: Make the expression-matching
59858         regexp "shy".
59859         Make the *outer* regexp shy, not the expr-matching one.
59860
59861         update code-in-comment to accept cast of free arg
59862         * build-aux/useless-if-before-free: Update regexp.
59863
59864 2008-05-25  Bruno Haible  <bruno@clisp.org>
59865
59866         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59867         * modules/copy-file-tests (Files, Makefile.am): Update.
59868         * tests/test-copy-file.c (func_test_copy): Update.
59869
59870 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59871
59872         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59873
59874 2008-05-23  Bruno Haible  <bruno@clisp.org>
59875
59876         Improve support for ACLs on OSF/1.
59877         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59878         Remove fallback for unknown flavors of ACLs.
59879
59880 2008-05-22  Bruno Haible  <bruno@clisp.org>
59881
59882         Add support for ACLs on OSF/1.
59883         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59884         replacements.
59885         (acl_free_text): New macro fallback.
59886         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59887         acl_free.
59888         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59889         acl_free_text function. Require AC_C_INLINE.
59890
59891 2008-05-22  Bruno Haible  <bruno@clisp.org>
59892
59893         Make copy_acl work on MacOS X 10.5.
59894         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59895         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59896         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59897         If MODE_INSIDE_ACL, don't assume that every system has the same text
59898         representation for ACLs as FreeBSD.
59899         * lib/copy-acl.c (copy_acl): Add support for platforms with
59900         !MODE_INSIDE_ACL.
59901         * lib/file-has-acl.c (file_has_acl): Likewise.
59902         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59903         FreeBSD, MacOS X, or IRIX, respectively.
59904
59905 2008-05-22  Bruno Haible  <bruno@clisp.org>
59906
59907         * lib/acl.h: Don't include <sys/acl.h>.
59908         (GETACLCNT): Move fallback to lib/acl-internal.h.
59909         * lib/acl-internal.h: Include <sys/acl.h> here.
59910         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59911
59912 2008-05-22  Bruno Haible  <bruno@clisp.org>
59913
59914         Split off copy_acl function to separate file.
59915         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59916         * lib/acl.c (copy_acl): Moved function to separate file.
59917         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59918         * modules/acl (Files): Add lib/copy-acl.c.
59919         (Makefiles.am): Augment lib_SOURCES.
59920
59921 2008-05-22  Bruno Haible  <bruno@clisp.org>
59922
59923         * modules/copy-file-tests: New file.
59924         * tests/test-copy-file.sh: New file.
59925         * tests/test-copy-file.c: New file.
59926         * tests/test-copy-file-sameacls.c: New file.
59927
59928 2008-05-22  Eric Blake  <ebb9@byu.net>
59929
59930         Avoid gcc warning.
59931         * tests/test-memcmp.c (main): Pass NULL indirectly.
59932
59933 2008-05-21  Bruno Haible  <bruno@clisp.org>
59934
59935         Add reference doc about ACLs.
59936         * doc/acl-resources.txt: New file.
59937         * doc/acl-cygwin.txt: New file.
59938
59939 2008-05-21  Bruno Haible  <bruno@clisp.org>
59940
59941         Avoid one more warning from gcc.
59942         * lib/vasnprintf.c (IF_LINT): Update comments.
59943         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59944
59945 2008-05-21  Jim Meyering  <meyering@redhat.com>
59946
59947         avoid a warning from gcc
59948         * lib/vasnprintf.c (IF_LINT): Define.
59949         (scale10_round_decimal_long_double):
59950         Use it to avoid a "may be used uninitialized" warning.
59951         (scale10_round_decimal_double): Likewise.
59952
59953 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59954
59955         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59956         declared.
59957
59958 2008-05-20  Bruno Haible  <bruno@clisp.org>
59959
59960         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59961         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59962
59963 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59964
59965         * modules/memcmp-tests: New file.
59966         * tests/test-memcmp.c: New file.
59967
59968 2008-05-19  Bruno Haible  <bruno@clisp.org>
59969
59970         * modules/propername (Notice, configure.ac): Put quoted "..." into
59971         --keyword option.
59972         * lib/propername.h: Update comments accordingly.
59973         Reported by Eric Blake.
59974
59975 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59976
59977         * modules/getpass-gnu (Depends-on): Add fseeko.
59978
59979 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59980
59981         * modules/base64-tests: New file.
59982
59983 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59984
59985         * lib/base64.c (base64_decode_ctx): If a decode context structure
59986         was passed in use it to ignore newlines.  If a context structure
59987         was _not_ passed in, continue to treat newlines as garbage (this
59988         is the historical behavior).  Formerly base64_decode.
59989         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59990         takes a decode context structure.
59991         * lib/base64.h (base64_decode): Macro for four-argument calls.
59992         (base64_decode_alloc): Likewise.
59993         * lib/base64.c (base64_decode_ctx): If a decode context structure
59994         was passed in use it to ignore newlines.  If a context structure
59995         was _not_ passed in, continue to treat newlines as garbage (this
59996         is the historical behavior).  Formerly base64_decode.
59997         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59998         takes a decode context structure.
59999         * lib/base64.h (base64_decode): Macro for four-argument calls.
60000         (base64_decode_alloc): Likewise.
60001
60002 2008-05-19  Jim Meyering  <meyering@redhat.com>
60003
60004         avoid a warning from gcc
60005         * lib/trim.c (IF_LINT): Define.
60006         (trim2): Use it to avoid a "may be used uninitialized" warning.
60007
60008         Fix doc typo.
60009         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60010
60011 2008-05-19  Bruno Haible  <bruno@clisp.org>
60012
60013         * doc/glibc-functions/getpass.texi: Document limits of other
60014         implementations.
60015
60016 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60017             Bruno Haible <bruno@clisp.org>
60018
60019         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60020
60021 2008-05-18  Bruno Haible  <bruno@clisp.org>
60022
60023         * modules/propername: New file, from GNU gettext.
60024         * lib/propername.h: New file, from GNU gettext.
60025         * lib/propername.c: New file, from GNU gettext.
60026         * MODULES.html.sh (Internationalization functions): Add propername.
60027
60028 2008-05-16  Jim Meyering  <meyering@redhat.com>
60029             Bruno Haible  <bruno@clisp.org>
60030
60031         Avoid some warnings from "gcc -Wshadow".
60032         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60033
60034 2008-05-15  Eric Blake  <ebb9@byu.net>
60035
60036         Extend previous patch to cygwin 1.7.0.
60037         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60038         fast implementation in cygwin >= 1.7.0.
60039         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60040         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60041
60042 2008-05-15  Bruno Haible  <bruno@clisp.org>
60043
60044         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60045         implementation in glibc >= 2.9.
60046         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60047         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60048
60049 2008-05-15  Bruno Haible  <bruno@clisp.org>
60050
60051         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60052         (Unicode string functions): Add unilbrk/*.
60053         Reported by Karl Berry.
60054
60055 2008-05-15  Eric Blake  <ebb9@byu.net>
60056
60057         Fix violation of <stdbool.h> replacement in regex.
60058         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60059         * lib/regexec.c (re_search_internal): Likewise.
60060         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60061
60062 2008-05-15  Jim Meyering  <meyering@redhat.com>
60063
60064         avoid distracting test output when git or cvs is not found
60065         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60066         * tests/test-vc-list-files-git.sh: Likewise.
60067
60068 2008-05-15  Eric Blake  <ebb9@byu.net>
60069
60070         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60071         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60072         glibc version.
60073         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60074         * doc/posix-functions/strstr.texi (strstr): Likewise.
60075         * lib/str-two-way.h (MAX): Sychronize with glibc.
60076
60077 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60078
60079         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60080         opr.ctx_type.
60081         (calc_first): Initialize constraint field.
60082         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60083         Fix grammar.
60084         (duplicate_node): Merge constraint field for all node types.
60085         (calc_eclosure_iter): Look at constraint field for all node types.
60086         * lib/regex_internal.c (create_cd_newstate): Don't look at
60087         opr.ctx_type.
60088
60089 2008-05-14  Bruno Haible  <bruno@clisp.org>
60090
60091         Help GCC to do better code generation.
60092         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60093         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60094         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60095         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60096         Declare with attribute 'malloc' if supported.
60097
60098 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60099
60100         use "echo STR|wc -c" rather than unportable "expr length STR"
60101         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60102         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60103
60104 2008-05-14  Jim Meyering  <meyering@redhat.com>
60105
60106         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60107         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60108         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60109         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60110         via Collin Lasse.
60111
60112 2008-05-14  Eric Blake  <ebb9@byu.net>
60113
60114         Avoid quadratic growth in gl_LIBSOURCES.
60115         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60116         Suggested by Bruno Haible.
60117
60118         Test xmemdup0.
60119         * modules/xmemdup0-tests: New file.
60120         * tests/test-xmemdup0.c: Likewise.
60121
60122 2008-05-13  Eric Blake  <ebb9@byu.net>
60123
60124         Split xmemdup0 into its own module.
60125         * modules/xmemdup0: New file.
60126         * lib/xmemdup0.h: Likewise.
60127         * lib/xmemdup0.c: Likewise.
60128         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60129         * lib/xalloc.h (xmemdup0): Remove.
60130         * lib/xmalloc.c (xmemdup0): Likewise.
60131
60132 2008-05-13  Eric Blake  <ebb9@byu.net>
60133             Bruno Haible  <bruno@clisp.org>
60134
60135         Reduce number of forks required during autoconf.
60136         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60137         and gl_LIBSOURCES_DIR.
60138         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60139         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60140         m4_syscmd per file.
60141         <m4_foreach_w>: Move...
60142         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60143
60144 2008-05-13  Eric Blake  <ebb9@byu.net>
60145
60146         * gnulib-tool: Fix various comment typos.
60147
60148 2008-05-12  Bruno Haible  <bruno@clisp.org>
60149
60150         Tailor the linebreaking algorithm.
60151         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60152
60153 2008-05-12  Bruno Haible  <bruno@clisp.org>
60154
60155         Update to Unicode 5.0.0.
60156         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60157         LBP_JV, LBP_JT. Redistribute values.
60158         (unilbrk_table): Change size.
60159         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60160         Unicode TR#14 rev. 22.
60161         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60162         LBP_JV, LBP_JT. Redistribute values.
60163         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60164         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60165         Update.
60166         * lib/unilbrk/lbrkprop1.h: Regenerated.
60167         * lib/unilbrk/lbrkprop2.h: Regenerated.
60168         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60169         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60170         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60171         Likewise.
60172         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60173         Likewise.
60174         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60175         result.
60176         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60177         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60178         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60179         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60180         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60181         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60182
60183 2008-05-11  Bruno Haible  <bruno@clisp.org>
60184
60185         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60186
60187 2008-05-11  Bruno Haible  <bruno@clisp.org>
60188
60189         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60190         * modules/unilbrk/gen-lbrk: New file.
60191
60192 2008-05-11  Bruno Haible  <bruno@clisp.org>
60193
60194         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60195         * m4/sha512.m4 (gl_SHA512): Likewise.
60196
60197 2008-05-11  Jim Meyering  <meyering@redhat.com>
60198
60199         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60200         * modules/crypto/sha256: New file.
60201         * modules/crypto/sha512: Likewise.
60202         * lib/sha256.c: Likewise.
60203         * lib/sha256.h: Likewise.
60204         * lib/sha512.c: Likewise.
60205         * lib/sha512.h: Likewise.
60206         * lib/u64.h: Likewise.
60207         * m4/sha256.m4: Likewise.
60208         * m4/sha512.m4: Likewise.
60209         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60210
60211 2008-05-10  Bruno Haible  <bruno@clisp.org>
60212
60213         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60214         (Input/Output <stdio.h>): Add xprintf.
60215         (Signal handling <signal.h>): Add strsignal.
60216         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60217         (Core language properties): Add func.
60218         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60219         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60220         strings.
60221         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60222         (Input/output): New section.
60223         (File system functions): Add openat-die, stat-macros.
60224         (Networking functions): Add sockets.
60225         (Unicode string functions): Add unictype/*.
60226         (Support for building libraries and executables): Add gperf.
60227         (Support for building documentation): Add agpl-3.0.
60228         (Misc): Add nocrash.
60229
60230 2008-05-10  Bruno Haible  <bruno@clisp.org>
60231
60232         * modules/unictype/gen-ctype: New file.
60233
60234 2008-05-10  Jim Meyering  <meyering@redhat.com>
60235
60236         Make chdir-safer.c more efficient on a system with no symlinks.
60237         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60238         also if ELOOP is zero.  Suggested by Bruno Haible.
60239
60240         Make chdir-safer.c slightly safer.
60241         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60242         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60243
60244         Avoid compile failure on systems without ELOOP (like mingw).
60245         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60246         Reported by Bruno Haible.
60247
60248 2008-05-10  Bruno Haible  <bruno@clisp.org>
60249
60250         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60251         (is_utf8_encoding): Use a case-insensitive comparison.
60252         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60253         streq.
60254
60255 2008-05-10  Bruno Haible  <bruno@clisp.org>
60256
60257         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60258         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60259         * lib/unilbrk/ulc-common.h (iconv_string_length,
60260         iconv_string_keeping_offsets): Remove declarations.
60261         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60262         Don't include <iconv.h>, streq.h, xsize.h.
60263         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60264         conversion.
60265         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60266         <iconv.h>, streq.h, xsize.h.
60267         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60268         conversion.
60269         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60270         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60271         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60272         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60273
60274 2008-05-10  Bruno Haible  <bruno@clisp.org>
60275
60276         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60277         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60278
60279         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60280         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60281
60282         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60283         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60284
60285         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60286         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60287
60288         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60289         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60290
60291         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60292         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60293
60294         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60295         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60296
60297         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60298         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60299
60300 2008-05-10  Bruno Haible  <bruno@clisp.org>
60301
60302         Split up 'linebreak' module.
60303         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60304         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60305         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60306         modifications.
60307         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60308         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60309         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60310         lib/linebreak.c.
60311         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60312         lib/linebreak.c.
60313         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60314         lib/linebreak.c.
60315         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60316         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60317         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60318         lib/linebreak.c.
60319         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60320         lib/linebreak.c.
60321         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60322         lib/linebreak.c.
60323         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60324         lib/linebreak.c.
60325         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60326         lib/linebreak.c.
60327         * modules/unilbrk/base: New file.
60328         * modules/unilbrk/tables: New file.
60329         * modules/unilbrk/u8-possible-linebreaks: New file.
60330         * modules/unilbrk/u16-possible-linebreaks: New file.
60331         * modules/unilbrk/u32-possible-linebreaks: New file.
60332         * modules/unilbrk/ulc-common: New file.
60333         * modules/unilbrk/ulc-possible-linebreaks: New file.
60334         * modules/unilbrk/u8-width-linebreaks: New file.
60335         * modules/unilbrk/u16-width-linebreaks: New file.
60336         * modules/unilbrk/u32-width-linebreaks: New file.
60337         * modules/unilbrk/ulc-width-linebreaks: New file.
60338         * lib/linebreak.h: Remove file.
60339         * lib/linebreak.c: Remove file.
60340         * m4/linebreak.m4: Remove file.
60341         * modules/linebreak: Remove file.
60342         * NEWS: Mention the changes.
60343
60344 2008-05-09  Eric Blake  <ebb9@byu.net>
60345
60346         Add xmemdup0.
60347         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60348         implementation.
60349         * lib/xmalloc.c (xmemdup0): New C implementation.
60350
60351 2008-05-08  Bruno Haible  <bruno@clisp.org>
60352
60353         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60354
60355 2008-05-07  Eric Blake  <ebb9@byu.net>
60356
60357         Support cross-compilation of <wctype.h>.
60358         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60359         AC_CACHE_CHECK.
60360
60361 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60362
60363         * build-aux/vc-list-files: Add support for bzr.
60364
60365 2008-05-03  Jim Meyering  <meyering@redhat.com>
60366
60367         avoid failed assertion with tight malloc
60368         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60369
60370 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60371
60372         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60373         are needed from arpa/inet.h.
60374         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60375         Reported by Bruno Haible.
60376
60377 2008-05-02  Jim Meyering  <meyering@redhat.com>
60378
60379         avoid compilation error on FreeBSD 6
60380         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60381
60382 2008-05-01  Jim Meyering  <meyering@redhat.com>
60383
60384         useless-if-before-free: correct --help's exit status description
60385         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60386         for one or more matches, etc.  Reported by Bruno Haible.
60387
60388         vc-list-files: make the stand-alone gnulib test work
60389         * modules/vc-list-files-tests (configure.ac):
60390         Define and AC_SUBST abs_aux_dir.
60391         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60392         $(abs_top_srcdir) to each script and having each of them
60393         duplicate the work of setting PATH, set PATH here, using
60394         the new variable, abs_aux_dir instead.
60395         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60396         * tests/test-vc-list-files-git.sh: Likewise.
60397         Reported by Bruno Haible.
60398
60399 2008-05-01  Bruno Haible  <bruno@clisp.org>
60400
60401         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60402         reallocation. Rename 'done' to 'found_delimiter'.
60403
60404 2008-05-01  Jim Meyering  <meyering@redhat.com>
60405
60406         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60407         * build-aux/vc-list-files: Use `...`, not $(...).
60408
60409 2008-04-30  Jim Meyering  <meyering@redhat.com>
60410
60411         add tests for vc-list-files
60412         * modules/vc-list-files-tests: New module.
60413         * tests/test-vc-list-files-cvs.sh: New file.
60414         * tests/test-vc-list-files-git.sh: New file.
60415
60416         avoid a warning from gcc
60417         * lib/getndelim2.c (IF_LINT): Define.
60418         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60419
60420         vc-list-files: work properly with build-aux/cvsu, too
60421         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60422         to all cvs-based clauses.
60423
60424         vc-list-files: work properly in the CVS+awk case, too
60425         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60426
60427         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60428         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60429         take more than one file argument, so .  Add quotes, just in case $dir
60430         ever contains a shell meta-character.  Prompted by Soren Hansen in
60431         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60432
60433 2008-04-29  Eric Blake  <ebb9@byu.net>
60434
60435         Optimize getndelim2 to use block operations when possible.
60436         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60437         freadseek, and memchr2.
60438         * lib/getndelim2.c (getndelim2): Use them for block reads.
60439
60440 2008-04-29  Bruno Haible  <bruno@clisp.org>
60441
60442         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60443         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60444         * modules/inet_ntop (Depends-on): Add extensions.
60445         * modules/inet_pton (Depends-on): Likewise.
60446         Reported by Simon Josefsson.
60447
60448 2008-04-29  Jim Meyering  <meyering@redhat.com>
60449
60450         When the is more than one match in a block, match all of them.
60451         * build-aux/useless-if-before-free: Iterate through each block
60452         until there are no more matches.
60453
60454         Fix broken useless-if-before-free script.
60455         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60456         the expression to match cast of argument to free-like function.
60457
60458 2008-04-29  Eric Blake  <ebb9@byu.net>
60459
60460         Use new header.
60461         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60462
60463 2008-04-29  Jim Meyering  <meyering@redhat.com>
60464
60465         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60466         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60467         by gnulib to exist and to declare e.g., inet_ntop.
60468         Don't include "inet_ntop.h", now removed.
60469
60470         * m4/arpa_inet_h.m4: Remove trailing blanks.
60471
60472 2008-04-29  Eric Blake  <ebb9@byu.net>
60473
60474         Silence valgrind on safe reads beyond potential array bounds.
60475         * lib/rawmemchr.valgrind: New file.
60476         * lib/strchrnul.valgrind: Likewise.
60477         * modules/rawmemchr (Files): Distribute new file.
60478         * modules/strchrnul (Files): Likewise.
60479         Suggested by Bruno Haible.
60480
60481 2008-04-29  Bruno Haible  <bruno@clisp.org>
60482
60483         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60484         (inet_ntop, inet_pton): Change portability warning's wording.
60485         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60486         Invoke gl_CHECK_NEXT_HEADERS.
60487         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60488         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60489         set ARPA_INET_H.
60490         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60491         * modules/arpa_inet (Description): No longer only for systems that
60492         lack it.
60493         (Depends-on): Add include_next.
60494         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60495         HAVE_ARPA_INET_H.
60496
60497 2008-04-29  Jim Meyering  <meyering@redhat.com>
60498
60499         * modules/mkdir (License): Re-license as LGPLv2+.
60500
60501 2008-04-29  Bruno Haible  <bruno@clisp.org>
60502
60503         * modules/rawmemchr (Maintainer): Set to Eric.
60504         * modules/strchrnul (Maintainer): Likewise.
60505
60506 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60507
60508         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60509         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60510
60511         * modules/arpa_inet (arpa/inet.h): Use them.
60512
60513 2008-04-28  Eric Blake  <ebb9@byu.net>
60514
60515         Test getndelim2.
60516         * modules/getndelim2-tests: New file.
60517         * tests/test-getndelim2.c: Likewise.
60518         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60519         stream.
60520         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60521
60522         * MODULES.html.sh: Document new module.
60523
60524 2008-04-20  Bruno Haible  <bruno@clisp.org>
60525
60526         * lib/c-stack.c (die): Use raise.
60527         * modules/c-stack (Depends-on): Add raise.
60528
60529 2008-04-28  Bruno Haible  <bruno@clisp.org>
60530
60531         Expect rpmatch to be declared.
60532         * lib/yesno.c (rpmatch): Remove declaration.
60533
60534         Declare rpmatch.
60535         * lib/stdlib.in.h (rpmatch): New declaration.
60536         * lib/rpmatch.c: Include <stdlib.h> first.
60537         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60538         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60540         HAVE_RPMATCH.
60541         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60542         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60543         (Include): Set to <stdlib.h>.
60544         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60545         HAVE_RPMATCH.
60546         * NEWS: Document the change.
60547
60548 2008-04-28  Bruno Haible  <bruno@clisp.org>
60549
60550         Change rpmatch to use nl_langinfo when appropriate.
60551         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60552         (N_): New macro.
60553         (localized_pattern): New function/macro.
60554         (try): Remove match, nomatch arguments. Copy the pattern into safe
60555         memory before caching it.
60556         (rpmatch): Use localized_pattern. Add translator comments.
60557         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60558         Suggested by Eric Blake.
60559         * modules/rpmatch (Depends-on): Add stdbool.
60560
60561 2008-04-28  Eric Blake  <ebb9@byu.net>
60562
60563         Add rawmemchr module, matching glibc.
60564         * modules/string (Makefile.am): New indicator.
60565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60566         * lib/string.in.h (rawmemchr): Declare when appropriate.
60567         * modules/rawmemchr: New file.
60568         * m4/rawmemchr.m4: Likewise.
60569         * lib/rawmemchr.c: Likewise.
60570         * modules/rawmemchr-tests: Likewise.
60571         * tests/test-rawmemchr.c: Likewise.
60572         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60573         module.
60574         * modules/strchrnul (Depends-on): Add rawmemchr.
60575         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60576
60577         Whitespace cleanup.
60578         * tests/test-strchrnul.c: Reindent.
60579         * lib/strchrnul.c: Likewise.
60580
60581         Optimize and test strchrnul.
60582         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60583         * modules/strchrnul-tests: New file.
60584         * tests/test-strchrnul.c: Likewise.
60585
60586         Remove intprops dependency.
60587         * modules/memchr (Depends-on): Remove intprops.
60588         * modules/memrchr (Depends-on): Likewise.
60589         * modules/memchr2 (Depends-on): Likewise.
60590         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60591         * lib/memrchr.c (__memrchr): Likewise.
60592         * lib/memrchr2.c (memchr2): Likewise.
60593         Reported by Simon Josefsson.
60594
60595 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60596
60597         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60598         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60599
60600 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60601
60602         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60603
60604         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60605
60606         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60607
60608         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60609         declarations.
60610         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60611
60612         * m4/inet_pton.m4: Don't check for header files.
60613
60614         * m4/inet_ntop.m4: Don't check for header files.
60615
60616 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60617
60618         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60619         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60620         trigger for cygwin).
60621         Reported by Bruno Haible  <bruno@clisp.org>.
60622
60623 2008-04-28  Bruno Haible  <bruno@clisp.org>
60624
60625         * doc/posix-functions/strdup.texi: Mention mingw problem.
60626
60627 2008-04-27  Bruno Haible  <bruno@clisp.org>
60628
60629         * modules/stat-time-tests (Depends-on): Add sleep.
60630         * tests/test-stat-time.c (force_unlink): New function.
60631         (cleanup): Use it.
60632         (test_mtime): Remove the ctime related tests.
60633         (test_ctime): New function, containing the ctime related tests.
60634         (main): Call test_ctime, except on native Windows platforms.
60635
60636 2008-04-27  Bruno Haible  <bruno@clisp.org>
60637
60638         * lib/rpmatch.c (rpmatch): Add some comments.
60639         Reported by James Youngman <jay@gnu.org>.
60640
60641 2008-04-27  Bruno Haible  <bruno@clisp.org>
60642
60643         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60644         quiet NaNs.
60645
60646 2008-04-27  Bruno Haible  <bruno@clisp.org>
60647
60648         Make test-yesno.sh work on mingw.
60649         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60650         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60651         (main): Set stdin to binary mode.
60652         * modules/yesno-tests (Depends-on): Add binary-io.
60653
60654 2008-04-27  Bruno Haible  <bruno@clisp.org>
60655
60656         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60657         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60658         argument that lie outside the IEEE 854 domain.
60659         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60660         (gl_ISFINITE): Use it.
60661         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60662
60663 2008-04-27  Bruno Haible  <bruno@clisp.org>
60664
60665         Allow local renaming in config.h.
60666         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60667
60668 2008-04-27  Bruno Haible  <bruno@clisp.org>
60669
60670         * lib/memchr.c (__memchr): Change type of 'i'.
60671         * lib/memchr2.c (memchr2): Likewise.
60672
60673 2008-04-26  Eric Blake  <ebb9@byu.net>
60674         and Bruno Haible  <bruno@clisp.org>
60675
60676         Optimize and test memrchr.
60677         * modules/memrchr (Depends-on): Add intprops.
60678         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60679         * modules/memrchr-tests: New file.
60680         * tests/test-memrchr.c: New file.
60681
60682 2008-04-26  Bruno Haible  <bruno@clisp.org>
60683
60684         Add tentative support for DragonFly BSD.
60685         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60686         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60687         fp.
60688         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60689         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60690         * lib/fpurge.c (fpurge): Likewise.
60691         * lib/freadable.c (freaadable): Likewise.
60692         * lib/freadahead.c (freadahead): Likewise.
60693         * lib/freading.c (freading): Likewise.
60694         * lib/freadptr.c (freadptr): Likewise.
60695         * lib/freadseek.c (freadptrinc): Likewise.
60696         * lib/fseeko.c (fseeko): Likewise.
60697         * lib/fseterr.c (fseterr): Likewise.
60698         * lib/fwritable.c (fwritable): Likewise.
60699         * lib/fwriting.c (fwriting): Likewise.
60700
60701 2008-04-26  Bruno Haible  <bruno@clisp.org>
60702
60703         * lib/stdio-impl.h: New file.
60704         * lib/fbufmode.c: Include stdio-impl.h.
60705         (fbufmode): Use fp_, remove redundant #defines.
60706         * lib/fflush.c: Include stdio-impl.h.
60707         (clear_ungetc_buffer): Remove redundant #defines.
60708         * lib/fpurge.c: Include stdio-impl.h.
60709         (fpurge): Remove redundant #defines.
60710         * lib/freadable.c: Include stdio-impl.h.
60711         (freadable): Remove redundant #defines.
60712         * lib/freadahead.c: Include stdio-impl.h.
60713         (freadahead): Remove redundant #defines.
60714         * lib/freading.c: Include stdio-impl.h.
60715         (freading): Remove redundant #defines.
60716         * lib/freadptr.c: Include stdio-impl.h.
60717         (freadptr): Remove redundant #defines.
60718         * lib/freadseek.c: Include stdio-impl.h.
60719         (freadptrinc): Remove redundant #defines.
60720         * lib/fseeko.c: Include stdio-impl.h.
60721         (rpl_fseeko): Remove redundant #defines.
60722         * lib/fseterr.c: Include stdio-impl.h.
60723         (fseterr): Remove redundant #defines.
60724         * lib/fwritable.c: Include stdio-impl.h.
60725         (fwritable: Remove redundant #defines.
60726         * lib/fwriting.c: Include stdio-impl.h.
60727         (fwriting): Remove redundant #defines.
60728         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60729         * modules/fflush (Files): Likewise.
60730         * modules/fpurge (Files): Likewise.
60731         * modules/freadable (Files): Likewise.
60732         * modules/freadahead (Files): Likewise.
60733         * modules/freading (Files): Likewise.
60734         * modules/freadptr (Files): Likewise.
60735         * modules/freadseek (Files): Likewise.
60736         * modules/fseeko (Files): Likewise.
60737         * modules/fseterr (Files): Likewise.
60738         * modules/fwritable (Files): Likewise.
60739         * modules/fwriting (Files): Likewise.
60740
60741 2008-04-26  Bruno Haible  <bruno@clisp.org>
60742
60743         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60744         restore_seek_optimization, update_fpos_cache): New functions, extracted
60745         from rpl_fflush.
60746         (rpl_fflush): Use them.
60747         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60748         (gl_REPLACE_FFLUSH): Use it.
60749
60750 2008-04-26  Bruno Haible  <bruno@clisp.org>
60751
60752         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60753         on Solaris.
60754         * tests/test-xstrtoimax.sh: Likewise.
60755         * tests/test-xstrtoumax.sh: Likewise.
60756         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60757
60758 2008-04-26  Bruno Haible  <bruno@clisp.org>
60759
60760         * modules/memchr-tests: New file.
60761         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60762
60763 2008-04-26  Eric Blake  <ebb9@byu.net>
60764             Bruno Haible  <bruno@clisp.org>
60765
60766         * lib/memchr.c: Include intprops.h.
60767         (__memchr): Optimize parallel detection of matching bytes. Rename local
60768         variables. Add explanatory comments.
60769
60770 2008-04-26  Bruno Haible  <bruno@clisp.org>
60771
60772         Fix module 'memchr', broken since 2000-10-28.
60773         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60774
60775 2008-04-26  Bruno Haible  <bruno@clisp.org>
60776
60777         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60778         comments.
60779
60780 2008-04-25  Eric Blake  <ebb9@byu.net>
60781
60782         Use native fstatat on cygwin 1.7.0.
60783         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60784         first.
60785
60786 2008-04-23  Eric Blake  <ebb9@byu.net>
60787
60788         Improve memchr2 performance.
60789         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60790         NUL bytes.
60791         * modules/memchr2 (Depends-on): Use intprops.h.
60792
60793 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60794
60795         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
60796         an inline function instead of a CPP macro.  Patch by Ben Pfaff
60797         <blp@cs.stanford.edu>.
60798
60799 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60800
60801         * lib/arpa_inet.in.h: New file.
60802
60803         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
60804         (Makefile.am): Sed in substitute header file.
60805
60806         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
60807         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
60808
60809         * modules/inet_ntop (configure.ac): Use
60810         gl_ARPA_INET_MODULE_INDICATOR.
60811
60812         * modules/inet_pton (configure.ac): Use
60813         gl_ARPA_INET_MODULE_INDICATOR.
60814
60815 2008-04-22  Jim Meyering  <meyering@redhat.com>
60816
60817         * modules/verify (License): Re-license as LGPLv2+.
60818
60819 2008-04-22  Simon Josefsson  <simon@josefsson.org>
60820
60821         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
60822         parameter to void* as per POSIX standard (MinGW uses char*).
60823
60824 2008-04-21  Bruno Haible  <bruno@clisp.org>
60825
60826         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60827         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60828         Define to replacements if REPLACE_ISWCNTRL is 1.
60829         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
60830         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
60831         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
60832         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
60833         what it fixes.
60834         * doc/posix-functions/iswalpha.texi: Likewise.
60835         * doc/posix-functions/iswblank.texi: Likewise.
60836         * doc/posix-functions/iswcntrl.texi: Likewise.
60837         * doc/posix-functions/iswdigit.texi: Likewise.
60838         * doc/posix-functions/iswgraph.texi: Likewise.
60839         * doc/posix-functions/iswlower.texi: Likewise.
60840         * doc/posix-functions/iswprint.texi: Likewise.
60841         * doc/posix-functions/iswpunct.texi: Likewise.
60842         * doc/posix-functions/iswspace.texi: Likewise.
60843         * doc/posix-functions/iswupper.texi: Likewise.
60844         * doc/posix-functions/iswxdigit.texi: Likewise.
60845         Reported by Alain Guibert.
60846
60847 2008-04-21  Bruno Haible  <bruno@clisp.org>
60848
60849         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60850         Patch by Alain Guibert.
60851
60852 2008-04-21  Bruno Haible  <bruno@clisp.org>
60853
60854         Fix test failures on mingw.
60855         * tests/test-xstrtol.c (print_no_progname): New function.
60856         (main): Install it in error_print_progname hook.
60857         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60858         * tests/test-xstrtoimax.sh: Likewise.
60859         * tests/test-xstrtoumax.sh: Likewise.
60860
60861 2008-04-21  Bruno Haible  <bruno@clisp.org>
60862
60863         Fix test failure on mingw.
60864         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60865
60866 2008-04-21  Bruno Haible  <bruno@clisp.org>
60867
60868         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60869         Actually assign a value.
60870
60871 2008-04-20  Bruno Haible  <bruno@clisp.org>
60872
60873         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60874         take 2.
60875         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60876         'canonicalize-lgpl' module is also used.
60877         * lib/canonicalize-lgpl.c: Undo last change.
60878         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60879
60880 2008-04-20  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60883         config.h. Provide _mkdir based fallback for mingw.
60884         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60885         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60886         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60887         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60888         rather than defining mkdir in config.h.
60889         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60890         (gl_SYS_STAT_H_DEFAULTS): New macro.
60891         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60892         HAVE_IO_H any more.
60893         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60894         HAVE_DECL_MKDIR and HAVE_IO_H.
60895
60896 2008-04-20  Bruno Haible  <bruno@clisp.org>
60897
60898         * lib/isapipe.c: Port to native Windows platforms.
60899
60900 2008-04-20  Bruno Haible  <bruno@clisp.org>
60901
60902         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60903
60904 2008-04-21  Eric Blake  <ebb9@byu.net>
60905
60906         Work around preprocessors that don't handle UINTMAX_MAX.
60907         * lib/memchr2.c (memchr2): Avoid embedded #if.
60908         Reported by Alain Guibert, fix suggested by Bruno Haible.
60909
60910 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60911
60912         * doc/posix-functions/strftime.texi (strftime): Explain better
60913         Windows incompatibility.  Suggested by Micah Cowan
60914         <micah@cowan.name>.
60915
60916 2008-04-20  Bruno Haible  <bruno@clisp.org>
60917
60918         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60919         unistr/u8-mblen.
60920
60921 2008-04-20  Bruno Haible  <bruno@clisp.org>
60922
60923         Fix test failure on platforms with non-GNU iconv.
60924         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60925         (U_TO_U8): Use it, rather than u16_to_u8.
60926         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60927         units at the end of the input string.
60928         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60929
60930 2008-04-20  Bruno Haible  <bruno@clisp.org>
60931
60932         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60933         when the resulting length is 0.
60934         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60935
60936 2008-04-20  Bruno Haible  <bruno@clisp.org>
60937
60938         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60939         works.
60940         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60941
60942 2008-04-20  Bruno Haible  <bruno@clisp.org>
60943
60944         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60945         * modules/tsearch-tests (configure.ac): Test for initstate function.
60946
60947 2008-04-20  Bruno Haible  <bruno@clisp.org>
60948
60949         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60950         for nlink_t if missing.
60951         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60952
60953 2008-04-19  Bruno Haible  <bruno@clisp.org>
60954
60955         Work around snprintf bug on Linux libc5.
60956         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60957         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60958         gl_SNPRINTF_SIZE1.
60959         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60960         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60961         that test failed.
60962         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60963         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60964         * modules/snprintf (Files): Add m4/printf.m4.
60965         * modules/vsnprintf (Files): Likewise.
60966         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60967         * doc/posix-functions/vsnprintf.texi: Likewise.
60968
60969 2008-04-19  Bruno Haible  <bruno@clisp.org>
60970
60971         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60972         from 0.0058 to less than 10^-7.
60973
60974 2008-04-19  Bruno Haible  <bruno@clisp.org>
60975
60976         Fix rounding when a precision is given.
60977         * lib/vasnprintf.c (is_borderline): New function.
60978         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60979         9...9x.
60980         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60981         %e, %g.
60982         * tests/test-vasprintf-posix.c (test_function): Likewise.
60983         * tests/test-snprintf-posix.h (test_function): Likewise.
60984         * tests/test-sprintf-posix.h (test_function): Likewise.
60985         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60986         * tests/test-printf-posix.h (test_function): Likewise.
60987         * tests/test-printf-posix.output: Update.
60988         Reported by John Darrington <john@darrington.wattle.id.au> via
60989         Ben Pfaff <blp@cs.stanford.edu>.
60990
60991 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60992
60993         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60994         Suggested by Bruno Haible <bruno@clisp.org>.
60995
60996 2008-04-17  Bruno Haible  <bruno@clisp.org>
60997
60998         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60999         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61000         implementation.
61001         Patch by Bruce Merry <bmerry@gmail.com>.
61002
61003 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61004
61005         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61006         doesn't work under Windows.
61007
61008 2008-04-16  Bruno Haible  <bruno@clisp.org>
61009
61010         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61011         New macros.
61012         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61013         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61014         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61015         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61016         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61017         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61018         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61019         macros.
61020         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61021         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61022         Northern Sotho, Uighur.
61023
61024 2008-04-16  Bruno Haible  <bruno@clisp.org>
61025
61026         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61027         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61028         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61029         Reported by Daniel Bergström <daniel@octocode.com>.
61030
61031 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61032             Bruno Haible  <bruno@clisp.org>
61033
61034         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61035         function.
61036         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61037         New functions, mostly extracted from gl_locale_name_default.
61038         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61039
61040 2008-04-16  Eric Blake  <ebb9@byu.net>
61041
61042         Adjust strtod detection to catch glibc 2.7 bug.
61043         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61044         Reported by John Gatewood Ham.
61045
61046 2008-04-16  Bruno Haible  <bruno@clisp.org>
61047
61048         Add tentative support for Linux libc5.
61049         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61050         * lib/fpurge.c (fpurge): Likewise.
61051         * lib/freadable.c (freadable): Likewise.
61052         * lib/freadahead.c (freadahead): Likewise.
61053         * lib/freading.c (freading): Likewise.
61054         * lib/freadptr.c (freadptr): Likewise.
61055         * lib/freadseek.c (freadptrinc): Likewise.
61056         * lib/fseeko.c (rpl_fseeko): Likewise.
61057         * lib/fseterr.c (fseterr): Likewise.
61058         * lib/fwritable.c (fwritable): Likewise.
61059         * lib/fwriting.c (fwriting): Likewise.
61060         Reported by Alain Guibert <alguibert+bts@free.fr>.
61061
61062 2008-04-15  Bruno Haible  <bruno@clisp.org>
61063
61064         * modules/mathl (configure.ac): Define module indicator.
61065
61066 2008-04-15  Bruno Haible  <bruno@clisp.org>
61067
61068         * lib/logl.c (logl): Remove unused variables.
61069
61070 2008-04-15  Bruno Haible  <bruno@clisp.org>
61071
61072         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61073         fails.
61074
61075 2008-04-15  Bruno Haible  <bruno@clisp.org>
61076
61077         * lib/trim.c (trim2): Fix argument of isspace() macro.
61078
61079 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61080
61081         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61082         to 0.
61083         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61084
61085 2008-04-14  Bruno Haible  <bruno@clisp.org>
61086
61087         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61088         AC_LANG_PROGRAM argument.
61089         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61090         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61091         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61092         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61093         * m4/math_h.m4 (gl_MATH_H): Likewise.
61094         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61095         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61096         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61097         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61098         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61099         * m4/regex.m4 (gl_REGEX): Likewise.
61100         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61101         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61102         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61103         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61104         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61105         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61107         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61108
61109 2008-04-14  Jim Meyering  <meyering@redhat.com>
61110
61111         test-strtod: fix typos: s/abs/fabs/
61112         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61113
61114 2008-04-13  Bruno Haible  <bruno@clisp.org>
61115
61116         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61117         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61118         module is also used and while not building the reloc-wrapper.
61119
61120 2008-04-13  Bruno Haible  <bruno@clisp.org>
61121
61122         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61123
61124 2008-04-13  Bruno Haible  <bruno@clisp.org>
61125
61126         Fix AIX compilation failure introduced on 2008-04-02.
61127         * tests/test-frexp.c (exp): Undefine before redefining.
61128         * tests/test-frexpl.c (exp): Likewise.
61129
61130 2008-04-13  Bruno Haible  <bruno@clisp.org>
61131
61132         Work around a HP-UX stdio bug.
61133         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61134         * tests/test-ftello.c (main): Likewise.
61135         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61136         * doc/posix-functions/ftello.texi: Likewise.
61137
61138 2008-04-13  Bruno Haible  <bruno@clisp.org>
61139
61140         Make test-signbit pass on HP-UX/hppa.
61141         * tests/test-signbit.c (minus_zerol): New variable.
61142         (test_signbitl): Use it.
61143
61144 2008-04-13  Bruno Haible  <bruno@clisp.org>
61145
61146         Make truncl work on OSF/1 4.0.
61147         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61148         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61149         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61151         HAVE_DECL_TRUNCL.
61152         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61153         HAVE_DECL_TRUNCL.
61154         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61155
61156 2008-04-13  Bruno Haible  <bruno@clisp.org>
61157
61158         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61159
61160 2008-04-13  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61163         expression, so as to avoid HP-UX 11 cc compiler bug.
61164
61165 2008-04-13  Bruno Haible  <bruno@clisp.org>
61166
61167         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61168
61169 2008-04-13  Bruno Haible  <bruno@clisp.org>
61170
61171         * lib/git-merge-changelog.c: Remove empty declaration outside of
61172         functions.
61173
61174 2008-04-13  Bruno Haible  <bruno@clisp.org>
61175
61176         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61177
61178 2008-04-13  Bruno Haible  <bruno@clisp.org>
61179
61180         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61181         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61182         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61183         also if it exists but lacks definitions of the SHUT_* macros.
61184         * modules/sys_socket (Description): Update.
61185         Reported by Elbert Pol <e.pol@chello.nl>.
61186
61187 2008-04-13  Bruno Haible  <bruno@clisp.org>
61188
61189         * lib/localcharset.c (OS2): Don't redefine if already defined.
61190         Reported by Elbert Pol <e.pol@chello.nl>.
61191
61192 2008-04-13  Bruno Haible  <bruno@clisp.org>
61193
61194         * lib/binary-io.h [__EMX__]: Include <io.h>.
61195         Reported by Elbert Pol <e.pol@chello.nl>.
61196
61197 2008-04-12  Bruno Haible  <bruno@clisp.org>
61198
61199         * lib/fpucw.h: Enable the definitions also for x86_64.
61200         Needed for NetBSD/x86_64.
61201         Reported by Thomas Klausner <tk@giga.or.at>.
61202
61203 2008-04-12  Bruno Haible  <bruno@clisp.org>
61204
61205         * tests/test-strtod.c: Include isnand.h.
61206         (main): Use isnand instead of isnan.
61207         Reported by Jim Meyering.
61208
61209 2008-04-12  Bruno Haible  <bruno@clisp.org>
61210
61211         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61212         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61213
61214 2008-04-12  Jim Meyering  <meyering@redhat.com>
61215
61216         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61217
61218 2008-04-12  Bruno Haible  <bruno@clisp.org>
61219
61220         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61221         Reported by Elbert Pol <e.pol@chello.nl>.
61222
61223 2008-04-12  Eric Blake  <ebb9@byu.net>
61224
61225         Work around Solaris 10 math.h bug.
61226         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61227         (gl_MATH_H_DEFAULTS): Set up default.
61228         * modules/math (Makefile.am): Replace new indicators.
61229         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61230         * tests/test-math.c (main): Test this.
61231         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61232         * doc/posix-headers/math.texi (math.h): Mention bug.
61233         Reported by Nelson H. F. Beebe and Jim Meyering.
61234
61235 2008-04-11  Bruno Haible  <bruno@clisp.org>
61236
61237         Adapt to future versions of Apple GCC.
61238         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61239         Reported by Peter O'Gorman <peter@pogma.com>.
61240
61241 2008-04-11  Bruno Haible  <bruno@clisp.org>
61242
61243         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61244
61245 2008-04-11  Bruno Haible  <bruno@clisp.org>
61246
61247         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61248
61249         * modules/getaddrinfo-tests (Makefile.am): Define
61250         test_getaddrinfo_LDADD.
61251
61252 2008-04-11  Bruno Haible  <bruno@clisp.org>
61253
61254         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61255         (init): Fix syntax error.
61256         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61257         is declared.
61258
61259 2008-04-11  Bruno Haible  <bruno@clisp.org>
61260
61261         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61262         * modules/glob (Depends-on): Add stdbool.
61263
61264 2008-04-11  Bruno Haible  <bruno@clisp.org>
61265
61266         * lib/trim.c: Include <string.h>.
61267
61268 2008-04-11  Eric Blake  <ebb9@byu.net>
61269
61270         Avoid compile failure on OS/2.
61271         * lib/regex_internal.h (internal_function): Disable optimization
61272         on OS/2 (__EMX__), where it caused compiler error.
61273         Reported by Elbert Pol.
61274
61275 2008-04-11  Bruno Haible  <bruno@clisp.org>
61276
61277         Flush the standard error stream before aborting. Needed on mingw.
61278         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61279         * tests/test-array_list.c (ASSERT): Likewise.
61280         * tests/test-array_oset.c (ASSERT): Likewise.
61281         * tests/test-avltree_list.c (ASSERT): Likewise.
61282         * tests/test-avltree_oset.c (ASSERT): Likewise.
61283         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61284         * tests/test-binary-io.c (ASSERT): Likewise.
61285         * tests/test-byteswap.c (ASSERT): Likewise.
61286         * tests/test-c-ctype.c (ASSERT): Likewise.
61287         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61288         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61289         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61290         * tests/test-c-strstr.c (ASSERT): Likewise.
61291         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61292         * tests/test-canonicalize.c (ASSERT): Likewise.
61293         * tests/test-carray_list.c (ASSERT): Likewise.
61294         * tests/test-ceilf1.c (ASSERT): Likewise.
61295         * tests/test-ceilf2.c (ASSERT): Likewise.
61296         * tests/test-ceill.c (ASSERT): Likewise.
61297         * tests/test-count-one-bits.c (ASSERT): Likewise.
61298         * tests/test-fbufmode.c (ASSERT): Likewise.
61299         * tests/test-fflush2.c (ASSERT): Likewise.
61300         * tests/test-floorf1.c (ASSERT): Likewise.
61301         * tests/test-floorf2.c (ASSERT): Likewise.
61302         * tests/test-floorl.c (ASSERT): Likewise.
61303         * tests/test-fopen.c (ASSERT): Likewise.
61304         * tests/test-fpending.c (ASSERT): Likewise.
61305         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61306         * tests/test-fpurge.c (ASSERT): Likewise.
61307         * tests/test-freadable.c (ASSERT): Likewise.
61308         * tests/test-freadahead.c (ASSERT): Likewise.
61309         * tests/test-freading.c (ASSERT): Likewise.
61310         * tests/test-freadptr.c (ASSERT): Likewise.
61311         * tests/test-freadptr2.c (ASSERT): Likewise.
61312         * tests/test-freadseek.c (ASSERT): Likewise.
61313         * tests/test-freopen.c (ASSERT): Likewise.
61314         * tests/test-frexp.c (ASSERT): Likewise.
61315         * tests/test-frexpl.c (ASSERT): Likewise.
61316         * tests/test-fseek.c (ASSERT): Likewise.
61317         * tests/test-fseeko.c (ASSERT): Likewise.
61318         * tests/test-fstrcmp.c (ASSERT): Likewise.
61319         * tests/test-ftell.c (ASSERT): Likewise.
61320         * tests/test-ftello.c (ASSERT): Likewise.
61321         * tests/test-func.c (ASSERT): Likewise.
61322         * tests/test-fwritable.c (ASSERT): Likewise.
61323         * tests/test-fwriting.c (ASSERT): Likewise.
61324         * tests/test-getdelim.c (ASSERT): Likewise.
61325         * tests/test-getline.c (ASSERT): Likewise.
61326         * tests/test-i-ring.c (ASSERT): Likewise.
61327         * tests/test-iconv-utf.c (ASSERT): Likewise.
61328         * tests/test-iconv.c (ASSERT): Likewise.
61329         * tests/test-isfinite.c (ASSERT): Likewise.
61330         * tests/test-isnand.c (ASSERT): Likewise.
61331         * tests/test-isnanf.c (ASSERT): Likewise.
61332         * tests/test-isnanl.h (ASSERT): Likewise.
61333         * tests/test-ldexpl.c (ASSERT): Likewise.
61334         * tests/test-linked_list.c (ASSERT): Likewise.
61335         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61336         * tests/test-localename.c (ASSERT): Likewise.
61337         * tests/test-lseek.c (ASSERT): Likewise.
61338         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61339         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61340         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61341         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61342         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61343         * tests/test-mbschr.c (ASSERT): Likewise.
61344         * tests/test-mbscspn.c (ASSERT): Likewise.
61345         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61346         * tests/test-mbspbrk.c (ASSERT): Likewise.
61347         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61348         * tests/test-mbsrchr.c (ASSERT): Likewise.
61349         * tests/test-mbsspn.c (ASSERT): Likewise.
61350         * tests/test-mbsstr1.c (ASSERT): Likewise.
61351         * tests/test-mbsstr2.c (ASSERT): Likewise.
61352         * tests/test-mbsstr3.c (ASSERT): Likewise.
61353         * tests/test-memchr2.c (ASSERT): Likewise.
61354         * tests/test-memmem.c (ASSERT): Likewise.
61355         * tests/test-open.c (ASSERT): Likewise.
61356         * tests/test-printf-frexp.c (ASSERT): Likewise.
61357         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61358         * tests/test-printf-posix.c (ASSERT): Likewise.
61359         * tests/test-quotearg.c (ASSERT): Likewise.
61360         * tests/test-rbtree_list.c (ASSERT): Likewise.
61361         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61362         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61363         * tests/test-round1.c (ASSERT): Likewise.
61364         * tests/test-roundf1.c (ASSERT): Likewise.
61365         * tests/test-roundl.c (ASSERT): Likewise.
61366         * tests/test-signbit.c (ASSERT): Likewise.
61367         * tests/test-sleep.c (ASSERT): Likewise.
61368         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61369         * tests/test-snprintf.c (ASSERT): Likewise.
61370         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61371         * tests/test-stat-time.c (ASSERT): Likewise.
61372         * tests/test-strcasestr.c (ASSERT): Likewise.
61373         * tests/test-strerror.c (ASSERT): Likewise.
61374         * tests/test-striconv.c (ASSERT): Likewise.
61375         * tests/test-striconveh.c (ASSERT): Likewise.
61376         * tests/test-striconveha.c (ASSERT): Likewise.
61377         * tests/test-strsignal.c (ASSERT): Likewise.
61378         * tests/test-strstr.c (ASSERT): Likewise.
61379         * tests/test-strtod.c (ASSERT): Likewise.
61380         * tests/test-trunc1.c (ASSERT): Likewise.
61381         * tests/test-trunc2.c (ASSERT): Likewise.
61382         * tests/test-truncf1.c (ASSERT): Likewise.
61383         * tests/test-truncf2.c (ASSERT): Likewise.
61384         * tests/test-truncl.c (ASSERT): Likewise.
61385         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61386         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61387         * tests/test-vasnprintf.c (ASSERT): Likewise.
61388         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61389         * tests/test-vasprintf.c (ASSERT): Likewise.
61390         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61391         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61392         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61393         * tests/test-vsnprintf.c (ASSERT): Likewise.
61394         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61395         * tests/test-wcwidth.c (ASSERT): Likewise.
61396         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61397         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61398         * tests/test-xvasprintf.c (ASSERT): Likewise.
61399         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61400         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61401         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61402         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61403         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61404         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61405         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61406         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61407         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61408         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61409         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61410         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61411         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61412         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61413         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61414         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61415         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61416         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61417         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61418         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61419         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61420         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61421         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61422         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61423         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61424         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61425         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61426         * tests/unictype/test-combining.c (ASSERT): Likewise.
61427         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61428         * tests/unictype/test-digit.c (ASSERT): Likewise.
61429         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61430         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61431         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61432         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61433         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61434         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61435         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61436         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61437         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61438         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61439         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61440         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61441         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61442         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61443         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61444         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61445         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61446         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61447         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61448         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61449         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61450         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61451         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61452         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61453         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61454         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61455         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61456         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61457         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61458         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61459         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61460         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61461         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61462         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61463         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61464         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61465         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61466         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61467         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61468         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61469         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61470         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61471         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61472         Reported by Eric Blake.
61473
61474 2008-04-11  Bruno Haible  <bruno@clisp.org>
61475
61476         * lib/wchar.in.h: Tweak comment.
61477
61478 2008-04-11  Bruno Haible  <bruno@clisp.org>
61479
61480         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61481         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61482         gl_COMMON.
61483         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61484
61485 2008-04-11  Bruno Haible  <bruno@clisp.org>
61486
61487         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61488
61489 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61490
61491         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61492         of attempting to use non-existing /dev/*random.  Based on patch
61493         from Adam Strzelecki <ono@java.pl> in
61494         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61495
61496 2008-04-08  Bruno Haible  <bruno@clisp.org>
61497
61498         Add tentative support for emx+gcc.
61499         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61500         * lib/fpurge.c (fpurge): Likewise.
61501         * lib/freadable.c (freadable): Likewise.
61502         * lib/freadahead.c (freadahead): Likewise.
61503         * lib/freading.c (freading): Likewise.
61504         * lib/freadptr.c (freadptr): Likewise.
61505         * lib/freadseek.c (freadptrinc): Likewise.
61506         * lib/fseeko.c (rpl_fseeko): Likewise.
61507         * lib/fseterr.c (fseterr): Likewise.
61508         * lib/fwritable.c (fwritable): Likewise.
61509         * lib/fwriting.c (fwriting): Likewise.
61510         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61511
61512 2008-04-09  Eric Blake  <ebb9@byu.net>
61513
61514         Avoid some autoconf warnings.
61515         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61516         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61517         * m4/afs.m4 (gl_AFS): Likewise.
61518         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61519         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61520         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61521         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61522         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61523         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61524         (AC_CHECK_DECLS_ONCE): Likewise.
61525         Rename file...
61526         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61527         gnulib-tool requires autoconf 2.59 or better.
61528         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61529
61530 2008-04-08  Eric Blake  <ebb9@byu.net>
61531
61532         Use 'git describe --match' if present (added in git 1.5.5).
61533         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61534         if possible.
61535
61536 2008-04-08  Bruno Haible  <bruno@clisp.org>
61537
61538         Add tentative support for OpenServer.
61539         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61540         _ptr, _cnt.
61541         * lib/fpurge.c (fpurge): Likewise.
61542         * lib/freadable.c (freadable): Likewise.
61543         * lib/freadahead.c (freadahead): Likewise.
61544         * lib/freading.c (freading): Likewise.
61545         * lib/freadptr.c (freadptr): Likewise.
61546         * lib/freadseek.c (freadptrinc): Likewise.
61547         * lib/fseeko.c (rpl_fseeko): Likewise.
61548         * lib/fseterr.c (fseterr): Likewise.
61549         * lib/fwritable.c (fwritable): Likewise.
61550         * lib/fwriting.c (fwriting): Likewise.
61551         Reported by Roger Cornelius <rac@tenzing.org> and
61552         Brian K. White <brian@aljex.com>.
61553
61554 2008-04-06  Jim Meyering  <meyering@redhat.com>
61555
61556         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61557
61558 2008-04-06  Bruno Haible  <bruno@clisp.org>
61559
61560         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61561         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61562         * tests/test-printf-posix.sh: Likewise.
61563         * tests/test-vfprintf-posix.sh: Likewise.
61564         * tests/test-vprintf-posix.sh: Likewise.
61565         * tests/test-xprintf-posix.sh: Likewise.
61566
61567 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61568
61569         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61570         hide error from 'ls', needed on OS/2.
61571         Report by Elbert Pol <elbert.pol@gmail.com>.
61572
61573 2008-04-04  Eric Blake  <ebb9@byu.net>
61574
61575         Make test-fseeko.c failures meaningful.
61576         * tests/test-fseeko.c: Print line number on failure.
61577         * tests/test-fseek.c: Likewise.
61578         Reported by Nelson H. F. Beebe.
61579
61580         Improve strtod bug detection check.
61581         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61582         required for Solaris 10.
61583         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61584
61585 2008-04-04  Bruno Haible  <bruno@clisp.org>
61586
61587         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61588         by m4/setenv.m4.
61589
61590 2008-04-03  Eric Blake  <ebb9@byu.net>
61591
61592         Ensure sane .version contents.
61593         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61594         version string.
61595         * build-aux/git-version-gen: Improve documentation.
61596
61597         Make GNU make output nicer.
61598         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61599         MAKECMDGOALS to enforce message for all command line targets.  Set
61600         srcdir for use in maint.mk.
61601
61602         Another maintainer tweak.
61603         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61604         a target that regenerates version.
61605
61606 2008-04-03  Jim Meyering  <meyering@redhat.com>
61607
61608         vc-list-files: don't cause coreutils "make po-check" failure
61609         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61610
61611 2008-04-03  Eric Blake  <ebb9@byu.net>
61612
61613         Allow VPATH usage of vc-list-files.
61614         * build-aux/vc-list-files (scriptversion): Add timestamp.
61615         (options): Add --help, --version, -C.
61616         (CVS): Support installed cvsu.
61617
61618 2008-04-02  Bruno Haible  <bruno@clisp.org>
61619
61620         Avoid some "statement with no effect" warnings from gcc.
61621         * tests/test-wctype.c (main): Explicitly ignore unused values.
61622         Reported by Jim Meyering.
61623
61624 2008-04-02  Jim Meyering  <meyering@redhat.com>
61625
61626         Avoid some warnings from "gcc -Wshadow".
61627         * tests/test-frexp.c (exp): Define to a different identifier.
61628         * tests/test-frexpl.c (exp): Likewise.
61629
61630 2008-04-03  Jim Meyering  <meyering@redhat.com>
61631
61632         bootstrap: remove dangling *.[ch] symlinks from lib
61633         * build-aux/bootstrap [dangling symlink removal]: Move find's
61634         -depth option to precede all others, to avoid a warning.
61635         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61636
61637 2008-04-02  Bruno Haible  <bruno@clisp.org>
61638
61639         Avoid some warnings from "gcc -Wshadow".
61640         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61641         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61642         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61643         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61644         Reported by Jim Meyering.
61645
61646 2008-04-01  Bruno Haible  <bruno@clisp.org>
61647
61648         Fix test to work on IRIX 6.5 with cc.
61649         * tests/test-math.c (numeric_equal): New function.
61650         (main): Use it.
61651
61652 2008-04-01  Bruno Haible  <bruno@clisp.org>
61653
61654         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61655
61656 2008-04-01  Bruno Haible  <bruno@clisp.org>
61657
61658         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61659         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61660         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61661         (Depends-on): Remove math.
61662
61663         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61664         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61665         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61666         (Depends-on): Remove math.
61667
61668         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61669         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61670         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61671         (Depends-on): Remove math.
61672         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61673         (Depends-on): Remove math.
61674
61675         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61676         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61677         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61678         (Depends-on): Remove math.
61679         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61680         (Depends-on): Remove math.
61681
61682         * tests/test-round1.c: Include nan.h.
61683         (main): Use NaNd instead of NAN.
61684         * modules/round-tests (Files): Add tests/nan.h.
61685
61686         * tests/test-trunc1.c: Include nan.h.
61687         (main): Use NaNd instead of NAN.
61688         * modules/trunc-tests (Files): Add tests/nan.h.
61689
61690         * tests/test-roundf1.c: Include nan.h.
61691         (main): Use NaNf instead of NAN.
61692         * modules/roundf-tests (Files): Add tests/nan.h.
61693
61694         * tests/test-truncf1.c: Include nan.h.
61695         (main): Use NaNf instead of NAN.
61696         * modules/truncf-tests (Files): Add tests/nan.h.
61697
61698         * tests/test-ceilf1.c: Include nan.h.
61699         (main): Use NaNf instead of NAN.
61700         * modules/ceilf-tests (Files): Add tests/nan.h.
61701
61702         * tests/test-floorf1.c: Include nan.h.
61703         (main): Use NaNf instead of NAN.
61704         * modules/floorf-tests (Files): Add tests/nan.h.
61705
61706         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61707         (main): Use NaNf instead of NAN.
61708         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61709
61710         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61711         (main): Use NaNd instead of NAN.
61712         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61713
61714         * tests/test-frexp.c: Include nan.h.
61715         (main): Use NaNd instead of NAN.
61716         * modules/frexp-tests (Files): Add tests/nan.h.
61717
61718         * lib/isnan.c: Don't include <math.h>.
61719         (FUNC): Don't use NAN macro.
61720         * modules/isnand-nolibm (Depends-on): Remove math.
61721         * modules/isnanf-nolibm (Depends-on): Remove math.
61722         * modules/isnanl (Depends-on): Remove math.
61723         * modules/isnanl-nolibm (Depends-on): Remove math.
61724
61725         * tests/nan.h: New file.
61726
61727 2008-04-01  Eric Blake  <ebb9@byu.net>
61728
61729         Fix typos.
61730         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61731         values to be the right type.
61732
61733         For now, cater to gnulib strtod inaccuracies.
61734         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61735         fractional results.  While not as nice from a QoI perspective, it
61736         is a quicker patch than correctly implementing decimal to binary
61737         rounding.
61738
61739 2008-03-31  Eric Blake  <ebb9@byu.net>
61740
61741         Guarantee a definition of NAN.
61742         * lib/math.in.h (NAN): Define if missing.
61743         * tests/test-math.c (main): Test it.
61744         * doc/posix-headers/math.texi (math.h): Document this.
61745         * lib/isnan.c (rpl_isnand): Use it.
61746         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61747         * tests/test-floorf1.c (NaN): Likewise.
61748         * tests/test-frexp.c (NaN): Likewise.
61749         * tests/test-isnand.c (NaN): Likewise.
61750         * tests/test-isnanf.c (NaN): Likewise.
61751         * tests/test-round1.c (NaN): Likewise.
61752         * tests/test-roundf1.c (NaN): Likewise.
61753         * tests/test-snprintf-posix.h (NaN): Likewise.
61754         * tests/test-sprintf-posix.h (NaN): Likewise.
61755         * tests/test-trunc1.c (NaN): Likewise.
61756         * tests/test-truncf1.c (NaN): Likewise.
61757         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61758         * tests/test-vasprintf-posix.c (NaN): Likewise.
61759         * modules/isnand-nolibm (Depends-on): Add math.
61760         * modules/isnanf-nolibm (Depends-on): Likewise.
61761         * modules/isnanl (Depends-on): Likewise.
61762         * modules/isnanl-nolibm (Depends-on): Likewise.
61763         * modules/snprintf-posix-tests (Depends-on): Likewise.
61764         * modules/sprintf-posix-tests (Depends-on): Likewise.
61765         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61766         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61767         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61768         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61769
61770 2008-03-31  Bruno Haible  <bruno@clisp.org>
61771
61772         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61773         * doc/posix-functions/strtod.texi: Likewise.
61774
61775 2008-03-31  Bruno Haible  <bruno@clisp.org>
61776
61777         * tests/test-strtod.c (main): Don't use C99 syntax.
61778
61779 2008-03-31  Bruno Haible  <bruno@clisp.org>
61780
61781         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61782         Reported by Eric Blake.
61783
61784 2008-03-31  Jim Meyering  <meyering@redhat.com>
61785
61786         Don't compare actual signbit return values.
61787         * tests/test-strtod.c (main): Rather, compare only their
61788         zero/non-zero nature.
61789
61790 2008-03-31  Eric Blake  <ebb9@byu.net>
61791
61792         More strtod documentation.
61793         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61794         failures as distinct bugs.
61795
61796 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61797
61798         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
61799         Problem reported by Erik Benada in
61800         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
61801
61802 2008-03-30  Bruno Haible  <bruno@clisp.org>
61803
61804         * tests/test-strtod.c: Add comments about which assertion fails on which
61805         platform.
61806         * doc/posix-functions/strtod.texi: Add info about many more platforms.
61807
61808 2008-03-30  Eric Blake  <ebb9@byu.net>
61809
61810         Test signbit behavior on zeros.
61811         * tests/test-signbit.c (test_signbitf): Add tests for zero.
61812         (test_signbitd, test_signbitl): Likewise.
61813
61814         More strtod touchups.
61815         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
61816         sign of negative underflow, for now.  Use .5, not .1.
61817         * doc/posix-functions/strtod.texi (strtod): Mention these
61818         limitations.
61819         Reported by Jim Meyering.
61820
61821 2008-03-30  Bruno Haible  <bruno@clisp.org>
61822
61823         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
61824         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
61825
61826 2008-03-30  Bruno Haible  <bruno@clisp.org>
61827
61828         Avoid failure when attempting to return empty iconv results on some
61829         platforms.
61830         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
61831         allocation, don't report ENOMEM when the resulting string is empty.
61832
61833 2008-03-30  Bruno Haible  <bruno@clisp.org>
61834
61835         Fix buffer overrun.
61836         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
61837         Don't consider the width for tmp_length. Check count against tmp_length
61838         before doing the padding. Ensure enough allocation during padding.
61839
61840 2008-03-30  Eric Blake  <ebb9@byu.net>
61841
61842         strtod touchups.
61843         * lib/strtod.c (strtod): Avoid compiler warnings.
61844         Reported by Jim Meyering.
61845
61846 2008-03-30  Bruno Haible  <bruno@clisp.org>
61847
61848         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61849         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61850         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61851         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61852         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61853         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61854         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61855         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61856
61857         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61858         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61859         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61860         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61861         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61862         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61863         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61864         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61865
61866         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61867         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61868         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61869         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61870         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61871         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61872         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61873         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61874
61875         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61876         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61877
61878         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61879         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61880
61881         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61882         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61883
61884         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61885         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61886         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61887
61888         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61889         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61890         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61891
61892         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61893         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61894         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61895
61896         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61897         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61898         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61899
61900         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61901         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61902         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61903         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61904         (Depends-on): Add EOVERFLOW.
61905         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61906         (Depends-on): Add EOVERFLOW.
61907         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61908         (Depends-on): Add EOVERFLOW.
61909         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61910         (Depends-on): Add EOVERFLOW.
61911         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61912         (Depends-on): Add EOVERFLOW.
61913         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61914         (Depends-on): Add EOVERFLOW.
61915         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61916         (Depends-on): Add EOVERFLOW.
61917         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61918         (Depends-on): Add EOVERFLOW.
61919
61920         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61921         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61922         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61923
61924         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61926         * modules/snprintf (Depends-on): Add EOVERFLOW.
61927
61928         * lib/poll.c (EOVERFLOW): Remove fallback.
61929         * modules/poll (Depends-on): Add EOVERFLOW.
61930
61931         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61932         * modules/getugroups (Depends-on): Add EOVERFLOW.
61933
61934         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61935         * modules/getdelim (Depends-on): Add EOVERFLOW.
61936
61937         * lib/ftell.c (EOVERFLOW): Remove fallback.
61938         * modules/ftell (Depends-on): Add EOVERFLOW.
61939
61940         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61941         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61942         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61943
61944         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61945
61946         * modules/EOVERFLOW-tests: New file.
61947         * tests/test-EOVERFLOW.c: New file.
61948
61949         * modules/EOVERFLOW: New file.
61950         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61951
61952 2008-03-30  Bruno Haible  <bruno@clisp.org>
61953
61954         Fix bug introduced on 2007-06-10.
61955         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61956         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61957
61958 2008-03-30  Bruno Haible  <bruno@clisp.org>
61959
61960         Improve freadseek's efficiency after ungetc.
61961         * lib/freadseek.c: Include freadahead.h.
61962         (freadptrinc): New function, extracted from freadseek.
61963         (freadseek): Use it in a loop. Use freadahead to determine the number
61964         of loop iterations.
61965         * modules/freadseek (Depends-on): Add freadahead.
61966         (configure.ac): Require AC_C_INLINE.
61967
61968 2008-03-30  Bruno Haible  <bruno@clisp.org>
61969
61970         * lib/freadseek.c (freadseek): Don't ignore the return value of
61971         freadptr.
61972
61973 2008-03-29  Eric Blake  <ebb9@byu.net>
61974
61975         Add hex float support.
61976         * modules/strtod (Depends-on): Add c-ctype.
61977         (Link): Mention POW_LIB.
61978         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61979         whitespace between 'e' and exponent.
61980         * tests/test-strtod.c (main): Enable hex float tests.
61981         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61982         now provides.
61983
61984         Document various strtod bugs, with some fixes.
61985         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61986         "-0x", "inf", "nan", and hex constants.
61987         * doc/posix-functions/atof.texi (atof): Likewise.
61988         * modules/stdlib (Makefile.am): Support strtod.
61989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61990         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61991         detect additional strtod bugs.
61992         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61993         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61994         bool where appropriate.  Parse 'inf' and 'nan'.
61995         * tests/test-strtod.c: New file.
61996         * modules/strtod (Depends-on): Add stdbool, stdlib.
61997         (configure.ac): Turn on module indicator.
61998         * modules/strtod-tests: New module.
61999
62000 2008-03-29  Eric Blake  <ebb9@byu.net>
62001
62002         Fix ftell on mingw.
62003         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62004         * modules/ftell-tests (Depends-on): Add binary-io.
62005         * modules/ftello-tests (Depends-on): Likewise.
62006         * tests/test-ftell.c (main): Enhance test to cover behavior after
62007         ungetc.  Enforce binary mode.
62008         * tests/test-ftello.c (main): Likewise.
62009
62010         Pass test-freadseek on cygwin.
62011         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62012         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62013         ungetc buffer.
62014
62015         * tests/test-fflush2.c (main): Fix typo.
62016
62017 2008-03-29  Bruno Haible  <bruno@clisp.org>
62018
62019         * tests/test-fflush2.c (main): Temporarily disable the contents of
62020         this test.
62021         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62022         Reported by Eric Blake.
62023
62024 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62025
62026         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62027         (GC_SHA224_DIGEST_SIZE): Add.
62028
62029         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62030         (gc_hash_digest_length): Likewise.
62031         (gc_hash_buffer): Likewise.
62032
62033 2008-03-25  Bruno Haible  <bruno@clisp.org>
62034
62035         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62036         detail which gettext release to use.
62037         Reported by Simon Josefsson.
62038
62039 2008-03-26  Jim Meyering  <meyering@redhat.com>
62040
62041         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62042         * modules/gnumakefile (clean-GNUmakefile): Also, use
62043         test ... && ... || : syntax rather than if-then ... fi.
62044
62045         gnumakefile: Don't double-quote-expand $(VPATH) value.
62046         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62047
62048 2008-03-24  Eric Blake  <ebb9@byu.net>
62049
62050         Alter GNUmakefile to install into top directory.
62051         * modules/maintainer-makefile: Split, and add dependency...
62052         * modules/gnumakefile: to this new module.
62053         * build-aux/GNUmakefile: Move...
62054         * top/GNUmakefile: ...here.
62055         * build-aux/maint.mk: Move...
62056         * top/maint.mk: ...here.
62057         * MODULES.html.sh (Support for maintaining...): Document new
62058         module.
62059
62060 2008-03-23  Bruno Haible  <bruno@clisp.org>
62061
62062         * gnulib-tool: New options --vc-files, --no-vc-files.
62063         (func_usage): Document them.
62064         (vc_files): New variable.
62065         (func_import): Consider vc_files.
62066         (func_create_testdir): Set vc_files to empty.
62067         Suggested by Jim Meyering and Karl Berry.
62068
62069 2008-03-23  Bruno Haible  <bruno@clisp.org>
62070
62071         Fix regex compilation error on HP-UX 11.
62072         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62073         * modules/regex (Files): Add m4/mbstate_t.m4.
62074         Reported by Ton Voon <ton.voon@altinity.com>.
62075
62076 2008-03-23  Bruno Haible  <bruno@clisp.org>
62077
62078         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62079
62080 2008-03-23  Eric Blake  <ebb9@byu.net>
62081             Bruno Haible  <bruno@clisp.org>
62082
62083         Install files from top/ in the destination directory.
62084         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62085         augmentation also for the files from top/.
62086         (func_import, func_create_testdir): Rewrite file names:
62087         top/filename -> filename.
62088
62089 2008-03-23  Bruno Haible  <bruno@clisp.org>
62090
62091         Tweak "gnulib --version" output.
62092         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62093
62094 2008-03-23  Bruno Haible  <bruno@clisp.org>
62095
62096         Tweak "gnulib --version" output.
62097         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62098         rather than contents of ChangeLog, when possible.
62099
62100 2008-03-21  Eric Blake  <ebb9@byu.net>
62101
62102         More --version tweaks.
62103         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62104         date of last ChangeLog entry.
62105
62106 2008-03-21  Jim Meyering  <meyering@redhat.com>
62107
62108         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62109
62110 2008-03-20  Eric Blake  <ebb9@byu.net>
62111
62112         VPATH fix.
62113         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62114
62115 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62116
62117         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62118         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62119
62120 2008-03-20  Eric Blake  <ebb9@byu.net>
62121
62122         Sync GNUmakefile with coreutils.
62123         * build-aux/GNUmakefile (have-Makefile): Rename...
62124         (_have-Makefile): ...to this, for namespace consideration.
62125         (GNUmakefile.cfg): Include, if present.
62126         (_autoreconf): Define a default.
62127         (_is-dist-target): New rule for rebuilds to pick up intra-release
62128         version.
62129         (maint-cfg.mk): Rename...
62130         (cfg.mk): ...to this.
62131
62132 2008-03-18  Jim Meyering  <meyering@redhat.com>
62133
62134         New script and module: mktempd
62135         * MODULES.html.sh (maint+release support): Add mktempd.
62136         * build-aux/mktempd: New file.
62137         * modules/mktempd: New file.
62138
62139 2008-03-15  Jim Meyering  <meyering@redhat.com>
62140
62141         Undo last change.
62142         * lib/sha1.c, lib/md5.c: 63 != ~63.
62143         Reported by Andreas Schwab.
62144
62145         sha1.c, md5.c: Hoist a redundant expression.
62146         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62147         "ctx->buflen" only once, before calling *_process_block.
62148         * lib/md5.c (md5_process_bytes): Likewise.
62149
62150 2008-03-14  Eric Blake  <ebb9@byu.net>
62151
62152         Bump copyright year in files generated by gnulib-tool.
62153         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62154         gnulib-tool, rather than hard-coding it.
62155
62156         Fix 'gnulib-tool --version' output to work with git.
62157         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62158         (startup): ...here.
62159         (func_version): Use it to invoke git-version-gen, rather than
62160         relying on CVS keyword expansion.  Modernize wording.
62161         (cvsdatestamp, last_checkin_date, version): Kill unused
62162         variables.
62163
62164 2008-03-12  Jim Meyering  <meyering@redhat.com>
62165
62166         Recognize optional cast of the argument to free.
62167         * build-aux/useless-if-before-free: Update regexps.
62168
62169         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62170
62171 2008-03-11  Bruno Haible  <bruno@clisp.org>
62172
62173         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62174         by a single package.
62175         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62176         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62177         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62178         Reported by Sam Steingold <sds@gnu.org>.
62179
62180 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62181
62182         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62183         repositories.
62184
62185 2008-03-11  Bruno Haible  <bruno@clisp.org>
62186
62187         Avoid conflicts between local macro definitions.
62188         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62189         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62190
62191 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62192             Bruno Haible  <bruno@clisp.org>
62193
62194         Make va_copy work with some version of xlc on AIX 5.1.
62195         * lib/stdarg.in.h: New file.
62196         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62197         On AIX, use a <stdarg.h> file substitute.
62198         * modules/stdarg (Files): Add lib/stdarg.in.h.
62199         (Depends-on): Add include_next.
62200         (Makefile.am): Build a stdarg.h substitute if requested.
62201         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62202
62203 2008-03-10  Bruno Haible  <bruno@clisp.org>
62204
62205         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62206         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62207         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62208
62209 2008-03-10  Bruno Haible  <bruno@clisp.org>
62210
62211         * modules/stdlib (Depends-on): Add include_next, remove
62212         absolute-header.
62213
62214 2008-03-09  Bruno Haible  <bruno@clisp.org>
62215
62216         * lib/freadahead.h (freadahead): Document more precisely.
62217         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62218         the sum of both buffer sizes.
62219         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62220         * NEWS: Document the change.
62221
62222 2008-03-09  Bruno Haible  <bruno@clisp.org>
62223
62224         Extend freadptr to return also the buffer size.
62225         * lib/freadptr.h (freadptr): Add sizep argument.
62226         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62227         (freadptr): Add sizep argument. Determine buffer size like freadahead
62228         does.
62229         * tests/test-freadptr.c: Don't include freadahead.h.
62230         (main): Adapt for new calling convention of freadptr.
62231         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62232         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62233         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62234         tests/test-freadptr2.sh.
62235         (Depends): Remove freadahead.
62236         (TESTS): Add test-freadptr2.sh.
62237         (check_PROGRAMS): Add test-freadptr2.
62238
62239 2008-03-09  Bruno Haible  <bruno@clisp.org>
62240
62241         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62242         Report and solution by Simon Josefsson.
62243
62244 2008-03-06  Bruno Haible  <bruno@clisp.org>
62245
62246         Make fflush after ungetc work on BSD platforms.
62247         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62248         * tests/test-fflush2.c: New file.
62249         * tests/test-fflush2.sh: New file.
62250         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62251         tests/test-fflush2.c.
62252         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62253         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62254
62255 2008-03-06  Eric Blake  <ebb9@byu.net>
62256
62257         Likewise for ftello.
62258         * modules/ftello (Dependencies): Add extensions.
62259         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62260
62261 2008-03-06  Bruno Haible  <bruno@clisp.org>
62262
62263         * modules/fseeko (Dependencies): Add extensions.
62264         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62265         Needed on glibc systems.
62266
62267 2008-03-06  Bruno Haible  <bruno@clisp.org>
62268
62269         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62270         email address.
62271         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62272
62273 2008-03-06  Bruno Haible  <bruno@clisp.org>
62274
62275         * users.txt: Add libgnupdf.
62276
62277 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62278
62279         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62280         (Header File Substitutes, Function Substitutes,
62281         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62282         (Build robot for gnulib): Fix typo.
62283
62284 2008-03-06  Bruno Haible  <bruno@clisp.org>
62285
62286         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62287         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62288
62289 2008-03-06  Bruno Haible  <bruno@clisp.org>
62290
62291         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62292         * doc/gnulib.texi: Include it.
62293
62294 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62295
62296         * modules/func (License): Change license to unlimited; there was
62297         no LGPL parts in the module anyway.
62298
62299 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62300
62301         * modules/__func__: Renamed to modules/func.
62302         * modules/__func__-tests: Renamed to modules/func-tests.
62303         * tests/test-__func__.c: Renamed to tests/test-func.c.
62304         * m4/__func__.m4: Renamed to m4/func.m4.
62305         * doc/gnulib.texi (__func__): Section renamed to func.
62306         Suggested by Eric Blake <ebb9@byu.net>.
62307
62308 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62309
62310         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62311         about __func__.  Make example self-contained.  Suggested by Eric
62312         Blake <ebb9@byu.net>.
62313
62314         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62315         Suggested by Eric Blake <ebb9@byu.net>.
62316
62317 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62318
62319         * modules/__func__: New file.
62320         * modules/__func__-tests: New file.
62321         * tests/test-__func__.c: New file.
62322         * m4/__func__.m4: New file.
62323         * doc/gnulib.texi (__func__): Document __func__ module.
62324
62325 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62326
62327         * modules/byteswap (License): Re-license as LGPLv2+.
62328
62329 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62330
62331         * doc/Makefile: Add pdf target.
62332
62333 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62334
62335         * modules/inline (License): Use 'unlimited', since there are only
62336         *.m4 files in this module.
62337
62338 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62339             Bruno Haible  <bruno@clisp.org>
62340
62341         Add support for HP C 7.1 on OpenVMS 8.3.
62342         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62343
62344 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62345
62346         Update VMS specifics.
62347         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62348
62349 2008-03-02  Jim Meyering  <meyering@redhat.com>
62350
62351         Remove the last dependency on the "free" module.
62352         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62353         Reported by Bob Proulx.
62354
62355         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62356
62357         Remove useless "if" tests before free.  Deprecate "free" module.
62358         * doc/posix-functions/free.texi: Mention that this
62359         module is no longer useful.
62360         * modules/free (Notice): Say this module is obsolete.
62361         * modules/readutmp (Depends-on): Remove free.
62362         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62363         * lib/putenv.c (putenv): Likewise.
62364         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62365         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62366         * tests/test-c-strcasestr.c (main): Likewise.
62367         * tests/test-c-strstr.c (main): Likewise.
62368         * tests/test-mbscasestr1.c (main): Likewise.
62369         * tests/test-mbscasestr2.c (main): Likewise.
62370         * tests/test-mbsstr1.c (main): Likewise.
62371         * tests/test-mbsstr2.c (main): Likewise.
62372         * tests/test-memmem.c (main): Likewise.
62373         * tests/test-strcasestr.c (main): Likewise.
62374         * tests/test-striconv.c (main): Likewise.
62375         * tests/test-striconveh.c (main): Likewise.
62376         * tests/test-striconveha.c (main): Likewise.
62377         * tests/test-strstr.c (main): Likewise.
62378
62379         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62380
62381         bootstrap: sync from coreutils again
62382         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62383
62384 2008-03-01  Jim Meyering  <meyering@redhat.com>
62385
62386         bootstrap: sync from coreutils
62387         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62388         also when the target doesn't exist.
62389
62390 2008-03-01  Eric Blake  <ebb9@byu.net>
62391
62392         Fix bugs in last patch.
62393         * lib/memchr2.c (memchr2): Fix typo.
62394         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62395         extension.
62396         Reported by Bruce Korb.
62397
62398         New module 'memchr2'.
62399         * modules/memchr2: New file.
62400         * modules/memchr2-tests: Likewise.
62401         * lib/memchr2.h: Likewise.
62402         * lib/memchr2.c: Likewise, based on memchr.c.
62403         * tests/test-memchr2.c: New test.
62404         * MODULES.html.sh (String handling): Add memchr2.
62405
62406 2008-02-29  Bruno Haible  <bruno@clisp.org>
62407
62408         * modules/freadseek-tests: New file.
62409         * tests/test-freadseek.sh: New file.
62410         * tests/test-freadseek.c: New file.
62411
62412         New module 'freadseek'.
62413         * modules/freadseek: New file.
62414         * lib/freadseek.h: New file.
62415         * lib/freadseek.c: New file.
62416         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62417
62418 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62419
62420         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62421         wydawca.
62422
62423         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62424         program_invocation_name and program_invocation_short_name are
62425         present.
62426
62427 2008-02-28  Bruno Haible  <bruno@clisp.org>
62428
62429         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62430         * tests/test-freadptr.sh: Also test non-seekable stdin.
62431
62432 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62433
62434         * build-aux/bootstrap (source_base, m4_base)
62435         (doc_base, tests_base): New variables.
62436         (gnulib_tool_options): Do not hardcode base directories, use
62437         the above variables instead.
62438
62439 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62440
62441         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62442
62443 2008-02-28  Bruno Haible  <bruno@clisp.org>
62444
62445         * modules/freadptr-tests: New file.
62446         * tests/test-freadptr.sh: New file.
62447         * tests/test-freadptr.c: New file.
62448
62449         New module 'freadptr'.
62450         * modules/freadptr: New file.
62451         * lib/freadptr.h: New file.
62452         * lib/freadptr.c: New file.
62453         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62454
62455 2008-02-26  Karl Berry  <karl@freefriends.org>
62456
62457         Sync from Libtool:
62458         * libltdl/argz.c (argz_add, argz_count): New functions.
62459         * libltdl/argz.in.h: Declare them.
62460         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62461
62462 2008-02-22  Bruno Haible  <bruno@clisp.org>
62463
62464         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62465         is a pointer type.  Needed for HP-UX 10.
62466         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62467         * doc/posix-functions/gmtime_r.texi: Likewise.
62468         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62469
62470 2008-02-24  Bruno Haible  <bruno@clisp.org>
62471
62472         * modules/environ-tests: New file.
62473         * tests/test-environ.c: New file.
62474
62475         New module 'environ'.
62476         * modules/environ: New file.
62477         * lib/unistd.in.h (environ): New declaration.
62478         * m4/environ.m4: New file.
62479         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62480         after use.
62481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62482         HAVE_DECL_ENVIRON.
62483         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62484         HAVE_DECL_ENVIRON.
62485         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62486         wrong claim that 'environ' is missing on some systems.
62487         * modules/execute (Depends-on): Add environ.
62488         * lib/execute.c (environ): Remove fallback declaration.
62489         * modules/pipe (Depends-on): Add environ.
62490         * lib/pipe.c (environ): Remove fallback declaration.
62491         * modules/setenv (Depends-on): Add environ.
62492         * lib/setenv.c (environ): Remove fallback declaration.
62493         * modules/unsetenv (Depends-on): Add environ.
62494         * lib/unsetenv.c (environ): Remove fallback declaration.
62495         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62496         m4/environ.m4.
62497         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62498         (gl_PREREQ_UNSETENV): Likewise.
62499
62500 2008-02-24  Bruno Haible  <bruno@clisp.org>
62501
62502         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62503
62504 2008-02-20  Bob Proulx  <bob@proulx.com>
62505
62506         Enable use of older two part flavor 'git describe'.
62507         * build-aux/git-version-gen: If using the older two part flavor of
62508         git version then recreate the third part now present in the
62509         newer three part flavor of git describe.
62510
62511 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62512
62513         * lib/fts.c (fts_build): Typo correction to comment.
62514
62515 2008-02-17  Bruno Haible  <bruno@clisp.org>
62516
62517         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62518         generating no-op conflicts.
62519
62520 2008-02-17  Bruno Haible  <bruno@clisp.org>
62521
62522         Speed up by 10%.
62523         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62524         result_entries, rather than an index-based loop.
62525
62526 2008-02-17  Bruno Haible  <bruno@clisp.org>
62527
62528         Speed up by 25%.
62529         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62530         'hashcode_cached'.
62531         (entry_create): New function.
62532         (entry_hashcode): Use the cached hashcode if possible.
62533         (read_changelog_file, try_split_merged_entry): Use entry_create.
62534
62535 2008-02-17  Bruno Haible  <bruno@clisp.org>
62536
62537         Speed up from O(n^2) to O(n) for long ChangeLog files.
62538         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62539         (read_changelog_file): Change implementation of entries_reversed list
62540         to rbtreehash.
62541         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62542
62543 2008-02-17  Bruno Haible  <bruno@clisp.org>
62544
62545         New option --split-merged-entry.
62546         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62547         (find_paragraph_end, try_split_merged_entry): New functions.
62548         (long_options): Add option --split-merged-entry.
62549         (usage): Document option --split-merged-entry.
62550         (main): Implement option --split-merged-entry.
62551         Reported by Eric Blake.
62552
62553 2008-02-17  Bruno Haible  <bruno@clisp.org>
62554
62555         * lib/git-merge-changelog.c: Include c-strstr.h.
62556         (main): Support the "git pull --rebase" situation.
62557         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62558         Reported by Eric Blake.
62559
62560 2008-02-16  Eric Blake  <ebb9@byu.net>
62561
62562         Avoid doubling \ in common case of "c-maybe" quoting style.
62563         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62564         eliding outer quotes.
62565         * lib/quotearg.h: Document this.
62566         * tests/test-quotearg.c (result_strings, inputs, results_g)
62567         (flag_results, locale_results): Test it by adding a new string to
62568         each test group.
62569         (compare_strings): Test new string.
62570
62571 2008-02-13  Eric Blake  <ebb9@byu.net>
62572
62573         Avoid trigraph quoting in default output.
62574         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62575         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62576         unless explicitly requested.
62577         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62578
62579 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62580
62581         Don't rely on signed integer overflowing to negative value.
62582         * lib/getugroups.c (getugroups): Include <limits.h>.
62583         Instead, compare against INT_MAX, and increment only if the test passes.
62584
62585 2008-02-13  Jim Meyering  <meyering@redhat.com>
62586         and Eric Blake  <ebb9@byu.net>
62587
62588         Avoid shadowing warning and compile errors on Linux.
62589         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62590         forwarding macros on Linux.
62591         (dcgettext): Define a stub, for Linux.
62592         (results_g, main): Avoid warnings.
62593
62594 2008-02-12  Eric Blake  <ebb9@byu.net>
62595
62596         Silence warning in last patch.
62597         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62598
62599         Quotearg part 4: add tests, fix c-maybe colon quoting.
62600         * lib/quotearg.h: Improve documentation.
62601         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62602         escapes when adding outer quotes.  When quoting trigraphs, use
62603         valid C notation.  When quoting NUL, omit extra characters if next
62604         character is not digit.  Alter prototype.
62605         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62606         callers.
62607         * modules/quotearg-tests: New module.
62608         * tests/test-quotearg.c: New test.
62609
62610 2008-02-07  Eric Blake  <ebb9@byu.net>
62611
62612         Quotearg part 3: add flag to control outer quote elision.
62613         * lib/quotearg.h (c_maybe_quoting_style): New style.
62614         (enum quoting_flags): Better documentation of flags.
62615         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62616         c-maybe style.
62617         (quotearg_buffer_restyled): Handle new flag to elide outer
62618         quotes.
62619
62620         Quotearg part 2: add flag that can control NUL elision.
62621         * lib/quotearg.h (set_quoting_flags): New prototype.
62622         * lib/quotearg.c (struct quoting_options): Add flag field.
62623         (set_quoting_flags): New function.
62624         (quotearg_buffer_restyled): Add flags parameter.
62625         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62626         (quotearg_n_options): Set the flag, since length cannot be
62627         returned.
62628         (quoting_options_from_style): Default flags correctly.
62629
62630         Quotearg part 1: more wrappers, restore quotearg_char state.
62631         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62632         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62633         (quotearg_colon_mem): New wrappers.
62634         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62635         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62636         functions.
62637         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62638         (quotearg_colon_mem): New functions.
62639
62640 2008-02-11  Bruno Haible  <bruno@clisp.org>
62641
62642         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62643         library in the current directory: it does not work with parallel make.
62644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62645
62646 2008-02-11  Bruno Haible  <bruno@clisp.org>
62647
62648         * .gitattributes: New file.
62649
62650 2008-02-11  Jim Meyering  <meyering@redhat.com>
62651
62652         useless-if-before-free: Fix reversed exit values.
62653         * build-aux/useless-if-before-free: Use correct values
62654         for EXIT_MATCH and EXIT_NO_MATCH.
62655
62656         * build-aux/useless-if-before-free: Close stdout carefully.
62657
62658 2008-02-10  Bruno Haible  <bruno@clisp.org>
62659
62660         New module 'git-merge-changelog'.
62661         * modules/git-merge-changelog: New file.
62662         * lib/git-merge-changelog.c: New file.
62663
62664 2008-02-10  Jim Meyering  <meyering@redhat.com>
62665
62666         useless-if-before-free: New option: --list (-l).
62667
62668         useless-if-before-free: Don't exit immediately upon open failure.
62669         * build-aux/useless-if-before-free: Exit 2 for errors.
62670         Upon failure to open a file, don't exit immediately.
62671         Rather, just warn and continue with any remaining files.
62672
62673 2008-02-10  Bruno Haible  <bruno@clisp.org>
62674
62675         New abstract list operation 'node_set_value'.
62676         * lib/gl_list.h (gl_list_node_set_value): New function.
62677         (struct gl_list_implementation): New field node_set_value.
62678         * lib/gl_list.c (gl_list_node_set_value): New function.
62679         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62680         (gl_array_list_implementation): Update.
62681         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62682         (gl_carray_list_implementation): Update.
62683         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62684         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62685         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62686         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62687         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62688         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62689         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62690         Update.
62691         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62692         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62693         (gl_sublist_list_implementation): Update.
62694
62695 2008-02-10  Bruno Haible  <bruno@clisp.org>
62696
62697         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62698         Needed when ELEMENT is #defined to 'some_type *'.
62699
62700 2008-02-10  Jim Meyering  <meyering@redhat.com>
62701
62702         New script and module: useless-if-before-free
62703         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62704         * build-aux/useless-if-before-free: New file.
62705         * modules/useless-if-before-free: New file.
62706
62707         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62708
62709         xstrtol_error: Fix typo.
62710         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62711         s/exit_failure/exit_status/.
62712
62713 2008-02-09  Jim Meyering  <meyering@redhat.com>
62714
62715         New script and module: gitlog-to-changelog
62716         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62717         * modules/gitlog-to-changelog: New file.
62718         * build-aux/gitlog-to-changelog: New file.
62719
62720 2008-02-08  Jim Meyering  <meyering@redhat.com>
62721
62722         Avoid two "parameter unused" warnings.
62723         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62724         Mark "st" as used.
62725
62726         Use "git COMMAND", not "git-COMMAND".
62727         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62728         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62729         * build-aux/git-version-gen: Use "git status", not "git-status".
62730
62731 2008-02-07  Bruno Haible  <bruno@clisp.org>
62732
62733         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62734         Avoids a crash on Windows Vista.
62735         Reported by Adam Strzelecki <ono@java.pl> via
62736         Simon Josefsson <simon@josefsson.org>.
62737
62738 2008-02-06  Bruno Haible  <bruno@clisp.org>
62739
62740         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62741         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62742         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62744         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62745         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62746         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62747         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62748         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62749         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62750         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62751         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62752         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62753         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62754         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62755         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62756         left-adjust flag.
62757         * tests/test-snprintf-posix.h (test_function): Likewise.
62758         * tests/test-sprintf-posix.h (test_function): Likewise.
62759         * tests/test-vasprintf-posix.c (test_function): Likewise.
62760         * doc/posix-functions/fprintf.texi: Update.
62761         * doc/posix-functions/printf.texi: Update.
62762         * doc/posix-functions/snprintf.texi: Update.
62763         * doc/posix-functions/sprintf.texi: Update.
62764         * doc/posix-functions/vfprintf.texi: Update.
62765         * doc/posix-functions/vprintf.texi: Update.
62766         * doc/posix-functions/vsnprintf.texi: Update.
62767         * doc/posix-functions/vsprintf.texi: Update.
62768         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62769
62770 2008-02-06  Bruno Haible  <bruno@clisp.org>
62771
62772         Fix bug introduced on 2008-01-26.
62773         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62774
62775 2008-02-06  Bruno Haible  <bruno@clisp.org>
62776
62777         Fix bug introduced on 2007-06-10.
62778         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62779         !NEED_PRINTF_FLAG_ZERO.
62780
62781 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62782
62783         getloadavg: use libperfstat on AIX5
62784         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62785
62786 2008-02-03  Bruno Haible  <bruno@clisp.org>
62787
62788         * lib/diffseq.h: Add comments about required #includes.
62789         Reported by Michael Biggs <gnulib@doubleplum.net>.
62790
62791 2008-02-01  Bruno Haible  <bruno@clisp.org>
62792
62793         * users.txt: Add gnuit.
62794
62795 2008-01-31  Bruno Haible  <bruno@clisp.org>
62796
62797         * lib/md4.c (set_uint32): Mark as inline.
62798         * lib/md5.c (set_uint32): Likewise.
62799         * lib/sha1.c (set_uint32): Likewise.
62800         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
62801         * m4/md5.m4 (gl_MD5): Likewise.
62802         * m4/sha1.m4 (gl_SHA1): Likewise.
62803
62804 2008-01-31  Jim Meyering  <meyering@redhat.com>
62805
62806         Use "sizeof VAR", rather than a literal "4".
62807         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
62808         * lib/md4.c (md4_read_ctx): Likewise.
62809         * lib/sha1.c (sha1_read_ctx): Likewise.
62810
62811 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62812
62813         * tests/test-sha1.c: New file, based on test-md5.c.
62814
62815         * modules/crypto/sha1-tests: New file.
62816
62817 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62818
62819         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
62820
62821 2008-01-31  Jim Meyering  <meyering@redhat.com>
62822
62823         Prefer "sizeof v" over the equivalent "4".
62824         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
62825         * lib/md5.c (set_uint32): Likewise.
62826         * lib/sha1.c (set_uint32): Likewise.
62827
62828 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62829
62830         * lib/sha1.c (set_uint32): Mark function as static.
62831
62832 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62833
62834         md2: clarify comments to say that alignment is not required.
62835         * lib/md2.h: Remove warning about alignment in comment.
62836         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
62837         never been required.
62838
62839 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62840
62841         md4: adapt alignment constraint fix from sha1.
62842         * lib/md4.c (set_uint32): New function, from sha1.c
62843         (md4_read_ctx): Use it.
62844         (md4_finish_ctx): Doc fix.
62845         * lib/md4.h: Doc fix.
62846
62847 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62848
62849         md5: adapt alignment constraint fix from sha1.
62850         * lib/md5.c (set_uint32): New function, from sha1.c
62851         (md5_read_ctx): Use it.
62852         (md5_finish_ctx): Doc fix.
62853         * lib/md5.h: Doc fix.
62854
62855 2008-01-30  Peter Palfrader  <weasel@debian.org>
62856
62857         sha1: remove the result buffer alignment constraint
62858         * lib/sha1.c (set_uint32): New function.
62859         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62860         constraint.
62861         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62862         * lib/sha1.h: Likewise.
62863
62864 2008-01-30  Andreas Schwab  <schwab@suse.de>
62865             Bruno Haible  <bruno@clisp.org>
62866
62867         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62868         correct definition of LDBL_MIN_EXP.
62869
62870 2008-01-30  Karl Berry  <karl@gnu.org>
62871
62872         * config/srclist-update: try to preserve x bit on updates.
62873         * config/srclistvars.sh: update for karl.
62874
62875 2008-01-29  Jim Meyering  <meyering@redhat.com>
62876
62877         vasnprintf.c: Avoid warning about unused label
62878         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62879         "overflow" label definition and associated code with the
62880         same cpp condition that guards the sole use of that label.
62881
62882 2008-01-26  Bruno Haible  <bruno@clisp.org>
62883
62884         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62885         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62886         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62887         * lib/isnanl-nolibm.h (isnanl): Likewise.
62888         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62889
62890 2008-01-26  Bruno Haible  <bruno@clisp.org>
62891
62892         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62893         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62894
62895 2008-01-26  Bruno Haible  <bruno@clisp.org>
62896
62897         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62898         GCC >= 4.0 built-in.
62899         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62900
62901 2008-01-26  Bruno Haible  <bruno@clisp.org>
62902
62903         Rename isnan, applicable to 'double' only, to isnand.
62904         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62905         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62906         (configure.ac): Update.
62907         (Include): Replace "isnan.h" with "isnand.h".
62908         * m4/isnand.m4: Renamed from m4/isnan.m4.
62909         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62910         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62911         instead of isnan.c.
62912         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62913         instead of HAVE_ISNAN_IN_LIBC.
62914         (isnand): Renamed from isnan.
62915         * lib/isnand.c: New file.
62916         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62917         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62918         (Makefile.am): Update.
62919         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62920         Include isnand.h instead of isnan.h.
62921         (main): Test isnand instead of isnan.
62922         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62923         isnan-nolibm.
62924         * modules/frexp (Depends-on): Likewise.
62925         * modules/frexp-tests (Depends-on): Likewise.
62926         * modules/frexp-nolibm (Depends-on): Likewise.
62927         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62928         * modules/isfinite (Depends-on): Likewise.
62929         * modules/round-tests (Depends-on): Likewise.
62930         * modules/signbit (Depends-on): Likewise.
62931         * modules/signbit-tests (Depends-on): Likewise.
62932         * modules/snprintf-posix (Depends-on): Likewise.
62933         * modules/sprintf-posix (Depends-on): Likewise.
62934         * modules/trunc-tests (Depends-on): Likewise.
62935         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62936         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62937         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62938         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62939         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62940         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62941         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62942         * modules/vasnprintf-posix (Depends-on): Likewise.
62943         * modules/vasprintf-posix (Depends-on): Likewise.
62944         * modules/vfprintf-posix (Depends-on): Likewise.
62945         * modules/vsnprintf-posix (Depends-on): Likewise.
62946         * modules/vsprintf-posix (Depends-on): Likewise.
62947         * lib/frexp.c: Include isnand.h instead of isnan.h.
62948         (ISNAN): Set to isnand instead of isnan.
62949         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62950         (gl_isfinited): Use isnand instead of isnan.
62951         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62952         (gl_signbitd): Use isnand instead of isnan.
62953         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62954         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62955         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62956         (main): Use isnand instead of isnan.
62957         * tests/test-round1.c: Include isnand.h.
62958         (main): Use isnand instead of isnan.
62959         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62960         (ISNAN): Set to isnand instead of isnan.
62961         * tests/test-trunc1.c: Include isnand.h.
62962         (main): Use isnand instead of isnan.
62963         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62964         (equal): Use isnand instead of isnan.
62965         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62966         isnand-nolibm.
62967         * NEWS: Mention the change.
62968
62969 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62970             Bruno Haible  <bruno@clisp.org>
62971
62972         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62973         the GCC builtins for signbits are present and set
62974         REPLACE_SIGNBIT_USING_GCC if so.
62975         * lib/math.in.h (signbit): Define using GCC builtins if
62976         REPLACE_SIGNBIT_USING_GCC is set.
62977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62978         REPLACE_SIGNBIT_USING_GCC.
62979         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62980
62981 2008-01-25  Jim Meyering  <meyering@redhat.com>
62982
62983         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62984         * lib/poll.c: Include <config.h>, not "config.h".
62985         * tests/test-getaddrinfo.c: Likewise.
62986
62987 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62988
62989         * modules/sockets-tests: New file.
62990
62991 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62992
62993         * modules/sockets: New module, can be used to call WSA_Startup and
62994         WSA_Cleanup when needed.
62995
62996         * lib/sockets.h, lib/sockets.c: New files.
62997
62998         * m4/sockets.m4: New file.
62999
63000         * tests/test-sockets.c: New file.
63001
63002 2008-01-19  Bruno Haible  <bruno@clisp.org>
63003
63004         * doc/posix-headers: Renamed from doc/headers.
63005         * doc/posix-functions: Renamed from doc/functions.
63006         * doc/gnulib.texi: Update.
63007
63008 2008-01-19  Bruno Haible  <bruno@clisp.org>
63009
63010         * doc/glibc-functions/strcasestr.texi: Include contents of
63011         doc/functions/strcasestr.texi, fixing the list of platforms.
63012         * doc/functions/strcasestr.texi: Remove file.
63013
63014 2008-01-19  Bruno Haible  <bruno@clisp.org>
63015
63016         * doc/glibc-functions/memmem.texi: Include contents of
63017         doc/functions/memmem.texi.
63018         * doc/functions/memmem.texi: Remove file.
63019
63020 2008-01-18  Bruno Haible  <bruno@clisp.org>
63021
63022         * doc/glibc-functions/*.texi: New files.
63023         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63024         to use the new files.
63025
63026 2008-01-17  Bruno Haible  <bruno@clisp.org>
63027
63028         * tests/test-gethostname.c (main): Fix printf statement.
63029
63030 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63031
63032         * modules/gethostname-tests: New file.
63033
63034         * tests/test-gethostname.c: New file.
63035
63036 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63037
63038         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63039         used by the UNAME case.  Reported by Bruno Haible
63040         <bruno@clisp.org>.
63041
63042 2008-01-17  Eric Blake  <ebb9@byu.net>
63043
63044         Convert c-strcasestr to be more efficient.
63045         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63046         (Depends-on): Add c-strcase, remove malloca, strnlen.
63047         * tests/test-c-strcasestr.c (main): Enhance test.
63048         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63049
63050 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63051
63052         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63053         Use it in creating po/Makevars.
63054
63055 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63056
63057         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63058         Applications that requires it should initialize libgcrypt
63059         manually.
63060
63061 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63062
63063         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63064
63065 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63066
63067         Fix problem with getdate on mingw32 reported by Simon Josefsson
63068         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63069         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63070         tzname", when deciding whether to declare tzname.
63071         * lib/strftime.c (tzname): Likewise.
63072
63073 2008-01-15  Bruno Haible  <bruno@clisp.org>
63074
63075         Work around a MacOS X 10.5 bug in frexpl().
63076         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63077         * doc/functions/frexpl.texi: Document the bug.
63078         Reported by Elias Pipping <pipping@gentoo.org>.
63079
63080 2008-01-14  Eric Blake  <ebb9@byu.net>
63081
63082         Touch up previous patch.
63083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63084         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63085
63086         Convert strcasestr module to use Two-Way algorithm.
63087         * modules/strcasestr-simple: New module, based on the old
63088         strcasestr, but with Two-Way rather than KMP.
63089         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63090         * lib/string.in.h (rpl_strcasestr): Declare.
63091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63092         performance.
63093         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63094         * modules/string (Makefile.am): Support strcasestr.
63095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63096         * modules/strcasestr-tests (Depends-on): Check for alarm.
63097         * tests/test-strcasestr.c: Augment test.
63098         * lib/str-two-way.h: Clean up stray macro.
63099         * NEWS: Document new module.
63100         * MODULES.html.sh (string handling): Likewise.
63101         * doc/functions/strcasestr.texi: New file.
63102         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63103         here, since it is not a POSIX function.
63104
63105 2008-01-14  Colin Watson  <cjwatson@debian.org>
63106             Bruno Haible  <bruno@clisp.org>
63107
63108         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63109         works fine; if not, set REPLACE_STRSIGNAL.
63110         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63112         REPLACE_STRSIGNAL.
63113         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63114         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63115         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63116
63117 2008-01-14  Bruno Haible  <bruno@clisp.org>
63118
63119         * modules/strsignal (Include): Change to <string.h>.
63120
63121 2008-01-14  Colin Watson  <cjwatson@debian.org>
63122
63123         * modules/argp (Notice): Add a notice recommending to change
63124         XGETTEXT_OPTIONS.
63125         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63126
63127 2008-01-13  Colin Watson  <cjwatson@debian.org>
63128
63129         * modules/strsignal-tests: New file.
63130         * tests/test-strsignal.c: New file.
63131
63132         * lib/strsignal.c: New file, from glibc with modifications.
63133         * lib/siglist.h: New file, from glibc with modifications.
63134         * lib/string.in.h (strsignal): New declaration.
63135         * m4/strsignal.m4: New file.
63136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63137         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63138         * modules/strsignal: New file.
63139         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63140         HAVE_DECL_STRSIGNAL.
63141
63142 2008-01-13  Bruno Haible  <bruno@clisp.org>
63143
63144         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63145         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63146         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63147         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63148
63149 2008-01-13  Bruno Haible  <bruno@clisp.org>
63150
63151         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63152         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63153         * lib/argp.h (__attribute__): Likewise.
63154         * lib/c-stack.c (__attribute__): Likewise.
63155         * lib/error.h (__attribute__): Likewise.
63156         * lib/fts.c (__attribute__): Likewise.
63157         * lib/openat.h (__attribute__): Likewise.
63158         * lib/stdio.in.h (__attribute__): Likewise.
63159         * lib/string.in.h (__attribute__): Likewise.
63160         * lib/utimens.c (__attribute__): Likewise.
63161         * lib/vasnprintf.h (__attribute__): Likewise.
63162         * lib/xalloc.h (__attribute__): Likewise.
63163         * lib/xprintf.h (__attribute__): Likewise.
63164         * lib/xstrtol.h (__attribute__): Likewise.
63165         * lib/xvasprintf.h (__attribute__): Likewise.
63166
63167 2008-01-12  Bruno Haible  <bruno@clisp.org>
63168
63169         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63170         * doc/glibc-headers/a.out.texi: New file.
63171         * doc/glibc-headers/aliases.texi: New file.
63172         * doc/glibc-headers/alloca.texi: New file.
63173         * doc/glibc-headers/ar.texi: New file.
63174         * doc/glibc-headers/argp.texi: New file.
63175         * doc/glibc-headers/argz.texi: New file.
63176         * doc/glibc-headers/byteswap.texi: New file.
63177         * doc/glibc-headers/crypt.texi: New file.
63178         * doc/glibc-headers/endian.texi: New file.
63179         * doc/glibc-headers/envz.texi: New file.
63180         * doc/glibc-headers/err.texi: New file.
63181         * doc/glibc-headers/error.texi: New file.
63182         * doc/glibc-headers/execinfo.texi: New file.
63183         * doc/glibc-headers/fpu_control.texi: New file.
63184         * doc/glibc-headers/fstab.texi: New file.
63185         * doc/glibc-headers/fts.texi: New file.
63186         * doc/glibc-headers/getopt.texi: New file.
63187         * doc/glibc-headers/ieee754.texi: New file.
63188         * doc/glibc-headers/ifaddrs.texi: New file.
63189         * doc/glibc-headers/libintl.texi: New file.
63190         * doc/glibc-headers/mcheck.texi: New file.
63191         * doc/glibc-headers/mntent.texi: New file.
63192         * doc/glibc-headers/obstack.texi: New file.
63193         * doc/glibc-headers/paths.texi: New file.
63194         * doc/glibc-headers/printf.texi: New file.
63195         * doc/glibc-headers/pty.texi: New file.
63196         * doc/glibc-headers/resolv.texi: New file.
63197         * doc/glibc-headers/shadow.texi: New file.
63198         * doc/glibc-headers/sysexits.texi: New file.
63199         * doc/glibc-headers/ttyent.texi: New file.
63200
63201 2008-01-12  Jim Meyering  <meyering@redhat.com>
63202
63203         announce-gen: emit Gnulib's git-based version string.
63204         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63205         New option --gnulib-version=V, where V is expected to be
63206         the output of running git describe in the gnulib directory.
63207         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63208         not useful, and plan to stop publishing an xdelta file with each
63209         coreutils release.
63210
63211         * build-aux/announce-gen: Also check for lzma-compressed files.
63212
63213 2008-01-11  Bruno Haible  <bruno@clisp.org>
63214
63215         * tests/test-memmem.c (main): Increase maximum allowed time.
63216         * tests/test-strstr.c (main): Likewise.
63217
63218 2008-01-11  Bruno Haible  <bruno@clisp.org>
63219
63220         * doc/functions/memmem.texi: Add more precisions about platforms.
63221         * doc/functions/strstr.texi: Likewise.
63222
63223 2008-01-10  Eric Blake  <ebb9@byu.net>
63224
63225         * m4/strstr.m4: Delete cruft from copy-n-paste.
63226         Reported by Bruno Haible.
63227
63228 2008-01-10  Bruno Haible  <bruno@clisp.org>
63229
63230         Make c-strstr rely on strstr.
63231         * lib/c-strstr.c: Don't include str-kmp.h.
63232         (c_strstr): Define in terms of strstr.
63233         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63234         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63235
63236 2008-01-10  Bruno Haible  <bruno@clisp.org>
63237
63238         * doc/gnulib.texi (String Functions in C Locale): New section.
63239         * doc/c-ctype.texi: New file.
63240         * doc/c-strcase.texi: New file.
63241         * doc/c-strcaseeq.texi: New file.
63242         * doc/c-strcasestr.texi: New file.
63243         * doc/c-strstr.texi: New file.
63244         * doc/c-strtod.texi: New file.
63245         * doc/c-strtold.texi: New file.
63246
63247 2008-01-10  Eric Blake  <ebb9@byu.net>
63248
63249         * lib/relocatable.h: Fix a comment.
63250
63251 2008-01-10  Eric Blake  <ebb9@byu.net>
63252
63253         Share two-way algorithm.
63254         * lib/str-two-way.h: New file, merged from...
63255         * lib/memmem.c: ...here...
63256         * lib/strstr.c: ...and here.
63257         * modules/memmem (Files): Use it.
63258         * modules/strstr (Files): Likewise.
63259
63260         Avoid quadratic strstr implementations.
63261         * lib/strstr.c: New file.
63262         * m4/strstr.m4: Likewise.
63263         * modules/strstr: Likewise.
63264         * modules/strstr-tests: Likewise.
63265         * tests/test-strstr.c: Likewise.
63266         * lib/string.in.h (rpl_strstr): Declare.
63267         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63269         * modules/string (Makefile.am): Likewise.
63270         * MODULES.html.sh (string handling): Mention new module.
63271         * doc/functions/strstr.texi (strstr): Document the bug.
63272
63273 2008-01-10  Bruno Haible  <bruno@clisp.org>
63274
63275         * lib/relocatable.h (relocate): State whether result is freshly
63276         allocated or not.
63277         * lib/relocatable.c (relocate): Return a freshly allocated string
63278         instead of a pointer to a privately held string.
63279         Reported by Sylvain Beucler <beuc@gnu.org>.
63280
63281 2008-01-10  Colin Watson  <cjwatson@debian.org>
63282
63283         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63284         s/S_ISNLK/S_ISLNK/.
63285
63286 2008-01-09  Bruno Haible  <bruno@clisp.org>
63287
63288         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63289         and other files.
63290         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63291         if it's only a guess.
63292         * modules/memmem: Simplify by depending on memmem-simple.
63293
63294 2008-01-09  Bruno Haible  <bruno@clisp.org>
63295
63296         Work around OpenBSD 4.0 tdelete() bug.
63297         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63298         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63299         macros and don't redefine the enum values.
63300         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63301         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63302         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63303
63304 2008-01-09  Bruno Haible  <bruno@clisp.org>
63305
63306         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63307         (main): Don't perform the tests if setlocale did not install a UTF-8
63308         locale. Needed on OpenBSD 4.0.
63309         * modules/wcwidth-tests (Depends-on): Add localcharset.
63310
63311 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63312
63313         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63314         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63315         * NEWS: announce this.
63316         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63317
63318 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63319         and Eric Blake  <ebb9@byu.net>
63320
63321         Add memmem-simple module.
63322         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63323         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63324         * modules/memmem-simple: New file.
63325         * modules/memmem (Description): Tweak.
63326         * MODULES.html.sh (string handling): Mention new module.
63327         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63328         addressed by memmem-simple.
63329         * NEWS: Document the difference.
63330
63331 2008-01-09  Eric Blake  <ebb9@byu.net>
63332
63333         Give gcc some memmem optimization hints.
63334         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63335         (strcasestr): Declare as pure.
63336         * modules/memmem (Maintainer): Claim my implementation.
63337
63338 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63339
63340         Support AIX 6.1 and higher.
63341         * build-aux/config.libpath: Likewise.
63342         * build-aux/config.rpath: Likewise.
63343
63344 2008-01-08  Jim Meyering  <meyering@redhat.com>
63345             Bruno Haible  <bruno@clisp.org>
63346
63347         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63348         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63349         Reported by Peter Fales in
63350         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63351
63352 2008-01-08  Bruno Haible  <bruno@clisp.org>
63353
63354         * modules/unictype/category-of (Depends-on): Add
63355         unictype/category-none.
63356         * modules/unictype/category-and-tests (Depends-on): Add
63357         unictype/category-{L,N,Lu,Nd}.
63358         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63359         * modules/unictype/category-or-tests (Depends-on): Add
63360         unictype/category-{L,N}.
63361         * modules/unictype/category-name-tests (Depends-on): Add
63362         unictype/category-{Z,Nl}.
63363         Reported by Simon Josefsson.
63364
63365 2008-01-08  Bruno Haible  <bruno@clisp.org>
63366
63367         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63368         convention better.
63369         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63370         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63371         Reported by Peter Miller <millerp@canb.auug.org.au>.
63372
63373 2008-01-08  Eric Blake  <ebb9@byu.net>
63374
63375         Rewrite memmem to guarantee linear complexity without malloc.
63376         * lib/memmem.c (memmem): Use Two-Way rather than
63377         Knuth-Morris-Pratt, to allow O(1) space usage.
63378         (critical_factorization, two_way_short_needle)
63379         (two_way_long_needle): New functions.
63380         (knuth_morris_pratt): Delete.
63381         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63382         Add stdint.
63383         * tests/test-memmem.c (main): Add tests for periodic needle and
63384         sublinear performance.
63385         * doc/functions/memmem.texi (memmem): Document other deficiencies
63386         in cygwin and older glibc.
63387
63388 2008-01-08  Bruno Haible  <bruno@clisp.org>
63389
63390         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63391         augmentation.
63392
63393 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63394
63395         Add a configure time option: --disable-acl.
63396         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63397         AC_ARG_ENABLE(acl).
63398
63399 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63400
63401         * tests/test-localename.c: Don't include obsolete "setenv.h".
63402
63403         * modules/localename-tests (Depends-on): Need unsetenv.
63404
63405 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63406
63407         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63408
63409 2008-01-06  Colin Watson  <cjwatson@debian.org>
63410
63411         * users.txt: Add man-db.
63412
63413 2008-01-07  Bruno Haible  <bruno@clisp.org>
63414
63415         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63416         previous section name.
63417
63418 2008-01-07  Bruno Haible  <bruno@clisp.org>
63419
63420         * lib/progname.c (set_program_name): Don't strip off a leading
63421         "lt-" prefix outside a .libs directory.
63422         Suggested by Paul Eggert.
63423
63424 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63425             Bruno Haible  <bruno@clisp.org>
63426
63427         Improve memory cleanup in 'relocatable' module.
63428         * lib/relocatable.h (compute_curr_prefix): Change return type to
63429         'char *'.
63430         * lib/relocatable.c (compute_curr_prefix): Change return type to
63431         'char *'. Free curr_installdir after use.
63432         (relocate): Free curr_prefix_better after use.
63433         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63434
63435 2008-01-01  Bruno Haible  <bruno@clisp.org>
63436
63437         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63438         failure on older glibc systems.
63439         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63440
63441 2008-01-05  Eric Blake  <ebb9@byu.net>
63442
63443         Avoid quadratic system memmem.
63444         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63445         Reported by Ralf Wildenhues.
63446
63447         Fix memmem test for mingw.
63448         * modules/memmem-tests (configure.ac): Check for alarm.
63449         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63450         it.
63451         * doc/functions/memmem.texi: New file.
63452         * doc/gnulib.texi (Function Substitutes): Add memmem.
63453         Reported by Bruno Haible.
63454
63455 2008-01-04  Bruno Haible  <bruno@clisp.org>
63456
63457         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63458         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63459         gl_HEADER_STRING_H_DEFAULTS.
63460
63461 2008-01-04  Eric Blake  <ebb9@byu.net>
63462
63463         Shorten duration of memmem test.
63464         * tests/test-memmem.c (main): Use alarm to declare failure if test
63465         is taking too long.
63466         Reported by Ralf Wildenhues.
63467
63468 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63469
63470         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63471         string, needed by strerror.
63472
63473 2008-01-03  Colin Watson  <cjwatson@debian.org>
63474             Bruno Haible  <bruno@clisp.org>
63475
63476         * doc/gnulib-tool.texi (Localization): New section.
63477
63478 2008-01-02  Bruno Haible  <bruno@clisp.org>
63479
63480         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63481         variables to 'unsigned char *' type.
63482         Reported by Paul Eggert.
63483
63484 2008-01-02  Jim Meyering  <jim@meyering.net>
63485
63486         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63487
63488 2007-12-31  Jim Meyering  <jim@meyering.net>
63489
63490         Avoid use of private FTS type name.
63491         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63492
63493 2007-12-30  Karl Berry  <karl@gnu.org>
63494
63495         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63496         work around defect in Texinfo and/or the standalone Info browser.
63497
63498 2007-12-30  Bruno Haible  <bruno@clisp.org>
63499
63500         Unify 5 copies of the KMP code.
63501         * lib/str-kmp.h: New file.
63502         * lib/c-strcasestr.c: Include str-kmp.h.
63503         (knuth_morris_pratt): Remove function.
63504         (c_strcasestr): Update.
63505         * lib/c-strstr.c: Include str-kmp.h.
63506         (knuth_morris_pratt): Remove function.
63507         (c_strcasestr): Update.
63508         * lib/mbscasestr.c: Include str-kmp.h.
63509         (knuth_morris_pratt_unibyte): Remove function.
63510         * lib/mbsstr.c: Include str-kmp.h.
63511         (knuth_morris_pratt_unibyte): Remove function.
63512         * lib/strcasestr.c: Include str-kmp.h.
63513         (knuth_morris_pratt): Remove function.
63514         (strcasestr): Update.
63515         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63516         * modules/c-strstr (Files): Likewise.
63517         * modules/mbscasestr (Files): Likewise.
63518         * modules/mbsstr (Files): Likewise.
63519         * modules/strcasestr (Files): Likewise.
63520         Suggested by Paul Eggert.
63521
63522 2007-12-30  Bruno Haible  <bruno@clisp.org>
63523
63524         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63525         defined.
63526
63527 2007-12-30  Bruno Haible  <bruno@clisp.org>
63528
63529         * lib/xmalloca.h: Include xalloc.h.
63530         (xnmalloca): New macro.
63531
63532 2007-12-30  Bruno Haible  <bruno@clisp.org>
63533
63534         * lib/malloca.h (nmalloca): New macro.
63535         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63536         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63537         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63538         knuth_morris_pratt_multibyte): Likewise.
63539         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63540         knuth_morris_pratt_multibyte): Likewise.
63541         * lib/memmem.c (knuth_morris_pratt): Likewise.
63542         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63543
63544 2007-12-25  Bruno Haible  <bruno@clisp.org>
63545
63546         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63547         * lib/glob.c: Don't include openat.h.
63548         (link_exists2_p): Add back the code that deals with the
63549         !GLOB_ALTDIRFUNC case.
63550         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63551         let it do the filename concatenation.
63552         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63553         * modules/glob (Depends-on): Remove openat.
63554
63555 2007-12-31  Bruno Haible  <bruno@clisp.org>
63556
63557         * modules/dirfd (License): Change to LGPLv2+.
63558         Approved by Jim Meyering.
63559
63560 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63561
63562         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63563         when multiplying M by sizeof (size_t).
63564
63565 2007-12-10  Martin Lambers  <marlam@marlam.de>
63566
63567         Override getpagesize on mingw.
63568         * lib/getpagesize.c: New file.
63569         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63570         * modules/getpagesize (Files): Add lib/getpagesize.c.
63571         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63573         REPLACE_GETPAGESIZE.
63574         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63575
63576 2007-12-25  Bruno Haible  <bruno@clisp.org>
63577
63578         * modules/localcharset (Notice): New field.
63579         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63580         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63581
63582 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63583             Bruno Haible  <bruno@clisp.org>
63584
63585         Avoid using the syntax symbol() in formatted documentation.
63586         * MODULES.html.sh (func_module): When replacing symbol() with a
63587         hyperlink, remove the parentheses. Show an error if some remain.
63588         Recognize and render the '...' syntax.
63589         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63590         Rework. Add paragraph about GCC's inlining.
63591         * doc/alloca.texi: Likewise.
63592         * doc/error.texi: Remove parentheses from symbol reference.
63593         * doc/gnulib-intro.texi: Likewise.
63594         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63595         * modules/fnmatch (Description): Reword to say "the ... function".
63596         * modules/full-read (Description): Likewise.
63597         * modules/full-write (Description): Likewise.
63598         * modules/safe-read (Description): Likewise.
63599         * modules/safe-write (Description): Likewise.
63600         * modules/strchrnul (Description): Likewise.
63601         * modules/trim (Description): Likewise.
63602         * modules/error (Description): Remove parentheses from symbol
63603         references.
63604         * modules/verror (Description): Likewise.
63605         Reported by Karl Berry.
63606
63607 2007-12-25  Bruno Haible  <bruno@clisp.org>
63608
63609         Fixup after 2007-10-16 commit.
63610         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63611
63612 2007-12-24  Bruno Haible  <bruno@clisp.org>
63613
63614         Make --enable-relocatable work with DESTDIR.
63615         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63616         to compute installdir from destprog.
63617         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63618         also set the RELOC_DESTDIR variable.
63619         Reported by Левашев Иван <octagram@bluebottle.com>.
63620
63621 2007-12-24  Bruno Haible  <bruno@clisp.org>
63622
63623         Fix link error due to xalloc_die().
63624         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63625         of xreadlink.
63626         * lib/relocwrapper.c: Update comments.
63627         * build-aux/install-reloc: Remove xreadlink.c from file list.
63628         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63629         xreadlink.c.
63630         Reported by Левашев Иван <octagram@bluebottle.com>.
63631
63632 2007-12-24  Bruno Haible  <bruno@clisp.org>
63633
63634         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63635         * lib/setenv.h: Remove file.
63636         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63637         lib/setenv.h.
63638         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63639         (Depends-on): Add stdlib.
63640         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63641         gl_FUNC_UNSETENV.
63642         (Include): Replace setenv.h with <stdlib.h>.
63643         * modules/unsetenv: New file.
63644         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63645         * lib/unsetenv.c: Include <stdlib.h> first.
63646         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63647         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63648         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63649         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63650         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63651         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63653         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63654         * doc/functions/unsetenv.texi: Update.
63655         * modules/xsetenv (Depends-on): Add unsetenv.
63656         * modules/getdate (Depends-on): Likewise.
63657         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63658         * lib/xsetenv.c: Don't include setenv.h.
63659         * lib/getdate.y: Likewise.
63660         * lib/relocwrapper.c: Likewise.
63661         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63662         (Depends-on): Add stdlib.
63663         * NEWS: Mention the changes.
63664         Reported by Левашев Иван <octagram@bluebottle.com>.
63665
63666 2007-12-23  Bruno Haible  <bruno@clisp.org>
63667
63668         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63669         indentation.
63670
63671 2007-12-23  Bruno Haible  <bruno@clisp.org>
63672
63673         * lib/c-strcasestr.c: Add more comments.
63674         * lib/c-strstr.c: Likewise.
63675         * lib/mbscasestr.c: Likewise.
63676         * lib/mbsstr.c: Likewise.
63677         * lib/strcasestr.c: Likewise.
63678         * lib/memmem.c: Likewise.
63679
63680 2007-12-23  Bruno Haible  <bruno@clisp.org>
63681
63682         * tests/test-memmem.c: Include <string.h> first.
63683
63684 2007-12-22  Bruno Haible  <bruno@clisp.org>
63685
63686         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63687         the contents of $testsbase.
63688         Reported by Ralf Wildenhues.
63689
63690 2007-12-22  Bruno Haible  <bruno@clisp.org>
63691
63692         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63693         two variables local_ldadd_before, local_ldadd_last.
63694
63695 2007-12-20  Eric Blake  <ebb9@byu.net>
63696
63697         Work around circular library issue when cross-compiling.
63698         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63699         that progname.o does not need to pull in rpl_memcmp.
63700
63701 2007-12-19  Eric Blake  <ebb9@byu.net>
63702
63703         Fix memmem to avoid O(n^2) worst-case complexity.
63704         * lib/memmem.c (knuth_morris_pratt): New function.
63705         (memmem): Use it if first few naive iterations fail.
63706         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63707         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63708         * modules/memchr (License): Likewise.
63709         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63710         malloca.
63711         * tests/test-memmem.c: Rewrite, borrowing ideas from
63712         test-mbsstr1.c; the old version wouldn't even compile!
63713         * modules/memmem-tests: New file.
63714         * lib/string.in.h (rpl_memmem): Add declaration.
63715         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63717         REPLACE_MEMMEM.
63718
63719 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63720
63721         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63722         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63723         before any system include files, and undef after them all.  This
63724         should fix a problem on VMS reported by John E. Malmberg in
63725         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63726
63727 2007-12-17  Eric Blake  <ebb9@byu.net>
63728
63729         Revert addition of verify, for BSD/OS.
63730         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63731         can't handle large files, for the sake of obsolete platforms.
63732         * modules/fseeko (Depends-on): Remove verify.
63733         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63734         * doc/functions/ftello.texi (ftello): Likewise.
63735         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63736         Reported by Larry Jones.
63737
63738 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63739
63740         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63741         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63742
63743 2007-12-17  Jim Meyering  <meyering@redhat.com>
63744
63745         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63746         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63747         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63748         * modules/getcwd (Depends-on): Add openat.
63749         Reported by Petr Salinger.
63750
63751 2007-12-17  Bruno Haible  <bruno@clisp.org>
63752
63753         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63754         avoid a segmentation fault of the configure test on x86_64 systems.
63755
63756 2007-12-15  Jim Meyering  <meyering@redhat.com>
63757
63758         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63759
63760 2007-12-13  Eric Blake  <ebb9@byu.net>
63761
63762         Another fseek test.
63763         * tests/test-fseek.c (main): Also test ungetc handling.
63764         * tests/test-fseeko.c (main): Likewise.
63765         * modules/fseeko (Depends-on): Add verify.
63766         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63767         large.
63768         Reported by Larry Jones.
63769
63770         Fix fseeko on mingw.
63771         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63772         seek.
63773
63774         Beef up fseek tests.
63775         * tests/test-fseek.c (main): Also test eof handling.
63776         * tests/test-fseeko.c (main): Likewise.
63777         Reported by Larry Jones.
63778
63779 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63780
63781         Fix fseeko on BSD-based platforms.
63782         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63783         successful seek.
63784
63785 2007-12-12  Eric Blake  <ebb9@byu.net>
63786
63787         Allow circular dependency of separate libtests.a
63788         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63789         when use_libtests.
63790
63791 2007-12-11  Eric Blake  <ebb9@byu.net>
63792
63793         Fix bug with -0.0L in previous patch.
63794         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63795         * tests/test-isnan.c (main): Also test on zeroes.
63796         * tests/test-isnanf.c (main): Likewise.
63797         * tests/test-isnanl.h (main): Likewise.
63798
63799         Detect pseudo-denormals on x86 even when cross-compiling.
63800         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
63801         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
63802         invalid bit patterns that happen to satisfy ==.
63803
63804         Avoid link failures with separate libtests.a.
63805         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
63806         last, to satisfy circular dependencies.
63807
63808 2007-12-11  Eric Blake  <ebb9@byu.net>
63809         and Bruno Haible  <bruno@clisp.org>
63810
63811         Fix OpenBSD 4.0 <float.h> handling of long double.
63812         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
63813         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
63814         * doc/headers/float.texi (float.h): Document OpenBSD bug.
63815
63816 2007-12-11  Jim Meyering  <meyering@redhat.com>
63817
63818         * users.txt: Add libvirt.
63819
63820         Support versions of autoconf prior to 2.59c.
63821         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
63822         if it is not already defined.
63823
63824 2007-12-09  Bruno Haible  <bruno@clisp.org>
63825
63826         Let 'gnulib-tool --import' collect sources needed for the tests in
63827         tests/ rather than in lib/.
63828         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
63829         argument. If true, add rules to generate libtests.a, and put libtests.a
63830         into $(LDADD). Consider source files in subdirectories and set
63831         uses_subdirs.
63832         (func_emit_initmacro_start, func_emit_initmacro_end,
63833         func_emit_initmacro_done): Pass all arguments explicitly.
63834         (func_import): Determine two module lists main_modules,
63835         testsrelated_modules. Determine use_libtests. Determine two variables
63836         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
63837         instead of just sed_transform_lib_file. Determine two variables
63838         main_files and testsrelated_files. Compute 'files' as the union of
63839         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
63840         func_add_or_update. In the generated gnulib-comp.m4, collect the
63841         object files for tests/ in different variables than those for lib/.
63842         Substitute LIBTESTS_LIBDEPS.
63843         (func_create_testdir): Combine the uses_subdirs results from
63844         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63845
63846 2007-12-09  Bruno Haible  <bruno@clisp.org>
63847
63848         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63849         the build-aux directory.
63850
63851 2007-12-09  Bruno Haible  <bruno@clisp.org>
63852
63853         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63854         introduced on 2006-09-09.
63855
63856 2007-12-07  Jim Meyering  <meyering@redhat.com>
63857
63858         Let these macros work also with autoconf-2.59.
63859         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63860         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63861         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63862
63863 2007-12-06  Jim Meyering  <meyering@redhat.com>
63864
63865         Avoid a configure-time syntax error in gl_FUNC_ACL.
63866         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63867         function in each branch, before testing the cache variable.
63868
63869 2007-12-04  Eric Blake  <ebb9@byu.net>
63870
63871         Make scripts executable.
63872         * build-aux/config.guess: Add execute permissions.
63873         * build-aux/config.sub: Likewise.
63874         * build-aux/gendocs.sh: Likewise.
63875
63876         Fix frexp on mingw.
63877         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63878         cross-compiling.
63879         * doc/functions/frexp.texi (frexp): Document the bug.
63880
63881         Make cygwin fseeko check more reliable.
63882         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63883         version numbers, rather than unrelated feature check.
63884         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63885         * doc/functions/ftello.texi (ftello): Likewise.
63886         Reported by Bruno Haible.
63887
63888         * m4/strerror.m4: Bump version number.
63889
63890 2007-12-03  Bruno Haible  <bruno@clisp.org>
63891
63892         * doc/functions/mprotect.texi: Mention the mingw problem.
63893
63894 2007-12-03  Eric Blake  <ebb9@byu.net>
63895
63896         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63897         REPLACE_STRERROR is initialized before this macro.
63898
63899 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63900
63901         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63902         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63903         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63904         put -lsec in even for programs other than 'ls'.  This fixes a problem
63905         for gettext reported by Bruno Haible in
63906         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63907         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63908         Add support for Solaris 10.  This isn't efficient, but should get the
63909         job done for now.
63910
63911 2007-12-03  James Youngman  <jay@gnu.org>
63912
63913         * doc/regexprops-generic.texi: change "an close-group" to "a
63914         close-group" and "illegal" to "not allowed".
63915
63916 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63917
63918         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63919         pr_byname.h. Needed for the rare case when the maintainer has done
63920         "make maintainer-clean" in the source directory and then attempts a
63921         build outside the source directory.
63922         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63923         scripts_byname.h.
63924
63925 2007-12-02  Martin Lambers <marlam@marlam.de>
63926             Bruno Haible  <bruno@clisp.org>
63927
63928         * lib/getpagesize.h: Remove file.
63929         * lib/unistd.in.h: Include declaration of getpagesize here.
63930         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63931         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63932         HAVE_SYS_PARAM_H.
63933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63934         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63935         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63936         (Depends-on): Add unistd.
63937         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63938         (Include): Use <unistd.h> instead of getpagesize.h.
63939         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63940         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63941         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63942         gl_GETPAGESIZE invocation, already handled by module dependency.
63943         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63944
63945 2007-12-02  Bruno Haible  <bruno@clisp.org>
63946
63947         * modules/strings-tests: New file.
63948         * tests/test-strings.c: New file.
63949
63950         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63951         * lib/strings.in.h: New file.
63952         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63953         * m4/strings_h.m4: New file.
63954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63955         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63956         * modules/strings: New file.
63957         * modules/string (Makefile.am): Update.
63958         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63959         Reported by Karl Berry.
63960
63961 2007-12-01  Eric Blake  <ebb9@byu.net>
63962
63963         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63964         accommodate fix in cygwin 1.5.25.
63965
63966 2007-12-01  Jim Meyering  <meyering@redhat.com>
63967
63968         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63969         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63970         that would inhibit utf8-optimization of a regexp containing line-
63971         or buffer-anchors, e.g., `^', `$'.
63972
63973 2007-11-30  Bruno Haible  <bruno@clisp.org>
63974
63975         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63976         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63977         glthread_recursive_lock_init.
63978         * lib/lock.c (glthread_recursive_lock_init)
63979         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63980         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63981
63982 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63983
63984         New function qset_acl, like set_acl but with syscall semantics.
63985         * lib/acl.h (qset_acl): New decl.
63986         * lib/acl.c (qset_acl): New function.
63987         (set_acl): Use new function.  Use more-consistent diagnostics.
63988
63989 2007-11-28  Jim Meyering  <meyering@redhat.com>
63990
63991         * modules/physmem (License): Change from GPL to LGPLv2+.
63992
63993 2007-11-26  Bruno Haible  <bruno@clisp.org>
63994
63995         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63996         'long double' type has excess precision.
63997         Reported by Jim Meyering in
63998         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63999
64000 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64001
64002         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64003         Sync from <http://gnu.org/licenses>.
64004         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64005         with license text from same location.
64006         * doc/maintain.texi, doc/standards.texi:  Sync from
64007         <http://savannah.gnu.org/projects/gnustandards>.
64008
64009 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64010         and Jim Meyering  <meyering@redhat.com>
64011
64012         Adjust getdate' grammar to accept a slightly more regular language.
64013         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64014         Before, the former was rejected.
64015         * lib/getdate.y (digits_to_date_time): New function, factored
64016         out of ...
64017         (number): ...here.  Just call digits_to_date_time.
64018         (hybrid): New non-terminal to handle an <unsigned number,
64019         signed relative offset> sequence consistently.
64020
64021 2007-11-18  Jim Meyering  <meyering@redhat.com>
64022
64023         Pull my changes from coreutils:
64024         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64025         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64026         use of $gnulib_tool_option_extras, so that it's separated from the
64027         preceding argument.
64028
64029         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64030         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64031         parent destination directories before copying a file into place.
64032
64033 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64034
64035         bootstrap: work also with 4-argument variant of AC_INIT
64036         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64037
64038 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64039
64040         Port test-getaddrinfo to Solaris.
64041         Problem reported by Bruno Haible in
64042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64043         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64044         explanation of setting 'hints'.
64045         Don't reject an implementation merely because it returns EAI_SERVICE.
64046         (EAI_SERVICE): Define to 0 if not defined.
64047
64048 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64049
64050         The license of gnu-make and posix-shell is now "GPLed build tool".
64051         * modules/gnu-make (License): Likewise.
64052         * modules/posix-shell (License): Likewise.
64053
64054         New module posix-shell, for determining a POSIX shell
64055         or perhaps something that is close enough to a POSIX shell.
64056         * m4/posix-shell.m4: New file.
64057         * modules/posix-shell: New file.
64058
64059         * MODULES.html.sh: Mention new module.
64060
64061         New module gnu-make, for determining whether we're using GNU Make.
64062         * m4/gnu-make.m4: New file.
64063         * modules/gnu-make: New file.
64064         * MODULES.html.sh: Mention new module.
64065
64066 2007-11-14  Jim Meyering  <meyering@redhat.com>
64067
64068         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64069         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64070         use this macro to create a function _definition_.
64071         Remove useless "#undef ARGMATCH_DIE".
64072
64073 2007-11-14  Bruno Haible  <bruno@clisp.org>
64074
64075         * lib/config.charset: Update for OpenBSD 4.1.
64076         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64077
64078 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64079
64080         Document 64-bit #if problems in stdint.texi.
64081         * doc/headers/stdint.texi (stdint.h): Mention problems with
64082         64-bit-#if, and how to work around them.
64083
64084         Don't insist on 'long long int' support in the preprocessor.  It
64085         breaks too many things.  For example, PRIdMAX still uses a 'long
64086         long int' format with the latest Sun compiler, even though
64087         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64088         preprocessor problem.  This causes the latest coreutils to dump
64089         core on Solaris 10 sparc with the Sun C compiler.
64090         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64091         the troublesome expressions at configure-time, not at #if-time.
64092         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64093         preprocessor.
64094         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64095         compile-time C checks, done at 'configure'-time.
64096         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64097         * modules/inttypes (Makefile): Substitute the new symbols that
64098         gl_INTTYPES_H now generates.
64099         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64100
64101 2007-11-12  Bruno Haible  <bruno@clisp.org>
64102
64103         Tests for Unicode character classification functions.
64104
64105         * modules/unictype/bidicategory-byname-tests: New file.
64106         * modules/unictype/bidicategory-name-tests: New file.
64107         * modules/unictype/bidicategory-of-tests: New file.
64108         * modules/unictype/bidicategory-test-tests: New file.
64109         * modules/unictype/block-list-tests: New file.
64110         * modules/unictype/block-of-tests: New file.
64111         * modules/unictype/block-test-tests: New file.
64112         * modules/unictype/category-C-tests: New file.
64113         * modules/unictype/category-Cc-tests: New file.
64114         * modules/unictype/category-Cf-tests: New file.
64115         * modules/unictype/category-Cn-tests: New file.
64116         * modules/unictype/category-Co-tests: New file.
64117         * modules/unictype/category-Cs-tests: New file.
64118         * modules/unictype/category-L-tests: New file.
64119         * modules/unictype/category-Ll-tests: New file.
64120         * modules/unictype/category-Lm-tests: New file.
64121         * modules/unictype/category-Lo-tests: New file.
64122         * modules/unictype/category-Lt-tests: New file.
64123         * modules/unictype/category-Lu-tests: New file.
64124         * modules/unictype/category-M-tests: New file.
64125         * modules/unictype/category-Mc-tests: New file.
64126         * modules/unictype/category-Me-tests: New file.
64127         * modules/unictype/category-Mn-tests: New file.
64128         * modules/unictype/category-N-tests: New file.
64129         * modules/unictype/category-Nd-tests: New file.
64130         * modules/unictype/category-Nl-tests: New file.
64131         * modules/unictype/category-No-tests: New file.
64132         * modules/unictype/category-P-tests: New file.
64133         * modules/unictype/category-Pc-tests: New file.
64134         * modules/unictype/category-Pd-tests: New file.
64135         * modules/unictype/category-Pe-tests: New file.
64136         * modules/unictype/category-Pf-tests: New file.
64137         * modules/unictype/category-Pi-tests: New file.
64138         * modules/unictype/category-Po-tests: New file.
64139         * modules/unictype/category-Ps-tests: New file.
64140         * modules/unictype/category-S-tests: New file.
64141         * modules/unictype/category-Sc-tests: New file.
64142         * modules/unictype/category-Sk-tests: New file.
64143         * modules/unictype/category-Sm-tests: New file.
64144         * modules/unictype/category-So-tests: New file.
64145         * modules/unictype/category-Z-tests: New file.
64146         * modules/unictype/category-Zl-tests: New file.
64147         * modules/unictype/category-Zp-tests: New file.
64148         * modules/unictype/category-Zs-tests: New file.
64149         * modules/unictype/category-and-not-tests: New file.
64150         * modules/unictype/category-and-tests: New file.
64151         * modules/unictype/category-byname-tests: New file.
64152         * modules/unictype/category-name-tests: New file.
64153         * modules/unictype/category-none-tests: New file.
64154         * modules/unictype/category-of-tests: New file.
64155         * modules/unictype/category-or-tests: New file.
64156         * modules/unictype/category-test-withtable-tests: New file.
64157         * modules/unictype/combining-class-tests: New file.
64158         * modules/unictype/ctype-alnum-tests: New file.
64159         * modules/unictype/ctype-alpha-tests: New file.
64160         * modules/unictype/ctype-blank-tests: New file.
64161         * modules/unictype/ctype-cntrl-tests: New file.
64162         * modules/unictype/ctype-digit-tests: New file.
64163         * modules/unictype/ctype-graph-tests: New file.
64164         * modules/unictype/ctype-lower-tests: New file.
64165         * modules/unictype/ctype-print-tests: New file.
64166         * modules/unictype/ctype-punct-tests: New file.
64167         * modules/unictype/ctype-space-tests: New file.
64168         * modules/unictype/ctype-upper-tests: New file.
64169         * modules/unictype/ctype-xdigit-tests: New file.
64170         * modules/unictype/decimal-digit-tests: New file.
64171         * modules/unictype/digit-tests: New file.
64172         * modules/unictype/mirror-tests: New file.
64173         * modules/unictype/numeric-tests: New file.
64174         * modules/unictype/property-alphabetic-tests: New file.
64175         * modules/unictype/property-ascii-hex-digit-tests: New file.
64176         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64177         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64178         * modules/unictype/property-bidi-block-separator-tests: New file.
64179         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64180         * modules/unictype/property-bidi-common-separator-tests: New file.
64181         * modules/unictype/property-bidi-control-tests: New file.
64182         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64183         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64184         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64185         * modules/unictype/property-bidi-european-digit-tests: New file.
64186         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64187         * modules/unictype/property-bidi-left-to-right-tests: New file.
64188         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64189         * modules/unictype/property-bidi-other-neutral-tests: New file.
64190         * modules/unictype/property-bidi-pdf-tests: New file.
64191         * modules/unictype/property-bidi-segment-separator-tests: New file.
64192         * modules/unictype/property-bidi-whitespace-tests: New file.
64193         * modules/unictype/property-byname-tests: New file.
64194         * modules/unictype/property-combining-tests: New file.
64195         * modules/unictype/property-composite-tests: New file.
64196         * modules/unictype/property-currency-symbol-tests: New file.
64197         * modules/unictype/property-dash-tests: New file.
64198         * modules/unictype/property-decimal-digit-tests: New file.
64199         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64200         * modules/unictype/property-deprecated-tests: New file.
64201         * modules/unictype/property-diacritic-tests: New file.
64202         * modules/unictype/property-extender-tests: New file.
64203         * modules/unictype/property-format-control-tests: New file.
64204         * modules/unictype/property-grapheme-base-tests: New file.
64205         * modules/unictype/property-grapheme-extend-tests: New file.
64206         * modules/unictype/property-grapheme-link-tests: New file.
64207         * modules/unictype/property-hex-digit-tests: New file.
64208         * modules/unictype/property-hyphen-tests: New file.
64209         * modules/unictype/property-id-continue-tests: New file.
64210         * modules/unictype/property-id-start-tests: New file.
64211         * modules/unictype/property-ideographic-tests: New file.
64212         * modules/unictype/property-ids-binary-operator-tests: New file.
64213         * modules/unictype/property-ids-trinary-operator-tests: New file.
64214         * modules/unictype/property-ignorable-control-tests: New file.
64215         * modules/unictype/property-iso-control-tests: New file.
64216         * modules/unictype/property-join-control-tests: New file.
64217         * modules/unictype/property-left-of-pair-tests: New file.
64218         * modules/unictype/property-line-separator-tests: New file.
64219         * modules/unictype/property-logical-order-exception-tests: New file.
64220         * modules/unictype/property-lowercase-tests: New file.
64221         * modules/unictype/property-math-tests: New file.
64222         * modules/unictype/property-non-break-tests: New file.
64223         * modules/unictype/property-not-a-character-tests: New file.
64224         * modules/unictype/property-numeric-tests: New file.
64225         * modules/unictype/property-other-alphabetic-tests: New file.
64226         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64227         * modules/unictype/property-other-grapheme-extend-tests: New file.
64228         * modules/unictype/property-other-id-continue-tests: New file.
64229         * modules/unictype/property-other-id-start-tests: New file.
64230         * modules/unictype/property-other-lowercase-tests: New file.
64231         * modules/unictype/property-other-math-tests: New file.
64232         * modules/unictype/property-other-uppercase-tests: New file.
64233         * modules/unictype/property-paired-punctuation-tests: New file.
64234         * modules/unictype/property-paragraph-separator-tests: New file.
64235         * modules/unictype/property-pattern-syntax-tests: New file.
64236         * modules/unictype/property-pattern-white-space-tests: New file.
64237         * modules/unictype/property-private-use-tests: New file.
64238         * modules/unictype/property-punctuation-tests: New file.
64239         * modules/unictype/property-quotation-mark-tests: New file.
64240         * modules/unictype/property-radical-tests: New file.
64241         * modules/unictype/property-sentence-terminal-tests: New file.
64242         * modules/unictype/property-soft-dotted-tests: New file.
64243         * modules/unictype/property-space-tests: New file.
64244         * modules/unictype/property-terminal-punctuation-tests: New file.
64245         * modules/unictype/property-test-tests: New file.
64246         * modules/unictype/property-titlecase-tests: New file.
64247         * modules/unictype/property-unassigned-code-value-tests: New file.
64248         * modules/unictype/property-unified-ideograph-tests: New file.
64249         * modules/unictype/property-uppercase-tests: New file.
64250         * modules/unictype/property-variation-selector-tests: New file.
64251         * modules/unictype/property-white-space-tests: New file.
64252         * modules/unictype/property-xid-continue-tests: New file.
64253         * modules/unictype/property-xid-start-tests: New file.
64254         * modules/unictype/property-zero-width-tests: New file.
64255         * modules/unictype/scripts-tests: New file.
64256         * modules/unictype/syntax-c-ident-tests: New file.
64257         * modules/unictype/syntax-c-whitespace-tests: New file.
64258         * modules/unictype/syntax-java-ident-tests: New file.
64259         * modules/unictype/syntax-java-whitespace-tests: New file.
64260         * tests/unictype/test-bidi_byname.c: New file.
64261         * tests/unictype/test-bidi_name.c: New file.
64262         * tests/unictype/test-bidi_of.c: New file.
64263         * tests/unictype/test-bidi_test.c: New file.
64264         * tests/unictype/test-block_list.c: New file.
64265         * tests/unictype/test-block_of.c: New file.
64266         * tests/unictype/test-block_test.c: New file.
64267         * tests/unictype/test-categ_and.c: New file.
64268         * tests/unictype/test-categ_and_not.c: New file.
64269         * tests/unictype/test-categ_byname.c: New file.
64270         * tests/unictype/test-categ_name.c: New file.
64271         * tests/unictype/test-categ_none.c: New file.
64272         * tests/unictype/test-categ_of.c: New file.
64273         * tests/unictype/test-categ_or.c: New file.
64274         * tests/unictype/test-categ_test_withtable.c: New file.
64275         * tests/unictype/test-combining.c: New file.
64276         * tests/unictype/test-decdigit.c: New file.
64277         * tests/unictype/test-digit.c: New file.
64278         * tests/unictype/test-mirror.c: New file.
64279         * tests/unictype/test-numeric.c: New file.
64280         * tests/unictype/test-pr_byname.c: New file.
64281         * tests/unictype/test-pr_test.c: New file.
64282         * tests/unictype/test-predicate-part1.h: New file.
64283         * tests/unictype/test-predicate-part2.h: New file.
64284         * tests/unictype/test-scripts.c: New file.
64285         * tests/unictype/test-sy_c_ident.c: New file.
64286         * tests/unictype/test-sy_java_ident.c: New file.
64287
64288         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64289         for Unicode 5.0.0.
64290         * tests/unictype/test-categ_Cc.c: Likewise.
64291         * tests/unictype/test-categ_Cf.c: Likewise.
64292         * tests/unictype/test-categ_Cn.c: Likewise.
64293         * tests/unictype/test-categ_Co.c: Likewise.
64294         * tests/unictype/test-categ_Cs.c: Likewise.
64295         * tests/unictype/test-categ_L.c: Likewise.
64296         * tests/unictype/test-categ_Ll.c: Likewise.
64297         * tests/unictype/test-categ_Lm.c: Likewise.
64298         * tests/unictype/test-categ_Lo.c: Likewise.
64299         * tests/unictype/test-categ_Lt.c: Likewise.
64300         * tests/unictype/test-categ_Lu.c: Likewise.
64301         * tests/unictype/test-categ_M.c: Likewise.
64302         * tests/unictype/test-categ_Mc.c: Likewise.
64303         * tests/unictype/test-categ_Me.c: Likewise.
64304         * tests/unictype/test-categ_Mn.c: Likewise.
64305         * tests/unictype/test-categ_N.c: Likewise.
64306         * tests/unictype/test-categ_Nd.c: Likewise.
64307         * tests/unictype/test-categ_Nl.c: Likewise.
64308         * tests/unictype/test-categ_No.c: Likewise.
64309         * tests/unictype/test-categ_P.c: Likewise.
64310         * tests/unictype/test-categ_Pc.c: Likewise.
64311         * tests/unictype/test-categ_Pd.c: Likewise.
64312         * tests/unictype/test-categ_Pe.c: Likewise.
64313         * tests/unictype/test-categ_Pf.c: Likewise.
64314         * tests/unictype/test-categ_Pi.c: Likewise.
64315         * tests/unictype/test-categ_Po.c: Likewise.
64316         * tests/unictype/test-categ_Ps.c: Likewise.
64317         * tests/unictype/test-categ_S.c: Likewise.
64318         * tests/unictype/test-categ_Sc.c: Likewise.
64319         * tests/unictype/test-categ_Sk.c: Likewise.
64320         * tests/unictype/test-categ_Sm.c: Likewise.
64321         * tests/unictype/test-categ_So.c: Likewise.
64322         * tests/unictype/test-categ_Z.c: Likewise.
64323         * tests/unictype/test-categ_Zl.c: Likewise.
64324         * tests/unictype/test-categ_Zp.c: Likewise.
64325         * tests/unictype/test-categ_Zs.c: Likewise.
64326         * tests/unictype/test-ctype_alnum.c: Likewise.
64327         * tests/unictype/test-ctype_alpha.c: Likewise.
64328         * tests/unictype/test-ctype_blank.c: Likewise.
64329         * tests/unictype/test-ctype_cntrl.c: Likewise.
64330         * tests/unictype/test-ctype_digit.c: Likewise.
64331         * tests/unictype/test-ctype_graph.c: Likewise.
64332         * tests/unictype/test-ctype_lower.c: Likewise.
64333         * tests/unictype/test-ctype_print.c: Likewise.
64334         * tests/unictype/test-ctype_punct.c: Likewise.
64335         * tests/unictype/test-ctype_space.c: Likewise.
64336         * tests/unictype/test-ctype_upper.c: Likewise.
64337         * tests/unictype/test-ctype_xdigit.c: Likewise.
64338         * tests/unictype/test-decdigit.h: Likewise.
64339         * tests/unictype/test-digit.h: Likewise.
64340         * tests/unictype/test-numeric.h: Likewise.
64341         * tests/unictype/test-pr_alphabetic.c: Likewise.
64342         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64343         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64344         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64345         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64346         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64347         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64348         * tests/unictype/test-pr_bidi_control.c: Likewise.
64349         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64350         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64351         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64352         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64353         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64354         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64355         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64356         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64357         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64358         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64359         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64360         * tests/unictype/test-pr_combining.c: Likewise.
64361         * tests/unictype/test-pr_composite.c: Likewise.
64362         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64363         * tests/unictype/test-pr_dash.c: Likewise.
64364         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64365         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64366         * tests/unictype/test-pr_deprecated.c: Likewise.
64367         * tests/unictype/test-pr_diacritic.c: Likewise.
64368         * tests/unictype/test-pr_extender.c: Likewise.
64369         * tests/unictype/test-pr_format_control.c: Likewise.
64370         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64371         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64372         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64373         * tests/unictype/test-pr_hex_digit.c: Likewise.
64374         * tests/unictype/test-pr_hyphen.c: Likewise.
64375         * tests/unictype/test-pr_id_continue.c: Likewise.
64376         * tests/unictype/test-pr_id_start.c: Likewise.
64377         * tests/unictype/test-pr_ideographic.c: Likewise.
64378         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64379         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64380         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64381         * tests/unictype/test-pr_iso_control.c: Likewise.
64382         * tests/unictype/test-pr_join_control.c: Likewise.
64383         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64384         * tests/unictype/test-pr_line_separator.c: Likewise.
64385         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64386         * tests/unictype/test-pr_lowercase.c: Likewise.
64387         * tests/unictype/test-pr_math.c: Likewise.
64388         * tests/unictype/test-pr_non_break.c: Likewise.
64389         * tests/unictype/test-pr_not_a_character.c: Likewise.
64390         * tests/unictype/test-pr_numeric.c: Likewise.
64391         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64392         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64393         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64394         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64395         * tests/unictype/test-pr_other_id_start.c: Likewise.
64396         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64397         * tests/unictype/test-pr_other_math.c: Likewise.
64398         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64399         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64400         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64401         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64402         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64403         * tests/unictype/test-pr_private_use.c: Likewise.
64404         * tests/unictype/test-pr_punctuation.c: Likewise.
64405         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64406         * tests/unictype/test-pr_radical.c: Likewise.
64407         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64408         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64409         * tests/unictype/test-pr_space.c: Likewise.
64410         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64411         * tests/unictype/test-pr_titlecase.c: Likewise.
64412         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64413         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64414         * tests/unictype/test-pr_uppercase.c: Likewise.
64415         * tests/unictype/test-pr_variation_selector.c: Likewise.
64416         * tests/unictype/test-pr_white_space.c: Likewise.
64417         * tests/unictype/test-pr_xid_continue.c: Likewise.
64418         * tests/unictype/test-pr_xid_start.c: Likewise.
64419         * tests/unictype/test-pr_zero_width.c: Likewise.
64420         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64421         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64422
64423 2007-11-12  Bruno Haible  <bruno@clisp.org>
64424
64425         Unicode character classification functions.
64426         * lib/unictype.h: New file.
64427         * modules/unictype/base: New file.
64428         * modules/unictype/category-L: New file.
64429         * modules/unictype/category-Lu: New file.
64430         * modules/unictype/category-Ll: New file.
64431         * modules/unictype/category-Lt: New file.
64432         * modules/unictype/category-Lm: New file.
64433         * modules/unictype/category-Lo: New file.
64434         * modules/unictype/category-M: New file.
64435         * modules/unictype/category-Mn: New file.
64436         * modules/unictype/category-Mc: New file.
64437         * modules/unictype/category-Me: New file.
64438         * modules/unictype/category-N: New file.
64439         * modules/unictype/category-Nd: New file.
64440         * modules/unictype/category-Nl: New file.
64441         * modules/unictype/category-No: New file.
64442         * modules/unictype/category-P: New file.
64443         * modules/unictype/category-Pc: New file.
64444         * modules/unictype/category-Pd: New file.
64445         * modules/unictype/category-Ps: New file.
64446         * modules/unictype/category-Pe: New file.
64447         * modules/unictype/category-Pi: New file.
64448         * modules/unictype/category-Pf: New file.
64449         * modules/unictype/category-Po: New file.
64450         * modules/unictype/category-S: New file.
64451         * modules/unictype/category-Sm: New file.
64452         * modules/unictype/category-Sc: New file.
64453         * modules/unictype/category-Sk: New file.
64454         * modules/unictype/category-So: New file.
64455         * modules/unictype/category-Z: New file.
64456         * modules/unictype/category-Zs: New file.
64457         * modules/unictype/category-Zl: New file.
64458         * modules/unictype/category-Zp: New file.
64459         * modules/unictype/category-C: New file.
64460         * modules/unictype/category-Cc: New file.
64461         * modules/unictype/category-Cf: New file.
64462         * modules/unictype/category-Cs: New file.
64463         * modules/unictype/category-Co: New file.
64464         * modules/unictype/category-Cn: New file.
64465         * modules/unictype/category-or: New file.
64466         * modules/unictype/category-of: New file.
64467         * modules/unictype/category-test: New file.
64468         * modules/unictype/category-test-withtable: New file.
64469         * modules/unictype/category-byname: New file.
64470         * modules/unictype/category-none: New file.
64471         * modules/unictype/category-and: New file.
64472         * modules/unictype/category-and-not: New file.
64473         * modules/unictype/category-name: New file.
64474         * modules/unictype/combining-class: New file.
64475         * modules/unictype/category-all: New file.
64476         * modules/unictype/bidicategory-all: New file.
64477         * modules/unictype/bidicategory-byname: New file.
64478         * modules/unictype/bidicategory-name: New file.
64479         * modules/unictype/bidicategory-of: New file.
64480         * modules/unictype/bidicategory-test: New file.
64481         * modules/unictype/decimal-digit: New file.
64482         * modules/unictype/digit: New file.
64483         * modules/unictype/numeric: New file.
64484         * modules/unictype/mirror: New file.
64485         * modules/unictype/property-white-space: New file.
64486         * modules/unictype/property-alphabetic: New file.
64487         * modules/unictype/property-other-alphabetic: New file.
64488         * modules/unictype/property-not-a-character: New file.
64489         * modules/unictype/property-default-ignorable-code-point: New file.
64490         * modules/unictype/property-other-default-ignorable-code-point: New
64491         file.
64492         * modules/unictype/property-deprecated: New file.
64493         * modules/unictype/property-logical-order-exception: New file.
64494         * modules/unictype/property-variation-selector: New file.
64495         * modules/unictype/property-private-use: New file.
64496         * modules/unictype/property-unassigned-code-value: New file.
64497         * modules/unictype/property-uppercase: New file.
64498         * modules/unictype/property-other-uppercase: New file.
64499         * modules/unictype/property-lowercase: New file.
64500         * modules/unictype/property-other-lowercase: New file.
64501         * modules/unictype/property-titlecase: New file.
64502         * modules/unictype/property-soft-dotted: New file.
64503         * modules/unictype/property-id-start: New file.
64504         * modules/unictype/property-other-id-start: New file.
64505         * modules/unictype/property-id-continue: New file.
64506         * modules/unictype/property-other-id-continue: New file.
64507         * modules/unictype/property-xid-start: New file.
64508         * modules/unictype/property-xid-continue: New file.
64509         * modules/unictype/property-pattern-white-space: New file.
64510         * modules/unictype/property-pattern-syntax: New file.
64511         * modules/unictype/property-join-control: New file.
64512         * modules/unictype/property-grapheme-base: New file.
64513         * modules/unictype/property-grapheme-extend: New file.
64514         * modules/unictype/property-other-grapheme-extend: New file.
64515         * modules/unictype/property-grapheme-link: New file.
64516         * modules/unictype/property-bidi-control: New file.
64517         * modules/unictype/property-bidi-left-to-right: New file.
64518         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64519         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64520         * modules/unictype/property-bidi-european-digit: New file.
64521         * modules/unictype/property-bidi-eur-num-separator: New file.
64522         * modules/unictype/property-bidi-eur-num-terminator: New file.
64523         * modules/unictype/property-bidi-arabic-digit: New file.
64524         * modules/unictype/property-bidi-common-separator: New file.
64525         * modules/unictype/property-bidi-block-separator: New file.
64526         * modules/unictype/property-bidi-segment-separator: New file.
64527         * modules/unictype/property-bidi-whitespace: New file.
64528         * modules/unictype/property-bidi-non-spacing-mark: New file.
64529         * modules/unictype/property-bidi-boundary-neutral: New file.
64530         * modules/unictype/property-bidi-pdf: New file.
64531         * modules/unictype/property-bidi-embedding-or-override: New file.
64532         * modules/unictype/property-bidi-other-neutral: New file.
64533         * modules/unictype/property-hex-digit: New file.
64534         * modules/unictype/property-ascii-hex-digit: New file.
64535         * modules/unictype/property-ideographic: New file.
64536         * modules/unictype/property-unified-ideograph: New file.
64537         * modules/unictype/property-radical: New file.
64538         * modules/unictype/property-ids-binary-operator: New file.
64539         * modules/unictype/property-ids-trinary-operator: New file.
64540         * modules/unictype/property-zero-width: New file.
64541         * modules/unictype/property-space: New file.
64542         * modules/unictype/property-non-break: New file.
64543         * modules/unictype/property-iso-control: New file.
64544         * modules/unictype/property-format-control: New file.
64545         * modules/unictype/property-dash: New file.
64546         * modules/unictype/property-hyphen: New file.
64547         * modules/unictype/property-punctuation: New file.
64548         * modules/unictype/property-line-separator: New file.
64549         * modules/unictype/property-paragraph-separator: New file.
64550         * modules/unictype/property-quotation-mark: New file.
64551         * modules/unictype/property-sentence-terminal: New file.
64552         * modules/unictype/property-terminal-punctuation: New file.
64553         * modules/unictype/property-currency-symbol: New file.
64554         * modules/unictype/property-math: New file.
64555         * modules/unictype/property-other-math: New file.
64556         * modules/unictype/property-paired-punctuation: New file.
64557         * modules/unictype/property-left-of-pair: New file.
64558         * modules/unictype/property-combining: New file.
64559         * modules/unictype/property-composite: New file.
64560         * modules/unictype/property-decimal-digit: New file.
64561         * modules/unictype/property-numeric: New file.
64562         * modules/unictype/property-diacritic: New file.
64563         * modules/unictype/property-extender: New file.
64564         * modules/unictype/property-ignorable-control: New file.
64565         * modules/unictype/property-test: New file.
64566         * modules/unictype/property-byname: New file.
64567         * modules/unictype/property-all: New file.
64568         * modules/unictype/scripts: New file.
64569         * modules/unictype/scripts-all: New file.
64570         * modules/unictype/block-of: New file.
64571         * modules/unictype/block-test: New file.
64572         * modules/unictype/block-list: New file.
64573         * modules/unictype/block-all: New file.
64574         * modules/unictype/syntax-c-whitespace: New file.
64575         * modules/unictype/syntax-java-whitespace: New file.
64576         * modules/unictype/syntax-c-ident: New file.
64577         * modules/unictype/syntax-java-ident: New file.
64578         * modules/unictype/ctype-alnum: New file.
64579         * modules/unictype/ctype-alpha: New file.
64580         * modules/unictype/ctype-cntrl: New file.
64581         * modules/unictype/ctype-digit: New file.
64582         * modules/unictype/ctype-graph: New file.
64583         * modules/unictype/ctype-lower: New file.
64584         * modules/unictype/ctype-print: New file.
64585         * modules/unictype/ctype-punct: New file.
64586         * modules/unictype/ctype-space: New file.
64587         * modules/unictype/ctype-upper: New file.
64588         * modules/unictype/ctype-xdigit: New file.
64589         * modules/unictype/ctype-blank: New file.
64590         * lib/unictype/bidi_byname.c: New file.
64591         * lib/unictype/bidi_name.c: New file.
64592         * lib/unictype/bidi_of.c: New file.
64593         * lib/unictype/bidi_test.c: New file.
64594         * lib/unictype/bitmap.h: New file.
64595         * lib/unictype/block_test.c: New file.
64596         * lib/unictype/blocks.c: New file.
64597         * lib/unictype/categ_C.c: New file.
64598         * lib/unictype/categ_Cc.c: New file.
64599         * lib/unictype/categ_Cf.c: New file.
64600         * lib/unictype/categ_Cn.c: New file.
64601         * lib/unictype/categ_Co.c: New file.
64602         * lib/unictype/categ_Cs.c: New file.
64603         * lib/unictype/categ_L.c: New file.
64604         * lib/unictype/categ_Ll.c: New file.
64605         * lib/unictype/categ_Lm.c: New file.
64606         * lib/unictype/categ_Lo.c: New file.
64607         * lib/unictype/categ_Lt.c: New file.
64608         * lib/unictype/categ_Lu.c: New file.
64609         * lib/unictype/categ_M.c: New file.
64610         * lib/unictype/categ_Mc.c: New file.
64611         * lib/unictype/categ_Me.c: New file.
64612         * lib/unictype/categ_Mn.c: New file.
64613         * lib/unictype/categ_N.c: New file.
64614         * lib/unictype/categ_Nd.c: New file.
64615         * lib/unictype/categ_Nl.c: New file.
64616         * lib/unictype/categ_No.c: New file.
64617         * lib/unictype/categ_P.c: New file.
64618         * lib/unictype/categ_Pc.c: New file.
64619         * lib/unictype/categ_Pd.c: New file.
64620         * lib/unictype/categ_Pe.c: New file.
64621         * lib/unictype/categ_Pf.c: New file.
64622         * lib/unictype/categ_Pi.c: New file.
64623         * lib/unictype/categ_Po.c: New file.
64624         * lib/unictype/categ_Ps.c: New file.
64625         * lib/unictype/categ_S.c: New file.
64626         * lib/unictype/categ_Sc.c: New file.
64627         * lib/unictype/categ_Sk.c: New file.
64628         * lib/unictype/categ_Sm.c: New file.
64629         * lib/unictype/categ_So.c: New file.
64630         * lib/unictype/categ_Z.c: New file.
64631         * lib/unictype/categ_Zl.c: New file.
64632         * lib/unictype/categ_Zp.c: New file.
64633         * lib/unictype/categ_Zs.c: New file.
64634         * lib/unictype/categ_and.c: New file.
64635         * lib/unictype/categ_and_not.c: New file.
64636         * lib/unictype/categ_byname.c: New file.
64637         * lib/unictype/categ_name.c: New file.
64638         * lib/unictype/categ_none.c: New file.
64639         * lib/unictype/categ_of.c: New file.
64640         * lib/unictype/categ_or.c: New file.
64641         * lib/unictype/categ_test.c: New file.
64642         * lib/unictype/combining.c: New file.
64643         * lib/unictype/ctype_alnum.c: New file.
64644         * lib/unictype/ctype_alpha.c: New file.
64645         * lib/unictype/ctype_blank.c: New file.
64646         * lib/unictype/ctype_cntrl.c: New file.
64647         * lib/unictype/ctype_digit.c: New file.
64648         * lib/unictype/ctype_graph.c: New file.
64649         * lib/unictype/ctype_lower.c: New file.
64650         * lib/unictype/ctype_print.c: New file.
64651         * lib/unictype/ctype_punct.c: New file.
64652         * lib/unictype/ctype_space.c: New file.
64653         * lib/unictype/ctype_upper.c: New file.
64654         * lib/unictype/ctype_xdigit.c: New file.
64655         * lib/unictype/decdigit.c: New file.
64656         * lib/unictype/digit.c: New file.
64657         * lib/unictype/identsyntaxmap.h: New file.
64658         * lib/unictype/mirror.c: New file.
64659         * lib/unictype/numeric.c: New file.
64660         * lib/unictype/pr_alphabetic.c: New file.
64661         * lib/unictype/pr_ascii_hex_digit.c: New file.
64662         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64663         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64664         * lib/unictype/pr_bidi_block_separator.c: New file.
64665         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64666         * lib/unictype/pr_bidi_common_separator.c: New file.
64667         * lib/unictype/pr_bidi_control.c: New file.
64668         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64669         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64670         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64671         * lib/unictype/pr_bidi_european_digit.c: New file.
64672         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64673         * lib/unictype/pr_bidi_left_to_right.c: New file.
64674         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64675         * lib/unictype/pr_bidi_other_neutral.c: New file.
64676         * lib/unictype/pr_bidi_pdf.c: New file.
64677         * lib/unictype/pr_bidi_segment_separator.c: New file.
64678         * lib/unictype/pr_bidi_whitespace.c: New file.
64679         * lib/unictype/pr_byname.c: New file.
64680         * lib/unictype/pr_byname.gperf: New file.
64681         * lib/unictype/pr_combining.c: New file.
64682         * lib/unictype/pr_composite.c: New file.
64683         * lib/unictype/pr_currency_symbol.c: New file.
64684         * lib/unictype/pr_dash.c: New file.
64685         * lib/unictype/pr_decimal_digit.c: New file.
64686         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64687         * lib/unictype/pr_deprecated.c: New file.
64688         * lib/unictype/pr_diacritic.c: New file.
64689         * lib/unictype/pr_extender.c: New file.
64690         * lib/unictype/pr_format_control.c: New file.
64691         * lib/unictype/pr_grapheme_base.c: New file.
64692         * lib/unictype/pr_grapheme_extend.c: New file.
64693         * lib/unictype/pr_grapheme_link.c: New file.
64694         * lib/unictype/pr_hex_digit.c: New file.
64695         * lib/unictype/pr_hyphen.c: New file.
64696         * lib/unictype/pr_id_continue.c: New file.
64697         * lib/unictype/pr_id_start.c: New file.
64698         * lib/unictype/pr_ideographic.c: New file.
64699         * lib/unictype/pr_ids_binary_operator.c: New file.
64700         * lib/unictype/pr_ids_trinary_operator.c: New file.
64701         * lib/unictype/pr_ignorable_control.c: New file.
64702         * lib/unictype/pr_iso_control.c: New file.
64703         * lib/unictype/pr_join_control.c: New file.
64704         * lib/unictype/pr_left_of_pair.c: New file.
64705         * lib/unictype/pr_line_separator.c: New file.
64706         * lib/unictype/pr_logical_order_exception.c: New file.
64707         * lib/unictype/pr_lowercase.c: New file.
64708         * lib/unictype/pr_math.c: New file.
64709         * lib/unictype/pr_non_break.c: New file.
64710         * lib/unictype/pr_not_a_character.c: New file.
64711         * lib/unictype/pr_numeric.c: New file.
64712         * lib/unictype/pr_other_alphabetic.c: New file.
64713         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64714         * lib/unictype/pr_other_grapheme_extend.c: New file.
64715         * lib/unictype/pr_other_id_continue.c: New file.
64716         * lib/unictype/pr_other_id_start.c: New file.
64717         * lib/unictype/pr_other_lowercase.c: New file.
64718         * lib/unictype/pr_other_math.c: New file.
64719         * lib/unictype/pr_other_uppercase.c: New file.
64720         * lib/unictype/pr_paired_punctuation.c: New file.
64721         * lib/unictype/pr_paragraph_separator.c: New file.
64722         * lib/unictype/pr_pattern_syntax.c: New file.
64723         * lib/unictype/pr_pattern_white_space.c: New file.
64724         * lib/unictype/pr_private_use.c: New file.
64725         * lib/unictype/pr_punctuation.c: New file.
64726         * lib/unictype/pr_quotation_mark.c: New file.
64727         * lib/unictype/pr_radical.c: New file.
64728         * lib/unictype/pr_sentence_terminal.c: New file.
64729         * lib/unictype/pr_soft_dotted.c: New file.
64730         * lib/unictype/pr_space.c: New file.
64731         * lib/unictype/pr_terminal_punctuation.c: New file.
64732         * lib/unictype/pr_test.c: New file.
64733         * lib/unictype/pr_titlecase.c: New file.
64734         * lib/unictype/pr_unassigned_code_value.c: New file.
64735         * lib/unictype/pr_unified_ideograph.c: New file.
64736         * lib/unictype/pr_uppercase.c: New file.
64737         * lib/unictype/pr_variation_selector.c: New file.
64738         * lib/unictype/pr_white_space.c: New file.
64739         * lib/unictype/pr_xid_continue.c: New file.
64740         * lib/unictype/pr_xid_start.c: New file.
64741         * lib/unictype/pr_zero_width.c: New file.
64742         * lib/unictype/scripts.c: New file.
64743         * lib/unictype/sy_c_ident.c: New file.
64744         * lib/unictype/sy_c_whitespace.c: New file.
64745         * lib/unictype/sy_java_ident.c: New file.
64746         * lib/unictype/sy_java_whitespace.c: New file.
64747
64748         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64749         Unicode 5.0.0.
64750         * lib/unictype/blocks.h: Likewise.
64751         * lib/unictype/categ_C.h: Likewise.
64752         * lib/unictype/categ_Cc.h: Likewise.
64753         * lib/unictype/categ_Cf.h: Likewise.
64754         * lib/unictype/categ_Cn.h: Likewise.
64755         * lib/unictype/categ_Co.h: Likewise.
64756         * lib/unictype/categ_Cs.h: Likewise.
64757         * lib/unictype/categ_L.h: Likewise.
64758         * lib/unictype/categ_Ll.h: Likewise.
64759         * lib/unictype/categ_Lm.h: Likewise.
64760         * lib/unictype/categ_Lo.h: Likewise.
64761         * lib/unictype/categ_Lt.h: Likewise.
64762         * lib/unictype/categ_Lu.h: Likewise.
64763         * lib/unictype/categ_M.h: Likewise.
64764         * lib/unictype/categ_Mc.h: Likewise.
64765         * lib/unictype/categ_Me.h: Likewise.
64766         * lib/unictype/categ_Mn.h: Likewise.
64767         * lib/unictype/categ_N.h: Likewise.
64768         * lib/unictype/categ_Nd.h: Likewise.
64769         * lib/unictype/categ_Nl.h: Likewise.
64770         * lib/unictype/categ_No.h: Likewise.
64771         * lib/unictype/categ_P.h: Likewise.
64772         * lib/unictype/categ_Pc.h: Likewise.
64773         * lib/unictype/categ_Pd.h: Likewise.
64774         * lib/unictype/categ_Pe.h: Likewise.
64775         * lib/unictype/categ_Pf.h: Likewise.
64776         * lib/unictype/categ_Pi.h: Likewise.
64777         * lib/unictype/categ_Po.h: Likewise.
64778         * lib/unictype/categ_Ps.h: Likewise.
64779         * lib/unictype/categ_S.h: Likewise.
64780         * lib/unictype/categ_Sc.h: Likewise.
64781         * lib/unictype/categ_Sk.h: Likewise.
64782         * lib/unictype/categ_Sm.h: Likewise.
64783         * lib/unictype/categ_So.h: Likewise.
64784         * lib/unictype/categ_Z.h: Likewise.
64785         * lib/unictype/categ_Zl.h: Likewise.
64786         * lib/unictype/categ_Zp.h: Likewise.
64787         * lib/unictype/categ_Zs.h: Likewise.
64788         * lib/unictype/categ_of.h: Likewise.
64789         * lib/unictype/combining.h: Likewise.
64790         * lib/unictype/ctype_alnum.h: Likewise.
64791         * lib/unictype/ctype_alpha.h: Likewise.
64792         * lib/unictype/ctype_blank.h: Likewise.
64793         * lib/unictype/ctype_cntrl.h: Likewise.
64794         * lib/unictype/ctype_digit.h: Likewise.
64795         * lib/unictype/ctype_graph.h: Likewise.
64796         * lib/unictype/ctype_lower.h: Likewise.
64797         * lib/unictype/ctype_print.h: Likewise.
64798         * lib/unictype/ctype_punct.h: Likewise.
64799         * lib/unictype/ctype_space.h: Likewise.
64800         * lib/unictype/ctype_upper.h: Likewise.
64801         * lib/unictype/ctype_xdigit.h: Likewise.
64802         * lib/unictype/decdigit.h: Likewise.
64803         * lib/unictype/digit.h: Likewise.
64804         * lib/unictype/mirror.h: Likewise.
64805         * lib/unictype/numeric.h: Likewise.
64806         * lib/unictype/pr_alphabetic.h: Likewise.
64807         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
64808         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
64809         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
64810         * lib/unictype/pr_bidi_block_separator.h: Likewise.
64811         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
64812         * lib/unictype/pr_bidi_common_separator.h: Likewise.
64813         * lib/unictype/pr_bidi_control.h: Likewise.
64814         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
64815         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
64816         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
64817         * lib/unictype/pr_bidi_european_digit.h: Likewise.
64818         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
64819         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
64820         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
64821         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
64822         * lib/unictype/pr_bidi_pdf.h: Likewise.
64823         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
64824         * lib/unictype/pr_bidi_whitespace.h: Likewise.
64825         * lib/unictype/pr_combining.h: Likewise.
64826         * lib/unictype/pr_composite.h: Likewise.
64827         * lib/unictype/pr_currency_symbol.h: Likewise.
64828         * lib/unictype/pr_dash.h: Likewise.
64829         * lib/unictype/pr_decimal_digit.h: Likewise.
64830         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
64831         * lib/unictype/pr_deprecated.h: Likewise.
64832         * lib/unictype/pr_diacritic.h: Likewise.
64833         * lib/unictype/pr_extender.h: Likewise.
64834         * lib/unictype/pr_format_control.h: Likewise.
64835         * lib/unictype/pr_grapheme_base.h: Likewise.
64836         * lib/unictype/pr_grapheme_extend.h: Likewise.
64837         * lib/unictype/pr_grapheme_link.h: Likewise.
64838         * lib/unictype/pr_hex_digit.h: Likewise.
64839         * lib/unictype/pr_hyphen.h: Likewise.
64840         * lib/unictype/pr_id_continue.h: Likewise.
64841         * lib/unictype/pr_id_start.h: Likewise.
64842         * lib/unictype/pr_ideographic.h: Likewise.
64843         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64844         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64845         * lib/unictype/pr_ignorable_control.h: Likewise.
64846         * lib/unictype/pr_iso_control.h: Likewise.
64847         * lib/unictype/pr_join_control.h: Likewise.
64848         * lib/unictype/pr_left_of_pair.h: Likewise.
64849         * lib/unictype/pr_line_separator.h: Likewise.
64850         * lib/unictype/pr_logical_order_exception.h: Likewise.
64851         * lib/unictype/pr_lowercase.h: Likewise.
64852         * lib/unictype/pr_math.h: Likewise.
64853         * lib/unictype/pr_non_break.h: Likewise.
64854         * lib/unictype/pr_not_a_character.h: Likewise.
64855         * lib/unictype/pr_numeric.h: Likewise.
64856         * lib/unictype/pr_other_alphabetic.h: Likewise.
64857         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64858         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64859         * lib/unictype/pr_other_id_continue.h: Likewise.
64860         * lib/unictype/pr_other_id_start.h: Likewise.
64861         * lib/unictype/pr_other_lowercase.h: Likewise.
64862         * lib/unictype/pr_other_math.h: Likewise.
64863         * lib/unictype/pr_other_uppercase.h: Likewise.
64864         * lib/unictype/pr_paired_punctuation.h: Likewise.
64865         * lib/unictype/pr_paragraph_separator.h: Likewise.
64866         * lib/unictype/pr_pattern_syntax.h: Likewise.
64867         * lib/unictype/pr_pattern_white_space.h: Likewise.
64868         * lib/unictype/pr_private_use.h: Likewise.
64869         * lib/unictype/pr_punctuation.h: Likewise.
64870         * lib/unictype/pr_quotation_mark.h: Likewise.
64871         * lib/unictype/pr_radical.h: Likewise.
64872         * lib/unictype/pr_sentence_terminal.h: Likewise.
64873         * lib/unictype/pr_soft_dotted.h: Likewise.
64874         * lib/unictype/pr_space.h: Likewise.
64875         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64876         * lib/unictype/pr_titlecase.h: Likewise.
64877         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64878         * lib/unictype/pr_unified_ideograph.h: Likewise.
64879         * lib/unictype/pr_uppercase.h: Likewise.
64880         * lib/unictype/pr_variation_selector.h: Likewise.
64881         * lib/unictype/pr_white_space.h: Likewise.
64882         * lib/unictype/pr_xid_continue.h: Likewise.
64883         * lib/unictype/pr_xid_start.h: Likewise.
64884         * lib/unictype/pr_zero_width.h: Likewise.
64885         * lib/unictype/scripts.h: Likewise.
64886         * lib/unictype/scripts_byname.gperf: Likewise.
64887         * lib/unictype/sy_c_ident.h: Likewise.
64888         * lib/unictype/sy_c_whitespace.h: Likewise.
64889         * lib/unictype/sy_java_ident.h: Likewise.
64890         * lib/unictype/sy_java_whitespace.h: Likewise.
64891
64892         * lib/unictype/Makefile: New file.
64893         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64894         glibc.
64895         * lib/unictype/3level.h: New file, copied from glibc.
64896         * lib/unictype/3levelbit.h: New file.
64897
64898 2007-11-11  Bruno Haible  <bruno@clisp.org>
64899
64900         * modules/gperf: New file.
64901         * modules/iconv_open (Depends-on): Add it.
64902         (Makefile.am): Remove the GPERF definition.
64903
64904 2007-11-11  Bruno Haible  <bruno@clisp.org>
64905
64906         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64907         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64908
64909 2007-11-11  Bruno Haible  <bruno@clisp.org>
64910
64911         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64912         (usage): Remove function.
64913
64914 2007-11-11  Bruno Haible  <bruno@clisp.org>
64915
64916         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64917         gl_FUNC_CEILF_LIBS.
64918         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64919         gl_FUNC_CEIL_LIBS.
64920         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64921         gl_FUNC_CEILL_LIBS.
64922         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64923         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64924         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64925
64926 2007-11-11  Bruno Haible  <bruno@clisp.org>
64927
64928         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64929         roundf were declared but do not exist on functions.
64930         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64931         roundl were declared but do not exist on functions.
64932         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64933         HAVE_FLOORL_AND_CEILL, respectively.
64934         Needed for Sun C on Solaris 10.
64935
64936 2007-11-11  Bruno Haible  <bruno@clisp.org>
64937
64938         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64939         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64940         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64941         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64942         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64943         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64944         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64945         HAVE_DECL_ROUNDF.
64946         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64947         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64949         of HAVE_DECL_ROUND*.
64950         * modules/math (Makefile.am): Update.
64951
64952 2007-11-10  Bruno Haible  <bruno@clisp.org>
64953
64954         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64955         ptrdiff_t as m4/intl.m4.
64956
64957 2007-11-10  Jim Meyering  <meyering@redhat.com>
64958
64959         Avoid link failure for the argmatch test.
64960         * tests/test-argmatch.c (usage): Define function to avoid a link
64961         failure: argmatch_die requires a usage function.
64962
64963 2007-11-09  Bruno Haible  <bruno@clisp.org>
64964
64965         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64966         * doc/functions/vsnprintf.texi: Likewise.
64967         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64968         with a size argument < 2.
64969
64970 2007-11-09  Bruno Haible  <bruno@clisp.org>
64971
64972         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64973         buffer. Fixes an inefficiency introduced on 2007-11-03.
64974
64975 2007-11-09  Bruno Haible  <bruno@clisp.org>
64976
64977         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64978         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64979
64980 2007-11-08  Jim Meyering  <meyering@redhat.com>
64981
64982         Change cache variable name prefix "jm_" to "gl_" everywhere.
64983         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64984         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64985         * m4/uptime.m4: s/gl_/jm_/
64986
64987 2007-11-07  Bruno Haible  <bruno@clisp.org>
64988
64989         Update to GNU gettext 0.17.
64990         * m4/intl.m4: Update to GNU gettext 0.17.
64991         * m4/po.m4: Likewise.
64992         * modules/gettext (Files): Remove m4/ulonglong.m4.
64993         (configure.ac): Require gettext infrastructure from version 0.17.
64994
64995 2007-11-06  Bruno Haible  <bruno@clisp.org>
64996
64997         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64998         symbolic values are not defined in a public header.
64999         * lib/freadable.c (freadable) [QNX]: Likewise.
65000         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65001         * lib/freading.c (freading) [QNX]: Likewise.
65002         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65003         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65004         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65005         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65006         Reported by Alain Magloire.
65007
65008         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65009
65010 2007-11-05  Bruno Haible  <bruno@clisp.org>
65011
65012         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65013         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65014         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65015         Reported by Eric Blake.
65016
65017 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65018             Bruno Haible  <bruno@clisp.org>
65019
65020         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65021         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65022         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65023         (malloc): Undefine also before including <stdlib.h>.
65024         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65025         Needed on OSF/1 4.0.
65026
65027 2007-11-05  Jim Meyering  <meyering@redhat.com>
65028
65029         git-version-gen: sync from coreutils.
65030         * build-aux/git-version-gen: Add comments.
65031         Change the first '-' to '.' in the snapshot version string,
65032         e.g., 6.9-377-08144 -> 6.9.377-08144
65033         Remove first parameter.
65034         Don't declare a version "-dirty" merely because a time
65035         stamp has changed.
65036
65037 2007-11-04  Bruno Haible  <bruno@clisp.org>
65038
65039         * lib/lock.h: Protect all macro definitions containing an 'if'
65040         statement through a "do { ... } while (0)".
65041         * lib/tls.h: Likewise.
65042
65043 2007-11-04  Bruno Haible  <bruno@clisp.org>
65044
65045         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65046
65047 2007-11-04  Bruno Haible  <bruno@clisp.org>
65048
65049         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65050         * modules/fprintf-posix (Depends-on): Add nocrash.
65051         * modules/snprintf-posix (Depends-on): Likewise.
65052         * modules/sprintf-posix (Depends-on): Likewise.
65053         * modules/vasnprintf-posix (Depends-on): Likewise.
65054         * modules/vasprintf-posix (Depends-on): Likewise.
65055         * modules/vfprintf-posix (Depends-on): Likewise.
65056         * modules/vsnprintf-posix (Depends-on): Likewise.
65057         * modules/vsprintf-posix (Depends-on): Likewise.
65058         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65059         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65060         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65061         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65062         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65063         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65064         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65065
65066 2007-11-04  Bruno Haible  <bruno@clisp.org>
65067
65068         * modules/nocrash: New file.
65069         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65070         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65071
65072 2007-11-04  Bruno Haible  <bruno@clisp.org>
65073
65074         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65075         precision handling.
65076         * tests/test-vasprintf-posix.c (test_function): Likewise.
65077         * tests/test-snprintf-posix.h (test_function): Likewise.
65078         * tests/test-sprintf-posix.h (test_function): Likewise.
65079
65080         Fix *printf behaviour for large precisions on mingw and BeOS.
65081         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65082         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65083         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65084         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65085         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65086         gl_PRINTF_PRECISION and test its result. Invoke
65087         gl_PREREQ_VASNPRINTF_PRECISION.
65088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65089         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65090         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65091         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65095         * doc/functions/fprintf.texi: Update.
65096         * doc/functions/printf.texi: Update.
65097         * doc/functions/snprintf.texi: Update.
65098         * doc/functions/sprintf.texi: Update.
65099         * doc/functions/vfprintf.texi: Update.
65100         * doc/functions/vprintf.texi: Update.
65101         * doc/functions/vsnprintf.texi: Update.
65102         * doc/functions/vsprintf.texi: Update.
65103
65104 2007-11-04  Bruno Haible  <bruno@clisp.org>
65105
65106         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65107
65108 2007-11-04  Bruno Haible  <bruno@clisp.org>
65109
65110         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65111         Reported by Sylvain Beucler <beuc@gnu.org>.
65112
65113 2007-11-03  Bruno Haible  <bruno@clisp.org>
65114
65115         * tests/test-fprintf-posix2.sh: New file.
65116         * tests/test-fprintf-posix2.c: New file.
65117         * modules/fprintf-posix-tests (Files): Add them.
65118         (TESTS): Add test-fprintf-posix2.sh.
65119         (configure.ac): Check for getrlimit and setrlimit.
65120         (check_PROGRAMS): Add test-fprintf-posix2.
65121
65122         * tests/test-printf-posix2.sh: New file.
65123         * tests/test-printf-posix2.c: New file.
65124         * modules/printf-posix-tests (Files): Add them.
65125         (TESTS): Add test-printf-posix2.sh.
65126         (configure.ac): Check for getrlimit and setrlimit.
65127         (check_PROGRAMS): Add test-printf-posix2.
65128
65129         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65130         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65131         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65132         (decode_double): New function, copied from decode_long_double.
65133         (scale10_round_decimal_decoded): New function, extracted from
65134         scale10_round_decimal_long_double.
65135         (scale10_round_decimal_long_double): Use it.
65136         (scale10_round_decimal_double): New function.
65137         (floorlog10): New function.
65138         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65140         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65141         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65142         gl_PRINTF_ENOMEM and test its result. Invoke
65143         gl_PREREQ_VASNPRINTF_ENOMEM.
65144         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65145         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65146         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65147         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65148         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65149         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65150         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65151         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65152         * modules/snprintf-posix (Depends-on): Likewise.
65153         * modules/sprintf-posix (Depends-on): Likewise.
65154         * modules/vasnprintf-posix (Depends-on): Likewise.
65155         * modules/vasprintf-posix (Depends-on): Likewise.
65156         * modules/vfprintf-posix (Depends-on): Likewise.
65157         * modules/vsnprintf-posix (Depends-on): Likewise.
65158         * modules/vsprintf-posix (Depends-on): Likewise.
65159         * doc/functions/fprintf.texi: Update.
65160         * doc/functions/printf.texi: Update.
65161         * doc/functions/snprintf.texi: Update.
65162         * doc/functions/sprintf.texi: Update.
65163         * doc/functions/vfprintf.texi: Update.
65164         * doc/functions/vprintf.texi: Update.
65165         * doc/functions/vsnprintf.texi: Update.
65166         * doc/functions/vsprintf.texi: Update.
65167
65168 2007-11-03  Bruno Haible  <bruno@clisp.org>
65169
65170         * modules/frexp-nolibm-tests: New file.
65171
65172         * modules/frexp-nolibm: New file.
65173         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65174
65175 2007-11-03  Bruno Haible  <bruno@clisp.org>
65176
65177         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65178         value is C99 compliant.
65179         Needed for OSF/1 5.1.
65180
65181 2007-11-03  Bruno Haible  <bruno@clisp.org>
65182
65183         Fix out-of-memory handling of vasnprintf.
65184         * lib/printf-parse.c: Include <errno.h>.
65185         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65186         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65187         is already set.
65188
65189 2007-11-02  Eric Blake  <ebb9@byu.net>
65190
65191         Fix tests on cygwin.
65192         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65193
65194 2007-11-01  Bruno Haible  <bruno@clisp.org>
65195
65196         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65197         warning.
65198         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65199         needed for POSIX compatibility.
65200
65201 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65202
65203         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65204         for compatibility with GNU.
65205
65206 2007-11-01  Bruno Haible  <bruno@clisp.org>
65207
65208         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65209         (putenv): Renamed from rpl_putenv. Change argument type from
65210         'const char *' to 'char *'.
65211         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65212         of defining putenv in config.h, just set REPLACE_PUTENV.
65213         * modules/putenv (Depends-on): Add stdlib.
65214         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65215         (Include): Use <stdlib.h>.
65216         * lib/stdlib.in.h (putenv): New declaration.
65217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65218         REPLACE_PUTENV.
65219         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65220         REPLACE_PUTENV.
65221         Needed for MacOS X 10.5.0.
65222         Reported by Peter O'Gorman <peter@pogma.com>.
65223
65224 2007-11-01  Jim Meyering  <meyering@redhat.com>
65225
65226         Treat an empty date string exactly like "0".
65227         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65228         if the remaining date string (to be parsed) is empty, use "0".
65229         Reported by Mischa Molhoek and discussed in this thread:
65230         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65231
65232 2007-10-31  Bruno Haible  <bruno@clisp.org>
65233
65234         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65235         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65236         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65237         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65238         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65239         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65240
65241 2007-10-31  Bruno Haible  <bruno@clisp.org>
65242
65243         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65244         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65245         (AC_TYPE_LONG_LONG_INT): Use it.
65246         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65247         it as well.
65248         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65249         to m4/longlong.m4.
65250         * modules/stdint (Files): Remove m4/ulonglong.m4.
65251         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65252         m4/ulonglong.m4.
65253         * modules/strtoumax (Files): Likewise.
65254
65255 2007-10-30  Bruno Haible  <bruno@clisp.org>
65256
65257         * modules/xvasprintf-posix: New file.
65258         Suggested by Eric Blake.
65259
65260 2007-10-30  Bruno Haible  <bruno@clisp.org>
65261
65262         * modules/xprintf-posix-tests: New file.
65263         * tests/test-xprintf-posix.sh: New file.
65264         * tests/test-xprintf-posix.c: New file.
65265         * tests/test-xfprintf-posix.c: New file.
65266
65267         * modules/xprintf-posix: New file.
65268
65269 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65270
65271         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65272         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65273         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65274
65275 2007-10-29  Bruno Haible  <bruno@clisp.org>
65276
65277         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65278         contain the special marker '_cv_'.
65279         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65280         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65281         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65282         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65283         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65284         Reported by Ralf Wildenhues.
65285
65286 2007-10-29  Bruno Haible  <bruno@clisp.org>
65287
65288         * gnulib-tool (func_import): When --lgpl is not specified, set
65289         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65290         GPLv3.
65291         Reported by Simon Josefsson.
65292
65293 2007-10-28  Bruno Haible  <bruno@clisp.org>
65294
65295         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65296         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65297         HAVE_DECL_ISFINITE.
65298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65299         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65300         HAVE_DECL_ISFINITE.
65301
65302 2007-10-28  Bruno Haible  <bruno@clisp.org>
65303
65304         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65305         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65306
65307 2007-10-28  Bruno Haible  <bruno@clisp.org>
65308
65309         Fix link errors with Sun C 5.0 on Solaris 10.
65310         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65311         function is declared but not present in the compiler's libm.
65312         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65313         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65314         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65315         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65316         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65317         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65318         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65320         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65321         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65322         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65323         HAVE_DECL_FLOORL.
65324
65325 2007-10-28  Bruno Haible  <bruno@clisp.org>
65326
65327         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65328         gl_FUNC_FLOORL. Cache the result.
65329         (gl_FUNC_FLOORL): Use it.
65330         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65331         gl_FUNC_CEILL. Cache the result.
65332         (gl_FUNC_CEILL): Use it.
65333
65334         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65335         gl_FUNC_FLOOR. Cache the result.
65336         (gl_FUNC_FLOOR): Use it.
65337         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65338         gl_FUNC_CEIL. Cache the result.
65339         (gl_FUNC_CEIL): Use it.
65340
65341         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65342         gl_FUNC_FLOORF. Cache the result.
65343         (gl_FUNC_FLOORF): Use it.
65344         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65345         gl_FUNC_CEILF. Cache the result.
65346         (gl_FUNC_CEILF): Use it.
65347
65348 2007-10-28  Bruno Haible  <bruno@clisp.org>
65349
65350         * gnulib-tool: Allow specifying the LGPL version number through
65351         --lgpl=2 or --lgpl=3.
65352         (func_usage): Document --lgpl with argument.
65353         Handle --lgpl=... arguments.
65354         (func_import): Recognize also gl_LGPL calls with an argument. When
65355         --lgpl=2 is used and the module's license is just LGPL, report an
65356         error. Set sed_transform_lib_file according to the lgpl variable. In
65357         the generated files, use --lgpl or gl_LGPL invocations with argument,
65358         if necessary.
65359         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65360         an LGPv2+ license.
65361         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65362         gl_LGPL macro.
65363
65364 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65365             Bruno Haible  <bruno@clisp.org>
65366
65367         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65368         (u16_uctomb_aux): Likewise.
65369         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65370         !HAVE_INLINE.
65371         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65372
65373 2007-10-28  Bruno Haible  <bruno@clisp.org>
65374
65375         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65376         Invoke AM_GETTEXT_OPTION if it exists.
65377         * modules/vasprintf: Likewise.
65378         * modules/verror: Likewise.
65379         * modules/xprintf: Likewise.
65380         * modules/xvasprintf: Likewise.
65381
65382 2007-10-27  Ben Pfaff  <blp@gnu.org>
65383
65384         * lib/math.in.h: Define isfinite macro and prototypes for
65385         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65386         implementations.
65387         * m4/math_h.m4: New substitutions for isfinite module.
65388         * lib/isfinite.c: New file.
65389         * m4/isfinite.m4: New file.
65390         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65391         * modules/isfinite: New file.
65392         * modules/isfinite-tests: New file.
65393         * tests/tests-isfinite.c: New file.
65394         * doc/functions/isfinite.texi: Mention isfinite module.
65395         * MODULES.html.sh: Mention new module.
65396
65397 2007-10-27  Ben Pfaff  <blp@gnu.org>
65398
65399         Ralf Wildenhues reported that Tru64 4.0D declares the round
65400         functions but does not have definitions.
65401         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65402         cannot be found in any library, set the output variable to
65403         "missing" instead of "".
65404         * m4/round.m4: Also use our substitute if we cannot find round in
65405         any library, even if it is declared.
65406         * m4/roundf.m4: Likewise for roundf.
65407         * m4/roundl.m4: Likewise for roundl.
65408         * lib/math.in.h: Undefine roundf, round, roundl before defining
65409         their replacements, to allow for hypothetical systems where these
65410         may be defined as macros but not available in libraries.
65411
65412 2007-10-27  Bruno Haible  <bruno@clisp.org>
65413
65414         * doc/gnulib.texi: Invoke @firstparagraphindent.
65415         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65416         changes in gnulib.
65417         (Source changes): New section.
65418
65419 2007-10-26  Bruno Haible  <bruno@clisp.org>
65420
65421         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65422         borrowed from autoconf.
65423
65424 2007-10-26  Bruno Haible  <bruno@clisp.org>
65425
65426         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65427         strerror returned the empty string. Needed on HP-UX 11.00.
65428
65429 2007-10-24  Micah Cowan  <micah@cowan.name>
65430
65431         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65432         * build-aux/bootstrap: Remove support for now-unnecessary option,
65433         --cvs-user, and envvars CVS_USER, CVS_RSH.
65434
65435 2007-10-24  Jim Meyering  <meyering@redhat.com>
65436
65437         Avoid diagnostics from sha1sum when there is no cached checksum.
65438         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65439         if the po.s1 file hasn't been created yet.
65440
65441         * build-aux/bootstrap: Sync from coreutils:
65442         2007-10-24  Jim Meyering  <meyering@redhat.com>
65443         Get gnulib from the git repository, not from an obsolete cvs one.
65444         * build-aux/bootstrap: Suggestion from Micah Cowan.
65445         2007-10-04  Jim Meyering  <jim@meyering.net>
65446         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65447         (update_po_files): Work also when there are no .po files in po/.
65448
65449 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65450
65451         * README: Append ".git" to git and cg examples.
65452         Problem reported by Benoit Sigoure.
65453
65454 2007-10-23  Micah Cowan  <micah@cowan.name>
65455
65456         * users.txt: Add wget.
65457
65458 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65459
65460         Fix linking of some unistdio tests on FreeBSD.
65461         * modules/unistdio/u16-vsnprintf-tests
65462         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65463         * modules/unistdio/u16-vsprintf-tests
65464         (test_u16_vsnprintf1_LDADD): Likewise.
65465         * modules/unistdio/u32-vsnprintf-tests
65466         (test_u32_vsnprintf1_LDADD): Likewise.
65467         * modules/unistdio/u32-vsprintf-tests
65468         (test_u32_vsprintf1_LDADD): Likewise.
65469         * modules/unistdio/u8-vsnprintf-tests
65470         (test_u8_vsnprintf1_LDADD): Likewise.
65471         * modules/unistdio/u8-vsprintf-tests
65472         (test_u8_vsprintf1_LDADD): Likewise.
65473         * modules/unistdio/ulc-vsnprintf-tests
65474         (test_ulc_vsnprintf1_LDADD): Likewise.
65475         * modules/unistdio/ulc-vsprintf-tests
65476         (test_ulc_vsprintf1_LDADD): Likewise.
65477
65478         Fix linking of some uniconv tests on FreeBSD.
65479         * modules/uniconv/u16-conv-from-enc-tests
65480         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65481         * modules/uniconv/u16-conv-to-enc-tests
65482         (test_u16_conv_to_enc_LDADD): Likewise.
65483         * modules/uniconv/u16-strconv-from-enc-tests
65484         (test_u16_strconv_from_enc_LDADD): Likewise.
65485         * modules/uniconv/u16-strconv-to-enc-tests
65486         (test_u16_strconv_to_enc_LDADD): Likewise.
65487         * modules/uniconv/u32-conv-from-enc-tests
65488         (test_u32_conv_from_enc_LDADD): Likewise.
65489         * modules/uniconv/u32-conv-to-enc-tests
65490         (test_u32_conv_to_enc_LDADD): Likewise.
65491         * modules/uniconv/u32-strconv-from-enc-tests
65492         (test_u32_strconv_from_enc_LDADD): Likewise.
65493         * modules/uniconv/u32-strconv-to-enc-tests
65494         (test_u32_strconv_to_enc_LDADD): Likewise.
65495         * modules/uniconv/u8-conv-from-enc-tests
65496         (test_u8_conv_from_enc_LDADD): Likewise.
65497         * modules/uniconv/u8-conv-to-enc-tests
65498         (test_u8_conv_to_enc_LDADD): Likewise.
65499         * modules/uniconv/u8-strconv-from-enc-tests
65500         (test_u8_strconv_from_enc_LDADD): Likewise.
65501         * modules/uniconv/u8-strconv-to-enc-tests
65502         (test_u8_strconv_to_enc_LDADD): Likewise.
65503
65504 2007-10-22  Bruno Haible  <bruno@clisp.org>
65505
65506         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65507         size.
65508
65509 2007-10-22  Eric Blake  <ebb9@byu.net>
65510
65511         Tweak x*printf documentation.
65512         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65513         variable name and comments.
65514         Suggested by Bruno Haible.
65515
65516 2007-10-22  Bruno Haible  <bruno@clisp.org>
65517
65518         * lib/acl.c (copy_acl): Fix file name in comment.
65519
65520 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65521
65522         Fix Tru64 problem with stdbool.h.
65523         * lib/stdbool.in.h (false, true):
65524         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65525         Don't declare as an enum in this situation; it runs afoul of Tru64.
65526         Problem reported by Steven M. Schweda in
65527         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65528
65529 2007-10-22  Eric Blake  <ebb9@byu.net>
65530
65531         Also wrap vf?printf.
65532         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65533         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65534         (xvprintf, xvfprintf): New functions.
65535
65536 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65537
65538         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65539         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65540
65541         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65542         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65543
65544 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65545
65546         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65547         by Bruno Haible.
65548
65549 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65550
65551         * lib/getloadavg.c
65552         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65553         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65554
65555         * tests/test-i-ring.c: Work for C89.
65556
65557 2007-10-22  Bruno Haible  <bruno@clisp.org>
65558
65559         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65560         -1u, in preprocessor expression, so that we don't test for the bug
65561         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65562         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65563
65564 2007-10-22  Eric Blake  <ebb9@byu.net>
65565
65566         * tests/test-yesno.sh: Silence stderr during test.
65567
65568 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65569
65570         * modules/crypto/gc-camellia: New file.
65571
65572         * m4/gc-camellia.m4: New file.
65573
65574         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65575
65576         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65577
65578 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65579
65580         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65581         --help to stdout.  Reported by sms@antinode.org (Steven
65582         M. Schweda).
65583
65584 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65585
65586         * users.txt: Fix link to libksba.
65587
65588 2007-10-21  Ben Pfaff  <blp@gnu.org>
65589
65590         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65591         round.c roundf implementation that depends on floorf and ceilf to
65592         be tested unconditionally.
65593
65594 2007-10-21  Ben Pfaff  <blp@gnu.org>
65595
65596         * m4/check-libm-func.m4: Removed.
65597         * m4/check-math-lib.m4: New file.
65598         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65599         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65600         definition and lack of AC_LIBOBJ([roundf]).
65601         * m4/roundl.m4: Ditto, and similarly for roundl.
65602         * modules/round: Reference new m4 file.
65603         * modules/roundf: Ditto.
65604         * modules/roundl: Ditto.
65605         * tests/test-round2.c (main): Use ROUND instead of round.
65606         Bug report from Bruno Haible.
65607
65608 2007-10-21  Bruno Haible  <bruno@clisp.org>
65609
65610         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65611         context.
65612
65613 2007-10-21  Bruno Haible  <bruno@clisp.org>
65614
65615         * tests/test-wcwidth.c (main): Allow negative result for some control
65616         characters.
65617
65618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65619         Needed on OSF/1 5.1.
65620
65621 2007-10-21  Bruno Haible  <bruno@clisp.org>
65622
65623         * tests/test-floorf1.c: Include isnanf.h.
65624         (main): Use isnanf() instead of isnan().
65625         * tests/test-ceilf1.c: Include isnanf.h.
65626         (main): Use isnanf() instead of isnan().
65627         * tests/test-truncf1.c: Include isnanf.h.
65628         (main): Use isnanf() instead of isnan().
65629         * tests/test-roundf1.c: Include isnanf.h.
65630         (main): Use isnanf() instead of isnan().
65631
65632 2007-10-21  Eric Blake  <ebb9@byu.net>
65633
65634         * users.txt: Update URL for m4.
65635
65636 2007-10-21  Bruno Haible  <bruno@clisp.org>
65637
65638         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65639
65640 2007-10-21  Bruno Haible  <bruno@clisp.org>
65641
65642         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65643         Git's management files if the CVS files are not present.
65644
65645 2007-10-20  Bruno Haible  <bruno@clisp.org>
65646
65647         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65648         gcc-3.4.x.
65649
65650 2007-10-20  Ben Pfaff  <blp@gnu.org>
65651
65652         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65653         implementations.
65654         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65655         * lib/round.c: New file.
65656         * lib/roundf.c: New file.
65657         * lib/roundl.c: New file.
65658         * m4/round.m4: New file.
65659         * m4/roundf.m4: New file.
65660         * m4/roundl.m4: New file.
65661         * m4/check-libm-func-m4: New file.
65662         * modules/math: Replace round, roundf, roundl related @VARS@ in
65663         math.in.h.
65664         * modules/round: New file.
65665         * modules/round-tests: New file.
65666         * modules/roundf: New file.
65667         * modules/roundf-tests: New file.
65668         * modules/roundl: New file.
65669         * modules/roundl-tests: New file.
65670         * tests/test-round1.c: New file.
65671         * tests/test-round2.c: New file.
65672         * tests/test-roundf1.c: New file.
65673         * tests/test-roundf2.c: New file.
65674         * tests/test-roundl.c: New file.
65675         * doc/functions/round.texi: Mention round module.
65676         * doc/functions/roundf.texi: Mention roundf module.
65677         * doc/functions/roundl.texi: Mention roundl module.
65678         * MODULES.html.sh: Mention new modules.
65679         Thanks to Bruno Haible for suggestions.
65680
65681 2007-10-20  Jim Meyering  <meyering@redhat.com>
65682
65683         * lib/xprintf.c: Include <config.h> unconditionally.
65684
65685         Change xprintf's license to GPL.
65686         * modules/xprintf (License): s/LGPL/GPL/, since this module
65687         depends on modules (exit and exitfail) which are GPL.
65688         Suggestion from Bruno Haible.
65689
65690         xprintf fixes.
65691         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65692         Use a clearer diagnostic.
65693         Patch from Bruno Haible.
65694
65695 2007-10-20  Bruno Haible  <bruno@clisp.org>
65696
65697         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65698         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65699         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65700
65701 2007-10-20  Bruno Haible  <bruno@clisp.org>
65702
65703         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65704         precision in the comparison result > x - 1 or similar.
65705         * tests/test-ceilf2.c (correct_result_p): Likewise.
65706         * tests/test-truncf2.c (correct_result_p): Likewise.
65707         * tests/test-trunc2.c (correct_result_p): Likewise.
65708         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65709
65710 2007-10-20  Bruno Haible  <bruno@clisp.org>
65711
65712         * modules/ceil: New file.
65713         * m4/ceil.m4: New file.
65714         * doc/functions/ceil.texi: Mention the 'ceil' module.
65715
65716 2007-10-20  Bruno Haible  <bruno@clisp.org>
65717
65718         * modules/floor: New file.
65719         * m4/floor.m4: New file.
65720         * doc/functions/floor.texi: Mention the 'floor' module.
65721
65722 2007-10-20  Bruno Haible  <bruno@clisp.org>
65723
65724         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65725         of %a.
65726         * modules/floorf-tests (Depends-on): Likewise.
65727         * modules/truncf-tests (Depends-on): Likewise.
65728         * modules/trunc-tests (Depends-on): Likewise.
65729         Reported by Ben Pfaff.
65730
65731 2007-10-19  Jim Meyering  <meyering@redhat.com>
65732
65733         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65734         Don't bother testing specific errno values.  Just test ferror.
65735
65736         New module: xprintf
65737         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65738
65739 2007-10-19  Bruno Haible  <bruno@clisp.org>
65740
65741         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65742         syntax.
65743         * modules/javaexec (Makefile.am): Likewise.
65744         * modules/relocatable-prog (Makefile.am): Likewise.
65745         Suggested by Jim Meyering.
65746
65747 2007-10-18  Bruno Haible  <bruno@clisp.org>
65748
65749         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65750         Reported by Jim Meyering.
65751
65752 2007-10-18  Eric Blake  <ebb9@byu.net>
65753
65754         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65755
65756 2007-10-18  Bruno Haible  <bruno@clisp.org>
65757
65758         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65759         the format string into writable memory. Needed in Fortify conditions.
65760
65761 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65762             Bruno Haible  <bruno@clisp.org>
65763
65764         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65765         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65766         * modules/trim (Depends-on): Add mbchar.
65767         (configure.ac): Add gl_FUNC_MBRTOWC.
65768         (Makefile.am): Augment lib_SOURCES.
65769
65770 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65771
65772         Modify glob.c to use fstatat and dirfd, to simplify it.
65773         Suggested by Eric Blake.
65774         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65775         Don't include <stdbool.h>; not used.
65776         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65777         (link_exists_p): Simplify implementation, since we can now assume
65778         dirfd and fstatat.
65779         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65780
65781 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65782
65783         * gnulib-tool (func_get_dependencies): Fix sed script to
65784         match only tests.
65785
65786 2007-10-17  Bruno Haible  <bruno@clisp.org>
65787
65788         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65789         allow locale names without encoding suffix.
65790         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65791         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65792
65793 2007-10-16  Bruno Haible  <bruno@clisp.org>
65794
65795         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
65796         * lib/getgroups.c (getgroups): Likewise.
65797         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
65798
65799 2007-10-16  Bruno Haible  <bruno@clisp.org>
65800
65801         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
65802         * modules/malloc-posix (License): Likewise.
65803         * modules/realloc-posix (License): Likewise.
65804         * modules/calloc-posix (License): Likewise.
65805         * modules/intprops (License): Change from GPL to LGPL, with
65806         Paul Eggert's approval.
65807
65808 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65809
65810         Merge glibc changes into lib/glob.c.
65811
65812         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
65813         2007-10-15 04:59:03 UTC.  Here are the changes:
65814
65815         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
65816
65817         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
65818
65819         * lib/glob.c: Add some branch prediction throughout.
65820
65821         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
65822
65823         [BZ #5103]
65824         * lib/glob.c (glob): Recognize patterns starting \/.
65825
65826         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
65827
65828         [BZ #3996]
65829         * lib/glob.c (attribute_hidden): Define if not defined.
65830         (glob): Unescape dirname, filename or username when needed and not
65831         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
65832         is NULL.  Handle unescaped [ in pattern without closing ].
65833         Don't pass GLOB_CHECK down to recursive glob for directories.
65834         (__glob_pattern_type): New function.
65835         (__glob_pattern_p): Implement using __glob_pattern_type.
65836         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
65837         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
65838         Remove unreachable code.
65839
65840         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
65841
65842         * lib/glob.c (glob_in_dir): Add some comments and asserts to
65843         explain why there are no leaks.
65844
65845         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65846
65847         [BZ #3253]
65848         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65849         time, rather allocate increasingly bigger arrays of pointers, if
65850         possible with alloca, if too large with malloc.
65851
65852 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65853
65854         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65855         Problem reported by H.Merijn Brand in
65856         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65857         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65858         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65859
65860 2007-10-15  Bruno Haible  <bruno@clisp.org>
65861
65862         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65863         with explicit rpl_ prefix.
65864         * lib/fopen.c (fopen): Likewise.
65865         * lib/freopen.c (freopen): Likewise.
65866         * lib/iconv.c (iconv): Likewise.
65867         * lib/iconv_close.c (iconv_close): Likewise.
65868
65869 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65870
65871         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65872
65873 2007-10-15  Bruno Haible  <bruno@clisp.org>
65874
65875         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65876         <stddef.h> instead of <stdlib.h> since we only need NULL.
65877         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65878
65879 2007-10-15  Bruno Haible  <bruno@clisp.org>
65880
65881         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65882         Replace paragraph talking about LIBOBJS.
65883         Reported by Colin Watson <cjwatson@debian.org>.
65884
65885 2007-10-15  Bruno Haible  <bruno@clisp.org>
65886
65887         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65888         <stdlib.h> before using NULL.
65889
65890 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65891
65892         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65893         Reported by Albert Chin <china@thewrittenword.com>.
65894
65895 2007-10-14  Bruno Haible  <bruno@clisp.org>
65896
65897         * modules/iconv_open-utf-tests: New file.
65898         * tests/test-iconv-utf.c: New file.
65899
65900         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65901         * modules/iconv_open-utf: New file.
65902         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65903         (iconv, iconv_close): New declarations.
65904         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65905         be defined.
65906         (iconv_open): Add special handling of conversion between UTF-8 and
65907         UTF-{16,32}{BE,LE}.
65908         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65909         * lib/iconv_close.c: New file.
65910         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65911         gl_FUNC_ICONV_OPEN.
65912         (gl_FUNC_ICONV_OPEN): Use it.
65913         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65914         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65915         and REPLACE_ICONV_UTF.
65916         * modules/iconv_open (Depends-on): Add c-strcase.
65917         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65918         ICONV_CONST.
65919         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65920
65921 2007-10-13  Albert Chin  <china@thewrittenword.com>
65922             Bruno Haible  <bruno@clisp.org>
65923
65924         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65925         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65926
65927 2007-10-13  Bruno Haible  <bruno@clisp.org>
65928
65929         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65930         defined, use the ISO C99 inline semantics.
65931         * lib/argp.h (ARGP_EI): Likewise.
65932
65933 2007-10-13  Bruno Haible  <bruno@clisp.org>
65934
65935         Handle 'inline' change in gcc 4.3.0.
65936         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65937         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65938         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65939         argp_fmtstream_point): Disable 'extern' declaration if the function
65940         definition is going to be provided inline.
65941         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65942         semantics, not the ISO C99 inline semantics.
65943         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65944         'extern' declaration if the function definition is going to be provided
65945         inline.
65946         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65947         the GNU C inline semantics, not the ISO C99 inline semantics. With
65948         GCC 4.2, avoid a warning.
65949
65950 2007-10-13  Bruno Haible  <bruno@clisp.org>
65951
65952         * lib/freading.h (freading): Enable the use of __freading for
65953         glibc >= 2.7.
65954         * lib/freading.c (freading): Likewise.
65955
65956 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65957
65958         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65959         "warning: C99 inline functions are not supported; using GNU89".
65960
65961 2007-10-12  Bruno Haible  <bruno@clisp.org>
65962
65963         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65964         of 2.
65965         * tests/test-ceilf2.c: New file.
65966         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65967
65968         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65969         * modules/ceilf-tests: Update.
65970
65971 2007-10-12  Bruno Haible  <bruno@clisp.org>
65972
65973         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65974         of 2.
65975         * tests/test-floorf2.c: New file.
65976         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65977
65978         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65979         * modules/floorf-tests: Update.
65980
65981 2007-10-12  Bruno Haible  <bruno@clisp.org>
65982
65983         * tests/test-trunc2.c: New file.
65984         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65985
65986         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65987         * modules/trunc-tests: Update.
65988
65989 2007-10-12  Bruno Haible  <bruno@clisp.org>
65990
65991         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65992         of 2.
65993         * tests/test-truncf2.c: New file.
65994         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65995
65996         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65997         * modules/truncf-tests: Update.
65998
65999 2007-10-11  Eric Blake  <ebb9@byu.net>
66000
66001         Don't claim strerror is broken on Interix.
66002         * doc/functions/strerror.texi (strerror): Known broken systems are
66003         now Solaris 8, and not Interix.
66004         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66005         Interix on cross-compile.
66006         Reported by Martin Koeppe in
66007         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66008
66009 2007-10-11  Bruno Haible  <bruno@clisp.org>
66010
66011         * modules/i-ring-tests: New file.
66012         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66013         instead of assert.
66014
66015 2007-10-11  Bruno Haible  <bruno@clisp.org>
66016
66017         * modules/filenamecat-tests: New file.
66018         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66019         * lib/filenamecat.c: Remove test code.
66020
66021 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66022
66023         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66024
66025         * lib/strerror.c: Include <string.h> always, to test interface,
66026         and to remove the need for the dummy.
66027         Include intprops.h to compute width instead of doing it ourselves
66028         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66029         (strerror): Define it to return NULL if there's no system strerror.
66030         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66031         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66032         ancient pre-strerror Unix systems well any more.  Saying "unknown
66033         system error" is enough.
66034         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66035         simpler strerror.c implementation.
66036         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66037         Simplify the tests to reflect the simpler strerror implementation.
66038         * modules/strerror (Depends-on): Add intprops.
66039
66040 2007-10-09  Eric Blake  <ebb9@byu.net>
66041
66042         Silence test-fpending.
66043         * modules/fpending-tests (Files): Add wrapper script.
66044         * tests/test-fpending.sh: New file.
66045
66046 2007-10-09  Bruno Haible  <bruno@clisp.org>
66047
66048         * MODULES.html.sh (func_module): Don't create a hyperlink for
66049         function names like 'printf_frexp'.
66050         (Misc): Add crc, memxor.
66051         (Characteristics of floating types): New section.
66052         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66053         isnanf-nolibm, signbit, trunc, truncf, truncl.
66054         (Enhancements for ISO C 99 functions): New subsection Input/output.
66055         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66056         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66057         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66058         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66059         (Enhancements for POSIX:2001 functions): Add chdir-long.
66060         (File system functions): Add areadlink, chdir-safer, read-file.
66061         Remove cycle-check.
66062         (File system as inode set): New section.
66063         (Date and time): Add gethrxtime.
66064         (Multithreading): Add openmp.
66065         (Internationalization functions): Add localename.
66066         (Unicode string functions): Add unistr/u*-mbsnlen.
66067         (Support for maintaining and releasing projects): Add git-version-gen.
66068         (Lone files): Remove directories.
66069
66070 2007-10-08  Ben Pfaff  <blp@gnu.org>
66071
66072         * lib/xmalloca.h: Fix typo in comment.
66073
66074 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66075
66076         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66077         when avoiding problems with integer overflow.  Use a portable test
66078         instead.
66079
66080 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66081
66082         * modules/dummy (License): Change to LGPLv2+.
66083         * modules/float (License): Likewise
66084         * modules/realloc (License): Likewise
66085         * modules/stdlib (License): Likewise
66086
66087 2007-10-07  Bruno Haible  <bruno@clisp.org>
66088
66089         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66090         * floor.c (TWO_MANT_DIG): Likewise.
66091         * ceil.c (TWO_MANT_DIG): Likewise.
66092         Reported by Ben Pfaff.
66093
66094 2007-10-07  Bruno Haible  <bruno@clisp.org>
66095
66096         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66097         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66098         * lib/frexp.c (FUNC): Likewise.
66099         * lib/printf-frexp.h (printf_frexp): Likewise.
66100         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66101         * lib/printf-frexp.c (FUNC): Likewise.
66102         Suggested by Jim Meyering.
66103
66104 2007-10-07  Jim Meyering  <meyering@redhat.com>
66105
66106         Make xnanosleep's integer overflow test more robust.
66107         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66108         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66109
66110 2007-10-07  Bruno Haible  <bruno@clisp.org>
66111
66112         * NEWS: Mention the license change.
66113
66114         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66115         abbreviations in the modules files.
66116
66117         Change copyright notice from GPLv2+ to GPLv3+.
66118         * README: Change copyright notice.
66119         * MODULES.html.sh: Likewise.
66120         * build-aux/bootstrap.conf: Likewise.
66121         * build-aux/config.libpath: Likewise.
66122         * build-aux/csharpcomp.sh.in: Likewise.
66123         * build-aux/csharpexec.sh.in: Likewise.
66124         * build-aux/install-reloc: Likewise.
66125         * build-aux/javacomp.sh.in: Likewise.
66126         * build-aux/javaexec.sh.in: Likewise.
66127         * build-aux/ldd.sh.in: Likewise.
66128         * build-aux/reloc-ldflags: Likewise.
66129         * build-aux/relocatable.sh.in: Likewise.
66130         * build-aux/x-to-1.in: Likewise.
66131         * check-module: Likewise.
66132         * config/srclistvars.sh: Likewise.
66133         * gnulib-tool: Likewise.
66134         * lib/acl-internal.h: Likewise.
66135         * lib/acl.c: Likewise.
66136         * lib/acl.h: Likewise.
66137         * lib/acl_entries.c: Likewise.
66138         * lib/areadlink-with-size.c: Likewise.
66139         * lib/areadlink.c: Likewise.
66140         * lib/areadlink.h: Likewise.
66141         * lib/argmatch.c: Likewise.
66142         * lib/argmatch.h: Likewise.
66143         * lib/argp-ba.c: Likewise.
66144         * lib/argp-eexst.c: Likewise.
66145         * lib/argp-fmtstream.c: Likewise.
66146         * lib/argp-fmtstream.h: Likewise.
66147         * lib/argp-fs-xinl.c: Likewise.
66148         * lib/argp-help.c: Likewise.
66149         * lib/argp-namefrob.h: Likewise.
66150         * lib/argp-parse.c: Likewise.
66151         * lib/argp-pin.c: Likewise.
66152         * lib/argp-pv.c: Likewise.
66153         * lib/argp-pvh.c: Likewise.
66154         * lib/argp-xinl.c: Likewise.
66155         * lib/argp.h: Likewise.
66156         * lib/at-func.c: Likewise.
66157         * lib/atanl.c: Likewise.
66158         * lib/backupfile.c: Likewise.
66159         * lib/backupfile.h: Likewise.
66160         * lib/basename.c: Likewise.
66161         * lib/binary-io.h: Likewise.
66162         * lib/byteswap.in.h: Likewise.
66163         * lib/c-stack.c: Likewise.
66164         * lib/c-stack.h: Likewise.
66165         * lib/c-strcasestr.c: Likewise.
66166         * lib/c-strcasestr.h: Likewise.
66167         * lib/c-strstr.c: Likewise.
66168         * lib/c-strstr.h: Likewise.
66169         * lib/c-strtod.c: Likewise.
66170         * lib/calloc.c: Likewise.
66171         * lib/canon-host.c: Likewise.
66172         * lib/canon-host.h: Likewise.
66173         * lib/canonicalize-lgpl.c: Likewise.
66174         * lib/canonicalize.c: Likewise.
66175         * lib/canonicalize.h: Likewise.
66176         * lib/ceil.c: Likewise.
66177         * lib/ceilf.c: Likewise.
66178         * lib/ceill.c: Likewise.
66179         * lib/chdir-long.c: Likewise.
66180         * lib/chdir-long.h: Likewise.
66181         * lib/chdir-safer.c: Likewise.
66182         * lib/chdir-safer.h: Likewise.
66183         * lib/chown.c: Likewise.
66184         * lib/classpath.c: Likewise.
66185         * lib/classpath.h: Likewise.
66186         * lib/clean-temp.c: Likewise.
66187         * lib/clean-temp.h: Likewise.
66188         * lib/cloexec.c: Likewise.
66189         * lib/close-stream.c: Likewise.
66190         * lib/closein.c: Likewise.
66191         * lib/closein.h: Likewise.
66192         * lib/closeout.c: Likewise.
66193         * lib/closeout.h: Likewise.
66194         * lib/concat-filename.c: Likewise.
66195         * lib/copy-file.c: Likewise.
66196         * lib/copy-file.h: Likewise.
66197         * lib/count-one-bits.h: Likewise.
66198         * lib/crc.c: Likewise.
66199         * lib/crc.h: Likewise.
66200         * lib/creat-safer.c: Likewise.
66201         * lib/csharpcomp.c: Likewise.
66202         * lib/csharpcomp.h: Likewise.
66203         * lib/csharpexec.c: Likewise.
66204         * lib/csharpexec.h: Likewise.
66205         * lib/cycle-check.c: Likewise.
66206         * lib/cycle-check.h: Likewise.
66207         * lib/diacrit.c: Likewise.
66208         * lib/diacrit.h: Likewise.
66209         * lib/diffseq.h: Likewise.
66210         * lib/dirchownmod.c: Likewise.
66211         * lib/dirent.in.h: Likewise.
66212         * lib/dirfd.c: Likewise.
66213         * lib/dirfd.h: Likewise.
66214         * lib/dirname.c: Likewise.
66215         * lib/dirname.h: Likewise.
66216         * lib/dummy.c: Likewise.
66217         * lib/dup-safer.c: Likewise.
66218         * lib/dup2.c: Likewise.
66219         * lib/eealloc.h: Likewise.
66220         * lib/error.c: Likewise.
66221         * lib/error.h: Likewise.
66222         * lib/euidaccess.c: Likewise.
66223         * lib/exclude.c: Likewise.
66224         * lib/exclude.h: Likewise.
66225         * lib/execute.c: Likewise.
66226         * lib/execute.h: Likewise.
66227         * lib/exitfail.c: Likewise.
66228         * lib/exitfail.h: Likewise.
66229         * lib/expl.c: Likewise.
66230         * lib/fatal-signal.c: Likewise.
66231         * lib/fatal-signal.h: Likewise.
66232         * lib/fbufmode.c: Likewise.
66233         * lib/fbufmode.h: Likewise.
66234         * lib/fchdir.c: Likewise.
66235         * lib/fchmodat.c: Likewise.
66236         * lib/fchownat.c: Likewise.
66237         * lib/fcntl--.h: Likewise.
66238         * lib/fcntl-safer.h: Likewise.
66239         * lib/fcntl.in.h: Likewise.
66240         * lib/fd-safer.c: Likewise.
66241         * lib/fflush.c: Likewise.
66242         * lib/file-has-acl.c: Likewise.
66243         * lib/file-set.c: Likewise.
66244         * lib/file-type.c: Likewise.
66245         * lib/file-type.h: Likewise.
66246         * lib/fileblocks.c: Likewise.
66247         * lib/filemode.c: Likewise.
66248         * lib/filemode.h: Likewise.
66249         * lib/filename.h: Likewise.
66250         * lib/filenamecat.c: Likewise.
66251         * lib/filenamecat.h: Likewise.
66252         * lib/findprog.c: Likewise.
66253         * lib/findprog.h: Likewise.
66254         * lib/float.in.h: Likewise.
66255         * lib/floor.c: Likewise.
66256         * lib/floorf.c: Likewise.
66257         * lib/floorl.c: Likewise.
66258         * lib/fopen-safer.c: Likewise.
66259         * lib/fopen.c: Likewise.
66260         * lib/fpending.c: Likewise.
66261         * lib/fpending.h: Likewise.
66262         * lib/fprintf.c: Likewise.
66263         * lib/fprintftime.h: Likewise.
66264         * lib/fpucw.h: Likewise.
66265         * lib/fpurge.c: Likewise.
66266         * lib/fpurge.h: Likewise.
66267         * lib/freadable.c: Likewise.
66268         * lib/freadable.h: Likewise.
66269         * lib/freadahead.c: Likewise.
66270         * lib/freadahead.h: Likewise.
66271         * lib/freading.c: Likewise.
66272         * lib/freading.h: Likewise.
66273         * lib/free.c: Likewise.
66274         * lib/freopen.c: Likewise.
66275         * lib/frexp.c: Likewise.
66276         * lib/frexpl.c: Likewise.
66277         * lib/fseek.c: Likewise.
66278         * lib/fseterr.c: Likewise.
66279         * lib/fseterr.h: Likewise.
66280         * lib/fstatat.c: Likewise.
66281         * lib/fstrcmp.c: Likewise.
66282         * lib/fstrcmp.h: Likewise.
66283         * lib/fsusage.c: Likewise.
66284         * lib/fsusage.h: Likewise.
66285         * lib/ftell.c: Likewise.
66286         * lib/ftello.c: Likewise.
66287         * lib/fts-cycle.c: Likewise.
66288         * lib/fts.c: Likewise.
66289         * lib/fts_.h: Likewise.
66290         * lib/full-read.c: Likewise.
66291         * lib/full-read.h: Likewise.
66292         * lib/full-write.c: Likewise.
66293         * lib/full-write.h: Likewise.
66294         * lib/fwritable.c: Likewise.
66295         * lib/fwritable.h: Likewise.
66296         * lib/fwriteerror.c: Likewise.
66297         * lib/fwriteerror.h: Likewise.
66298         * lib/fwriting.c: Likewise.
66299         * lib/fwriting.h: Likewise.
66300         * lib/gcd.c: Likewise.
66301         * lib/gcd.h: Likewise.
66302         * lib/getcwd.c: Likewise.
66303         * lib/getdate.h: Likewise.
66304         * lib/getdate.y: Likewise.
66305         * lib/getdomainname.c: Likewise.
66306         * lib/getdomainname.h: Likewise.
66307         * lib/getgroups.c: Likewise.
66308         * lib/gethostname.c: Likewise.
66309         * lib/gethrxtime.c: Likewise.
66310         * lib/gethrxtime.h: Likewise.
66311         * lib/getloadavg.c: Likewise.
66312         * lib/getndelim2.c: Likewise.
66313         * lib/getndelim2.h: Likewise.
66314         * lib/getnline.c: Likewise.
66315         * lib/getnline.h: Likewise.
66316         * lib/getopt.c: Likewise.
66317         * lib/getopt.in.h: Likewise.
66318         * lib/getopt1.c: Likewise.
66319         * lib/getopt_int.h: Likewise.
66320         * lib/getpagesize.h: Likewise.
66321         * lib/getsubopt.c: Likewise.
66322         * lib/gettime.c: Likewise.
66323         * lib/getugroups.c: Likewise.
66324         * lib/getugroups.h: Likewise.
66325         * lib/getusershell.c: Likewise.
66326         * lib/gl_anyavltree_list1.h: Likewise.
66327         * lib/gl_anyavltree_list2.h: Likewise.
66328         * lib/gl_anyhash_list1.h: Likewise.
66329         * lib/gl_anyhash_list2.h: Likewise.
66330         * lib/gl_anylinked_list1.h: Likewise.
66331         * lib/gl_anylinked_list2.h: Likewise.
66332         * lib/gl_anyrbtree_list1.h: Likewise.
66333         * lib/gl_anyrbtree_list2.h: Likewise.
66334         * lib/gl_anytree_list1.h: Likewise.
66335         * lib/gl_anytree_list2.h: Likewise.
66336         * lib/gl_anytree_oset.h: Likewise.
66337         * lib/gl_anytreehash_list1.h: Likewise.
66338         * lib/gl_anytreehash_list2.h: Likewise.
66339         * lib/gl_array_list.c: Likewise.
66340         * lib/gl_array_list.h: Likewise.
66341         * lib/gl_array_oset.c: Likewise.
66342         * lib/gl_array_oset.h: Likewise.
66343         * lib/gl_avltree_list.c: Likewise.
66344         * lib/gl_avltree_list.h: Likewise.
66345         * lib/gl_avltree_oset.c: Likewise.
66346         * lib/gl_avltree_oset.h: Likewise.
66347         * lib/gl_avltreehash_list.c: Likewise.
66348         * lib/gl_avltreehash_list.h: Likewise.
66349         * lib/gl_carray_list.c: Likewise.
66350         * lib/gl_carray_list.h: Likewise.
66351         * lib/gl_linked_list.c: Likewise.
66352         * lib/gl_linked_list.h: Likewise.
66353         * lib/gl_linkedhash_list.c: Likewise.
66354         * lib/gl_linkedhash_list.h: Likewise.
66355         * lib/gl_list.c: Likewise.
66356         * lib/gl_list.h: Likewise.
66357         * lib/gl_oset.c: Likewise.
66358         * lib/gl_oset.h: Likewise.
66359         * lib/gl_rbtree_list.c: Likewise.
66360         * lib/gl_rbtree_list.h: Likewise.
66361         * lib/gl_rbtree_oset.c: Likewise.
66362         * lib/gl_rbtree_oset.h: Likewise.
66363         * lib/gl_rbtreehash_list.c: Likewise.
66364         * lib/gl_rbtreehash_list.h: Likewise.
66365         * lib/gl_sublist.c: Likewise.
66366         * lib/gl_sublist.h: Likewise.
66367         * lib/group-member.c: Likewise.
66368         * lib/group-member.h: Likewise.
66369         * lib/hard-locale.c: Likewise.
66370         * lib/hard-locale.h: Likewise.
66371         * lib/hash-pjw.c: Likewise.
66372         * lib/hash-pjw.h: Likewise.
66373         * lib/hash-triple.c: Likewise.
66374         * lib/hash.c: Likewise.
66375         * lib/hash.h: Likewise.
66376         * lib/human.c: Likewise.
66377         * lib/human.h: Likewise.
66378         * lib/i-ring.c: Likewise.
66379         * lib/i-ring.h: Likewise.
66380         * lib/idcache.c: Likewise.
66381         * lib/imaxabs.c: Likewise.
66382         * lib/imaxdiv.c: Likewise.
66383         * lib/inet_pton.c: Likewise.
66384         * lib/inet_pton.h: Likewise.
66385         * lib/intprops.h: Likewise.
66386         * lib/inttostr.c: Likewise.
66387         * lib/inttostr.h: Likewise.
66388         * lib/inttypes.in.h: Likewise.
66389         * lib/isapipe.c: Likewise.
66390         * lib/isdir.c: Likewise.
66391         * lib/isnan.c: Likewise.
66392         * lib/isnan.h: Likewise.
66393         * lib/isnanf.c: Likewise.
66394         * lib/isnanf.h: Likewise.
66395         * lib/isnanl-nolibm.h: Likewise.
66396         * lib/isnanl.c: Likewise.
66397         * lib/isnanl.h: Likewise.
66398         * lib/javacomp.c: Likewise.
66399         * lib/javacomp.h: Likewise.
66400         * lib/javaexec.c: Likewise.
66401         * lib/javaexec.h: Likewise.
66402         * lib/javaversion.c: Likewise.
66403         * lib/javaversion.h: Likewise.
66404         * lib/javaversion.java: Likewise.
66405         * lib/lbrkprop.h: Likewise.
66406         * lib/lchmod.h: Likewise.
66407         * lib/lchown.c: Likewise.
66408         * lib/ldexpl.c: Likewise.
66409         * lib/linebreak.c: Likewise.
66410         * lib/linebreak.h: Likewise.
66411         * lib/linebuffer.c: Likewise.
66412         * lib/linebuffer.h: Likewise.
66413         * lib/locale.in.h: Likewise.
66414         * lib/logl.c: Likewise.
66415         * lib/long-options.c: Likewise.
66416         * lib/long-options.h: Likewise.
66417         * lib/lstat.c: Likewise.
66418         * lib/lstat.h: Likewise.
66419         * lib/math.in.h: Likewise.
66420         * lib/mbchar.c: Likewise.
66421         * lib/mbchar.h: Likewise.
66422         * lib/mbfile.h: Likewise.
66423         * lib/mbiter.h: Likewise.
66424         * lib/mbscasecmp.c: Likewise.
66425         * lib/mbscasestr.c: Likewise.
66426         * lib/mbschr.c: Likewise.
66427         * lib/mbscspn.c: Likewise.
66428         * lib/mbslen.c: Likewise.
66429         * lib/mbsncasecmp.c: Likewise.
66430         * lib/mbsnlen.c: Likewise.
66431         * lib/mbspbrk.c: Likewise.
66432         * lib/mbspcasecmp.c: Likewise.
66433         * lib/mbsrchr.c: Likewise.
66434         * lib/mbssep.c: Likewise.
66435         * lib/mbsspn.c: Likewise.
66436         * lib/mbsstr.c: Likewise.
66437         * lib/mbstok_r.c: Likewise.
66438         * lib/mbswidth.c: Likewise.
66439         * lib/mbswidth.h: Likewise.
66440         * lib/mbuiter.h: Likewise.
66441         * lib/memcasecmp.c: Likewise.
66442         * lib/memcasecmp.h: Likewise.
66443         * lib/memchr.c: Likewise.
66444         * lib/memcmp.c: Likewise.
66445         * lib/memcoll.c: Likewise.
66446         * lib/memcoll.h: Likewise.
66447         * lib/memcpy.c: Likewise.
66448         * lib/memrchr.c: Likewise.
66449         * lib/mkancesdirs.c: Likewise.
66450         * lib/mkdir-p.c: Likewise.
66451         * lib/mkdir-p.h: Likewise.
66452         * lib/mkdir.c: Likewise.
66453         * lib/mkdirat.c: Likewise.
66454         * lib/mkdtemp.c: Likewise.
66455         * lib/mkstemp-safer.c: Likewise.
66456         * lib/mkstemp.c: Likewise.
66457         * lib/modechange.c: Likewise.
66458         * lib/modechange.h: Likewise.
66459         * lib/mountlist.c: Likewise.
66460         * lib/mountlist.h: Likewise.
66461         * lib/mpsort.c: Likewise.
66462         * lib/nanosleep.c: Likewise.
66463         * lib/obstack.c: Likewise.
66464         * lib/obstack.h: Likewise.
66465         * lib/open-safer.c: Likewise.
66466         * lib/open.c: Likewise.
66467         * lib/openat-die.c: Likewise.
66468         * lib/openat-priv.h: Likewise.
66469         * lib/openat-proc.c: Likewise.
66470         * lib/openat.c: Likewise.
66471         * lib/openat.h: Likewise.
66472         * lib/pagealign_alloc.c: Likewise.
66473         * lib/pagealign_alloc.h: Likewise.
66474         * lib/physmem.c: Likewise.
66475         * lib/physmem.h: Likewise.
66476         * lib/pipe-safer.c: Likewise.
66477         * lib/pipe.c: Likewise.
66478         * lib/pipe.h: Likewise.
66479         * lib/posixtm.c: Likewise.
66480         * lib/posixtm.h: Likewise.
66481         * lib/posixver.c: Likewise.
66482         * lib/printf-frexp.c: Likewise.
66483         * lib/printf-frexp.h: Likewise.
66484         * lib/printf-frexpl.c: Likewise.
66485         * lib/printf-frexpl.h: Likewise.
66486         * lib/printf.c: Likewise.
66487         * lib/progname.c: Likewise.
66488         * lib/progname.h: Likewise.
66489         * lib/progreloc.c: Likewise.
66490         * lib/putenv.c: Likewise.
66491         * lib/quote.c: Likewise.
66492         * lib/quote.h: Likewise.
66493         * lib/quotearg.c: Likewise.
66494         * lib/quotearg.h: Likewise.
66495         * lib/raise.c: Likewise.
66496         * lib/readline.c: Likewise.
66497         * lib/readline.h: Likewise.
66498         * lib/readlink.c: Likewise.
66499         * lib/readtokens.c: Likewise.
66500         * lib/readtokens.h: Likewise.
66501         * lib/readtokens0.c: Likewise.
66502         * lib/readtokens0.h: Likewise.
66503         * lib/readutmp.c: Likewise.
66504         * lib/readutmp.h: Likewise.
66505         * lib/realloc.c: Likewise.
66506         * lib/relocwrapper.c: Likewise.
66507         * lib/rename-dest-slash.c: Likewise.
66508         * lib/rename.c: Likewise.
66509         * lib/rmdir.c: Likewise.
66510         * lib/rpmatch.c: Likewise.
66511         * lib/safe-read.c: Likewise.
66512         * lib/safe-read.h: Likewise.
66513         * lib/safe-write.c: Likewise.
66514         * lib/safe-write.h: Likewise.
66515         * lib/same-inode.h: Likewise.
66516         * lib/same.c: Likewise.
66517         * lib/same.h: Likewise.
66518         * lib/save-cwd.c: Likewise.
66519         * lib/save-cwd.h: Likewise.
66520         * lib/savedir.c: Likewise.
66521         * lib/savedir.h: Likewise.
66522         * lib/savewd.c: Likewise.
66523         * lib/savewd.h: Likewise.
66524         * lib/search.in.h: Likewise.
66525         * lib/setenv.c: Likewise.
66526         * lib/setenv.h: Likewise.
66527         * lib/settime.c: Likewise.
66528         * lib/sh-quote.c: Likewise.
66529         * lib/sh-quote.h: Likewise.
66530         * lib/sig2str.c: Likewise.
66531         * lib/sig2str.h: Likewise.
66532         * lib/signal.in.h: Likewise.
66533         * lib/signbitd.c: Likewise.
66534         * lib/signbitf.c: Likewise.
66535         * lib/signbitl.c: Likewise.
66536         * lib/sigprocmask.c: Likewise.
66537         * lib/sincosl.c: Likewise.
66538         * lib/sleep.c: Likewise.
66539         * lib/sprintf.c: Likewise.
66540         * lib/sqrtl.c: Likewise.
66541         * lib/stat-time.h: Likewise.
66542         * lib/stdio--.h: Likewise.
66543         * lib/stdio-safer.h: Likewise.
66544         * lib/stdlib--.h: Likewise.
66545         * lib/stdlib-safer.h: Likewise.
66546         * lib/stdlib.in.h: Likewise.
66547         * lib/stpcpy.c: Likewise.
66548         * lib/stpncpy.c: Likewise.
66549         * lib/strchrnul.c: Likewise.
66550         * lib/strcspn.c: Likewise.
66551         * lib/strerror.c: Likewise.
66552         * lib/strftime.c: Likewise.
66553         * lib/strftime.h: Likewise.
66554         * lib/striconveh.c: Likewise.
66555         * lib/striconveh.h: Likewise.
66556         * lib/striconveha.c: Likewise.
66557         * lib/striconveha.h: Likewise.
66558         * lib/stripslash.c: Likewise.
66559         * lib/strnlen1.c: Likewise.
66560         * lib/strnlen1.h: Likewise.
66561         * lib/strtod.c: Likewise.
66562         * lib/strtoimax.c: Likewise.
66563         * lib/strtok_r.c: Likewise.
66564         * lib/strtol.c: Likewise.
66565         * lib/strtoll.c: Likewise.
66566         * lib/strtoul.c: Likewise.
66567         * lib/strtoull.c: Likewise.
66568         * lib/sysexits.in.h: Likewise.
66569         * lib/tempname.c: Likewise.
66570         * lib/tempname.h: Likewise.
66571         * lib/timespec.h: Likewise.
66572         * lib/tls.c: Likewise.
66573         * lib/tls.h: Likewise.
66574         * lib/tmpdir.c: Likewise.
66575         * lib/tmpdir.h: Likewise.
66576         * lib/tmpfile-safer.c: Likewise.
66577         * lib/tmpfile.c: Likewise.
66578         * lib/trigl.c: Likewise.
66579         * lib/trigl.h: Likewise.
66580         * lib/trim.c: Likewise.
66581         * lib/trim.h: Likewise.
66582         * lib/trunc.c: Likewise.
66583         * lib/truncf.c: Likewise.
66584         * lib/truncl.c: Likewise.
66585         * lib/tsearch.c: Likewise.
66586         * lib/unicodeio.c: Likewise.
66587         * lib/unicodeio.h: Likewise.
66588         * lib/unistd--.h: Likewise.
66589         * lib/unistd-safer.h: Likewise.
66590         * lib/unistdio/ulc-fprintf.c: Likewise.
66591         * lib/unistdio/ulc-vfprintf.c: Likewise.
66592         * lib/unlinkdir.c: Likewise.
66593         * lib/unlinkdir.h: Likewise.
66594         * lib/unlocked-io.h: Likewise.
66595         * lib/unsetenv.c: Likewise.
66596         * lib/userspec.c: Likewise.
66597         * lib/utime.c: Likewise.
66598         * lib/utimecmp.c: Likewise.
66599         * lib/utimecmp.h: Likewise.
66600         * lib/utimens.c: Likewise.
66601         * lib/verify.h: Likewise.
66602         * lib/verror.c: Likewise.
66603         * lib/verror.h: Likewise.
66604         * lib/version-etc-fsf.c: Likewise.
66605         * lib/version-etc.c: Likewise.
66606         * lib/version-etc.h: Likewise.
66607         * lib/vfprintf.c: Likewise.
66608         * lib/vprintf.c: Likewise.
66609         * lib/vsprintf.c: Likewise.
66610         * lib/w32spawn.h: Likewise.
66611         * lib/wait-process.c: Likewise.
66612         * lib/wait-process.h: Likewise.
66613         * lib/wcwidth.c: Likewise.
66614         * lib/write-any-file.c: Likewise.
66615         * lib/xalloc-die.c: Likewise.
66616         * lib/xalloc.h: Likewise.
66617         * lib/xasprintf.c: Likewise.
66618         * lib/xgetcwd.c: Likewise.
66619         * lib/xgetcwd.h: Likewise.
66620         * lib/xgetdomainname.c: Likewise.
66621         * lib/xgetdomainname.h: Likewise.
66622         * lib/xgethostname.c: Likewise.
66623         * lib/xmalloc.c: Likewise.
66624         * lib/xmalloca.c: Likewise.
66625         * lib/xmalloca.h: Likewise.
66626         * lib/xmemcoll.c: Likewise.
66627         * lib/xnanosleep.c: Likewise.
66628         * lib/xreadlink.c: Likewise.
66629         * lib/xreadlink.h: Likewise.
66630         * lib/xsetenv.c: Likewise.
66631         * lib/xsetenv.h: Likewise.
66632         * lib/xstriconv.c: Likewise.
66633         * lib/xstriconv.h: Likewise.
66634         * lib/xstrndup.c: Likewise.
66635         * lib/xstrndup.h: Likewise.
66636         * lib/xstrtod.c: Likewise.
66637         * lib/xstrtod.h: Likewise.
66638         * lib/xstrtol-error.c: Likewise.
66639         * lib/xstrtol.c: Likewise.
66640         * lib/xstrtol.h: Likewise.
66641         * lib/xtime.h: Likewise.
66642         * lib/xvasprintf.c: Likewise.
66643         * lib/xvasprintf.h: Likewise.
66644         * lib/yesno.c: Likewise.
66645         * lib/yesno.h: Likewise.
66646         * posix-modules: Likewise.
66647         * tests/test-alloca-opt.c: Likewise.
66648         * tests/test-arcfour.c: Likewise.
66649         * tests/test-arctwo.c: Likewise.
66650         * tests/test-argmatch.c: Likewise.
66651         * tests/test-argp-2.sh: Likewise.
66652         * tests/test-argp.c: Likewise.
66653         * tests/test-arpa_inet.c: Likewise.
66654         * tests/test-array_list.c: Likewise.
66655         * tests/test-array_oset.c: Likewise.
66656         * tests/test-atexit.c: Likewise.
66657         * tests/test-avltree_list.c: Likewise.
66658         * tests/test-avltree_oset.c: Likewise.
66659         * tests/test-avltreehash_list.c: Likewise.
66660         * tests/test-base64.c: Likewise.
66661         * tests/test-binary-io.c: Likewise.
66662         * tests/test-byteswap.c: Likewise.
66663         * tests/test-c-ctype.c: Likewise.
66664         * tests/test-c-strcasecmp.c: Likewise.
66665         * tests/test-c-strcasestr.c: Likewise.
66666         * tests/test-c-strncasecmp.c: Likewise.
66667         * tests/test-c-strstr.c: Likewise.
66668         * tests/test-canonicalize-lgpl.c: Likewise.
66669         * tests/test-canonicalize.c: Likewise.
66670         * tests/test-carray_list.c: Likewise.
66671         * tests/test-ceilf.c: Likewise.
66672         * tests/test-ceill.c: Likewise.
66673         * tests/test-count-one-bits.c: Likewise.
66674         * tests/test-crc.c: Likewise.
66675         * tests/test-dirname.c: Likewise.
66676         * tests/test-fbufmode.c: Likewise.
66677         * tests/test-fcntl.c: Likewise.
66678         * tests/test-fflush.c: Likewise.
66679         * tests/test-floorf.c: Likewise.
66680         * tests/test-floorl.c: Likewise.
66681         * tests/test-fopen.c: Likewise.
66682         * tests/test-fprintf-posix.c: Likewise.
66683         * tests/test-fprintf-posix.h: Likewise.
66684         * tests/test-fpurge.c: Likewise.
66685         * tests/test-freadable.c: Likewise.
66686         * tests/test-freadahead.c: Likewise.
66687         * tests/test-freading.c: Likewise.
66688         * tests/test-freopen.c: Likewise.
66689         * tests/test-frexp.c: Likewise.
66690         * tests/test-frexpl.c: Likewise.
66691         * tests/test-fseek.c: Likewise.
66692         * tests/test-fseeko.c: Likewise.
66693         * tests/test-fseterr.c: Likewise.
66694         * tests/test-fstrcmp.c: Likewise.
66695         * tests/test-ftell.c: Likewise.
66696         * tests/test-ftello.c: Likewise.
66697         * tests/test-fwritable.c: Likewise.
66698         * tests/test-fwriting.c: Likewise.
66699         * tests/test-getaddrinfo.c: Likewise.
66700         * tests/test-getpass.c: Likewise.
66701         * tests/test-gettimeofday.c: Likewise.
66702         * tests/test-hmac-md5.c: Likewise.
66703         * tests/test-hmac-sha1.c: Likewise.
66704         * tests/test-iconv.c: Likewise.
66705         * tests/test-iconvme.c: Likewise.
66706         * tests/test-inttypes.c: Likewise.
66707         * tests/test-isnan.c: Likewise.
66708         * tests/test-isnanf.c: Likewise.
66709         * tests/test-isnanl-nolibm.c: Likewise.
66710         * tests/test-isnanl.c: Likewise.
66711         * tests/test-isnanl.h: Likewise.
66712         * tests/test-ldexpl.c: Likewise.
66713         * tests/test-linked_list.c: Likewise.
66714         * tests/test-linkedhash_list.c: Likewise.
66715         * tests/test-locale.c: Likewise.
66716         * tests/test-localename.c: Likewise.
66717         * tests/test-lock.c: Likewise.
66718         * tests/test-lseek.c: Likewise.
66719         * tests/test-malloca.c: Likewise.
66720         * tests/test-math.c: Likewise.
66721         * tests/test-mbscasecmp.c: Likewise.
66722         * tests/test-mbscasestr1.c: Likewise.
66723         * tests/test-mbscasestr2.c: Likewise.
66724         * tests/test-mbscasestr3.c: Likewise.
66725         * tests/test-mbscasestr4.c: Likewise.
66726         * tests/test-mbschr.c: Likewise.
66727         * tests/test-mbscspn.c: Likewise.
66728         * tests/test-mbsncasecmp.c: Likewise.
66729         * tests/test-mbspbrk.c: Likewise.
66730         * tests/test-mbspcasecmp.c: Likewise.
66731         * tests/test-mbsrchr.c: Likewise.
66732         * tests/test-mbsspn.c: Likewise.
66733         * tests/test-mbsstr1.c: Likewise.
66734         * tests/test-mbsstr2.c: Likewise.
66735         * tests/test-mbsstr3.c: Likewise.
66736         * tests/test-md5.c: Likewise.
66737         * tests/test-memmem.c: Likewise.
66738         * tests/test-netinet_in.c: Likewise.
66739         * tests/test-open.c: Likewise.
66740         * tests/test-printf-frexp.c: Likewise.
66741         * tests/test-printf-frexpl.c: Likewise.
66742         * tests/test-printf-posix.c: Likewise.
66743         * tests/test-printf-posix.h: Likewise.
66744         * tests/test-rbtree_list.c: Likewise.
66745         * tests/test-rbtree_oset.c: Likewise.
66746         * tests/test-rbtreehash_list.c: Likewise.
66747         * tests/test-read-file.c: Likewise.
66748         * tests/test-rijndael.c: Likewise.
66749         * tests/test-search.c: Likewise.
66750         * tests/test-signbit.c: Likewise.
66751         * tests/test-sleep.c: Likewise.
66752         * tests/test-snprintf-posix.c: Likewise.
66753         * tests/test-snprintf-posix.h: Likewise.
66754         * tests/test-snprintf.c: Likewise.
66755         * tests/test-sprintf-posix.c: Likewise.
66756         * tests/test-sprintf-posix.h: Likewise.
66757         * tests/test-stat-time.c: Likewise.
66758         * tests/test-stdbool.c: Likewise.
66759         * tests/test-stdint.c: Likewise.
66760         * tests/test-stdio.c: Likewise.
66761         * tests/test-stdlib.c: Likewise.
66762         * tests/test-stpncpy.c: Likewise.
66763         * tests/test-strcasestr.c: Likewise.
66764         * tests/test-striconv.c: Likewise.
66765         * tests/test-striconveh.c: Likewise.
66766         * tests/test-striconveha.c: Likewise.
66767         * tests/test-string.c: Likewise.
66768         * tests/test-sys_select.c: Likewise.
66769         * tests/test-sys_socket.c: Likewise.
66770         * tests/test-sys_stat.c: Likewise.
66771         * tests/test-sys_time.c: Likewise.
66772         * tests/test-sysexits.c: Likewise.
66773         * tests/test-time.c: Likewise.
66774         * tests/test-tls.c: Likewise.
66775         * tests/test-trunc.c: Likewise.
66776         * tests/test-truncf.c: Likewise.
66777         * tests/test-truncl.c: Likewise.
66778         * tests/test-unistd.c: Likewise.
66779         * tests/test-vasnprintf-posix.c: Likewise.
66780         * tests/test-vasnprintf-posix2.c: Likewise.
66781         * tests/test-vasnprintf.c: Likewise.
66782         * tests/test-vasprintf-posix.c: Likewise.
66783         * tests/test-vasprintf.c: Likewise.
66784         * tests/test-verify.c: Likewise.
66785         * tests/test-vfprintf-posix.c: Likewise.
66786         * tests/test-vprintf-posix.c: Likewise.
66787         * tests/test-vsnprintf-posix.c: Likewise.
66788         * tests/test-vsnprintf.c: Likewise.
66789         * tests/test-vsprintf-posix.c: Likewise.
66790         * tests/test-wchar.c: Likewise.
66791         * tests/test-wctype.c: Likewise.
66792         * tests/test-wcwidth.c: Likewise.
66793         * tests/test-xstrtol.c: Likewise.
66794         * tests/test-xvasprintf.c: Likewise.
66795         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66796         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66797         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66798         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66799         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66800         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66801         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66802         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66803         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66804         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66805         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66806         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66807         * tests/uniname/test-uninames.c: Likewise.
66808         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66809         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
66810         * tests/unistdio/test-u16-printf1.h: Likewise.
66811         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66812         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66813         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66814         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66815         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66816         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66817         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66818         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
66819         * tests/unistdio/test-u32-printf1.h: Likewise.
66820         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66821         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66822         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66823         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66824         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66825         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66826         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66827         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
66828         * tests/unistdio/test-u8-printf1.h: Likewise.
66829         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66830         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66831         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66832         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66833         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66834         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66835         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66836         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
66837         * tests/unistdio/test-ulc-printf1.h: Likewise.
66838         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66839         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66840         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66841         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66842         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66843         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66844         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66845         * tests/uniwidth/test-u16-width.c: Likewise.
66846         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66847         * tests/uniwidth/test-u32-width.c: Likewise.
66848         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66849         * tests/uniwidth/test-u8-width.c: Likewise.
66850         * tests/uniwidth/test-uc_width.c: Likewise.
66851         * config/srclist-update: Likewise.
66852         (fixlicense): Update to GPLv3+.
66853
66854         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66855         * tests/test-tsearch.c: Change copyright notice.
66856
66857         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66858         * lib/c-strcaseeq.h: Change copyright notice.
66859         * lib/streq.h: Likewise.
66860         * lib/uniconv.h: Likewise.
66861         * lib/uniconv/u-conv-from-enc.h: Likewise.
66862         * lib/uniconv/u-conv-to-enc.h: Likewise.
66863         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66864         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66865         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66866         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66867         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66868         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66869         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66870         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66871         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66872         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66873         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66874         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66875         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66876         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66877         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66878         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66879         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66880         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66881         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66882         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66883         * lib/uniname.h: Likewise.
66884         * lib/uniname/uniname.c: Likewise.
66885         * lib/unistdio.h: Likewise.
66886         * lib/unistdio/u-asnprintf.h: Likewise.
66887         * lib/unistdio/u-asprintf.h: Likewise.
66888         * lib/unistdio/u-printf-args.c: Likewise.
66889         * lib/unistdio/u-printf-args.h: Likewise.
66890         * lib/unistdio/u-printf-parse.h: Likewise.
66891         * lib/unistdio/u-snprintf.h: Likewise.
66892         * lib/unistdio/u-sprintf.h: Likewise.
66893         * lib/unistdio/u-vasprintf.h: Likewise.
66894         * lib/unistdio/u-vsnprintf.h: Likewise.
66895         * lib/unistdio/u-vsprintf.h: Likewise.
66896         * lib/unistdio/u16-asnprintf.c: Likewise.
66897         * lib/unistdio/u16-asprintf.c: Likewise.
66898         * lib/unistdio/u16-printf-parse.c: Likewise.
66899         * lib/unistdio/u16-snprintf.c: Likewise.
66900         * lib/unistdio/u16-sprintf.c: Likewise.
66901         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66902         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66903         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66904         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66905         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66906         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66907         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66908         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66909         * lib/unistdio/u16-vasnprintf.c: Likewise.
66910         * lib/unistdio/u16-vasprintf.c: Likewise.
66911         * lib/unistdio/u16-vsnprintf.c: Likewise.
66912         * lib/unistdio/u16-vsprintf.c: Likewise.
66913         * lib/unistdio/u32-asnprintf.c: Likewise.
66914         * lib/unistdio/u32-asprintf.c: Likewise.
66915         * lib/unistdio/u32-printf-parse.c: Likewise.
66916         * lib/unistdio/u32-snprintf.c: Likewise.
66917         * lib/unistdio/u32-sprintf.c: Likewise.
66918         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66919         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66920         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66921         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66922         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66923         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66924         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66925         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66926         * lib/unistdio/u32-vasnprintf.c: Likewise.
66927         * lib/unistdio/u32-vasprintf.c: Likewise.
66928         * lib/unistdio/u32-vsnprintf.c: Likewise.
66929         * lib/unistdio/u32-vsprintf.c: Likewise.
66930         * lib/unistdio/u8-asnprintf.c: Likewise.
66931         * lib/unistdio/u8-asprintf.c: Likewise.
66932         * lib/unistdio/u8-printf-parse.c: Likewise.
66933         * lib/unistdio/u8-snprintf.c: Likewise.
66934         * lib/unistdio/u8-sprintf.c: Likewise.
66935         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66936         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66937         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66938         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66939         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66940         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66941         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66942         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66943         * lib/unistdio/u8-vasnprintf.c: Likewise.
66944         * lib/unistdio/u8-vasprintf.c: Likewise.
66945         * lib/unistdio/u8-vsnprintf.c: Likewise.
66946         * lib/unistdio/u8-vsprintf.c: Likewise.
66947         * lib/unistdio/ulc-asnprintf.c: Likewise.
66948         * lib/unistdio/ulc-asprintf.c: Likewise.
66949         * lib/unistdio/ulc-printf-parse.c: Likewise.
66950         * lib/unistdio/ulc-snprintf.c: Likewise.
66951         * lib/unistdio/ulc-sprintf.c: Likewise.
66952         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66953         * lib/unistdio/ulc-vasprintf.c: Likewise.
66954         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66955         * lib/unistdio/ulc-vsprintf.c: Likewise.
66956         * lib/unistr.h: Likewise.
66957         * lib/unistr/u-cpy-alloc.h: Likewise.
66958         * lib/unistr/u-cpy.h: Likewise.
66959         * lib/unistr/u-endswith.h: Likewise.
66960         * lib/unistr/u-move.h: Likewise.
66961         * lib/unistr/u-set.h: Likewise.
66962         * lib/unistr/u-startswith.h: Likewise.
66963         * lib/unistr/u-stpcpy.h: Likewise.
66964         * lib/unistr/u-stpncpy.h: Likewise.
66965         * lib/unistr/u-strcat.h: Likewise.
66966         * lib/unistr/u-strcpy.h: Likewise.
66967         * lib/unistr/u-strcspn.h: Likewise.
66968         * lib/unistr/u-strdup.h: Likewise.
66969         * lib/unistr/u-strlen.h: Likewise.
66970         * lib/unistr/u-strncat.h: Likewise.
66971         * lib/unistr/u-strncpy.h: Likewise.
66972         * lib/unistr/u-strnlen.h: Likewise.
66973         * lib/unistr/u-strpbrk.h: Likewise.
66974         * lib/unistr/u-strspn.h: Likewise.
66975         * lib/unistr/u-strstr.h: Likewise.
66976         * lib/unistr/u-strtok.h: Likewise.
66977         * lib/unistr/u16-check.c: Likewise.
66978         * lib/unistr/u16-chr.c: Likewise.
66979         * lib/unistr/u16-cmp.c: Likewise.
66980         * lib/unistr/u16-cpy-alloc.c: Likewise.
66981         * lib/unistr/u16-cpy.c: Likewise.
66982         * lib/unistr/u16-endswith.c: Likewise.
66983         * lib/unistr/u16-mblen.c: Likewise.
66984         * lib/unistr/u16-mbsnlen.c: Likewise.
66985         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66986         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66987         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66988         * lib/unistr/u16-mbtouc.c: Likewise.
66989         * lib/unistr/u16-mbtoucr.c: Likewise.
66990         * lib/unistr/u16-move.c: Likewise.
66991         * lib/unistr/u16-next.c: Likewise.
66992         * lib/unistr/u16-prev.c: Likewise.
66993         * lib/unistr/u16-set.c: Likewise.
66994         * lib/unistr/u16-startswith.c: Likewise.
66995         * lib/unistr/u16-stpcpy.c: Likewise.
66996         * lib/unistr/u16-stpncpy.c: Likewise.
66997         * lib/unistr/u16-strcat.c: Likewise.
66998         * lib/unistr/u16-strchr.c: Likewise.
66999         * lib/unistr/u16-strcmp.c: Likewise.
67000         * lib/unistr/u16-strcpy.c: Likewise.
67001         * lib/unistr/u16-strcspn.c: Likewise.
67002         * lib/unistr/u16-strdup.c: Likewise.
67003         * lib/unistr/u16-strlen.c: Likewise.
67004         * lib/unistr/u16-strmblen.c: Likewise.
67005         * lib/unistr/u16-strmbtouc.c: Likewise.
67006         * lib/unistr/u16-strncat.c: Likewise.
67007         * lib/unistr/u16-strncmp.c: Likewise.
67008         * lib/unistr/u16-strncpy.c: Likewise.
67009         * lib/unistr/u16-strnlen.c: Likewise.
67010         * lib/unistr/u16-strpbrk.c: Likewise.
67011         * lib/unistr/u16-strrchr.c: Likewise.
67012         * lib/unistr/u16-strspn.c: Likewise.
67013         * lib/unistr/u16-strstr.c: Likewise.
67014         * lib/unistr/u16-strtok.c: Likewise.
67015         * lib/unistr/u16-to-u32.c: Likewise.
67016         * lib/unistr/u16-to-u8.c: Likewise.
67017         * lib/unistr/u16-uctomb-aux.c: Likewise.
67018         * lib/unistr/u16-uctomb.c: Likewise.
67019         * lib/unistr/u32-check.c: Likewise.
67020         * lib/unistr/u32-chr.c: Likewise.
67021         * lib/unistr/u32-cmp.c: Likewise.
67022         * lib/unistr/u32-cpy-alloc.c: Likewise.
67023         * lib/unistr/u32-cpy.c: Likewise.
67024         * lib/unistr/u32-endswith.c: Likewise.
67025         * lib/unistr/u32-mblen.c: Likewise.
67026         * lib/unistr/u32-mbsnlen.c: Likewise.
67027         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67028         * lib/unistr/u32-mbtouc.c: Likewise.
67029         * lib/unistr/u32-mbtoucr.c: Likewise.
67030         * lib/unistr/u32-move.c: Likewise.
67031         * lib/unistr/u32-next.c: Likewise.
67032         * lib/unistr/u32-prev.c: Likewise.
67033         * lib/unistr/u32-set.c: Likewise.
67034         * lib/unistr/u32-startswith.c: Likewise.
67035         * lib/unistr/u32-stpcpy.c: Likewise.
67036         * lib/unistr/u32-stpncpy.c: Likewise.
67037         * lib/unistr/u32-strcat.c: Likewise.
67038         * lib/unistr/u32-strchr.c: Likewise.
67039         * lib/unistr/u32-strcmp.c: Likewise.
67040         * lib/unistr/u32-strcpy.c: Likewise.
67041         * lib/unistr/u32-strcspn.c: Likewise.
67042         * lib/unistr/u32-strdup.c: Likewise.
67043         * lib/unistr/u32-strlen.c: Likewise.
67044         * lib/unistr/u32-strmblen.c: Likewise.
67045         * lib/unistr/u32-strmbtouc.c: Likewise.
67046         * lib/unistr/u32-strncat.c: Likewise.
67047         * lib/unistr/u32-strncmp.c: Likewise.
67048         * lib/unistr/u32-strncpy.c: Likewise.
67049         * lib/unistr/u32-strnlen.c: Likewise.
67050         * lib/unistr/u32-strpbrk.c: Likewise.
67051         * lib/unistr/u32-strrchr.c: Likewise.
67052         * lib/unistr/u32-strspn.c: Likewise.
67053         * lib/unistr/u32-strstr.c: Likewise.
67054         * lib/unistr/u32-strtok.c: Likewise.
67055         * lib/unistr/u32-to-u16.c: Likewise.
67056         * lib/unistr/u32-to-u8.c: Likewise.
67057         * lib/unistr/u32-uctomb.c: Likewise.
67058         * lib/unistr/u8-check.c: Likewise.
67059         * lib/unistr/u8-chr.c: Likewise.
67060         * lib/unistr/u8-cmp.c: Likewise.
67061         * lib/unistr/u8-cpy-alloc.c: Likewise.
67062         * lib/unistr/u8-cpy.c: Likewise.
67063         * lib/unistr/u8-endswith.c: Likewise.
67064         * lib/unistr/u8-mblen.c: Likewise.
67065         * lib/unistr/u8-mbsnlen.c: Likewise.
67066         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67067         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67068         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67069         * lib/unistr/u8-mbtouc.c: Likewise.
67070         * lib/unistr/u8-mbtoucr.c: Likewise.
67071         * lib/unistr/u8-move.c: Likewise.
67072         * lib/unistr/u8-next.c: Likewise.
67073         * lib/unistr/u8-prev.c: Likewise.
67074         * lib/unistr/u8-set.c: Likewise.
67075         * lib/unistr/u8-startswith.c: Likewise.
67076         * lib/unistr/u8-stpcpy.c: Likewise.
67077         * lib/unistr/u8-stpncpy.c: Likewise.
67078         * lib/unistr/u8-strcat.c: Likewise.
67079         * lib/unistr/u8-strchr.c: Likewise.
67080         * lib/unistr/u8-strcmp.c: Likewise.
67081         * lib/unistr/u8-strcpy.c: Likewise.
67082         * lib/unistr/u8-strcspn.c: Likewise.
67083         * lib/unistr/u8-strdup.c: Likewise.
67084         * lib/unistr/u8-strlen.c: Likewise.
67085         * lib/unistr/u8-strmblen.c: Likewise.
67086         * lib/unistr/u8-strmbtouc.c: Likewise.
67087         * lib/unistr/u8-strncat.c: Likewise.
67088         * lib/unistr/u8-strncmp.c: Likewise.
67089         * lib/unistr/u8-strncpy.c: Likewise.
67090         * lib/unistr/u8-strnlen.c: Likewise.
67091         * lib/unistr/u8-strpbrk.c: Likewise.
67092         * lib/unistr/u8-strrchr.c: Likewise.
67093         * lib/unistr/u8-strspn.c: Likewise.
67094         * lib/unistr/u8-strstr.c: Likewise.
67095         * lib/unistr/u8-strtok.c: Likewise.
67096         * lib/unistr/u8-to-u16.c: Likewise.
67097         * lib/unistr/u8-to-u32.c: Likewise.
67098         * lib/unistr/u8-uctomb-aux.c: Likewise.
67099         * lib/unistr/u8-uctomb.c: Likewise.
67100         * lib/unitypes.h: Likewise.
67101         * lib/uniwidth.h: Likewise.
67102         * lib/uniwidth/cjk.h: Likewise.
67103         * lib/uniwidth/u16-strwidth.c: Likewise.
67104         * lib/uniwidth/u16-width.c: Likewise.
67105         * lib/uniwidth/u32-strwidth.c: Likewise.
67106         * lib/uniwidth/u32-width.c: Likewise.
67107         * lib/uniwidth/u8-strwidth.c: Likewise.
67108         * lib/uniwidth/u8-width.c: Likewise.
67109         * lib/uniwidth/width.c: Likewise.
67110
67111 2007-10-07  Bruno Haible  <bruno@clisp.org>
67112
67113         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67114         The file is still under LGPL (see modules/inttypes).
67115
67116 2007-10-06  Bruno Haible  <bruno@clisp.org>
67117
67118         * modules/trunc (Dependencies): Add 'extensions'.
67119         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67120         Reported by Ben Pfaff <blp@gnu.org>.
67121
67122 2007-10-06  Bruno Haible  <bruno@clisp.org>
67123
67124         * modules/freopen-tests: New file.
67125         * tests/test-freopen.c: New file.
67126
67127         * modules/fopen-tests: New file.
67128         * tests/test-fopen.c: New file.
67129
67130         * modules/fopen: New file.
67131         * lib/fopen.c: New file.
67132         * m4/fopen.m4: New file.
67133         * modules/freopen: New file.
67134         * lib/freopen.c: New file.
67135         * m4/freopen.m4: New file.
67136         * lib/stdio.in.h (fopen, freopen): New declarations.
67137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67138         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67139         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67140         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67141         * doc/functions/fopen.texi: Mention the 'fopen' module.
67142         * doc/functions/freopen.texi: Mention the 'freopen' module.
67143
67144 2007-10-06  Bruno Haible  <bruno@clisp.org>
67145
67146         * modules/open-tests: New file.
67147         * tests/test-open.c: New file.
67148
67149         * modules/open: New file.
67150         * lib/open.c: New file.
67151         * m4/open.m4: New file.
67152         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67153         lib/open.c does.
67154         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67155         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67156         macros.
67157         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67158         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67159         REPLACE_OPEN.
67160         * doc/functions/open.texi: Mention the 'open' module.
67161
67162 2007-10-04  Bruno Haible  <bruno@clisp.org>
67163
67164         * modules/ceill-tests: New file.
67165         * tests/test-ceill.c: New file.
67166
67167         * modules/ceill: New file.
67168         * lib/ceill.c: Replace entire file.
67169         * m4/ceill.m4: New file.
67170         * lib/math.in.h (ceill): Replace declaration.
67171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67172         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67173         * doc/functions/ceill.texi: Mention the 'ceill' module.
67174         * modules/mathl (Files): Remove lib/ceill.c.
67175         (Depends-on): Add ceill.
67176
67177 2007-10-04  Bruno Haible  <bruno@clisp.org>
67178
67179         * modules/ceilf-tests: New file.
67180         * tests/test-ceilf.c: New file.
67181
67182         * modules/ceilf: New file.
67183         * lib/ceil.c: New file.
67184         * lib/ceilf.c: New file.
67185         * m4/ceilf.m4: New file.
67186         * lib/math.in.h (ceilf): New declaration.
67187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67188         HAVE_DECL_CEILF.
67189         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67190         HAVE_DECL_CEILF.
67191         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67192
67193 2007-10-04  Bruno Haible  <bruno@clisp.org>
67194
67195         * modules/floorl-tests: New file.
67196         * tests/test-floorl.c: New file.
67197
67198         * modules/floorl: New file.
67199         * lib/floorl.c: Replace entire file.
67200         * m4/floorl.m4: New file.
67201         * lib/math.in.h (floorl): Replace declaration.
67202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67203         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67204         * doc/functions/floorl.texi: Mention the 'floorl' module.
67205         * modules/mathl (Files): Remove lib/floorl.c.
67206         (Depends-on): Add floorl.
67207
67208 2007-10-04  Bruno Haible  <bruno@clisp.org>
67209
67210         * modules/floorf-tests: New file.
67211         * tests/test-floorf.c: New file.
67212
67213         * modules/floorf: New file.
67214         * lib/floor.c: New file.
67215         * lib/floorf.c: New file.
67216         * m4/floorf.m4: New file.
67217         * lib/math.in.h (floorf): New declaration.
67218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67219         HAVE_DECL_FLOORF.
67220         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67221         HAVE_DECL_FLOORF.
67222         * doc/functions/floorf.texi: Mention the 'floorf' module.
67223
67224 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67225             Bruno Haible  <bruno@clisp.org>
67226
67227         Advertise for the Git server instead of the CVS server.
67228         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67229         repository instead of the CVS one.
67230         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67231         about all VCS systems generically.
67232         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67233
67234 2007-10-04  Bruno Haible  <bruno@clisp.org>
67235
67236         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67237         means.
67238         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67239
67240 2007-10-04  Bruno Haible  <bruno@clisp.org>
67241
67242         * modules/truncl-tests: New file.
67243         * tests/test-truncl.c: New file.
67244
67245         * modules/truncl: New file.
67246         * lib/truncl.c: New file.
67247         * m4/truncl.m4: New file.
67248         * lib/math.in.h (truncl): New declaration.
67249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67250         HAVE_DECL_TRUNCL.
67251         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67252         HAVE_DECL_TRUNCL.
67253         * doc/functions/truncl.texi: Mention the 'truncl' module.
67254
67255 2007-10-04  Bruno Haible  <bruno@clisp.org>
67256
67257         * modules/truncf-tests: New file.
67258         * tests/test-truncf.c: New file.
67259
67260         * modules/truncf: New file.
67261         * lib/trunc.c: Make paramerizable through USE_* macros.
67262         * lib/truncf.c: New file.
67263         * m4/truncf.m4: New file.
67264         * lib/math.in.h (truncf): New declaration.
67265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67266         HAVE_DECL_TRUNCF.
67267         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67268         HAVE_DECL_TRUNCF.
67269         * doc/functions/truncf.texi: Mention the 'truncf' module.
67270
67271 2007-10-03  Bruno Haible  <bruno@clisp.org>
67272
67273         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67274         augmentation also for tests modules.
67275         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67276         * modules/atexit-tests (Makefile.am): Likewise.
67277         * modules/binary-io-tests (Makefile.am): Likewise.
67278         * modules/c-strcase-tests (Makefile.am): Likewise.
67279         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67280         * modules/canonicalize-tests (Makefile.am): Likewise.
67281         * modules/closein-tests (Makefile.am): Likewise.
67282         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67283         * modules/freadahead-tests (Makefile.am): Likewise.
67284         * modules/fseek-tests (Makefile.am): Likewise.
67285         * modules/fseeko-tests (Makefile.am): Likewise.
67286         * modules/ftell-tests (Makefile.am): Likewise.
67287         * modules/ftello-tests (Makefile.am): Likewise.
67288         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67289         * modules/isnanl-tests (Makefile.am): Likewise.
67290         * modules/lseek-tests (Makefile.am): Likewise.
67291         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67292         * modules/mbscasestr-tests (Makefile.am): Likewise.
67293         * modules/mbschr-tests (Makefile.am): Likewise.
67294         * modules/mbscspn-tests (Makefile.am): Likewise.
67295         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67296         * modules/mbspbrk-tests (Makefile.am): Likewise.
67297         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67298         * modules/mbsrchr-tests (Makefile.am): Likewise.
67299         * modules/mbsspn-tests (Makefile.am): Likewise.
67300         * modules/mbsstr-tests (Makefile.am): Likewise.
67301         * modules/printf-posix-tests (Makefile.am): Likewise.
67302         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67303         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67304         * modules/tsearch-tests (Makefile.am): Likewise.
67305         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67306         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67307         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67308         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67309         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67310         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67311         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67312         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67313         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67314         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67315         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67316         * modules/xstrtol-tests (Makefile.am): Likewise.
67317         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67318         * modules/yesno-tests (Makefile.am): Likewise.
67319
67320 2007-10-03  Bruno Haible  <bruno@clisp.org>
67321
67322         * modules/trunc-tests: New file.
67323         * tests/test-trunc.c: New file.
67324
67325         * modules/trunc: New file.
67326         * lib/trunc.c: New file.
67327         * m4/trunc.m4: New file.
67328         * lib/math.in.h (trunc): New declaration.
67329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67330         HAVE_DECL_TRUNC.
67331         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67332         HAVE_DECL_TRUNC.
67333         * doc/functions/trunc.texi: Mention the 'trunc' module.
67334
67335 2007-10-03  Bruno Haible  <bruno@clisp.org>
67336
67337         * tests/test-fpending.c: New file, mostly copied
67338         from coreutils/lib/t-fpending.c.
67339         * modules/fpending-tests: New file.
67340
67341 2007-10-03  Bruno Haible  <bruno@clisp.org>
67342
67343         Port the stdio extensions to QNX (untested).
67344         * lib/fseterr.c (fseterr): Add support for QNX.
67345         * lib/fbufmode.c (fbufmode): Likewise.
67346         * lib/freadable.c (freadable): Likewise.
67347         * lib/fwritable.c (fwritable): Likewise.
67348         * lib/freading.c (freading): Likewise.
67349         * lib/fwriting.c (fwriting): Likewise.
67350         * lib/freadahead.c (freadahed): Likewise.
67351         * lib/fpurge.c (fpurge): Likewise.
67352         * lib/fseeko.c (rpl_fseeko): Likewise.
67353
67354 2007-10-03  Bruno Haible  <bruno@clisp.org>
67355             Jim Meyering  <jim@meyering.net>
67356             Eric Blake  <ebb9@byu.net>
67357
67358         * doc/relocatable.texi: Use @command instead of @program.
67359
67360 2007-10-02  Jim Meyering  <jim@meyering.net>
67361
67362         Perform one more "_.h" -> ".in.h" substitution.
67363         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67364         instead of unistd_.h here, too.
67365
67366 2007-10-01  Bruno Haible  <bruno@clisp.org>
67367
67368         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67369         Needed for the alloca-opt module.
67370
67371 2007-09-30  Bruno Haible  <bruno@clisp.org>
67372
67373         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67374         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67375         alloca_.h.
67376         * lib/argz.in.h: Renamed from lib/argz_.h.
67377         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67378         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67379         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67380         byteswap_.h.
67381         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67382         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67383         dirent_.h.
67384         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67385         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67386         fcntl_.h.
67387         * lib/float.in.h: Renamed from lib/float_.h.
67388         * modules/float (Files, Makefile.am): Use float.in.h instead of
67389         float_.h.
67390         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67391         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67392         fnmatch_.h.
67393         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67394         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67395         getopt_.h.
67396         * lib/glob.in.h: Renamed from lib/glob_.h.
67397         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67398         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67399         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67400         iconv_.h.
67401         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67402         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67403         inttypes_.h.
67404         * lib/locale.in.h: Renamed from lib/locale_.h.
67405         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67406         locale_.h.
67407         * lib/math.in.h: Renamed from lib/math_.h.
67408         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67409         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67410         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67411         of netinet_in_.h. Add dependency.
67412         * lib/poll.in.h: Renamed from lib/poll_.h.
67413         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67414         * lib/search.in.h: Renamed from lib/search_.h.
67415         * modules/search (Files, Makefile.am): Use search.in.h instead of
67416         search_.h.
67417         * lib/signal.in.h: Renamed from lib/signal_.h.
67418         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67419         _signal.h.
67420         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67421         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67422         stdbool_.h.
67423         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67424         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67425         stdint_.h.
67426         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67427         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67428         stdio_.h.
67429         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67430         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67431         stdlib_.h.
67432         * lib/string.in.h: Renamed from lib/string_.h.
67433         * modules/string (Files, Makefile.am): Use string.in.h instead of
67434         string_.h.
67435         * doc/gnulib-tool.texi (Initial import): Update.
67436         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67437         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67438         of sys_select_.h. Add dependency.
67439         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67440         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67441         of sys_socket_.h.
67442         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67443         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67444         sys_stat_.h.
67445         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67446         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67447         sys_time_.h.
67448         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67449         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67450         sysexits_.h.
67451         * lib/time.in.h: Renamed from lib/time_.h.
67452         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67453         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67454         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67455         unistd_.h.
67456         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67457         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67458         wchar_.h.
67459         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67460         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67461         wctype_.h.
67462         * build-aux/bootstrap (slurp): Update.
67463         * lib/.cppi-disable: Update.
67464
67465 2007-09-30  Bruno Haible  <bruno@clisp.org>
67466
67467         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67468         Needed on BeOS.
67469
67470 2007-09-30  Bruno Haible  <bruno@clisp.org>
67471
67472         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67473
67474 2007-09-29  Bruno Haible  <bruno@clisp.org>
67475
67476         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67477
67478 2007-09-29  Bruno Haible  <bruno@clisp.org>
67479
67480         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67481         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67482         * build-aux/install-reloc: Compile also areadlink.c.
67483         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67484
67485 2007-09-29  Bruno Haible  <bruno@clisp.org>
67486
67487         * gnulib-tool (func_emit_initmacro_done): Indentation.
67488
67489 2007-09-29  Bruno Haible  <bruno@clisp.org>
67490
67491         * README: Add CVS checkout update instructions.
67492         Info from Bob Proulx <bob@proulx.com>.
67493
67494 2007-09-28  Eric Blake  <ebb9@byu.net>
67495
67496         Provide move-if-change.
67497         * build-aux/move-if-change: New file, based on best practice
67498         rather than any canonical upstream location.
67499
67500 2007-09-28  Jim Meyering  <jim@meyering.net>
67501
67502         Fix canonicalize loop-detection corner case.
67503         Do not attempt to stat the symlink values stored via seen_triple.
67504         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67505         on linux-2.6.18, (but not 2.6.22).
67506         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67507         triple_compare.  The former compares dev,ino,filename, while the latter
67508         would actually stat dirname(filename) when dev and ino were equal.
67509         * lib/hash-triple.c: Install <string.h>.
67510         (STREQ): Define.
67511         (triple_compare_ino_str): New function.
67512         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67513
67514 2007-09-28  Eric Blake  <ebb9@byu.net>
67515
67516         Enforce that AC_REPLACE_FUNCS files exist.
67517         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67518         override check for typos.
67519
67520         Fix test-closein on Solaris 10.
67521         * tests/test-closein.c (main): Don't assume stdin can be inherited
67522         closed on all systems.
67523         * tests/test-closein.sh: Likewise.
67524         Reported by Piotr Tarnowski.
67525
67526 2007-09-28  Jim Meyering  <jim@meyering.net>
67527
67528         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67529
67530 2007-09-27  Jim Meyering  <jim@meyering.net>
67531
67532         canonicalize: Avoid a false-positive cycle failure.
67533         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67534         Sort.  Remove cycle-check.
67535         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67536         not cycle-check.h.
67537         (seen_triple): New function.
67538         (canonicalize_filename_mode): Use it instead of cycle-check.
67539         * tests/test-canonicalize.c: Add a test for this bug.
67540         * tests/test-canonicalize.sh: Set up and run the test.
67541
67542         New module, file-set, from coreutils.
67543         * modules/file-set: Define it.
67544         * lib/file-set.c, lib/file-set.h: Implement.
67545
67546         New module, hash-triple, from coreutils.
67547         * modules/hash-triple: Define it.
67548         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67549
67550 2007-09-25  Eric Blake  <ebb9@byu.net>
67551
67552         Fix strerror on Interix.
67553         * lib/string_.h (strerror): Declare replacement.
67554         * doc/functions/strerror.texi (strerror): Document the Interix
67555         shortcoming.
67556         * modules/string (Makefile.am): Support new hooks.
67557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67558         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67559         gl_FUNC_STRERROR_SEPARATE.
67560         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67561         * lib/strerror.c (rpl_strerror): Provide replacement.
67562         * modules/strerror (Depends-on): Add string.
67563         (configure.ac): Detect use of module.
67564         * tests/test-strerror.c: New file.
67565         * modules/strerror-tests: New test module.
67566         * modules/argp (Depends-on): Add strerror.
67567         * modules/error (Depends-on): Likewise.
67568         Reported by Martin Koeppe.
67569
67570 2007-09-24  Bruno Haible  <bruno@clisp.org>
67571
67572         * README: Update git instructions.
67573
67574 2007-09-24  Eric Blake  <ebb9@byu.net>
67575
67576         Revert fpending breakage from 2007-09-08.
67577         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67578         __fpending.c.
67579
67580 2007-09-24  Jim Meyering  <jim@meyering.net>
67581
67582         filenamecat.c: Add a test.
67583         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67584         showing how the function works when DIR is the empty string.
67585
67586 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67587
67588         * tests/test-canonicalize.sh: Turn on executable bit.
67589
67590 2007-09-19  Eric Blake  <ebb9@byu.net>
67591
67592         * README: Update CVS instructions.
67593
67594 2007-09-18  Bruno Haible  <bruno@clisp.org>
67595
67596         * modules/areadlink: New file.
67597         * lib/areadlink.h (areadlink): New declaration.
67598         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67599
67600 2007-09-17  Jim Meyering  <jim@meyering.net>
67601
67602         * lib/savewd.c (ESTALE) [!defined]: Define.
67603         Reported to be required on Interix by Martin Koeppe.
67604
67605 2007-09-17  Bruno Haible  <bruno@clisp.org>
67606
67607         * gnulib-tool (func_version): Use $version.
67608
67609 2007-09-16  Bruno Haible  <bruno@clisp.org>
67610
67611         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67612         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67613         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67614         Reported by Greg Schafer <gschafer@zip.com.au>.
67615
67616 2007-09-15  Bruno Haible  <bruno@clisp.org>
67617
67618         * gnulib-tool (sed): Try a little harder to make bash understand the
67619         alias.
67620         Reported by Bruce Korb <bruce.korb@gmail.com>.
67621
67622 2007-09-13  Eric Blake  <ebb9@byu.net>
67623
67624         * ChangeLog: Remove conflict markers.
67625
67626 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67627
67628         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67629         Reported by Bruno Haible <bruno@clisp.org>.
67630
67631 2007-09-12  Bruno Haible  <bruno@clisp.org>
67632
67633         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67634         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67635         is not defined.
67636
67637 2007-09-12  Eric Blake  <ebb9@byu.net>
67638
67639         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67640         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67641         Autoconf definition.
67642         * modules/euidaccess (Depends-on): Add extensions, for
67643         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67644         * modules/fnmatch (Depends-on): Likewise.
67645         * modules/getaddrinfo (Depends-on): Likewise.
67646         * modules/getdelim (Depends-on): Likewise.
67647         * modules/getline (Depends-on): Likewise.
67648         * modules/getsubopt (Depends-on): Likewise.
67649         * modules/gettext (Depends-on): Likewise.
67650         * modules/group-member (Depends-on): Likewise.
67651         * modules/mbchar (Depends-on): Likewise.
67652         * modules/memmem (Depends-on): Likewise.
67653         * modules/mempcpy (Depends-on): Likewise.
67654         * modules/memrchr (Depends-on): Likewise.
67655         * modules/pagealign_alloc (Depends-on): Likewise.
67656         * modules/readutmp (Depends-on): Likewise.
67657         * modules/stpcpy (Depends-on): Likewise.
67658         * modules/stpncpy (Depends-on): Likewise.
67659         * modules/strchrnul (Depends-on): Likewise.
67660         * modules/strndup (Depends-on): Likewise.
67661         * modules/strsep (Depends-on): Likewise.
67662         * modules/strverscmp (Depends-on): Likewise.
67663         * modules/vasprintf (Depends-on): Likewise.
67664         * modules/wcwidth (Depends-on): Likewise.
67665         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67666         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67667         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67668         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67669         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67670         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67671         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67672         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67673         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67674         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67675         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67676         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67677         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67678         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67679         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67680         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67681         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67682         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67683         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67684         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67685         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67686         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67687         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67688         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67689         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67691         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67692         so that lock.m4 can be used in gettext without extensions module.
67693
67694 2007-09-11  Bruno Haible  <bruno@clisp.org>
67695
67696         * m4/isc-posix.m4: Remove file.
67697         Suggested by Eric Blake.
67698
67699 2007-09-11  Eric Blake  <ebb9@byu.net>
67700
67701         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67702
67703 2007-09-10  Bruno Haible  <bruno@clisp.org>
67704
67705         * posix-modules: Fix typo in error message.
67706         Reported by Matt <mkraai@beckman.com>.
67707
67708 2007-09-09  Bruno Haible  <bruno@clisp.org>
67709
67710         * doc/functions/getdelim.texi: Update list of platforms lacking the
67711         function.
67712         * doc/functions/getline.texi: Likewise.
67713
67714 2007-09-09  Jim Meyering  <jim@meyering.net>
67715
67716         * lib/hash.c (hash_initialize): Detect calloc failure.
67717         Reported by Bruno Haible.
67718
67719 2007-09-09  Bruno Haible  <bruno@clisp.org>
67720
67721         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67722         malloc or realloc fails.
67723
67724 2007-09-09  Bruno Haible  <bruno@clisp.org>
67725
67726         * modules/getcwd (Depends-on): Add malloc-posix.
67727         * modules/glob (Depends-on): Likewise.
67728         * modules/putenv (Depends-on): Likewise.
67729         * modules/strdup (Depends-on): Likewise.
67730         * modules/getdelim (Depends-on): Add realloc-posix.
67731         * modules/read-file (Depends-on): Likewise.
67732
67733 2007-09-09  Bruno Haible  <bruno@clisp.org>
67734
67735         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67736         (gl_FUNC_MALLOC_POSIX): Require it.
67737         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67738         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67739         * modules/realloc (Files): Add m4/malloc.m4.
67740         * modules/calloc (Files): Likewise.
67741
67742 2007-09-09  Bruno Haible  <bruno@clisp.org>
67743
67744         * modules/malloc-posix: New file.
67745         * modules/malloc (Depends-on): Add malloc-posix.
67746         * lib/malloc.c: Include errno.h.
67747         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67748         and a POSIX-compatible malloc into a single function. Set ENOMEM
67749         when returning NULL.
67750         * m4/malloc.m4: New file.
67751         * doc/functions/malloc.texi: Mention the malloc-posix module.
67752         * lib/stdlib_.h (malloc): New declaration.
67753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67754         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67755         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67756         and HAVE_MALLOC_POSIX.
67757
67758 2007-09-09  Bruno Haible  <bruno@clisp.org>
67759
67760         * modules/realloc-posix: New file.
67761         * modules/realloc (Depends-on): Add realloc-posix.
67762         * lib/realloc.c: Include errno.h.
67763         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67764         and a POSIX-compatible realloc into a single function. Set ENOMEM
67765         when returning NULL.
67766         * m4/realloc.m4: New file.
67767         * doc/functions/realloc.texi: Mention the realloc-posix module.
67768         * lib/stdlib_.h (realloc): New declaration.
67769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67770         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67771         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67772         and HAVE_REALLOC_POSIX.
67773
67774 2007-09-09  Bruno Haible  <bruno@clisp.org>
67775
67776         * modules/calloc-posix: New file.
67777         * modules/calloc (Depends-on): Add calloc-posix.
67778         * lib/calloc.c: Include errno.h.
67779         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67780         and a POSIX-compatible calloc into a single function. Set ENOMEM
67781         when returning NULL.
67782         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67783         * doc/functions/calloc.texi: Mention the calloc-posix module.
67784         * lib/stdlib_.h (calloc): New declaration.
67785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67786         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67787         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67788         and HAVE_CALLOC_POSIX.
67789
67790 2007-09-09  Bruno Haible  <bruno@clisp.org>
67791
67792         Allow for modules to show an arbitrary notice.
67793         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67794         * gnulib-tool: New option --extract-notice.
67795         (func_usage): Document it.
67796         (sed_extract_prog): Update.
67797         (func_get_notice): New function.
67798         (func_modules_notice): New function.
67799         (func_import, func_create_testdir): Invoke it.
67800         Suggested by Jim Meyering.
67801
67802 2007-09-09  Bruno Haible  <bruno@clisp.org>
67803
67804         * gnulib-tool: New options --verbose, --quiet.
67805         (func_usage): Document them.
67806         (verbose): New variable.
67807         (func_execute_command): New function.
67808         (func_import): Don't show the module list and the file list if
67809         $verbose < 0.
67810         (func_create_testdir): Likewise. Use func_execute_command.
67811         (func_create_megatestdir): Use func_execute_command.
67812
67813 2007-09-08  Bruno Haible  <bruno@clisp.org>
67814
67815         * gnulib-tool (func_import): Prefer rsync over wget when available,
67816         for fetching the PO files.
67817
67818 2007-09-08  Bruno Haible  <bruno@clisp.org>
67819
67820         * posix-modules: New file. Portions copied from gnulib-tool.
67821         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
67822
67823 2007-09-08  Jim Meyering  <jim@meyering.net>
67824
67825         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
67826         * lib/fpending.h: Rename from __fpending.h.
67827         * lib/fpending.c: Rename from __fpending.c.
67828         Include "fpending.h", not "__fpending.h".
67829         * lib/__fpending.h, lib/__fpending.c: Remove files.
67830         * modules/fpending (Files): Reflect new file names.
67831         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
67832
67833 2007-09-08  Bruno Haible  <bruno@clisp.org>
67834
67835         * m4/inttypes-h.m4: Remove stub file.
67836
67837 2007-09-07  Simon Josefsson  <simon@josefsson.org>
67838
67839         * doc/headers/stdint.texi: Discuss #include_next issue.
67840
67841 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67842
67843         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67844
67845 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67846
67847         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67848         in variable name.
67849
67850 2007-09-03  Jim Meyering  <jim@meyering.net>
67851
67852         New module: git-version-gen.
67853         * modules/git-version-gen: New file.
67854
67855         Import changes from coreutils for bootstrap script.
67856
67857         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67858
67859         bootstrap: uses rsync to download the .po files
67860         * build-aux/bootstrap (po_download_command_format): New global.
67861         (download_po_files): Use rsync.
67862         (update_po_files): Don't remove .po files after download,
67863         so future rsync runs can take advantage of the copies.
67864
67865         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67866
67867         Solve the unnecessary-.po-file-regeneration problem once and for all.
67868         * build-aux/bootstrap (download_po_files): New function, renamed from
67869         get_translations.  Now, downloads, but doesn't update LINGUAS.
67870         (update_po_files): New function.
67871
67872         bootstrap: Ignore more.
67873         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67874         uniwidth to e.g., lib/.gitignore.
67875         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67876
67877         * build-aux/bootstrap: New setting: vc_ignore.
67878         (insert_sorted_if_absent): Create $file if absent.
67879         Adapt to new, possibly empty, list: $vc_ignore.
67880
67881         bootstrap: generate more ignorable names
67882         * build-aux/bootstrap (slurp): When generating ignorable names,
67883         also map .sin to .sed, .gperf to .c, and .y to .c.
67884
67885 2007-09-03  Jim Meyering  <jim@meyering.net>
67886
67887         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67888         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67889
67890 2007-09-02  Bruno Haible  <bruno@clisp.org>
67891
67892         Fix mis-recognition of 'mcs' on QNX 6.
67893         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67894         output contains the string "Mono".
67895         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67896         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67897
67898 2007-09-01  Bruno Haible  <bruno@clisp.org>
67899
67900         Fix collision between uniwidth/* and linebreak modules.
67901         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67902         u32_width): Remove declarations.
67903         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67904         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67905         streq3, streq2, streq1, streq0): Remove functions.
67906         (STREQ): Remove macro.
67907         (is_cjk_encoding): Remove function.
67908         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67909         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67910         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67911         * NEWS: Document the change.
67912
67913 2007-09-01  Bruno Haible  <bruno@clisp.org>
67914
67915         * lib/streq.h: Add double-inclusion guard.
67916
67917 2007-09-01  Karl Berry  <karl@gnu.org>
67918
67919         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67920
67921 2007-08-28  Jim Meyering  <jim@meyering.net>
67922
67923         Rename mreadlink_with_size to areadlink_with_size.
67924         * NEWS: Document the change.
67925         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67926         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67927         * lib/mreadlink.h: Rename this to...
67928         * lib/areadlink.h: ...this.
67929         * modules/mreadlink-with-size: Rename this to...
67930         * modules/areadlink-with-size: ...this.
67931         * lib/canonicalize.c: Reflect the renaming.
67932         * modules/canonicalize: Likewise.
67933
67934 2007-08-26  Bruno Haible  <bruno@clisp.org>
67935
67936         * gnulib-tool (func_import): When deciding which files to remove,
67937         consider also dangling symbolic links.
67938         Reported by Eric Blake.
67939
67940 2007-08-26  Bruno Haible  <bruno@clisp.org>
67941
67942         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67943
67944 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67945
67946         * lib/readline.c: Don't include getline.h, the prototype is now
67947         found in stdio.h.
67948
67949 2007-08-23  Jim Meyering  <jim@meyering.net>
67950
67951         Getdelim touchup.
67952         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67953         around the funlockfile call, since funlockfile never sets errno.
67954         Don't set errno upon failed realloc.
67955
67956 2007-08-22  Eric Blake  <ebb9@byu.net>
67957
67958         Getline touchups.
67959         * lib/getdelim.c (getdelim): Revert regression that required *n to
67960         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67961         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67962         getdelim, rather than whether implementation is missing.
67963         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67964         * lib/stdio_.h (getline): Also declare if replacement is
67965         required.
67966         * doc/functions/getdelim.texi: New file.
67967         * doc/functions/getline.texi: Likewise.
67968         * doc/gnulib.texi (Function Substitutes): Add new files.
67969         Reported by Bruno Haible.
67970
67971 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67972
67973         * users.txt: Add Guile.
67974
67975 2007-08-22  Eric Blake  <ebb9@byu.net>
67976
67977         * tests/test-getdelim.c (main): Use remove, not unlink.
67978         * tests/test-getline.c (main): Likewise.
67979
67980         Move getline and getdelim into stdio.h, per POSIX 200x.
67981         * modules/getline (Files): Remove getline.h.
67982         (Depends-on): Add stdio.
67983         (configure.ac): Add module indicator.
67984         * modules/getdelim (Files): Remove getdelim.h.
67985         (Depends-on): Add stdio.
67986         (configure.ac): Add module indicator.
67987         * modules/stdio (Makefile.am): Work with new indicators.
67988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67989         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67990         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67991         * lib/getdelim.h: Delete.
67992         * lib/getline.h: Delete.
67993         * lib/stdio_.h (getdelim, getline): Declare.
67994         * modules/getdelim-tests: New module.
67995         * modules/getline-tests: Likewise.
67996         * tests/test-getdelim.c: New file.
67997         * tests/test-getline.c: Likewise.
67998         * NEWS: Document the change.
67999         * lib/getline.c: Update choice of header.
68000         * lib/csharpcomp.c: Likewise.
68001         * lib/getpass.c: Likewise.
68002         * lib/javacomp.c: Likewise.
68003         * lib/javaversion.c: Likewise.
68004         * lib/yesno.c: Likewise.
68005         * lib/getdelim.c: Likewise.
68006         (getdelim): Set errno on failure, and avoid memory leak.
68007
68008 2007-08-19  Bruno Haible  <bruno@clisp.org>
68009
68010         * modules/closein (Depends-on): Add freadahead.
68011         * lib/closein.c: Include freadahead.h.
68012         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68013         is zero.
68014
68015 2007-08-19  Bruno Haible  <bruno@clisp.org>
68016
68017         * modules/freadahead-tests: New file.
68018         * tests/test-freadahead.sh: New file.
68019         * tests/test-freadahead.c: New file.
68020
68021         * modules/freadahead: New file.
68022         * lib/freadahead.h: New file.
68023         * lib/freadahead.c: New file.
68024         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68025         fbufmode, fpurge, freadable, fwritable.
68026
68027 2007-08-19  Eric Blake  <ebb9@byu.net>
68028
68029         Test yesno in combination with closein.
68030         * lib/yesno.c (yesno): Document use of stdin.
68031         * modules/yesno-tests (Files): New module.
68032         * tests/test-yesno.c (main): New file.
68033         * tests/test-yesno.sh: Likewise.
68034
68035 2007-08-19  Bruno Haible  <bruno@clisp.org>
68036
68037         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68038         * lib/fseeko.c (rpl_fseeko): Likewise.
68039         * lib/fseterr.c (fseterr): Likewise.
68040
68041 2007-08-19  Bruno Haible  <bruno@clisp.org>
68042
68043         * tests/test-lseek.c (main): Disable a test for BeOS.
68044         * doc/functions/lseek.texi: Document the BeOS bug.
68045
68046 2007-08-19  Bruno Haible  <bruno@clisp.org>
68047             Eric Blake  <ebb9@byu.net>
68048
68049         * lib/lseek.c: Include <sys/stat.h>.
68050         (rpl_lseek): Add workaround code also for Unix platforms.
68051         Needed for BeOS.
68052         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68053         * doc/functions/lseek.texi: Document BeOS definiency.
68054
68055 2007-08-18  Bruno Haible  <bruno@clisp.org>
68056
68057         * modules/fstrcmp-tests: New file.
68058         * tests/test-fstrcmp.c: New file.
68059
68060 2007-08-18  Bruno Haible  <bruno@clisp.org>
68061
68062         * modules/fstrcmp: New file, from GNU gettext with modifications.
68063         * lib/fstrcmp.h: New file, from GNU gettext.
68064         * lib/fstrcmp.c: New file, from GNU gettext.
68065         * MODULES.html.sh (String handling): Add fstrcmp.
68066
68067 2007-08-18  Bruno Haible  <bruno@clisp.org>
68068
68069         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68070         'bool'.
68071         (diag, compareseq): Remove const from the ctxt argument.
68072         (USE_HEURISTIC): Undefine at the end.
68073
68074 2007-08-18  Jim Meyering  <jim@meyering.net>
68075
68076         New file: lib/idcache.h
68077         * NEWS: Mention the addition.
68078         * modules/idcache (Files): Add lib/idcache.h
68079         * lib/idcache.c: Include "idcache.h".
68080         Don't include <sys/types.h>.
68081         Add a FIXME comment.
68082         Move file-scoped "static" declarations to the top.
68083         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68084
68085 2007-08-17  Bruno Haible  <bruno@clisp.org>
68086         and Paul Eggert  <eggert@cs.ucla.edu>
68087
68088         * MODULES.html.sh: Add diffseq.
68089         * modules/diffseq: New file.
68090         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68091         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68092
68093 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68094
68095         Import changes from coreutils for bootstrap script.
68096
68097         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         * build-aux/bootstrap (slurp): Work even in environments where
68100         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68101         current code does not slurp files whose names start with ".", and
68102         this looks like it might be a troublesome area.
68103
68104         2007-07-11  Jim Meyering  <jim@meyering.net>
68105
68106         If there's a GPL vN copyright comment, require that N == 3.
68107
68108         2007-07-08  Jim Meyering  <jim@meyering.net>
68109
68110         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68111         * build-aux/bootstrap (mam_template): Move definition out of loop.
68112
68113         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68114
68115         * build-aux/bootstrap (symlink_to_dir): Rename function from
68116         symlink_to_gnulib.  Add a directory parameter.  Update all
68117         callers.
68118         (cp_mark_as_generated): Also check for -- and link to -- files in
68119         gl/.
68120
68121         2007-07-08  Jim Meyering  <jim@meyering.net>
68122
68123         Adapt to deeper hierarchy in gnulib.
68124         * build-aux/bootstrap (symlink_to_dir): If the destination
68125         directory doesn't exist, create it. This is required at least for
68126         "lib/uniwidth/cjk.h".
68127
68128         2007-05-15  Jim Meyering  <jim@meyering.net>
68129
68130         * build-aux/bootstrap: Now that generated Makefile.am files
68131         are no longer under version control, they must be created at
68132         bootstrap time.
68133
68134 2007-08-14  Ben Pfaff  <blp@gnu.org>
68135
68136         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68137
68138 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68139
68140         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68141         given the changes below.
68142         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68143         even on hosts that have padding bits beyond the supported 64.
68144
68145 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68146
68147         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68148         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68149         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68150         depends on it.
68151         (xstrtol_error): Remove.
68152         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68153         but with a different signature.
68154         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68155         * lib/xstrtol-error.c: Include exitfail.h.
68156         (xstrtol_fatal): New function, with a different signature from the
68157         old xstrtol_error, so that the caller need not worry about passing
68158         in an exit status, or about storage management of the option argument.
68159         (xstrtol_error): Now a static function.  Redo signature to
68160         implement xstrtol_fatal.  Output the correct number of hyphens in
68161         front of the option so that the caller need not worry about
68162         storage management.
68163         (N_): New macro.
68164         (_): Remove; not used now.
68165         * modules/xstrtol: Depend on getopt.
68166         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68167         of old STRTOL_FATAL_ERROR macro.
68168         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68169         of test program.
68170         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68171         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68172
68173 2007-08-08  Eric Blake  <ebb9@byu.net>
68174
68175         * lib/xstrtol-error.c: Add missing include.
68176
68177         Move xstrtol messages into gnulib domain, when --pobase is used.
68178         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68179         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68180         * modules/xstrtol (Files): Distribute new file.
68181         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68182         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68183         * tests/test-xstrtol.c: ...into new file.
68184         * tests/test-xstrtoul.c: Also test xstrtoul.
68185         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68186         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68187         * tests/test-xstrtol.sh: Drive the tests.
68188         * tests/test-xstrtoimax.sh: Likewise.
68189         * tests/test-xstrtoumax.sh: Likewise.
68190         * modules/xstrtol-tests: New module.
68191         * modules/xstrtoimax-tests: Likewise.
68192         * modules/xstrtoumax-tests: Likewise.
68193
68194 2007-08-08  Jim Meyering  <jim@meyering.net>
68195
68196         New function: mfile_name_concat.
68197         * lib/filenamecat.c (mfile_name_concat): New function, just like
68198         file_name_concat, but return NULL upon failure rather than exiting
68199         with a diagnostic.
68200         * lib/filenamecat.h: Declare it.
68201
68202 2007-08-07  Bruno Haible  <bruno@clisp.org>
68203
68204         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68205         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68206         warning from gcc.
68207         Reported by Eric Blake.
68208
68209 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68210
68211         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68212         * modules/crypto/arcfour (License): Likewise.
68213         * modules/crypto/des-tests (License): Likewise.
68214         * modules/crypto/gc-arctwo-tests (License): Likewise.
68215         * modules/crypto/gc-des-tests (License): Likewise.
68216         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68217         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68218         * modules/crypto/gc-md2-tests (License): Likewise.
68219         * modules/crypto/gc-md4-tests (License): Likewise.
68220         * modules/crypto/gc-md5-tests (License): Likewise.
68221         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68222         * modules/crypto/gc-rijndael-tests (License): Likewise.
68223         * modules/crypto/gc-sha1-tests (License): Likewise.
68224         * modules/crypto/gc-tests (License): Likewise.
68225         * modules/crypto/hmac-md5 (License): Likewise.
68226         * modules/crypto/hmac-sha1 (License): Likewise.
68227         * modules/crypto/md2-tests (License): Likewise.
68228         * modules/crypto/md4-tests (License): Likewise.
68229         * modules/crypto/md5 (License): Likewise.
68230         * modules/crypto/rijndael (License): Likewise.
68231         * modules/crypto/sha1 (License): Likewise.
68232         * modules/memxor (License): Likewise.
68233
68234 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68235         and Bruno Haible  <bruno@clisp.org>
68236
68237         * NEWS: Describe interface changes to human, xstrtol.
68238         * lib/human.h: Include <xstrtol.h>.
68239         (human_options): Return enum strtol_error, not int.  Remove
68240         bool arg; take int * instead.
68241         * lib/human.c: Don't include "gettext.h".
68242         (_): Remove; no longer used.
68243         Don't include <xstrtol.h>, since human.h does it.
68244         (human_options): Adjust to abovementioned interface changes.
68245         Do not report error to stderr; that's now the caller's
68246         responsibility.
68247         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68248         interface change.
68249         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68250         Str, Argument_type_string.  All uses changed.  Put " argument"
68251         in diagnostics to make them clearer.  Change wording of suffix
68252         message for clarity.
68253         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68254         Argument_type_string.
68255         (STRTOL_FATAL_WARN): Remove; no longer used.
68256         * modules/human (Depends-on): Remove gettext-h.
68257
68258 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68259
68260         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68261
68262 2007-07-31  Bruno Haible  <bruno@clisp.org>
68263
68264         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68265         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68266         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68267
68268 2007-07-31  Bruno Haible  <bruno@clisp.org>
68269
68270         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68271         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68272
68273 2007-07-30  Bruno Haible  <bruno@clisp.org>
68274
68275         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68276         * modules/c-ctype (License): Likewise.
68277         * modules/c-strcase (License): Likewise.
68278         * modules/check-version (License): Likewise.
68279         * modules/iconv (License): Likewise.
68280         * modules/iconv_open (License): Likewise.
68281         * modules/read-file (License): Likewise.
68282         * modules/striconv (License): Likewise.
68283         * modules/strverscmp (License): Likewise.
68284         * modules/vasprintf (License): Likewise.
68285         * modules/crypto/des (License): Likewise.
68286         * modules/crypto/gc (License): Likewise.
68287         * modules/crypto/gc-arcfour (License): Likewise.
68288         * modules/crypto/gc-arctwo (License): Likewise.
68289         * modules/crypto/gc-des (License): Likewise.
68290         * modules/crypto/gc-hmac-md5 (License): Likewise.
68291         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68292         * modules/crypto/gc-md2 (License): Likewise.
68293         * modules/crypto/gc-md4 (License): Likewise.
68294         * modules/crypto/gc-md5 (License): Likewise.
68295         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68296         * modules/crypto/gc-random (License): Likewise.
68297         * modules/crypto/gc-rijndael (License): Likewise.
68298         * modules/crypto/gc-sha1 (License): Likewise.
68299         * modules/crypto/md2 (License): Likewise.
68300         * modules/crypto/md4 (License): Likewise.
68301
68302 2007-07-30  Jim Meyering  <jim@meyering.net>
68303
68304         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68305         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68306         it has valid stat data.  This bug would cause du not to count the
68307         sizes of inaccessible directories.
68308         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68309         in <http://bugzilla.redhat.com/250077>.
68310
68311 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68312             Bruno Haible  <bruno@clisp.org>
68313
68314         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68315         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68316         #include_next, gives a diagnostic about it, but reports no error in
68317         the exit code.
68318         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68319
68320 2007-07-24  Ben Pfaff  <blp@gnu.org>
68321
68322         Improve name: "count-one-bits" is better than "popcount".
68323         * MODULES.html.sh: Update name.
68324         * lib/popcount.h: Renamed lib/count-one-bits.h.
68325         (popcount): Renamed count_one_bits.
68326         (popcountl): Renamed count_one_bits_l.
68327         (popcountll): Renamed count_one_bits_ll.
68328         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68329         * modules/popcount: Renamed module/count-one-bits.
68330         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68331         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68332
68333 2007-07-23  Ben Pfaff  <blp@gnu.org>
68334
68335         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68336         better code generation, and add U to large constants to avoid
68337         warnings, in non-GCC case.
68338         Suggested by Bruno Haible.
68339
68340 2007-07-23  Ben Pfaff  <blp@gnu.org>
68341
68342         * lib/popcount.h: Use verify_true instead of if...abort.
68343         * modules/popcount: Depend on verify module.
68344         Suggested by Jim Meyering.
68345
68346 2007-07-23  Bruno Haible  <bruno@clisp.org>
68347
68348         * gnulib-tool (func_import): Create a .cvsignore file also when the
68349         directory is not yet in CVS but the toplevel directory is. When
68350         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68351         Reported by Karl Berry.
68352
68353 2007-07-22  Ben Pfaff  <blp@gnu.org>
68354
68355         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68356         case.
68357         Suggested by Eric Blake.
68358
68359 2007-07-22  Ben Pfaff  <blp@gnu.org>
68360
68361         New module: popcount.
68362         * MODULES.html.sh: Add popcount.
68363         * modules/popcount: New file.
68364         * modules/popcount-tests: New file.
68365         * tests/test-popcount.c: New file.
68366         * lib/popcount.h: New file.
68367         * m4/popcount.m4: New file.
68368
68369 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68370
68371         * build-aux/announce-gen: Update to GPLv3.
68372
68373         * build-aux/config.guess: Update from config.
68374
68375 2007-07-21  Bruno Haible  <bruno@clisp.org>
68376
68377         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68378         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68379
68380 2007-07-20  Jim Meyering  <jim@meyering.net>
68381
68382         * check-module: Diagnose a self-dependency.
68383
68384 2007-07-19  Bruno Haible  <bruno@clisp.org>
68385
68386         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68387         empty.
68388         Reported by Eric Blake.
68389
68390 2007-07-18  Bruno Haible  <bruno@clisp.org>
68391
68392         * gnulib-tool: New options --po-base, --po-domain.
68393         (func_usage): Document them.
68394         (pobase, po_domain): New variables.
68395         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68396         DEFAULT_TEXT_DOMAIN.
68397         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68398         (func_import): Consider pobase and po_domain. Create a po/ directory.
68399         (func_create_testdir): Set pobase and po_domain to empty.
68400         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68401         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68402
68403 2007-07-18  Bruno Haible  <bruno@clisp.org>
68404
68405         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68406         EXTRA_DIST augmentation for files in build-aux/.
68407
68408 2007-07-16  Bruno Haible  <bruno@clisp.org>
68409
68410         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68411         * modules/getdelim (License): Likewise.
68412
68413 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68414
68415         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68416         * modules/d-type (License): Likewise.
68417         * modules/extensions (License): Likewise.
68418         * modules/fnmatch (License): Likewise.
68419         * modules/fseeko (License): Likewise.
68420         * modules/getaddrinfo (License): Likewise.
68421         * modules/getline (License): Likewise.
68422         * modules/getlogin_r (License): Likewise.
68423         * modules/getpass (License): Likewise.
68424         * modules/gettimeofday (License): Likewise.
68425         * modules/glob (License): Likewise.
68426         * modules/inet_ntop (License): Likewise.
68427         * modules/malloc (License): Likewise.
68428         * modules/malloca (License): Likewise.
68429         * modules/memmem (License): Likewise.
68430         * modules/mempcpy (License): Likewise.
68431         * modules/memset (License): Likewise.
68432         * modules/minmax (License): Likewise.
68433         * modules/mktime (License): Likewise.
68434         * modules/netinet_in (License): Likewise.
68435         * modules/pathmax (License): Likewise.
68436         * modules/poll (License): Likewise.
68437         * modules/regex (License): Likewise.
68438         * modules/snprintf (License): Likewise.
68439         * modules/stdbool (License): Likewise.
68440         * modules/stdint (License): Likewise.
68441         * modules/stdio (License): Likewise.
68442         * modules/strcase (License): Likewise.
68443         * modules/strcasestr (License): Likewise.
68444         * modules/strdup (License): Likewise.
68445         * modules/string (License): Likewise.
68446         * modules/strndup (License): Likewise.
68447         * modules/strnlen (License): Likewise.
68448         * modules/strpbrk (License): Likewise.
68449         * modules/strptime (License): Likewise.
68450         * modules/strsep (License): Likewise.
68451         * modules/sys_select (License): Likewise.
68452         * modules/sys_socket (License): Likewise.
68453         * modules/sys_stat (License): Likewise.
68454         * modules/sys_time (License): Likewise.
68455         * modules/time (License): Likewise.
68456         * modules/time_r (License): Likewise.
68457         * modules/timegm (License): Likewise.
68458         * modules/unistd (License): Likewise.
68459         * modules/vsnprintf (License): Likewise.
68460         * modules/wctype (License): Likewise.
68461
68462 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68463
68464         * modules/argz (License): LGPLv2+.
68465
68466 2007-07-15  Karl Berry  <karl@gnu.org>
68467
68468         * doc/gnulib.texi: revise node structure per new fdl.texi.
68469
68470 2007-07-14  Bruno Haible  <bruno@clisp.org>
68471
68472         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68473         the output file.
68474         * lib/uniname/uninames.h: Regenerated.
68475
68476 2007-07-14  Karl Berry  <karl@gnu.org>
68477
68478         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68479         omitting sectioning and index commands.
68480
68481 2007-07-13  Bruno Haible  <bruno@clisp.org>
68482
68483         New gnulib-tool option --more-symlinks.
68484         * gnulib-tool (func_usage): Document --more-symlinks.
68485         (do_copyrights): New variable.
68486         Recognize option --more-symlinks.
68487         (func_import): Don't add a copyright notice transform to
68488         sed_transform_lib_file if do_copyrights is empty.
68489
68490 2007-07-13  Bruno Haible  <bruno@clisp.org>
68491
68492         * lib/vasnprintf.c (decimal_point_char): Define also if
68493         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68494         && !NEED_PRINTF_DIRECTIVE_A.
68495         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68496         Gary V. Vaughan <gary@gnu.org>.
68497
68498 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68499
68500         * lib/inttypes_.h: Undo previous change, since it was fixed
68501         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68502
68503 2007-07-13  Bruno Haible  <bruno@clisp.org>
68504
68505         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68506         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68507
68508 2007-07-13  Jim Meyering  <jim@meyering.net>
68509
68510         df: Don't fail for Tru64's "file-on-file mount".
68511         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68512         so we fall through and use statfs instead.  Details here:
68513         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68514         Reported by Albert Chin.
68515
68516 2007-07-13  Bruno Haible  <bruno@clisp.org>
68517
68518         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68519         * modules/configmake (License): Likewise.
68520         * modules/gettext (License): Likewise.
68521         * modules/gettext-h (License): Likewise.
68522         * modules/include_next (License): Likewise.
68523         * modules/link-warning (License): Likewise.
68524         * modules/localcharset (License): Likewise.
68525         * modules/localename (License): Likewise.
68526         * modules/lock (License): Likewise.
68527         * modules/relocatable-lib-lgpl (License): Likewise.
68528         * modules/size_max (License): Likewise.
68529         * modules/vasnprintf (License): Likewise.
68530         * modules/wchar (License): Likewise.
68531         * modules/xsize (License): Likewise.
68532
68533 2007-07-13  Bruno Haible  <bruno@clisp.org>
68534
68535         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68536         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68537
68538 2007-07-12  Bruno Haible  <bruno@clisp.org>
68539
68540         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68541         in the modules files.
68542
68543 2007-07-11  Karl Berry  <karl@gnu.org>
68544
68545         * MODULES.html.sh (func_module): use
68546          sed -e '\|^'"${includefile}"'$|d'
68547          instead of /.../d, to avoid errors on $includefile's containing /.
68548
68549 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68550
68551         * gnulib-tool (func_import): Avoid duplication of --avoid
68552         statements
68553         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68554         names to `_' in variable names.
68555
68556 2007-07-10  Eric Blake  <ebb9@byu.net>
68557
68558         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68559         * NEWS: Document this change.
68560
68561 2007-07-08  Bruno Haible  <bruno@clisp.org>
68562
68563         Update to Unicode 5.0.
68564         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68565         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68566         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68567         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68568         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68569         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68570         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68571         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68572         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68573         U+10A3F, U+1D242..U+1D244.
68574         (nonspacing_table_ind): Update.
68575         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68576         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68577
68578 2007-07-08  Bruno Haible  <bruno@clisp.org>
68579
68580         Update to Unicode 5.0.
68581         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68582         code transform. Extend the name index field of unicode_name_to_code and
68583         unicode_code_to_name from 16 to 24 bits.
68584         * lib/uniname/uniname.c (unicode_character_name,
68585         unicode_name_character): Add the range 0x12xxx to the code transform.
68586         * lib/uniname/uninames.h: Regenerated.
68587         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68588
68589 2007-07-07  Bruno Haible  <bruno@clisp.org>
68590
68591         * modules/wcwidth-tests: New file.
68592         * tests/test-wcwidth.c: New file.
68593
68594         Work around MacOS X wcwidth() bug.
68595         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68596         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68597         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68598         original wcwidth in non-UTF-8 locales.
68599         * modules/wcwidth (Depends-on): Add localcharset, streq,
68600         uniwidth/width.
68601         * doc/functions/wcwidth.texi: Update.
68602
68603 2007-07-07  Bruno Haible  <bruno@clisp.org>
68604
68605         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68606         (wcwidth): New declaration.
68607         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68608         macros.
68609         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68610         here. Prepare for creating <wchar.h> unconditionally.
68611         * modules/wchar (Depends-on): Add link-warning.
68612         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68613         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68614         * lib/wcwidth.h: Remove file.
68615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68616         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68617         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68618         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68619         (Include): Replace wcwidth.h with <wchar.h>.
68620         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68621         * lib/mbchar.h: Don't include wcwidth.h.
68622         * lib/mbswidth.c: Likewise.
68623         * NEWS: Mention the change.
68624
68625 2007-07-07  Bruno Haible  <bruno@clisp.org>
68626
68627         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68628         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68629         definition with an external declaration.
68630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68631         defined as a function. Remove AC_C_INLINE requirement.
68632         * modules/wcwidth (Files): Add lib/wcwidth.c.
68633         (Makefile.am): Remove redundant statement.
68634
68635 2007-07-07  Bruno Haible  <bruno@clisp.org>
68636
68637         * MODULES.html.sh (Unicode string functions): Add the new modules.
68638
68639         * tests/uniwidth/test-u32-strwidth.c: New file.
68640         * modules/uniwidth/u32-strwidth-tests: New file.
68641
68642         * lib/uniwidth/u32-strwidth.c: New file.
68643         * modules/uniwidth/u32-strwidth: New file.
68644
68645         * tests/uniwidth/test-u16-strwidth.c: New file.
68646         * modules/uniwidth/u16-strwidth-tests: New file.
68647
68648         * lib/uniwidth/u16-strwidth.c: New file.
68649         * modules/uniwidth/u16-strwidth: New file.
68650
68651         * tests/uniwidth/test-u8-strwidth.c: New file.
68652         * modules/uniwidth/u8-strwidth-tests: New file.
68653
68654         * lib/uniwidth/u8-strwidth.c: New file.
68655         * modules/uniwidth/u8-strwidth: New file.
68656
68657         * tests/uniwidth/test-u32-width.c: New file.
68658         * modules/uniwidth/u32-width-tests: New file.
68659
68660         * lib/uniwidth/u32-width.c: New file.
68661         * modules/uniwidth/u32-width: New file.
68662
68663         * tests/uniwidth/test-u16-width.c: New file.
68664         * modules/uniwidth/u16-width-tests: New file.
68665
68666         * lib/uniwidth/u16-width.c: New file.
68667         * modules/uniwidth/u16-width: New file.
68668
68669         * tests/uniwidth/test-u8-width.c: New file.
68670         * modules/uniwidth/u8-width-tests: New file.
68671
68672         * lib/uniwidth/u8-width.c: New file.
68673         * modules/uniwidth/u8-width: New file.
68674
68675         * tests/uniwidth/test-uc_width.c: New file.
68676         * modules/uniwidth/width-tests: New file.
68677
68678         * lib/uniwidth/width.c: New file, from GNU libiconv.
68679         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68680         * modules/uniwidth/width: New file.
68681
68682         * lib/uniwidth.h: New file, from GNU libiconv.
68683         * modules/uniwidth/base: New file.
68684
68685 2007-07-07  Bruno Haible  <bruno@clisp.org>
68686
68687         * lib/uniname.h: New file, from GNU gettext.
68688         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68689         * lib/uniname/uninames.h: New file, from GNU gettext.
68690         * lib/uniname/uniname.c: New file, from GNU gettext.
68691         * tests/uniname/test-uninames.sh: New file.
68692         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68693         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68694         * modules/uniname/base: New file.
68695         * modules/uniname/uniname: New file.
68696         * modules/uniname/uniname-tests: New file.
68697         * MODULES.html.sh (Unicode string functions): Add the new modules.
68698
68699 2007-07-06  Bruno Haible  <bruno@clisp.org>
68700
68701         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68702
68703 2007-07-06  Bruno Haible  <bruno@clisp.org>
68704
68705         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68706         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68707         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68708         include <sys/time.h>.
68709         Reported by Eric Blake.
68710
68711 2007-07-06  Eric Blake  <ebb9@byu.net>
68712
68713         Fix testing canonicalize on cygwin.
68714         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68715         Revert patch from 2007-06-19.
68716         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68717         canonicalize module is also in use.
68718         * tests/test-canonicalize.c: New file.
68719         * tests/test-canonicalize.sh: Likewise.
68720         * modules/canonicalize-tests: Likewise.
68721
68722 2007-07-06  Jim Meyering  <jim@meyering.net>
68723
68724         * lib/getugroups.c (getugroups): Detect getgrent failure.
68725         Adjust comment to reflect reality: this function may return -1.
68726
68727 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68728
68729         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68730         the new TP address.
68731         (usage): Fix typo
68732         (gnulib_mk): New variable.
68733
68734 2007-07-05  Jim Meyering  <jim@meyering.net>
68735
68736         Don't let endgrent clobber errno, no matter how improbable.
68737         * lib/getugroups.c (getugroups): Save and restore errno around
68738         endgrent call.
68739
68740         Close the group DB even when failing with 2^31 or more members.
68741         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68742
68743 2007-07-04  Jim Meyering  <jim@meyering.net>
68744
68745         * lib/getugroups.h: New file.
68746         * lib/getugroups.c: Include "getugroups.h".
68747         Remove uses of "register" keyword.
68748         Move local variable, "cp", down into scope where used.
68749         Give "username" parameter the "const" attribute.
68750         * modules/getugroups (Files): Add lib/getugroups.h
68751
68752 2007-07-04  Karl Berry  <karl@gnu.org>
68753
68754         * MODULES.html.sh (func_all_modules): Complete rename of
68755         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68756
68757 2007-07-02  Bruno Haible  <bruno@clisp.org>
68758
68759         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68760         mode, when inttypes.h comes from gnulib.
68761         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68762
68763 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68764
68765         * NEWS: Mention lgpl module name change.
68766
68767         * modules/lgpl-2.1: Renamed from lgpl.
68768
68769         * NEWS: Mention gpl module name change.
68770
68771         * modules/gpl-3.0: New file, based on gpl-2.0.
68772
68773         * modules/gpl-2.0: Renamed from gpl.
68774
68775         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68776         doc/gpl-2.0.texi.
68777
68778 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68781         #define __STDC_LIMIT_MACROS temporarily while including
68782         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68783         Problem reported by Joel E. Denny in
68784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68785
68786 2007-07-01  Bruno Haible  <bruno@clisp.org>
68787
68788         * lib/unistdio.h: New file.
68789         * lib/unistdio/u-asnprintf.h: New file.
68790         * lib/unistdio/u-asprintf.h: New file.
68791         * lib/unistdio/u-printf-args.c: New file.
68792         * lib/unistdio/u-printf-args.h: New file.
68793         * lib/unistdio/u-printf-parse.h: New file.
68794         * lib/unistdio/u-snprintf.h: New file.
68795         * lib/unistdio/u-sprintf.h: New file.
68796         * lib/unistdio/u-vasprintf.h: New file.
68797         * lib/unistdio/u-vsnprintf.h: New file.
68798         * lib/unistdio/u-vsprintf.h: New file.
68799         * lib/unistdio/ulc-asnprintf.c: New file.
68800         * lib/unistdio/ulc-asprintf.c: New file.
68801         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
68802         * lib/unistdio/ulc-printf-parse.c: New file.
68803         * lib/unistdio/ulc-snprintf.c: New file.
68804         * lib/unistdio/ulc-sprintf.c: New file.
68805         * lib/unistdio/ulc-vasnprintf.c: New file.
68806         * lib/unistdio/ulc-vasprintf.c: New file.
68807         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
68808         * lib/unistdio/ulc-vsnprintf.c: New file.
68809         * lib/unistdio/ulc-vsprintf.c: New file.
68810         * lib/unistdio/u8-asnprintf.c: New file.
68811         * lib/unistdio/u8-asprintf.c: New file.
68812         * lib/unistdio/u8-printf-parse.c: New file.
68813         * lib/unistdio/u8-snprintf.c: New file.
68814         * lib/unistdio/u8-sprintf.c: New file.
68815         * lib/unistdio/u8-vasnprintf.c: New file.
68816         * lib/unistdio/u8-vasprintf.c: New file.
68817         * lib/unistdio/u8-vsnprintf.c: New file.
68818         * lib/unistdio/u8-vsprintf.c: New file.
68819         * lib/unistdio/u8-u8-asnprintf.c: New file.
68820         * lib/unistdio/u8-u8-asprintf.c: New file.
68821         * lib/unistdio/u8-u8-snprintf.c: New file.
68822         * lib/unistdio/u8-u8-sprintf.c: New file.
68823         * lib/unistdio/u8-u8-vasnprintf.c: New file.
68824         * lib/unistdio/u8-u8-vasprintf.c: New file.
68825         * lib/unistdio/u8-u8-vsnprintf.c: New file.
68826         * lib/unistdio/u8-u8-vsprintf.c: New file.
68827         * lib/unistdio/u16-asnprintf.c: New file.
68828         * lib/unistdio/u16-asprintf.c: New file.
68829         * lib/unistdio/u16-printf-parse.c: New file.
68830         * lib/unistdio/u16-snprintf.c: New file.
68831         * lib/unistdio/u16-sprintf.c: New file.
68832         * lib/unistdio/u16-vasnprintf.c: New file.
68833         * lib/unistdio/u16-vasprintf.c: New file.
68834         * lib/unistdio/u16-vsnprintf.c: New file.
68835         * lib/unistdio/u16-vsprintf.c: New file.
68836         * lib/unistdio/u16-u16-asnprintf.c: New file.
68837         * lib/unistdio/u16-u16-asprintf.c: New file.
68838         * lib/unistdio/u16-u16-snprintf.c: New file.
68839         * lib/unistdio/u16-u16-sprintf.c: New file.
68840         * lib/unistdio/u16-u16-vasnprintf.c: New file.
68841         * lib/unistdio/u16-u16-vasprintf.c: New file.
68842         * lib/unistdio/u16-u16-vsnprintf.c: New file.
68843         * lib/unistdio/u16-u16-vsprintf.c: New file.
68844         * lib/unistdio/u32-asnprintf.c: New file.
68845         * lib/unistdio/u32-asprintf.c: New file.
68846         * lib/unistdio/u32-printf-parse.c: New file.
68847         * lib/unistdio/u32-snprintf.c: New file.
68848         * lib/unistdio/u32-sprintf.c: New file.
68849         * lib/unistdio/u32-vasnprintf.c: New file.
68850         * lib/unistdio/u32-vasprintf.c: New file.
68851         * lib/unistdio/u32-vsnprintf.c: New file.
68852         * lib/unistdio/u32-vsprintf.c: New file.
68853         * lib/unistdio/u32-u32-asnprintf.c: New file.
68854         * lib/unistdio/u32-u32-asprintf.c: New file.
68855         * lib/unistdio/u32-u32-snprintf.c: New file.
68856         * lib/unistdio/u32-u32-sprintf.c: New file.
68857         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68858         * lib/unistdio/u32-u32-vasprintf.c: New file.
68859         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68860         * lib/unistdio/u32-u32-vsprintf.c: New file.
68861         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68862         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68863         * tests/unistdio/test-ulc-printf1.h: New file.
68864         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68865         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68866         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68867         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68868         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68869         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68870         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68871         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68872         * tests/unistdio/test-u8-asnprintf1.c: New file.
68873         * tests/unistdio/test-u8-asnprintf1.h: New file.
68874         * tests/unistdio/test-u8-printf1.h: New file.
68875         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68876         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68877         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68878         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68879         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68880         * tests/unistdio/test-u8-vasprintf1.c: New file.
68881         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68882         * tests/unistdio/test-u8-vsprintf1.c: New file.
68883         * tests/unistdio/test-u16-asnprintf1.c: New file.
68884         * tests/unistdio/test-u16-asnprintf1.h: New file.
68885         * tests/unistdio/test-u16-printf1.h: New file.
68886         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68887         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68888         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68889         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68890         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68891         * tests/unistdio/test-u16-vasprintf1.c: New file.
68892         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68893         * tests/unistdio/test-u16-vsprintf1.c: New file.
68894         * tests/unistdio/test-u32-asnprintf1.c: New file.
68895         * tests/unistdio/test-u32-asnprintf1.h: New file.
68896         * tests/unistdio/test-u32-printf1.h: New file.
68897         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68898         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68899         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68900         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68901         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68902         * tests/unistdio/test-u32-vasprintf1.c: New file.
68903         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68904         * tests/unistdio/test-u32-vsprintf1.c: New file.
68905         * modules/unistdio/base: New file.
68906         * modules/unistdio/u-printf-args: New file.
68907         * modules/unistdio/ulc-asnprintf: New file.
68908         * modules/unistdio/ulc-asprintf: New file.
68909         * modules/unistdio/ulc-fprintf: New file.
68910         * modules/unistdio/ulc-printf-parse: New file.
68911         * modules/unistdio/ulc-snprintf: New file.
68912         * modules/unistdio/ulc-sprintf: New file.
68913         * modules/unistdio/ulc-vasnprintf: New file.
68914         * modules/unistdio/ulc-vasprintf: New file.
68915         * modules/unistdio/ulc-vfprintf: New file.
68916         * modules/unistdio/ulc-vsnprintf: New file.
68917         * modules/unistdio/ulc-vsprintf: New file.
68918         * modules/unistdio/u8-asnprintf: New file.
68919         * modules/unistdio/u8-asprintf: New file.
68920         * modules/unistdio/u8-printf-parse: New file.
68921         * modules/unistdio/u8-snprintf: New file.
68922         * modules/unistdio/u8-sprintf: New file.
68923         * modules/unistdio/u8-vasnprintf: New file.
68924         * modules/unistdio/u8-vasprintf: New file.
68925         * modules/unistdio/u8-vsnprintf: New file.
68926         * modules/unistdio/u8-vsprintf: New file.
68927         * modules/unistdio/u8-u8-asnprintf: New file.
68928         * modules/unistdio/u8-u8-asprintf: New file.
68929         * modules/unistdio/u8-u8-snprintf: New file.
68930         * modules/unistdio/u8-u8-sprintf: New file.
68931         * modules/unistdio/u8-u8-vasnprintf: New file.
68932         * modules/unistdio/u8-u8-vasprintf: New file.
68933         * modules/unistdio/u8-u8-vsnprintf: New file.
68934         * modules/unistdio/u8-u8-vsprintf: New file.
68935         * modules/unistdio/u16-asnprintf: New file.
68936         * modules/unistdio/u16-asprintf: New file.
68937         * modules/unistdio/u16-printf-parse: New file.
68938         * modules/unistdio/u16-snprintf: New file.
68939         * modules/unistdio/u16-sprintf: New file.
68940         * modules/unistdio/u16-vasnprintf: New file.
68941         * modules/unistdio/u16-vasprintf: New file.
68942         * modules/unistdio/u16-vsnprintf: New file.
68943         * modules/unistdio/u16-vsprintf: New file.
68944         * modules/unistdio/u16-u16-asnprintf: New file.
68945         * modules/unistdio/u16-u16-asprintf: New file.
68946         * modules/unistdio/u16-u16-snprintf: New file.
68947         * modules/unistdio/u16-u16-sprintf: New file.
68948         * modules/unistdio/u16-u16-vasnprintf: New file.
68949         * modules/unistdio/u16-u16-vasprintf: New file.
68950         * modules/unistdio/u16-u16-vsnprintf: New file.
68951         * modules/unistdio/u16-u16-vsprintf: New file.
68952         * modules/unistdio/u32-asnprintf: New file.
68953         * modules/unistdio/u32-asprintf: New file.
68954         * modules/unistdio/u32-printf-parse: New file.
68955         * modules/unistdio/u32-snprintf: New file.
68956         * modules/unistdio/u32-sprintf: New file.
68957         * modules/unistdio/u32-vasnprintf: New file.
68958         * modules/unistdio/u32-vasprintf: New file.
68959         * modules/unistdio/u32-vsnprintf: New file.
68960         * modules/unistdio/u32-vsprintf: New file.
68961         * modules/unistdio/u32-u32-asnprintf: New file.
68962         * modules/unistdio/u32-u32-asprintf: New file.
68963         * modules/unistdio/u32-u32-snprintf: New file.
68964         * modules/unistdio/u32-u32-sprintf: New file.
68965         * modules/unistdio/u32-u32-vasnprintf: New file.
68966         * modules/unistdio/u32-u32-vasprintf: New file.
68967         * modules/unistdio/u32-u32-vsnprintf: New file.
68968         * modules/unistdio/u32-u32-vsprintf: New file.
68969         * modules/unistdio/ulc-asnprintf-tests: New file.
68970         * modules/unistdio/ulc-vasnprintf-tests: New file.
68971         * modules/unistdio/ulc-vasprintf-tests: New file.
68972         * modules/unistdio/ulc-vsnprintf-tests: New file.
68973         * modules/unistdio/ulc-vsprintf-tests: New file.
68974         * modules/unistdio/u8-asnprintf-tests: New file.
68975         * modules/unistdio/u8-vasnprintf-tests: New file.
68976         * modules/unistdio/u8-vasprintf-tests: New file.
68977         * modules/unistdio/u8-vsnprintf-tests: New file.
68978         * modules/unistdio/u8-vsprintf-tests: New file.
68979         * modules/unistdio/u16-asnprintf-tests: New file.
68980         * modules/unistdio/u16-vasnprintf-tests: New file.
68981         * modules/unistdio/u16-vasprintf-tests: New file.
68982         * modules/unistdio/u16-vsnprintf-tests: New file.
68983         * modules/unistdio/u16-vsprintf-tests: New file.
68984         * modules/unistdio/u32-asnprintf-tests: New file.
68985         * modules/unistdio/u32-vasnprintf-tests: New file.
68986         * modules/unistdio/u32-vasprintf-tests: New file.
68987         * modules/unistdio/u32-vsnprintf-tests: New file.
68988         * modules/unistdio/u32-vsprintf-tests: New file.
68989         * MODULES.html.sh (Unicode string functions): Add the new modules.
68990
68991 2007-07-01  Bruno Haible  <bruno@clisp.org>
68992
68993         * lib/sprintf.c (sprintf): Limit the available length estimation,
68994         to avoid address wraparound.
68995         * lib/vsprintf.c (vsprintf): Likewise.
68996         * modules/sprintf-posix (Dependencies): Add stdint.
68997         * modules/vsprintf-posix (Dependencies): Likewise.
68998
68999 2007-07-01  Bruno Haible  <bruno@clisp.org>
69000
69001         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69002         Windows PATH as well. Conservative double-quoting. Comments.
69003
69004 2007-07-01  Bruno Haible  <bruno@clisp.org>
69005             Eric Blake  <ebb9@byu.net>
69006             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69007
69008         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69009         empty components in $PATH, denoting '.'.
69010
69011 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69012
69013         * gnulib-tool: Fix indentation.
69014         (func_create_megatestdir): Likewise.
69015         Report by Bruno Haible.
69016
69017 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69018
69019         Sync from Automake.
69020         * build-aux/gnupload: Fix shell portability issues with for loops.
69021         Report by Karl Berry.
69022
69023 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69024
69025         * build-aux/maint.mk (POURL): Use translationproject.org.
69026
69027 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69028             Bruno Haible  <bruno@clisp.org>
69029
69030         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69031         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69032         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69033         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69034         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69035
69036 2007-06-27  Bruno Haible  <bruno@clisp.org>
69037
69038         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69039         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69040
69041 2007-06-26  Karl Berry  <karl@gnu.org>
69042
69043         * MODULES.html.sh: remove xreadlink-with-size.
69044
69045 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69048         method that I hope also handles the double-include problem noted
69049         by Bruno Haible in
69050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69051
69052 2007-06-23  Bruno Haible  <bruno@clisp.org>
69053
69054         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69055         Don't let the 'mostlyclean' target fail if the last subdirectory could
69056         not be removed.
69057         Reported by Karl Berry.
69058
69059 2007-06-23  Bruno Haible  <bruno@clisp.org>
69060
69061         * gnulib-tool (echo): Add a speedier workaround for ksh.
69062         * tests/test-echo.sh: Likewise.
69063
69064 2007-06-23  Bruno Haible  <bruno@clisp.org>
69065
69066         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69067         * tests/test-echo.sh: Likewise.
69068
69069 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69070
69071         * gnulib-tool (IFS): Initialize early, so we don't set it to
69072         empty later.
69073         (self_abspathname): Rewrite algorithm to set it, reindent.
69074         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69075         (func_create_megatestdir): Merge some sed scripts.
69076
69077 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69078
69079         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69080         exposed by Sun Studio 11 cc on Solaris 8.
69081
69082 2007-06-22  Bruno Haible  <bruno@clisp.org>
69083
69084         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69085         backslashes.
69086         * tests/test-echo.sh: New file.
69087
69088 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69089
69090         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69091         simplify `sed_replace_build_aux' scripts, they are portable but
69092         echoing them with `echo' is not.
69093         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69094
69095 2007-06-21  Karl Berry  <karl@gnu.org>
69096
69097         * config/srclist.txt: guess we can't handle the licenses via
69098         srclist at the moment.
69099
69100 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69101
69102         * MODULES.html.sh: Add include_next.
69103         * modules/include_next: New file.
69104
69105 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69106
69107         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69108         INCLUDE_NEXT.
69109         (gl_CHECK_NEXT_HEADERS): New macro.
69110         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69111         the obsolescent gl_ABSOLUTE_HEADER.
69112         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69113         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69114         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69115         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69116         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69117         * m4/math_h.m4 (gl_MATH_H): Likewise.
69118         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69119         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69120         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69121         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69122         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69123         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69124         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69125         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69126         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69127         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69128         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69129         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69130         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69131         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69132         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69133         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69134         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69135         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69136         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69137         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69138         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69139         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69140         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69141         * lib/float_.h: Likewise.
69142         * lib/inttypes_.h: Likewise.
69143         * lib/math_.h: Likewise.
69144         * lib/search_.h: Likewise.
69145         * lib/signal_.h: Likewise.
69146         * lib/stdint_.h: Likewise.
69147         * lib/stdio_.h: Likewise.
69148         * lib/stdlib_.h: Likewise.
69149         * lib/string_.h: Likewise.
69150         * lib/sys_stat_.h: Likewise.
69151         * lib/sys_time_.h: Likewise.
69152         * lib/time_.h: Likewise.
69153         * lib/unistd_.h: Likewise.
69154         * lib/wchar_.h: Likewise.
69155         * lib/wctype_.h: Likewise.
69156         * lib/dirent_.h: Likewise.
69157         * lib/iconv_.h: Likewise.
69158         * lib/locale_.h: Likewise.
69159         * lib/netinet_in_.h: Likewise.
69160         * lib/sys_select_.h: Likewise.
69161         * lib/sys_socket_.h: Likewise.
69162         * lib/sysexits_.h: Likewise.
69163         * modules/fcntl (Depends-on): Depend on include_next, not
69164         absolute_header.
69165         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69166         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69167         * modules/fchdir: Likewise.
69168         * modules/float: Likewise.
69169         * modules/iconv_open: Likewise.
69170         * modules/inttypes: Likewise.
69171         * modules/locale: Likewise.
69172         * modules/math: Likewise.
69173         * modules/netinet_in: Likewise.
69174         * modules/search: Likewise.
69175         * modules/signal: Likewise.
69176         * modules/stdint: Likewise.
69177         * modules/stdio: Likewise.
69178         * modules/stdlib: Likewise.
69179         * modules/string: Likewise.
69180         * modules/sys_select: Likewise.
69181         * modules/sys_socket: Likewise.
69182         * modules/sys_stat: Likewise.
69183         * modules/sys_time: Likewise.
69184         * modules/sysexits: Likewise.
69185         * modules/time: Likewise.
69186         * modules/unistd: Likewise.
69187         * modules/wchar: Likewise.
69188         * modules/wctype: Likewise.
69189         * modules/sys_stat: Change maintainer to "all".
69190         * modules/unistd: Likewise.
69191
69192 2007-06-20  Karl Berry  <karl@gnu.org>
69193
69194         * config/srclist.txt: track www changes in license files.
69195
69196 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69197
69198         * build-aux/bootstrap: Remove stray dot.
69199         Make sure build_aux settings are honored when linking
69200         gnulib_extra_files.
69201
69202 2007-06-19  Eric Blake  <ebb9@byu.net>
69203
69204         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69205         Allow compilation on cygwin.
69206
69207 2007-06-19  Jim Meyering  <jim@meyering.net>
69208
69209         xreadlink-with-size: Remove module.  No longer used.
69210         Ex-callers now use xreadlink or mreadlink-with-size.
69211         * modules/xreadlink-with-size: Remove module.
69212         * lib/xreadlink-with-size.c: Remove file.
69213         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69214         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69215         just before the function definition *is* accurate.
69216
69217         Eliminate one way canonicalize_filename_mode could exit.
69218         * lib/canonicalize.c (canonicalize_filename_mode):
69219         Use mreadlink_with_size, not xreadlink_with_size.
69220
69221 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69222
69223         Detect porting problems to FreeBSD/arm, which has time_t wider than
69224         long int.  Original problem reported for GNU diff by Xin Li in
69225         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69226         * modules/getdate (Depends-on): Add intprops, verify.
69227         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69228         is an integer type no wider than long int.
69229
69230 2007-06-18  Jim Meyering  <jim@meyering.net>
69231
69232         New module: mreadlink-with-size.
69233         * MODULES.html.sh: Add mreadlink-with-size.
69234         * modules/mreadlink-with-size: New module
69235         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69236         not xreadlink-with-size.
69237         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69238
69239 2007-06-16  Bruno Haible  <bruno@clisp.org>
69240
69241         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69242         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69243         Reported by Gary V. Vaughan <gary@gnu.org>.
69244
69245 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69246
69247         Revamp lchown so that it lives in unistd.h where it belongs.
69248         * lib/lchown.h: Remove.
69249         * lib/dirchownmod.c: Don't include lib/lchown.h.
69250         * lib/fchownat.c: Likewise.
69251         * lib/openat.c: Likewise.
69252         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69253         does not follow symlinks.
69254         (EOPNOTSUPP): Define if not defined.
69255         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69256         is defined to 0.
69257         (lchown): New decl.
69258         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69259         Do not check for lchown decl.
69260         Set REPLACE_LCHOWN.
69261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69262         REPLACE_LCHOWN.
69263         * modules/chown: Make it clear it follows symlinks.
69264         * modules/lchown: Make it clear it doesn't follow symlinks.
69265         (Files): Remove lib/lchown.h
69266         (Depends-on): Add unistd.
69267         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69268         (Include): Include <unistd.h>, not "lchown.h".
69269         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69270         REPLACE_LCHOWN.
69271
69272 2007-06-15  Jim Meyering  <jim@meyering.net>
69273
69274         Change license (GPL to LGPL) of fsusage and dependents.
69275         * modules/fsusage (License): Change to LGPL.
69276         * modules/full-read (License): Likewise.
69277         * modules/full-write (License): Likewise.
69278         * modules/safe-read (License): Likewise.
69279         * modules/safe-write (License): Likewise.
69280
69281 2007-06-14  Ben Pfaff  <blp@gnu.org>
69282
69283         Missing part of allocsa -> malloca transition.
69284         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69285         gl_MALLOCA.
69286
69287 2007-06-12  Bruno Haible  <bruno@clisp.org>
69288
69289         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69290         to ia64, x86_64, i386.
69291         Reported by Eric Blake.
69292
69293 2007-06-12  Bruno Haible  <bruno@clisp.org>
69294
69295         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69296         cross-compiling to x86_64.
69297
69298 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69299
69300         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69301         glitch reported by Ralf Wildenhues in
69302         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69303
69304         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69305         Vin Shelton.
69306
69307 2007-06-11  Bruno Haible  <bruno@clisp.org>
69308
69309         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69310         replacement string.
69311         Reported by Eric Blake.
69312
69313 2007-06-10  Bruno Haible  <bruno@clisp.org>
69314
69315         Prepare vasnprintf code for use with Unicode strings.
69316         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69317         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69318         TYPE_U32_STRING.
69319         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69320         a_u32_string variants.
69321         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69322         * lib/printf-args.c: Don't include config.h and the specification
69323         header if PRINTF_FETCHARGS is already defined.
69324         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69325         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69326         TYPE_U16_STRING, TYPE_U32_STRING.
69327         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69328         u16_directive, u16_directives, u32_directive, u32_directives): New
69329         types.
69330         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69331         New declarations.
69332         * lib/printf-parse.c: Don't include config.h and the specification
69333         header if PRINTF_PARSE is already defined. Eliminate the set of
69334         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69335         them now. Include c-ctype.h.
69336         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69337         directive and CHAR_T_ONLY_ASCII.
69338         * lib/vasnprintf.c: Don't include config.h and the specification header
69339         if VASNPRINTF is already defined.
69340         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69341         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69342         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69343         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69344         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69345         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69346         code accordingly.
69347         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69348         pad_ourselves also in this case, with the 'c' and 's' directives, and
69349         with a different notion of "width".
69350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69351
69352 2007-06-10  Bruno Haible  <bruno@clisp.org>
69353
69354         * modules/unistr/u32-mbsnlen: New file.
69355         * lib/unistr/u32-mbsnlen.c: New file.
69356
69357         * modules/unistr/u16-mbsnlen: New file.
69358         * lib/unistr/u16-mbsnlen.c: New file.
69359
69360         * modules/unistr/u8-mbsnlen: New file.
69361         * lib/unistr/u8-mbsnlen.c: New file.
69362
69363         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69364         declarations.
69365
69366 2007-06-10  Bruno Haible  <bruno@clisp.org>
69367
69368         * lib/string_.h (mbsnlen): New declaration.
69369         * lib/mbsnlen.c: New file.
69370         * m4/mbsnlen.m4: New file.
69371         * modules/mbsnlen: New file.
69372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69373         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69374         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69375
69376 2007-06-10  Bruno Haible  <bruno@clisp.org>
69377
69378         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69379
69380 2007-06-10  Bruno Haible  <bruno@clisp.org>
69381
69382         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69383         * lib/mbuiter.h: Likewise.
69384
69385 2007-06-10  Bruno Haible  <bruno@clisp.org>
69386
69387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69388         declaration.
69389
69390 2007-06-10  Karl Berry  <karl@gnu.org>
69391
69392         * config/srclist.txt: remove gettext entries, Bruno prefers
69393         to update individually.
69394
69395 2007-06-10  Bruno Haible  <bruno@clisp.org>
69396
69397         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69398         'maxlen'. Ensure only length + width bytes are allocated, not
69399         length + 1 + width.
69400
69401 2007-06-09  Bruno Haible  <bruno@clisp.org>
69402
69403         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69404         (CHAR_T): Remove macro.
69405         (VASNPRINTF): Update.
69406
69407 2007-06-09  Bruno Haible  <bruno@clisp.org>
69408
69409         * MODULES.html.sh (Unicode string functions): Add the new modules.
69410
69411         * modules/uniconv/u32-conv-to-enc: New file.
69412         * lib/uniconv/u32-conv-to-enc.c: New file.
69413         * modules/uniconv/u32-conv-to-enc-tests: New file.
69414         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69415
69416         * modules/uniconv/u16-conv-to-enc: New file.
69417         * lib/uniconv/u16-conv-to-enc.c: New file.
69418         * lib/uniconv/u-conv-to-enc.h: New file.
69419         * modules/uniconv/u16-conv-to-enc-tests: New file.
69420         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69421
69422         * modules/uniconv/u8-conv-to-enc: New file.
69423         * lib/uniconv/u8-conv-to-enc.c: New file.
69424         * modules/uniconv/u8-conv-to-enc-tests: New file.
69425         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69426
69427         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69428         u32_conv_to_encoding): New declarations.
69429
69430 2007-06-09  Bruno Haible  <bruno@clisp.org>
69431
69432         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69433
69434 2007-06-09  Bruno Haible  <bruno@clisp.org>
69435
69436         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69437         * modules/malloca: Renamed from modules/allocsa, updated.
69438         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69439         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69440         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69441         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69442         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69443         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69444         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69445         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69446         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69447         * modules/c-strcasestr (Depends-on): Update.
69448         * lib/c-strcasestr.c: Update.
69449         * modules/c-strstr (Depends-on): Update.
69450         * lib/c-strstr.c: Update.
69451         * modules/canonicalize-lgpl (Depends-on): Update.
69452         * lib/canonicalize-lgpl.c: Update.
69453         * modules/clean-temp (Depends-on): Update.
69454         * lib/clean-temp.c: Update.
69455         * modules/csharpcomp (Depends-on): Update.
69456         * lib/csharpcomp.c: Update.
69457         * modules/csharpexec (Depends-on): Update.
69458         * lib/csharpexec.c: Update.
69459         * modules/javacomp (Depends-on): Update.
69460         * lib/javacomp.c: Update.
69461         * modules/javaexec (Depends-on): Update.
69462         * lib/javaexec.c: Update.
69463         * modules/mbscasestr (Depends-on): Update.
69464         * lib/mbscasestr.c: Update.
69465         * modules/mbsstr (Depends-on): Update.
69466         * lib/mbsstr.c: Update.
69467         * modules/setenv (Depends-on): Update.
69468         * lib/setenv.c: Update.
69469         * modules/strcasestr (Depends-on): Update.
69470         * lib/strcasestr.c: Update.
69471         * modules/striconveha (Depends-on): Update.
69472         * lib/striconveha.c: Update.
69473         * modules/relocatable-prog-wrapper (Files): Update.
69474         * lib/relocwrapper.c: Update.
69475         * build-aux/install-reloc: Update.
69476         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69477
69478 2007-06-08  Bruno Haible  <bruno@clisp.org>
69479
69480         Port to uClibc.
69481         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69482         * lib/fpurge.c (fpurge): Likewise.
69483         * lib/freading.c (freading): Likewise.
69484         * lib/fseeko.c (rpl_fseeko): Likewise.
69485         * lib/fseterr.c (fseterr): Likewise.
69486         * lib/fwriting.c (fwriting): Likewise.
69487         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69488
69489 2007-06-08  Bruno Haible  <bruno@clisp.org>
69490
69491         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69492         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69493         * modules/gettext (Files): Add m4/intlmacosx.m4.
69494
69495 2007-06-07  Bruno Haible  <bruno@clisp.org>
69496
69497         * modules/localename-tests: New file.
69498         * tests/test-localename.c: New file.
69499
69500         New module 'localename'.
69501         * lib/localename.h: New file.
69502         * lib/localename.c: New file, from GNU gettext.
69503         * m4/localename.m4: New file.
69504         * modules/localename: New file.
69505
69506 2007-06-07  Bruno Haible  <bruno@clisp.org>
69507
69508         Work around the lack of <wchar.h> on some builds of uClibc.
69509         * doc/headers/wchar.texi: Update.
69510         * lib/wchar_.h: Include <wchar.h> only if it exists.
69511         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69512         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69513         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69514         doesn't exist.
69515         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69516         * modules/mbfile (Depends-on): Add wchar.
69517         * modules/mbiter (Depends-on): Likewise.
69518         * modules/mbuiter (Depends-on): Likewise.
69519         Reported by Simon Josefsson.
69520
69521 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69522
69523         Work around problem reported by Steven M. Schweda in
69524         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69525         Tru64 5.1B with the Compaq compiler environment installed declares
69526         an 'isblank' function but does not define it in the C library.
69527         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69528         * lib/regex_internal.h (isblank): Likewise.
69529         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69530         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69531
69532 2007-06-05  Bruno Haible  <bruno@clisp.org>
69533
69534         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69535         ia64.
69536         * modules/printf-safe: New file.
69537         * modules/fprintf-posix (Depends-on): Add printf-safe.
69538         * modules/printf-posix (Depends-on): Likewise.
69539         * modules/snprintf-posix (Depends-on): Likewise.
69540         * modules/sprintf-posix (Depends-on): Likewise.
69541         * modules/vasnprintf-posix (Depends-on): Likewise.
69542         * modules/vasprintf-posix (Depends-on): Likewise.
69543         * modules/vfprintf-posix (Depends-on): Likewise.
69544         * modules/vprintf-posix (Depends-on): Likewise.
69545         * modules/vsnprintf-posix (Depends-on): Likewise.
69546         * modules/vsprintf-posix (Depends-on): Likewise.
69547         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69548         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69549         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69550         "no" on i386, x86_64, ia64.
69551         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69552         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69553         on i386, x86_64, ia64.
69554         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69555         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69556         on i386, x86_64, ia64.
69557         * tests/test-vasnprintf-posix.c: Include float.h.
69558         (LDBL80_WORDS): New macro.
69559         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69560         on i386, x86_64, ia64.
69561         * tests/test-vasprintf-posix.c: Include float.h.
69562         (LDBL80_WORDS): New macro.
69563         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69564         on i386, x86_64, ia64.
69565         * tests/test-snprintf-posix.c: Include float.h.
69566         * tests/test-sprintf-posix.c: Likewise.
69567         * tests/test-vsnprintf-posix.c: Likewise.
69568         * tests/test-vsprintf-posix.c: Likewise.
69569
69570 2007-06-05  Bruno Haible  <bruno@clisp.org>
69571
69572         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69573         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69574         non-IEEE numbers on i386, x86_64, ia64.
69575         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69576         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69577         * tests/test-isnanl.h: Include float.h.
69578         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69579
69580 2007-06-05  Bruno Haible  <bruno@clisp.org>
69581
69582         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69583         also the %a / %A. Handle the %a / %A code before this extra handling.
69584
69585 2007-06-05  Bruno Haible  <bruno@clisp.org>
69586
69587         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69588         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69589
69590 2007-06-05  Bruno Haible  <bruno@clisp.org>
69591
69592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69593         typo in variable name.
69594
69595 2007-06-05  Eric Blake  <ebb9@byu.net>
69596
69597         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69598         Reported by Simon Josefsson.
69599
69600 2007-06-04  Bruno Haible  <bruno@clisp.org>
69601
69602         Avoid test failures on some PowerPC platforms.
69603         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69604         Define differently for PowerPC.
69605         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69606         Reported by Gary V. Vaughan <gary@gnu.org>.
69607
69608 2007-06-02  Bruno Haible  <bruno@clisp.org>
69609
69610         Fix test-stdint failure on FreeBSD/ia64.
69611         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69612         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69613         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69614         * doc/headers/stdint.texi: Update.
69615
69616 2007-06-01  Bruno Haible  <bruno@clisp.org>
69617
69618         * tests/test-binary-io.c (main): Pass a third argument to open().
69619         Reported by Gary V. Vaughan <gary@gnu.org>.
69620
69621 2007-06-01  Bruno Haible  <bruno@clisp.org>
69622
69623         * doc/functions/frexpl.texi: Update for mingw.
69624
69625 2007-06-01  Bruno Haible  <bruno@clisp.org>
69626
69627         * tests/test-lseek.c (main): Disable test of errno for invalid third
69628         argument.
69629         * doc/functions/lseek.texi: Update.
69630         Reported by Gary V. Vaughan <gary@gnu.org>.
69631
69632 2007-05-28  Bruno Haible  <bruno@clisp.org>
69633
69634         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69635
69636 2007-05-31  Eric Blake  <ebb9@byu.net>
69637
69638         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69639         cross compiling.
69640
69641 2007-05-30  Eric Blake  <ebb9@byu.net>
69642         and Bruno Haible  <bruno@clisp.org>
69643
69644         Work around mingw test failures exposed by m4-1.4.9b.
69645         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69646         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69647         moment.
69648
69649 2007-05-30  Bruno Haible  <bruno@clisp.org>
69650
69651         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69652         assuming that they are closed. Needed on HP-UX 11.
69653
69654 2007-05-29  Bruno Haible  <bruno@clisp.org>
69655
69656         Fix a problem with #include_next.
69657         * lib/dirent_.h: Split the double-inclusion guard.
69658         * lib/fcntl_.h: Likewise.
69659         * lib/float_.h: Likewise.
69660         * lib/iconv_.h: Likewise.
69661         * lib/inttypes_.h: Likewise.
69662         * lib/locale_.h: Likewise.
69663         * lib/math_.h: Likewise.
69664         * lib/netinet_in_.h: Likewise.
69665         * lib/search_.h: Likewise.
69666         * lib/signal_.h: Likewise.
69667         * lib/stdint_.h: Likewise.
69668         * lib/stdio_.h: Likewise.
69669         * lib/stdlib_.h: Likewise.
69670         * lib/string_.h: Likewise.
69671         * lib/sys_select_.h: Likewise.
69672         * lib/sys_socket_.h: Likewise.
69673         * lib/sys_stat_.h: Likewise.
69674         * lib/sys_time_.h: Likewise.
69675         * lib/sysexits_.h: Likewise.
69676         * lib/time_.h: Likewise.
69677         * lib/unistd_.h: Likewise.
69678         * lib/wchar_.h: Likewise.
69679         * lib/wctype_.h: Likewise.
69680
69681 2007-05-29  Bruno Haible  <bruno@clisp.org>
69682
69683         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69684         for the moment.
69685
69686 2007-05-29  Bruno Haible  <bruno@clisp.org>
69687
69688         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69689         invocation.
69690         Reported by Eric Blake.
69691
69692 2007-05-29  Bruno Haible  <bruno@clisp.org>
69693
69694         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69695         compiling case.
69696
69697 2007-05-29  Eric Blake  <ebb9@byu.net>
69698             Bruno Haible  <bruno@clisp.org>
69699
69700         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69701         cross compiles.
69702
69703 2007-05-28  Eric Blake  <ebb9@byu.net>
69704
69705         * modules/closein-tests (test_closein_LDADD): Support test on
69706         cygwin with libtool.
69707
69708 2007-05-28  Bruno Haible  <bruno@clisp.org>
69709
69710         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69711         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69712         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69713         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69714         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69715         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69716         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69717         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69718         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69719
69720 2007-05-28  Eric Blake  <ebb9@byu.net>
69721
69722         Unconditionally include <config.h> in unit tests.
69723         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69724         * tests/test-allocsa.c, tests/test-arcfour.c,
69725         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69726         tests/test-array_list.c, tests/test-array_oset.c,
69727         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69728         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69729         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69730         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69731         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69732         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69733         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69734         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69735         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69736         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69737         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69738         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69739         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69740         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69741         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69742         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69743         test-md5.c, test-memmem.c, test-printf-posix.c,
69744         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69745         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69746         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69747         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69748         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69749         test-vasnprintf-posix2.c, test-vasnprintf.c,
69750         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69751         test-vfprintf-posix.c, test-vprintf-posix.c,
69752         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69753         test-xvasprintf.c: Likewise.
69754
69755 2007-05-28  Bruno Haible  <bruno@clisp.org>
69756
69757         * gnulib-tool (func_import): Remember the --with-tests command-line
69758         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69759         Reported by Eric Blake.
69760
69761 2007-05-28  Bruno Haible  <bruno@clisp.org>
69762
69763         * modules/ftell-tests: New file.
69764         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69765         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69766
69767         * lib/ftell.c: New file.
69768         * modules/ftell: New file.
69769         * m4/ftell.m4: New file.
69770         * doc/functions/ftell.texi: Update.
69771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69772         REPLACE_FTELL.
69773         * lib/stdio_.h (rpl_ftell): New declaration.
69774         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69775         REPLACE_FTELL.
69776
69777 2007-05-28  Eric Blake  <ebb9@byu.net>
69778
69779         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69780
69781 2007-05-28  Bruno Haible  <bruno@clisp.org>
69782
69783         * modules/fseek-tests: New file.
69784         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69785         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69786
69787         * lib/fseek.c: New file.
69788         * modules/fseek: New file.
69789         * m4/fseek.m4: New file.
69790         * doc/functions/fseek.texi: Update.
69791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69792         REPLACE_FSEEK.
69793         * lib/stdio_.h (rpl_fseek): New declaration.
69794         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69795         REPLACE_FSEEK.
69796
69797 2007-05-28  Bruno Haible  <bruno@clisp.org>
69798
69799         * lib/stdio_.h (fflush): More comments.
69800
69801 2007-05-28  Bruno Haible  <bruno@clisp.org>
69802
69803         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
69804         runtime test.
69805
69806 2007-05-28  Eric Blake  <ebb9@byu.net>
69807
69808         Improve lseek module.
69809         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
69810         * lib/unistd_.h (lseek): Scale back link warning message.
69811         * tests/test-lseek.c: Beef up test.
69812         * tests/test-lseek.sh: Exercise more facets of lseek.
69813         Reported by Bruno Haible.
69814
69815 2007-05-28  Bruno Haible  <bruno@clisp.org>
69816
69817         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
69818         to define.
69819
69820 2007-05-27  Bruno Haible  <bruno@clisp.org>
69821
69822         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
69823
69824 2007-05-27  Bruno Haible  <bruno@clisp.org>
69825
69826         * modules/openmp: New file.
69827         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
69828         Noah Misch.
69829
69830 2007-05-26  Bruno Haible  <bruno@clisp.org>
69831
69832         * modules/chdir-long (Depends-on): Add fchdir.
69833         * modules/chdir-safer (Depends-on): Likewise.
69834         * modules/fts (Depends-on): Likewise.
69835         * modules/fts-lgpl (Depends-on): Likewise.
69836         * modules/openat (Depends-on): Likewise.
69837         * modules/savewd (Depends-on): Likewise.
69838
69839 2007-05-24  Eric Blake  <ebb9@byu.net>
69840
69841         Fix lseek on mingw.
69842         * modules/lseek: New module.
69843         * m4/lseek.m4: New file.
69844         * lib/lseek.c: New file.
69845         * modules/lseek-tests: New file.
69846         * tests/test-lseek.c: New file.
69847         * tests/test-lseek.sh: New file.
69848         * MODULES.html.sh: Document lseek module.
69849         * modules/fflush (Depends-on): Add lseek, fseeko.
69850         * modules/fseeko (Depends-on): Likewise.
69851         * modules/ftello (Depends-on): Likewise.
69852         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69853         broken.
69854         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69855         broken.
69856         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69857         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69858         * lib/ftello.c (rpl_ftello): Likewise.
69859         * tests/test-fseeko.c (main): Test this.
69860         * tests/test-fseeko.sh: Likewise.
69861         * tests/test-ftello.c (main): Likewise.
69862         * tests/test-ftello.sh: Likewise.
69863         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69864         implies replacing fseek.
69865         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69866         HAVE_FTELLO.
69867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69868         * modules/unistd (Makefile.am): Likewise.
69869         * lib/unistd_.h (lseek): Declare a replacement.
69870         * doc/functions/lseek.texi (lseek): Document this fix.
69871         * doc/functions/fseek.texi (fseek): Likewise.
69872         * doc/functions/ftell.texi (ftell): Likewise.
69873
69874 2007-05-24  Bruno Haible  <bruno@clisp.org>
69875
69876         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69877         in the printed representation of a NaN.
69878         * tests/test-vasprintf-posix.c (test_function): Likewise.
69879         * tests/test-snprintf-posix.h (test_function): Likewise.
69880         * tests/test-sprintf-posix.h (test_function): Likewise.
69881         Reported by Eric Blake.
69882
69883 2007-05-23  Eric Blake  <ebb9@byu.net>
69884
69885         Fix fseeko/ftello on cygwin 1.5.24.
69886         * doc/functions/fseeko.texi (fseeko): Document the fix.
69887         * doc/functions/ftello.texi (ftello): Document the fix.
69888         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69889         * doc/functions/stdout.text (stdout): New file.
69890         * doc/functions/stderr.text (stderr): New file.
69891         * doc/gnulib.texi (Function Substitutes): Use new files.
69892         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69893         prior to 1.7.0.
69894         * tests/test-ftello.c (main): Likewise for ftello.
69895         * tests/test-fseeko.sh: New file.
69896         * tests/test-ftello.sh: New file.
69897         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69898         with seekable stdin.
69899         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69900         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69901         (gl_REPLACE_FSEEKO): New macro.
69902         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69903         * modules/fseeko (Files): Distribute fseeko.c.
69904         * modules/ftello (Files): Distribute ftello.c.
69905         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69906         mode.
69907         * lib/ftello.c (rpl_ftello): New file.
69908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69909         fseeko, ftello.
69910         (gl_STDIN_LARGE_OFFSET): New macro.
69911         * modules/stdio (Makefile.am): Perform the replacement.
69912         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69913
69914 2007-05-23  Bruno Haible  <bruno@clisp.org>
69915
69916         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69917         GNULIB_POSIXCHECK is defined.
69918
69919 2007-05-21  Bruno Haible  <bruno@clisp.org>
69920
69921         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69922         Check also the output for NaN arguments. When cross-compiling, guess
69923         no on IRIX.
69924         * lib/vasnprintf.c: Update comments.
69925         * tests/test-vasnprintf-posix.c (strisnan): New function.
69926         (test_function): Use it.
69927         * tests/test-vasprintf-posix.c (strisnan): New function.
69928         (test_function): Use it.
69929         * tests/test-snprintf-posix.h (strisnan): New function.
69930         (test_function): Use it.
69931         * tests/test-sprintf-posix.h (strisnan): New function.
69932         (test_function): Use it.
69933         Reported by Eric Blake.
69934
69935 2007-05-20  Bruno Haible  <bruno@clisp.org>
69936
69937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69938         numbers that fails on BeOS.
69939         * doc/functions/frexpl.texi: Update.
69940
69941 2007-05-20  Jim Meyering  <jim@meyering.net>
69942
69943         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69944         forced upon us by glibc-2.6.
69945
69946 2007-05-20  Bruno Haible  <bruno@clisp.org>
69947
69948         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69949         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69950         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69951         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69952         NEED_PRINTF_INFINITE.
69953         (is_infinitel): New function.
69954         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69955         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69956         gl_PREREQ_VASNPRINTF_INFINITE.
69957         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69958         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69959         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69960         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69961         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69962         gl_PREREQ_VASNPRINTF_INFINITE.
69963         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69964         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69966         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69967         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69968         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69969         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69970         * doc/functions/fprintf.texi: Update.
69971         * doc/functions/printf.texi: Update.
69972         * doc/functions/snprintf.texi: Update.
69973         * doc/functions/sprintf.texi: Update.
69974         * doc/functions/vfprintf.texi: Update.
69975         * doc/functions/vprintf.texi: Update.
69976         * doc/functions/vsnprintf.texi: Update.
69977         * doc/functions/vsprintf.texi: Update.
69978
69979 2007-05-20  Bruno Haible  <bruno@clisp.org>
69980
69981         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69982         was not found in libc.
69983         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69984
69985 2007-05-20  Bruno Haible  <bruno@clisp.org>
69986
69987         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69988         printed as "-nan" instead of "nan".
69989         * tests/test-vasprintf-posix.c (test_function): Likewise.
69990         * tests/test-snprintf-posix.h (test_function): Likewise.
69991         * tests/test-sprintf-posix.h (test_function): Likewise.
69992         Needed for HP-UX 11.
69993
69994 2007-05-20  Jim Meyering  <jim@meyering.net>
69995
69996         Fix buggy test for the fchownat-deref bug.
69997         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69998         symlink required for the run-test.  Without it, this test would
69999         always declare that fchownat doesn't work, and client code would
70000         unnecessarily use the replacement function with fixed libc.
70001         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70002         Reported by Greg Schafer.
70003
70004 2007-05-19  Bruno Haible  <bruno@clisp.org>
70005
70006         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70007         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70008         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70009         Needed for IRIX 6.5 and Solaris 2.5.1.
70010
70011 2007-05-19  Bruno Haible  <bruno@clisp.org>
70012
70013         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70014         (test_function): Skip tests involving -0.0 on platforms where
70015         -0.0 = 0.0.
70016         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70017         (test_function): Skip tests involving -0.0 on platforms where
70018         -0.0 = 0.0.
70019         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70020         (test_function): Skip tests involving -0.0 on platforms where
70021         -0.0 = 0.0.
70022         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70023         (test_function): Skip tests involving -0.0 on platforms where
70024         -0.0 = 0.0.
70025         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70026         tests.
70027         * tests/test-printf-posix.h (test_function): Likewise.
70028         * tests/test-printf-posix.output: Remove all -0.0 related results.
70029         Needed for IRIX 6.5.
70030
70031 2007-05-19  Bruno Haible  <bruno@clisp.org>
70032
70033         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70034         printed as "nan0x7fffffff" instead of "nan".
70035         * tests/test-vasprintf-posix.c (test_function): Likewise.
70036         * tests/test-snprintf-posix.h (test_function): Likewise.
70037         * tests/test-sprintf-posix.h (test_function): Likewise.
70038         * tests/test-fprintf-posix.h (NaN): Remove macro.
70039         (test_function): Remove all NaN related tests.
70040         * tests/test-printf-posix.h (NaN): Remove macro.
70041         (test_function): Remove all NaN related tests.
70042         * tests/test-printf-posix.output: Remove all NaN related results.
70043         Needed for IRIX 6.5.
70044
70045 2007-05-19  Bruno Haible  <bruno@clisp.org>
70046
70047         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70048         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70049
70050 2007-05-19  Bruno Haible  <bruno@clisp.org>
70051
70052         * lib/float_.h: New file.
70053         * m4/float_h.m4: New file.
70054         * modules/float: New file.
70055         * modules/isnanl (Dependencies): Add float.
70056         * modules/isnanl-nolibm (Dependencies): Likewise.
70057         * modules/mathl (Dependencies): Likewise.
70058         * modules/printf-frexpl (Dependencies): Likewise.
70059         * modules/signbit (Dependencies): Likewise.
70060         * modules/vasnprintf (Dependencies): Likewise.
70061         * doc/headers/float.texi: Update.
70062
70063 2007-05-19  Jim Meyering  <jim@meyering.net>
70064
70065         * lib/utimens.c (gl_futimens): Rename from futimens,
70066         now that glibc-2.6 declares futimens.
70067         * lib/utimens.h: Likewise.
70068
70069 2007-05-19  Bruno Haible  <bruno@clisp.org>
70070
70071         Avoid test failures on mingw.
70072         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70073         * tests/test-printf-posix.sh: Likewise.
70074         * tests/test-vfprintf-posix.sh: Likewise.
70075         * tests/test-vprintf-posix.sh: Likewise.
70076
70077 2007-05-19  Bruno Haible  <bruno@clisp.org>
70078
70079         Fix *printf result for NaN, Inf, -0.0 on mingw.
70080         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70081         * lib/vasnprintf.c: Include math.h and isnan.h.
70082         (is_infinite_or_zero): New function.
70083         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70084         values in the %f, %F, %e, %E, %g, %G directives.
70085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70086         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70087         gl_PRINTF_INFINITE and test its result. Invoke
70088         gl_PREREQ_VASNPRINTF_INFINITE.
70089         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70090         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70091         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70092         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70093         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70094         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70095         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70096         * doc/functions/fprintf.texi: Update.
70097         * doc/functions/printf.texi: Update.
70098         * doc/functions/snprintf.texi: Update.
70099         * doc/functions/sprintf.texi: Update.
70100         * doc/functions/vfprintf.texi: Update.
70101         * doc/functions/vprintf.texi: Update.
70102         * doc/functions/vsnprintf.texi: Update.
70103         * doc/functions/vsprintf.texi: Update.
70104
70105 2007-05-19  Bruno Haible  <bruno@clisp.org>
70106
70107         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70108         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70109         Instead of multiplying with 10^k, set extra_zeroes to k.
70110         (scale10_round_long_double): Remove function.
70111
70112 2007-05-18  Bruno Haible  <bruno@clisp.org>
70113
70114         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70115         introduced on 2007-05-06.
70116
70117 2007-05-18  Bruno Haible  <bruno@clisp.org>
70118
70119         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70120         %g directives.
70121         * tests/test-vasprintf-posix.c (test_function): Likewise.
70122         * tests/test-snprintf-posix.h (test_function): Likewise.
70123         * tests/test-sprintf-posix.h (test_function): Likewise.
70124
70125 2007-05-18  Bruno Haible  <bruno@clisp.org>
70126
70127         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70128         (strmatch): New function.
70129         (test_function): Test the %f directive on numbers of various exponents.
70130         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70131         (strmatch): New function.
70132         (test_function): Test the %f directive on numbers of various exponents.
70133         * tests/test-snprintf-posix.h (strmatch): New function.
70134         (test_function): Test the %f directive on numbers of various exponents.
70135         * tests/test-sprintf-posix.h (strmatch): New function.
70136         (test_function): Test the %f directive on numbers of various exponents.
70137         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70138         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70139         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70140         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70141
70142 2007-05-18  Bruno Haible  <bruno@clisp.org>
70143
70144         Add support for 'long double' number output.
70145         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70146         * lib/vasnprintf.c: Include math.h and float+.h.
70147         (mp_limb_t): New type.
70148         (GMP_LIMB_BITS): New macro.
70149         (mp_twolimb_t): New type.
70150         (GMP_TWOLIMB_BITS): New macro.
70151         (mpn_t): New type.
70152         (multiply, divide, convert_to_decimal, decode_long_double,
70153         scale10_round_long_double, scale10_round_decimal_long_double,
70154         floorlog10l): New functions.
70155         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70156         for the %f, %F, %e, %E, %g, %G directives.
70157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70158         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70159         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70160         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70161         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70162         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70163         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70165         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70168         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70169         * modules/snprintf-posix (Depends-on): Likewise.
70170         * modules/sprintf-posix (Depends-on): Likewise.
70171         * modules/vasnprintf-posix (Depends-on): Likewise.
70172         * modules/vasprintf-posix (Depends-on): Likewise.
70173         * modules/vfprintf-posix (Depends-on): Likewise.
70174         * modules/vsnprintf-posix (Depends-on): Likewise.
70175         * modules/vsprintf-posix (Depends-on): Likewise.
70176         * modules/vasnprintf (Files): Add lib/float+.h.
70177         * doc/functions/fprintf.texi: Update.
70178         * doc/functions/printf.texi: Update.
70179         * doc/functions/snprintf.texi: Update.
70180         * doc/functions/sprintf.texi: Update.
70181         * doc/functions/vfprintf.texi: Update.
70182         * doc/functions/vprintf.texi: Update.
70183         * doc/functions/vsnprintf.texi: Update.
70184         * doc/functions/vsprintf.texi: Update.
70185
70186 2007-05-18  Bruno Haible  <bruno@clisp.org>
70187
70188         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70189
70190 2007-05-18  Bruno Haible  <bruno@clisp.org>
70191
70192         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70193         for printing 64-bit integers. Needed for mingw.
70194
70195 2007-05-18  Bruno Haible  <bruno@clisp.org>
70196
70197         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70198         gl_FUNC_FREXPL_WORKS.
70199         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70200
70201 2007-05-18  Bruno Haible  <bruno@clisp.org>
70202
70203         * modules/frexpl-nolibm-tests: New file.
70204
70205         * modules/frexpl-nolibm: New file.
70206         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70207
70208 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70209
70210         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70211         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70212         GCC 4.2, which otherwise issues a lot of warnings.
70213         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70214         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70215         Likewise.
70216         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70217         * modules/iconv_open (iconv.h): Likewise.
70218         * modules/locale (locale.h): Likewise.
70219         * modules/netinet_in (netinet/in.h): Likewise.
70220         * modules/sys_select (sys_select.h): Likewise.
70221         * modules/sys_socket (sys/socket.h): Likewise.
70222         * modules/sys_stat (sys/stat.h): Likewise.
70223         * modules/sysexits (sysexits.h): Likewise.
70224         * modules/unistd (unistd.h): Likewise.
70225
70226 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70227
70228         * modules/closein-tests (Makefile.am): Distribute
70229         `test-closein.sh'.
70230
70231 2007-05-17  Bruno Haible  <bruno@clisp.org>
70232
70233         * tests/test-printf-posix.output: Renamed from
70234         tests/test-fprintf-posix.out.
70235         * modules/fprintf-posix-tests: Update.
70236         * modules/printf-posix-tests: Update.
70237         * modules/vfprintf-posix-tests: Update.
70238         * modules/vprintf-posix-tests: Update.
70239         * tests/test-fprintf-posix.sh: Update.
70240         * tests/test-printf-posix.sh: Update.
70241         * tests/test-vfprintf-posix.sh: Update.
70242         * tests/test-vprintf-posix.sh: Update.
70243         Reported by Ralf Wildenhues.
70244
70245 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70246
70247         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70248         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70249         GCC 4.2, which otherwise issues a lot of warnings.
70250         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70251         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70252         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70253         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70254         it should no longer be needed.
70255         * lib/string_.h: Likewise.
70256         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70257         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70258         * modules/inttypes (inttypes.h): Likewise.
70259         * modules/math (math.h): Likewise.
70260         * modules/search (search.h): Likewise.
70261         * modules/signal (signal.h): Likewise.
70262         * modules/stdint (stdint.h): Likewise.
70263         * modules/stdio (stdio.h): Likewise.
70264         * modules/stdlib (stdlib.h): Likewise.
70265         * modules/string (string.h): Likewise.
70266         * modules/sys_time (sys/time.h): Likewise.
70267         * modules/time (time.h): Likewise.
70268         * modules/wchar (wchar.h): Likewise.
70269         * modules/wctype (wtype.h): Likewise.
70270
70271 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70272
70273         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70274
70275 2007-05-13  Bruno Haible  <bruno@clisp.org>
70276
70277         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70278         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70279         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70280         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70281         (gl_PREREQ_STRTOK_R): Don't require it here.
70282
70283 2007-05-13  Bruno Haible  <bruno@clisp.org>
70284
70285         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70286         when used in C++ mode.
70287
70288 2007-05-12  Bruno Haible  <bruno@clisp.org>
70289
70290         * lib/linebuffer.h: Tweak doc.
70291         * lib/linebuffer.c: Likewise.
70292
70293 2007-05-12  James Youngman  <jay@gnu.org>
70294
70295         * lib/linebuffer.c (readlinebuffer_delim): New function,
70296         like readlinebuffer, but use a caller-specified delimiter.
70297         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70298         as the delimiter.
70299         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70300
70301 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70302
70303         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70304         * modules/openat (Files): Remove openat-die.c.
70305         (Depends-on): Add openat-die.
70306         * modules/openat-die: New module.
70307
70308 2007-05-06  Bruno Haible  <bruno@clisp.org>
70309
70310         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70311         Update with info about Cygwin.
70312         * doc/functions/fprintf.texi: Update.
70313         * doc/functions/printf.texi: Update.
70314         * doc/functions/snprintf.texi: Update.
70315         * doc/functions/sprintf.texi: Update.
70316         * doc/functions/vfprintf.texi: Update.
70317         * doc/functions/vprintf.texi: Update.
70318         * doc/functions/vsnprintf.texi: Update.
70319         * doc/functions/vsprintf.texi: Update.
70320         Reported by Eric Blake.
70321
70322 2007-05-06  Bruno Haible  <bruno@clisp.org>
70323
70324         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70325         padding ourselves for the floating-point directives.
70326         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70328         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70329         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70330         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70331         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70332         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70333         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70334         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70335         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70336         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70337         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70338         * tests/test-snprintf-posix.h (test_function): Also check the width
70339         and some flags in the %f directive.
70340         * tests/test-sprintf-posix.h (test_function): Likewise.
70341         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70342         * tests/test-vasprintf-posix.c (test_function): Likewise.
70343         * doc/functions/fprintf.texi: Update.
70344         * doc/functions/printf.texi: Update.
70345         * doc/functions/snprintf.texi: Update.
70346         * doc/functions/sprintf.texi: Update.
70347         * doc/functions/vfprintf.texi: Update.
70348         * doc/functions/vprintf.texi: Update.
70349         * doc/functions/vsnprintf.texi: Update.
70350         * doc/functions/vsprintf.texi: Update.
70351
70352 2007-05-06  Bruno Haible  <bruno@clisp.org>
70353
70354         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70355         pass the ' flag character to sprintf or snprintf.
70356         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70357         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70358         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70359         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70360         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70361         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70362         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70363         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70364         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70365         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70366         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70367         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70368         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70369         flag.
70370         * tests/test-sprintf-posix.h (test_function): Likewise.
70371         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70372         * tests/test-vasprintf-posix.c (test_function): Likewise.
70373         * doc/functions/fprintf.texi: Update.
70374         * doc/functions/printf.texi: Update.
70375         * doc/functions/snprintf.texi: Update.
70376         * doc/functions/sprintf.texi: Update.
70377         * doc/functions/vfprintf.texi: Update.
70378         * doc/functions/vprintf.texi: Update.
70379         * doc/functions/vsnprintf.texi: Update.
70380         * doc/functions/vsprintf.texi: Update.
70381
70382 2007-05-01  Bruno Haible  <bruno@clisp.org>
70383
70384         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70385
70386 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70387
70388         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70389         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70390
70391 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70392
70393         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70394         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70395         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70396
70397 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70398
70399         * lib/argp-help.c (struct hol_entry): New member `ord'.
70400         (HOL_ENTRY_PTRCMP): Use ord for comparison
70401         (hol_sort): Initialize ord.
70402
70403 2007-05-01  Bruno Haible  <bruno@clisp.org>
70404
70405         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70406         Reported by Eric Blake.
70407         * doc/gnulib.texi (Function Substitutes): Update.
70408
70409 2007-05-01  Bruno Haible  <bruno@clisp.org>
70410
70411         * doc/functions.texi: Remove file, now redundant through
70412         doc/functions/*.texi.
70413
70414 2007-05-01  Bruno Haible  <bruno@clisp.org>
70415
70416         * modules/argp (Depends-on): Add sleep.
70417
70418 2007-05-01  Bruno Haible  <bruno@clisp.org>
70419
70420         * modules/sleep-tests: New file.
70421         * tests/test-sleep.c: New file.
70422
70423         * modules/sleep: New file.
70424         * lib/sleep.c: New file.
70425         * m4/sleep.m4: New file.
70426         * lib/unistd_.h (sleep): New declaration.
70427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70428         HAVE_SLEEP.
70429         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70430         * doc/functions/sleep.texi: Document the sleep module.
70431
70432 2007-05-01  Bruno Haible  <bruno@clisp.org>
70433
70434         * lib/sigprocmask.h: Remove file.
70435         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70436         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70437         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70438         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70439         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70440         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70441         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70442         HAVE_SIGSET_T as a shell variable.
70443         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70444         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70445         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70446         (Depends-on): Add signal. Remove verify.
70447         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70448         (Include): Mention <signal.h> instead of sigprocmask.h.
70449         * NEWS: Mention the change.
70450         * lib/fatal-signal.c: Don't include sigprocmask.h.
70451
70452 2007-05-01  Bruno Haible  <bruno@clisp.org>
70453
70454         * modules/signal: New file.
70455         * lib/signal_.h: New file.
70456         * m4/signal_h.m4: New file.
70457
70458 2007-05-01  Bruno Haible  <bruno@clisp.org>
70459
70460         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70461         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70462         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70463         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70464
70465 2007-05-01  Bruno Haible  <bruno@clisp.org>
70466
70467         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70468         configure time.
70469         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70470         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70471         * modules/sys_stat (Makefile.am): Substitute their values into
70472         sys/stat.h.
70473
70474 2007-05-01  Bruno Haible  <bruno@clisp.org>
70475
70476         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70477         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70478         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70479
70480 2007-05-01  Bruno Haible  <bruno@clisp.org>
70481
70482         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70483         'assert' module here.
70484
70485 2007-05-01  Bruno Haible  <bruno@clisp.org>
70486
70487         * doc/functions/*.texi: New files.
70488         * doc/functions/google-ranking.txt: New file.
70489         * doc/gnulib.texi (Function Substitutes): New chapter.
70490         (ctime, inet_ntoa): Remove sections.
70491         * doc/ctime.texi: Remove file.
70492         * doc/inet_ntoa.texi: Remove file.
70493         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70494         dependencies.
70495         (%.info): New rule, specifying a --reference-limit.
70496
70497 2007-05-01  Bruno Haible  <bruno@clisp.org>
70498
70499         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70500
70501 2007-05-01  Bruno Haible  <bruno@clisp.org>
70502
70503         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70504         the portability of 'mkdir' to mingw systems.
70505
70506 2007-05-01  Bruno Haible  <bruno@clisp.org>
70507
70508         * doc/headers/google-ranking.txt: New file.
70509
70510 2007-04-30  Eric Blake  <ebb9@byu.net>
70511
70512         Prefer fseeko to fseek.
70513         * modules/getpass (Depends-on): Add fseeko.
70514         * lib/getpass.c (getpass): Use fseeko, not fseek.
70515
70516 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70517
70518         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70519         assumes the sorting is stable, while most qsort implementations
70520         are not.  Use argument addresses to ensure they never compare as
70521         equal.
70522
70523         * tests/test-argp-2.sh (usage-indent test): Fix output
70524         (func_compare): Restore diff options
70525         * tests/test-argp.c: Restore #include "progname.h"
70526
70527 2007-04-29  Bruno Haible  <bruno@clisp.org>
70528
70529         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70531         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70532         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70533         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70534         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70535         (TESTS, check_PROGRAMS): Add test-snprintf.
70536         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70537         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70538         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70539         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70540         assertions that fail on HP-UX, OSF/1, or IRIX.
70541         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70542
70543 2007-04-29  Bruno Haible  <bruno@clisp.org>
70544
70545         * MODULES.html.sh (posix_functions): Remove 'contents'.
70546
70547 2007-04-29  Karl Berry  <karl@gnu.org>
70548
70549         * config/srclist.txt (gendocs_template_min): new entry.
70550
70551 2007-04-29  Bruno Haible  <bruno@clisp.org>
70552
70553         Work around fpurge bug on BSD systems.
70554         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70555         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70556         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70557         fpurge to rpl_fpurge if the system already has this function.
70558         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70559         the case where the system already has this function. Correct invariants
70560         on BSD systems.
70561         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70562         BSD systems.
70563
70564 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70565
70566         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70567         proposed by Sven Verdoolaege.
70568
70569         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70570         options.
70571         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70572         (usage and help tests): Update
70573
70574 2007-04-29  Bruno Haible  <bruno@clisp.org>
70575
70576         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70577         Print more information in case of failure. Disable a test on BeOS.
70578
70579 2007-04-29  Bruno Haible  <bruno@clisp.org>
70580
70581         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70582         This helps debugging on systems on which no gdb is available.
70583
70584 2007-04-29  Bruno Haible  <bruno@clisp.org>
70585
70586         * lib/freading.h: Improve comments.
70587         * lib/fwriting.h: Likewise.
70588         * tests/test-freading.c (main): Don't check freading immediately after
70589         repositioning. Needed for glibc.
70590
70591 2007-04-29  Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/freading.c (freading): Trivial simplification.
70594
70595 2007-04-28  Bruno Haible  <bruno@clisp.org>
70596
70597         * tests/test-fwriting.c (main): Also test the interaction between
70598         fflush and fwriting.
70599         * modules/fwriting-tests (Depends-on): Add fflush.
70600
70601         * tests/test-freading.c (main): Also test the interaction between
70602         fflush and freading.
70603         * modules/freading-tests (Depends-on): Add fflush.
70604
70605 2007-04-28  Bruno Haible  <bruno@clisp.org>
70606
70607         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70608         fseeko and ftello.
70609         Suggested by Eric Blake.
70610
70611 2007-04-28  Jim Meyering  <jim@meyering.net>
70612
70613         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70614         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70615         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70616
70617 2007-04-27  Eric Blake  <ebb9@byu.net>
70618
70619         * doc/headers/assert.texi (assert.h): Document assert module use.
70620
70621 2007-04-27  Bruno Haible  <bruno@clisp.org>
70622
70623         * doc/headers/*.texi: New files.
70624         * doc/gnulib.texi (Header File Substitutes): New chapter.
70625         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70626         dependencies.
70627         (standards.info ,standards.html, standards.dvi): Update dependencies.
70628         (mostlyclean, clean): New targets.
70629
70630 2007-04-27  Bruno Haible  <bruno@clisp.org>
70631
70632         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70633         * modules/sysexits (Files, Makefile.am): Update.
70634
70635         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70636         * modules/sys_socket (Files, Makefile.am): Update.
70637
70638         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70639         * modules/sys_stat (Files, Makefile.am): Update.
70640
70641 2007-04-27  Eric Blake  <ebb9@byu.net>
70642
70643         * lib/freading.h: Improve comments.
70644         * lib/fwriting.h: Likewise.
70645         * lib/fflush.c: Likewise.
70646
70647         Fix closein for mingw.
70648         * modules/closein-tests: Add tests for closein.
70649         * tests/test-closein.c: New file.
70650         * tests/test-closein.sh: Likewise.
70651         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70652         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70653
70654 2007-04-27  Bruno Haible  <bruno@clisp.org>
70655
70656         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70657         version is < 6.
70658         * lib/math_.h [__DECC]: Likewise.
70659         * lib/stdio_.h [__DECC]: Likewise.
70660         * lib/stdlib_.h [__DECC]: Likewise.
70661         * lib/string_.h [__DECC]: Likewise.
70662         * lib/time_.h [__DECC]: Likewise.
70663         * lib/wchar_.h [__DECC]: Likewise.
70664         * lib/wctype_.h [__DECC]: Likewise.
70665
70666 2007-04-27  Bruno Haible  <bruno@clisp.org>
70667
70668         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70669
70670 2007-04-27  Bruno Haible  <bruno@clisp.org>
70671
70672         * lib/fflush.c: Add comments.
70673         * modules/fpurge-tests (Depends-on): Add fflush.
70674         * modules/freadable-tests (Depends-on): Likewise.
70675         * modules/fwritable-tests (Depends-on): Likewise.
70676
70677 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70678
70679         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70680         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70681         Report by Bruno Haible <bruno@clisp.org>.
70682
70683 2007-04-26  Eric Blake  <ebb9@byu.net>
70684
70685         Fix fflush on mingw.
70686         * modules/fflush (Depends-on): Add freading.
70687         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70688         but unread data.
70689
70690 2007-04-26  Eric Blake  <ebb9@byu.net>
70691         and Bruno Haible  <bruno@clisp.org>
70692
70693         Implement freading and fwriting.
70694         * lib/freading.c: New file.
70695         * lib/freading.h: Likewise.
70696         * m4/freading.m4: Likewise.
70697         * modules/freading: Likewise.
70698         * modules/freading-tests: Likewise.
70699         * tests/test-freading.c: Likewise.
70700         * lib/fwriting.c: New file.
70701         * lib/fwriting.h: Likewise.
70702         * m4/fwriting.m4: Likewise.
70703         * modules/fwriting: Likewise.
70704         * modules/fwriting-tests: Likewise.
70705         * tests/test-fwriting.c: Likewise.
70706         * MODULES.html.sh (File stream based Input/Output): Mention them.
70707
70708 2007-04-26  Bruno Haible  <bruno@clisp.org>
70709
70710         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70711         'long' when we assume it.
70712         Suggested by Eric Blake.
70713
70714 2007-04-26  Bruno Haible  <bruno@clisp.org>
70715
70716         Ensure fseeko, ftello are declared on glibc systems.
70717         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70718         * modules/fseeko (configure.ac-early): Likewise.
70719         * modules/ftello (configure.ac-early): Likewise.
70720         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70721         AC_FUNC_FSEEKO for this.
70722         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70723         (gl_CHECK_FSEEKO): Remove macro.
70724
70725 2007-04-26  Bruno Haible  <bruno@clisp.org>
70726
70727         * tests/test-fflush.c (main): Also check the ftell result after
70728         fflush and fseek/fseeko.
70729         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70730         file descriptor position cache in the stream.
70731         * lib/fseeko.c (rpl_fseeko): Likewise.
70732
70733 2007-04-26  Bruno Haible  <bruno@clisp.org>
70734
70735         * modules/fflush-tests (Depends-on): Add fseeko.
70736
70737 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70738             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70739
70740         * lib/argz_.h: ensure error_t definition is obtained in same
70741         mechanism system argz.h would have.
70742         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70743         argz facilities are known bad.  Err on the side of caution if
70744         cross-compiling.
70745
70746 2007-04-25  Eric Blake  <ebb9@byu.net>
70747
70748         * lib/fpurge.c (includes): Use stdlib.h for free.
70749         * tests/test-fflush.c (main): Also test fflush-fseeko.
70750
70751 2007-04-25  Bruno Haible  <bruno@clisp.org>
70752
70753         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70754         * lib/fseeko.c: New file.
70755         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70756         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70757         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70758         gl_FUNC_FSEEKO.
70759         (gl_FUNC_FSEEKO): Invoke it.
70760         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70761         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70762         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70763
70764 2007-04-25  Bruno Haible  <bruno@clisp.org>
70765
70766         * modules/fflush (Depends-on): Add ftello.
70767
70768 2007-04-25  Bruno Haible  <bruno@clisp.org>
70769
70770         * modules/ftello-tests: New file.
70771         * tests/test-ftello.c: New file.
70772
70773         * modules/ftello: New file.
70774         * m4/ftello.m4: New file.
70775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70776         HAVE_FTELLO.
70777         * lib/stdio_.h (ftello): New declaration.
70778         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70779         HAVE_FTELLO.
70780
70781 2007-04-25  Bruno Haible  <bruno@clisp.org>
70782
70783         * modules/fseeko-tests: New file.
70784         * tests/test-fseeko.c: New file.
70785
70786         * modules/fseeko: New file.
70787         * m4/fseeko.m4: New file.
70788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70789         HAVE_FSEEKO.
70790         * lib/stdio_.h (fseeko): New declaration.
70791         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70792         HAVE_FSEEKO.
70793
70794 2007-04-25  Bruno Haible  <bruno@clisp.org>
70795
70796         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
70797
70798 2007-04-25  Bruno Haible  <bruno@clisp.org>
70799
70800         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
70801         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
70802         * tests/test-unistd.c: Likewise.
70803         * tests/test-fcntl.c: Likewise.
70804
70805 2007-04-23  Eric Blake  <ebb9@byu.net>
70806
70807         * lib/fflush.c: Fix missing include.
70808         Reported by Bruno Haible.
70809
70810 2007-04-23  Bruno Haible  <bruno@clisp.org>
70811
70812         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
70813         Reported by Eric Blake.
70814
70815 2007-04-23  Bruno Haible  <bruno@clisp.org>
70816
70817         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
70818
70819 2007-04-23  Bruno Haible  <bruno@clisp.org>
70820
70821         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
70822
70823 2007-04-23  Bruno Haible  <bruno@clisp.org>
70824
70825         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
70826         Needed on HP-UX 11.
70827
70828 2007-04-16  Eric Blake  <ebb9@byu.net>
70829
70830         Make fflush rely on fpurge.
70831         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
70832         open coding all variants.
70833         * modules/fflush (Depends-on): Add fpurge and unistd.
70834         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
70835         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
70836
70837         Fix --with-tests compilation on cygwin.
70838         * modules/argmatch-tests (Makefile.am): List gnulib library first
70839         in LDADD.
70840         * modules/argp-tests (Makefile.am): Likewise.
70841         * modules/array-list-tests (Makefile.am): Likewise.
70842         * modules/array-oset-tests (Makefile.am): Likewise.
70843         * modules/avltree-list-tests (Makefile.am): Likewise.
70844         * modules/avltree-oset-tests (Makefile.am): Likewise.
70845         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70846         * modules/carray-list-tests (Makefile.am): Likewise.
70847         * modules/dirname-tests (Makefile.am): Likewise.
70848         * modules/frexp-tests (Makefile.am): Likewise.
70849         * modules/isnanl-tests (Makefile.am): Likewise.
70850         * modules/linked-list-tests (Makefile.am): Likewise.
70851         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70852         * modules/lock-tests (Makefile.am): Likewise.
70853         * modules/rbtree-list-tests (Makefile.am): Likewise.
70854         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70855         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70856         * modules/tls-tests (Makefile.am): Likewise.
70857         * modules/tsearch-tests (Makefile.am): Likewise.
70858         * modules/xvasprintf-tests (Makefile.am): Likewise.
70859
70860         Fix fpurge for cygwin.
70861         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70862         value.
70863         * modules/fpurge-tests (Depends-on): Clean up trash.
70864
70865 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70866
70867         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70868
70869         * m4/autobuild.m4: Re-indent.
70870
70871 2007-04-13  Bruno Haible  <bruno@clisp.org>
70872
70873         * modules/fpurge-tests: New file.
70874         * tests/test-fpurge.c: New file.
70875
70876         * modules/fpurge: New file.
70877         * lib/fpurge.h: New file.
70878         * lib/fpurge.c: New file.
70879         * m4/fpurge.m4: New file.
70880
70881 2007-04-13  Bruno Haible  <bruno@clisp.org>
70882
70883         * modules/fbufmode-tests: New file.
70884         * tests/test-fbufmode.c: New file.
70885
70886         * modules/fbufmode: New file.
70887         * lib/fbufmode.h: New file.
70888         * lib/fbufmode.c: New file.
70889         * m4/fbufmode.m4: New file.
70890
70891 2007-04-13  Bruno Haible  <bruno@clisp.org>
70892
70893         * modules/fwritable-tests: New file.
70894         * tests/test-fwritable.c: New file.
70895
70896         * modules/fwritable: New file.
70897         * lib/fwritable.h: New file.
70898         * lib/fwritable.c: New file.
70899         * m4/fwritable.m4: New file.
70900
70901 2007-04-13  Bruno Haible  <bruno@clisp.org>
70902
70903         * modules/freadable-tests: New file.
70904         * tests/test-freadable.c: New file.
70905
70906         * modules/freadable: New file.
70907         * lib/freadable.h: New file.
70908         * lib/freadable.c: New file.
70909         * m4/freadable.m4: New file.
70910
70911 2007-04-13  Bruno Haible  <bruno@clisp.org>
70912
70913         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70914         MOSTLYCLEANFILES.
70915
70916 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70917
70918         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70919         gzip bootstrap.conf to avoid dragging in i18n machinery.
70920         (gnulib_tool_option): Use it.
70921
70922 2007-04-13  Bruno Haible  <bruno@clisp.org>
70923
70924         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70925         %F directives.
70926         * tests/test-vasprintf-posix.c (test_function): Likewise.
70927         * tests/test-snprintf-posix.h (test_function): Likewise.
70928         * tests/test-sprintf-posix.h (test_function): Likewise.
70929         * tests/test-fprintf-posix.h (test_function): Likewise.
70930         * tests/test-printf-posix.h (test_function): Likewise.
70931         * tests/test-fprintf-posix.out: Likewise.
70932
70933 2007-04-13  Bruno Haible  <bruno@clisp.org>
70934
70935         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70936         * modules/tls-tests (configure.ac): Likewise.
70937         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70938
70939 2007-04-13  Bruno Haible  <bruno@clisp.org>
70940
70941         * lib/tls.c (glthread_tls_get): Fix return type.
70942         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70943
70944 2007-04-12  Eric Blake  <ebb9@byu.net>
70945
70946         * modules/gettime (Depends-on): Remove gettime.
70947         Reported by Dmitry V. Levin.
70948
70949 2007-04-12  Bruno Haible  <bruno@clisp.org>
70950
70951         * modules/fflush (Include): Mention <stdio.h>.
70952         * modules/strtoimax (Include): Mention <inttypes.h>.
70953         * modules/strtoumax (Include): Likewise.
70954
70955 2007-04-12  Eric Blake  <ebb9@byu.net>
70956
70957         * .cvsignore: New file.
70958         * .gitignore: Likewise.
70959
70960 2007-04-12  Bruno Haible  <bruno@clisp.org>
70961
70962         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70963         not before, since $(LDADD) often contains libgnu.a.
70964         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70965         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70966         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70967         Needed on Cygwin.
70968
70969 2007-04-12  Eric Blake  <ebb9@byu.net>
70970
70971         Work around glibc's failure to flush stdin on fclose.
70972         * lib/closein.c (close_stdin): Flush stdin before closing.
70973
70974         Work around glibc's failure to reset seekable stdin on exit.
70975         * modules/closein: New module.
70976         * lib/closein.c: New file.
70977         * lib/closein.h: Likewise.
70978         * m4/closein.m4: Likewise.
70979         * MODULES.html.sh (File stream based Input/Output): Document it.
70980
70981 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70982
70983         * gnulib-tool: Rename generated 'autobuild' script to
70984         'do-autobuild' in --create-megatestdir output.
70985
70986         * doc/gnulib.texi (Build robot for gnulib): Fix.
70987
70988 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70989
70990         * modules/sysexits (Depends-on): Add absolute-header.
70991
70992 2007-04-12  Eric Blake  <ebb9@byu.net>
70993
70994         No need to preserve errno on success.
70995         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70996         Reported by Bruno Haible.
70997
70998 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70999
71000         * MODULES.html.sh (Support for maintaining and releasing
71001         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71002
71003 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71004
71005         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71006
71007 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71008
71009         * modules/autobuild: New module.
71010
71011         * m4/autobuild.m4: New file.
71012
71013 2007-04-11  Bruno Haible  <bruno@clisp.org>
71014
71015         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71016         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71017         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71019         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71020         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71021         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71022         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71023         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71024         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71025         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71026         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71027         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71028         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71029         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71030         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71031         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71032         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71033         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71034         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71035         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71036         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71037         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71038         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71039         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71040         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71041         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71042         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71043         Reported by Eric Blake.
71044
71045 2007-04-11  Bruno Haible  <bruno@clisp.org>
71046
71047         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71048
71049 2007-04-10  Bruno Haible  <bruno@clisp.org>
71050
71051         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71052         for NaN and Infinity. Needed on FreeBSD 6.1.
71053         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71054         regarding results for "%010a" of Infinity and NaN.
71055         * tests/test-vasprintf-posix.c (test_function): Likewise.
71056         * tests/test-snprintf-posix.h (test_function): Likewise.
71057         * tests/test-sprintf-posix.h (test_function): Likewise.
71058         * tests/test-fprintf-posix.h (test_function): Likewise.
71059         * tests/test-printf-posix.h (test_function): Likewise.
71060         * tests/test-fprintf-posix.out: Likewise.
71061
71062 2007-04-10  Bruno Haible  <bruno@clisp.org>
71063
71064         * modules/locale-tests: New file.
71065         * tests/test-locale.c: New file.
71066
71067         * modules/locale: New file.
71068         * lib/locale_.h: New file.
71069         * m4/locale_h.m4: New file.
71070
71071 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71072             Bruno Haible  <bruno@clisp.org>
71073
71074         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71075         be determined, test for availability of the copysignf, copysign,
71076         copysignl functions.
71077         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71078         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71079         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71080
71081 2007-04-09  Eric Blake  <ebb9@byu.net>
71082
71083         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71084         * modules/stdio (Makefile.am): Support fflush.
71085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71086         * modules/fflush: New file.
71087         * lib/fflush.c: Likewise.
71088         * m4/fflush.m4: Likewise.
71089         * modules/fflush-tests: New test.
71090         * tests/test-fflush.c: Likewise.
71091         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71092
71093 2007-04-06  Bruno Haible  <bruno@clisp.org>
71094
71095         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71096         (VASNPRINTF): Use signbit for faster determination whether to print a
71097         minus sign.
71098         * modules/vasnprintf (Files): Remove lib/float+.h.
71099         * modules/fprintf-posix (Depends-on): Add signbit.
71100         * modules/snprintf-posix (Depends-on): Likewise.
71101         * modules/sprintf-posix (Depends-on): Likewise.
71102         * modules/vasnprintf-posix (Depends-on): Likewise.
71103         * modules/vasprintf-posix (Depends-on): Likewise.
71104         * modules/vfprintf-posix (Depends-on): Likewise.
71105         * modules/vsnprintf-posix (Depends-on): Likewise.
71106         * modules/vsprintf-posix (Depends-on): Likewise.
71107
71108 2007-04-06  Bruno Haible  <bruno@clisp.org>
71109
71110         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71111         * tests/test-frexpl.c (main): Likewise.
71112         * tests/test-ldexpl.c (main): Likewise.
71113         * modules/frexp-tests (Depends-on): Add signbit.
71114         * modules/frexpl-tests (Depdends-on): Likewise.
71115         * modules/ldexpl-tests (Depdends-on): Likewise.
71116
71117 2007-04-06  Bruno Haible  <bruno@clisp.org>
71118
71119         * modules/signbit-tests: New file.
71120         * tests/test-signbit.c: New file.
71121
71122         * modules/signbit: New file.
71123         * lib/signbitf.c: New file.
71124         * lib/signbitd.c: New file.
71125         * lib/signbitl.c: New file.
71126         * m4/signbit.m4: New file.
71127         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71128         (signbit): New macro.
71129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71130         REPLACE_SIGNBIT.
71131         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71132         REPLACE_FREXPL into math.h.
71133
71134 2007-04-06  Bruno Haible  <bruno@clisp.org>
71135
71136         * modules/isnanf-nolibm-tests: New file.
71137         * tests/test-isnanf.c: New file.
71138
71139         * modules/isnanf-nolibm: New file.
71140         * lib/isnanf.h: New file.
71141         * lib/isnanf.c: New file.
71142         * lib/isnan.c: Consider the USE_FLOAT macro.
71143         * m4/isnanf.m4: New file.
71144
71145 2007-04-06  Bruno Haible  <bruno@clisp.org>
71146
71147         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71148         (Link): New section.
71149
71150         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71151
71152 2007-04-06  Bruno Haible  <bruno@clisp.org>
71153
71154         Assume the 'long double' type.
71155         * m4/longdouble.m4: Remove file.
71156         * config/srclist.txt: Don't mention longdouble.m4.
71157         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71158         * lib/float+.h: Likewise.
71159         * lib/frexp.c: Likewise.
71160         * lib/printf-args.h: Likewise.
71161         * lib/printf-args.c: Likewise.
71162         * lib/printf-frexp.c: Likewise.
71163         * lib/printf-parse.c: Likewise.
71164         * lib/vasnprintf.c: Likewise.
71165         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71166         * m4/intl.m4: Likewise.
71167         * m4/isnanl.m4: Likewise.
71168         * m4/printf.m4: Likewise.
71169         * m4/printf-frexpl.m4: Likewise.
71170         * m4/vasnprintf.m4: Likewise.
71171         * modules/allocsa (Files): Remove m4/longdouble.m4.
71172         * modules/gettext (Files): Likewise.
71173         * modules/relocatable-prog-wrapper (Files): Likewise.
71174         * modules/vasnprintf (Files): Likewise.
71175         * modules/isnanl (Files): Likewise.
71176         (Include): Simplify.
71177         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71178         (Include): Simplify.
71179         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71180         (Include): Simplify.
71181         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71182         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71183         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71184         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71185         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71186         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71187         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71188         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71189         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71190         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71191         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71192         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71193         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71194         * tests/test-isnanl.c: Likewise.
71195         * tests/test-snprintf-posix.h: Likewise.
71196         * tests/test-sprintf-posix.h: Likewise.
71197         * tests/test-vasnprintf-posix.c: Likewise.
71198         * tests/test-vasnprintf-posix2.c: Likewise.
71199         * tests/test-vasprintf-posix.c: Likewise.
71200
71201 2007-04-06  Bruno Haible  <bruno@clisp.org>
71202
71203         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71204         * lib/math_.h [__DECC]: Include the overridden include file through
71205         #include_next, outside the double-inclusion guard.
71206         * lib/stdio_.h [__DECC]: Likewise.
71207         * lib/stdlib_.h [__DECC]: Likewise.
71208         * lib/string_.h [__DECC]: Likewise.
71209         * lib/time_.h [__DECC]: Likewise.
71210         * lib/wchar_.h [__DECC]: Likewise.
71211         * lib/wctype_.h [__DECC]: Likewise.
71212         * lib/inttypes_.h [__DECC]: Likewise.
71213         Reported by Albert Chin <china@thewrittenword.com> in
71214         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71215
71216 2007-04-04  Eric Blake  <ebb9@byu.net>
71217
71218         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71219         1.5.x.
71220
71221 2007-04-04  Bruno Haible  <bruno@clisp.org>
71222
71223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71224         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71225
71226 2007-04-04  Bruno Haible  <bruno@clisp.org>
71227
71228         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71229         results for "%010a" of Infinity and NaN.
71230         * tests/test-vasprintf-posix.c (test_function): Likewise.
71231         * tests/test-snprintf-posix.h (test_function): Likewise.
71232         * tests/test-sprintf-posix.h (test_function): Likewise.
71233         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71234         * tests/test-printf-posix.h (test_function): Likewise.
71235         * tests/test-fprintf-posix.out: Update.
71236         Needed for FreeBSD 6.1.
71237
71238 2007-04-04  Bruno Haible  <bruno@clisp.org>
71239
71240         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71241         directly used by the gnulib modules nor by gnulib-tool.
71242
71243 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71244
71245         * DEPENDENCIES: Give overall description of version dependency
71246         desirability.  Use more-typical names for apps.
71247         Add shell, coreutils, diffutils, grep, tar, gzip.
71248
71249 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71250
71251         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71252
71253 2007-04-04  Karl Berry  <karl@gnu.org>
71254
71255         * MODULES.html.sh (func_module): missing '.
71256
71257 2007-04-03  Bruno Haible  <bruno@clisp.org>
71258
71259         * modules/argmatch-tests (Makefile.am): New variable
71260         test_argmatch_LDADD.
71261         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71262         * modules/array-list-tests (Makefile.am): New variable
71263         test_array_list_LDADD.
71264         * modules/array-oset-tests (Makefile.am): New variable
71265         test_array_oset_LDADD.
71266         * modules/avltree-list-tests (Makefile.am): New variable
71267         test_avltree_list_LDADD.
71268         * modules/avltree-oset-tests (Makefile.am): New variable
71269         test_avltree_oset_LDADD.
71270         * modules/avltreehash-list-tests (Makefile.am): New variable
71271         test_avltreehash_list_LDADD.
71272         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71273         test_canonicalize_lgpl_LDADD.
71274         * modules/carray-list-tests (Makefile.am): New variable
71275         test_carray_list_LDADD.
71276         * modules/dirname-tests (Makefile.am): New variable
71277         test_dirname_LDADD.
71278         * modules/linked-list-tests (Makefile.am): New variable
71279         test_linked_list_LDADD.
71280         * modules/linkedhash-list-tests (Makefile.am): New variable
71281         test_linkedhash_list_LDADD.
71282         * modules/rbtree-list-tests (Makefile.am): New variable
71283         test_rbtree_list_LDADD.
71284         * modules/rbtree-oset-tests (Makefile.am): New variable
71285         test_rbtree_oset_LDADD.
71286         * modules/rbtreehash-list-tests (Makefile.am): New variable
71287         test_rbtreehash_list_LDADD.
71288         * modules/xvasprintf-tests (Makefile.am): New variable
71289         test_xvasprintf_LDADD.
71290         Reported by Eric Blake.
71291
71292 2007-04-03  Eric Blake  <ebb9@byu.net>
71293
71294         * DEPENDENCIES: Weaken m4 requirements.
71295
71296 2007-04-03  Bruno Haible  <bruno@clisp.org>
71297
71298         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71299         * modules/isnanl-tests (configure.ac): Likewise.
71300
71301 2007-04-03  Ben Pfaff  <blp@gnu.org>
71302
71303         * modules/iconv_open: Add $(srcdir)/ to source directory
71304         references in Makefile fragments that call gperf, to fix VPATH
71305         builds.
71306
71307 2007-04-03  Bruno Haible  <bruno@clisp.org>
71308
71309         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71310         * lib/ldexpl.c: Undo last change.
71311
71312 2007-04-03  Bruno Haible  <bruno@clisp.org>
71313
71314         * modules/printf-frexpl (Depends-on): Undo last change.
71315         (Files): Add m4/ldexpl.m4.
71316
71317 2007-04-03  Bruno Haible  <bruno@clisp.org>
71318
71319         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71320         * modules/isnanl (Link): New section.
71321
71322         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71323         * modules/frexp (Link): New section.
71324
71325         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71326         * modules/frexpl (Link): New section.
71327
71328         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71329         * modules/ldexpl (Link): New section.
71330
71331 2007-04-03  Bruno Haible  <bruno@clisp.org>
71332
71333         * modules/TEMPLATE-EXTENDED: New file.
71334         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71335
71336 2007-04-03  Bruno Haible  <bruno@clisp.org>
71337
71338         * DEPENDENCIES: New file.
71339         Suggested by Simon Josefsson.
71340
71341 2007-04-03  Bruno Haible  <bruno@clisp.org>
71342
71343         * doc/gnulib.texi: Escape @.
71344
71345 2007-04-03  James Youngman  <jay@gnu.org>
71346         and Paul Eggert  <eggert@cs.ucla.edu>
71347
71348         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71349         birthtime on all systems that have birthtime, not just those which
71350         use st_birthtimensec rather than st_birthtim.  Putting zero in
71351         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71352         that the birth time is not available for files on an NFS mount.
71353
71354 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71355
71356         * modules/memxor: Move back from crypto/, suggested by Bruno.
71357         * modules/crypto/hmac-sha1: Fix memxor dependency.
71358
71359         * modules/crypto/gc: Moved from ../.
71360
71361 2007-04-02  Eric Blake  <ebb9@byu.net>
71362
71363         * lib/ldexpl.c (includes): Avoid libm.
71364
71365         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71366
71367 2007-04-02  Bruno Haible  <bruno@clisp.org>
71368
71369         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71370         on IRIX.
71371
71372 2007-04-02  Bruno Haible  <bruno@clisp.org>
71373
71374         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71375         x86 or x86_64 platforms running MacOS X.
71376         Reported by Ryan Schmidt <@ryandesign.com>.
71377
71378 2007-04-02  Bruno Haible  <bruno@clisp.org>
71379
71380         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71381         i386.
71382
71383 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71384
71385         * modules/crypto/arcfour: Moved from ../.
71386         * modules/crypto/arcfour-tests: Moved from ../.
71387         * modules/crypto/arctwo: Moved from ../.
71388         * modules/crypto/arctwo-tests: Moved from ../.
71389         * modules/crypto/des: Moved from ../.
71390         * modules/crypto/des-tests: Moved from ../.
71391         * modules/crypto/gc-arcfour: Moved from ../.
71392         * modules/crypto/gc-arcfour-tests: Moved from ../.
71393         * modules/crypto/gc-arctwo: Moved from ../.
71394         * modules/crypto/gc-arctwo-tests: Moved from ../.
71395         * modules/crypto/gc-des: Moved from ../.
71396         * modules/crypto/gc-des-tests: Moved from ../.
71397         * modules/crypto/gc-hmac-md5: Moved from ../.
71398         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71399         * modules/crypto/gc-hmac-sha1: Moved from ../.
71400         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71401         * modules/crypto/gc-md2: Moved from ../.
71402         * modules/crypto/gc-md2-tests: Moved from ../.
71403         * modules/crypto/gc-md4: Moved from ../.
71404         * modules/crypto/gc-md4-tests: Moved from ../.
71405         * modules/crypto/gc-md5: Moved from ../.
71406         * modules/crypto/gc-md5-tests: Moved from ../.
71407         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71408         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71409         * modules/crypto/gc-random: Moved from ../.
71410         * modules/crypto/gc-rijndael: Moved from ../.
71411         * modules/crypto/gc-rijndael-tests: Moved from ../.
71412         * modules/crypto/gc-sha1: Moved from ../.
71413         * modules/crypto/gc-sha1-tests: Moved from ../.
71414         * modules/crypto/gc-tests: Moved from ../.
71415         * modules/crypto/hmac-md5: Moved from ../.
71416         * modules/crypto/hmac-md5-tests: Moved from ../.
71417         * modules/crypto/hmac-sha1: Moved from ../.
71418         * modules/crypto/hmac-sha1-tests: Moved from ../.
71419         * modules/crypto/md2: Moved from ../.
71420         * modules/crypto/md2-tests: Moved from ../.
71421         * modules/crypto/md4: Moved from ../.
71422         * modules/crypto/md4-tests: Moved from ../.
71423         * modules/crypto/md5: Moved from ../.
71424         * modules/crypto/md5-tests: Moved from ../.
71425         * modules/crypto/memxor: Moved from ../.
71426         * modules/crypto/rijndael: Moved from ../.
71427         * modules/crypto/rijndael-tests: Moved from ../.
71428         * modules/crypto/sha1: Moved from ../.
71429
71430 2007-03-30  James Youngman  <jay@gnu.org>
71431
71432         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71433         rename() to change the ctime of a file (because ctime is unaffected
71434         by rename on jfs2 on AIX 5.1).
71435         (main): Start by doing cleanup, in case a previous run failed leaving
71436         test files behind.
71437
71438 2007-03-31  Bruno Haible  <bruno@clisp.org>
71439
71440         Support old proprietary implementations of iconv.
71441         * modules/iconv_open: New file.
71442         * lib/iconv_.h: New file.
71443         * m4/iconv_h.m4: New file.
71444         * lib/iconv_open.c: New file.
71445         * lib/iconv_open-aix.gperf: New file.
71446         * lib/iconv_open-hpux.gperf: New file.
71447         * lib/iconv_open-irix.gperf: New file.
71448         * lib/iconv_open-osf.gperf: New file.
71449         * m4/iconv_open.m4: New file.
71450         * modules/linebreak (Depends-on): Add iconv_open.
71451         * modules/striconv (Depends-on): Likewise.
71452         * modules/striconveh (Depends-on): Likewise.
71453         * modules/unicodeio (Depends-on): Likewise.
71454         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71455         (iconv_t)(-1).
71456         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71457         conversion if cd is (iconv_t)(-1).
71458         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71459         is not possible.
71460
71461 2007-03-31  Bruno Haible  <bruno@clisp.org>
71462
71463         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71464         work on Solaris either. Protect also second use of "autodetect_jp".
71465
71466 2007-03-31  Bruno Haible  <bruno@clisp.org>
71467
71468         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71469         the function is not present.
71470
71471 2007-03-31  Bruno Haible  <bruno@clisp.org>
71472
71473         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71474         the function is not present.
71475
71476 2007-03-31  Bruno Haible  <bruno@clisp.org>
71477
71478         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71479         a bug in HP-UX iconv_open().
71480
71481 2007-03-31  Bruno Haible  <bruno@clisp.org>
71482
71483         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71484         (Mathematics <math.h>): New section, add fpieee.
71485         (Input/output <stdio.h>): Add fseterr.
71486         (Mathematics <math.h>): New section, add printf-frexp.
71487         (Container data structures): Add sublist.
71488         (Core language properties): Add fpucw, inline.
71489         (Functions for greatest-width integer types <inttypes.h>): Add
71490         imaxabs, imaxdiv, inttypes.
71491         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71492         isnanl-nolibm, ldexp.
71493         (Mathematics <math.h>): New section, add printf-frexpl.
71494         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71495         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71496         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71497         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71498         (Unicode string functions): Add unistr/u*-mbtoucr.
71499         (Java): Add javacomp-script, javaexec-script.
71500         (C#): Add csharpcomp-script, csharpexec-script.
71501         (Support for building libraries and executables): Add havelib,
71502         relocatable-*.
71503         (Support for maintaining and releasing projects): Renamed from
71504         'Support for maintaining and release projects'. Add announce-gen.
71505
71506 2007-03-31  Bruno Haible  <bruno@clisp.org>
71507
71508         * README: Talk primarily about git.
71509         (git and CVS): Renamed from CVS.
71510         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71511         gnulib is available through git.
71512         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71513
71514 2007-03-30  Bruno Haible  <bruno@clisp.org>
71515
71516         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71517         * lib/poll_.h: Likewise.
71518         * lib/stat_.h: Likewise.
71519         * lib/sys_time_.h: Likewise.
71520         * lib/sysexit_.h: Likewise.
71521         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71522         * lib/stdbool_.h: Likewise.
71523         * lib/byteswap_.h: Add double-inclusion guard.
71524
71525 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71526
71527         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71528
71529 2007-03-30  Karl Berry  <karl@gnu.org>
71530
71531         * config/srclist-update: double space after USA in the license
71532         substitution, since that's how it's usually (?) written.
71533
71534 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71535
71536         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71537         reported by Bruno Haible.
71538
71539 2007-03-29  Bruno Haible  <bruno@clisp.org>
71540
71541         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71542         a bug in AIX iconv().
71543
71544 2007-03-29  Bruno Haible  <bruno@clisp.org>
71545
71546         * modules/ldexpl-tests: New file.
71547         * tests/test-ldexpl.c: New file.
71548
71549 2007-03-29  Bruno Haible  <bruno@clisp.org>
71550
71551         * lib/ldexpl.c: Include fpucw.h.
71552         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71553         multiplication.
71554         * modules/ldexpl (Depends-on): Add fpucw.
71555
71556 2007-03-29  Bruno Haible  <bruno@clisp.org>
71557
71558         * modules/ldexpl: New file.
71559         * m4/ldexpl.m4: New file.
71560         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71561         set.
71562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71563         REPLACE_LDEXPL.
71564         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71565         REPLACE_LDEXPL.
71566         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71567         gl_FUNC_LDEXPL_WORKS.
71568         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71569         * modules/mathl (Files): Remove lib/ldexpl.c.
71570         (Depends-on): Add ldexpl.
71571
71572 2007-03-29  Bruno Haible  <bruno@clisp.org>
71573
71574         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71575
71576 2007-03-29  Bruno Haible  <bruno@clisp.org>
71577
71578         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71579         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71580         and possibly also HP-UX.
71581         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71582         work on AIX, IRIX, HP-UX, OSF/1.
71583         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71584         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71585         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71586         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71587         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71588         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71589
71590 2007-03-29  Bruno Haible  <bruno@clisp.org>
71591
71592         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71593
71594 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71595
71596         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71597         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71598
71599 2007-03-29  Eric Blake  <ebb9@byu.net>
71600
71601         * lib/acl-internal.h: Remove redundant include.
71602         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71603         Cygwin when a file is locked.
71604
71605 2007-03-29  Bruno Haible  <bruno@clisp.org>
71606
71607         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71608         file.
71609         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71610
71611 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71612
71613         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71614         try to remove a parent directory if the child couldn't be removed
71615         (except for the first rmdir, which could fail because the child
71616         doesn't exist).  Problem reported by Jeff Blaine in
71617         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71618
71619 2007-03-28  Bruno Haible  <bruno@clisp.org>
71620
71621         * lib/striconveh.c (utf8conv_carefully): New function.
71622         (mem_cd_iconveh_internal): Invoke it.
71623
71624 2007-03-28  Bruno Haible  <bruno@clisp.org>
71625
71626         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71627         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71628         input.
71629         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71630         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71631         unistr/u8-uctomb.
71632
71633 2007-03-28  Bruno Haible  <bruno@clisp.org>
71634
71635         * modules/unistr/u8-mbtoucr: New file.
71636         * lib/unistr/u8-mbtoucr.c: New file.
71637         * modules/unistr/u16-mbtoucr: New file.
71638         * lib/unistr/u16-mbtoucr.c: New file.
71639         * modules/unistr/u16-mbtoucr: New file.
71640         * lib/unistr/u16-mbtoucr.c: New file.
71641         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71642
71643 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71644             Bruno Haible  <bruno@clisp.org>
71645
71646         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71647         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71648         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71649
71650         * m4/stdio_h.m4: Add stubs for vasprintf too.
71651
71652         * modules/stdio: Support vasprintf in sed command.
71653
71654         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71655         vasprintf.h.  Add stdio module indicator.
71656
71657         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71658         vasprintf.h.
71659
71660         * lib/vasprintf.h: File removed.
71661
71662         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71663         * lib/vasprintf.c: Ditto.
71664         * lib/xvasprintf.c: Ditto.
71665         * tests/test-vasprintf-posix.c: Ditto.
71666         * tests/test-vasprintf.c: Ditto.
71667
71668 2007-03-27  Bruno Haible  <bruno@clisp.org>
71669
71670         Make vasnprintf multithread-safe.
71671         * lib/vasnprintf.c (decimal_point_char): New function.
71672         (VASNPRINTF): Use it.
71673         Suggested by Simon Josefsson.
71674
71675 2007-03-27  Eric Blake  <ebb9@byu.net>
71676
71677         Support sub-second birthtime on cygwin.
71678         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71679         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71680         (get_stat_birthtime): Also work with st_birthtim.
71681
71682 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71683
71684         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71685         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71686         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71687         (get_stat_birthtime_ns): Simplify compile-time tests.
71688         (get_stat_birthtime): Change the API to look like
71689         get_stat_mtime etc., except return a negative tv_nsec on error.
71690         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71691         Don't check for "spare" fields.
71692         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71693         or for struct stat.st_birthtime, as these tests aren't used.
71694         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71695
71696 2007-03-27  Bruno Haible  <bruno@clisp.org>
71697
71698         * lib/stat-time.h: Include <sys/stat.h>.
71699
71700 2007-03-27  James Youngman  <jay@gnu.org>
71701
71702         * lib/stat-time.h (get_stat_birthtime): New function for
71703           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71704         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71705           and its variants.
71706         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71707         * modules/stat-time-test: New file.
71708         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71709
71710 2007-03-26  Bruno Haible  <bruno@clisp.org>
71711
71712         Better support of signalling NaNs.
71713         * lib/atanl.c: Include isnanl.h.
71714         (atanl): Perform test for NaN at the beginning of the function and
71715         through a call to isnanl.
71716         * lib/cosl.c: Include isnanl.h.
71717         (cosl): Perform test for NaN at the beginning of the function and
71718         through a call to isnanl.
71719         * lib/ldexpl.c: Include isnanl.h.
71720         (ldexpl): Perform test for NaN through a call to isnanl.
71721         * lib/logl.c: Include isnanl.h.
71722         (logl): Perform test for NaN at the beginning of the function and
71723         through a call to isnanl.
71724         * lib/sinl.c: Include isnanl.h.
71725         (sinl): Perform test for NaN at the beginning of the function and
71726         through a call to isnanl.
71727         * lib/sqrtl.c: Include isnanl.h.
71728         (sqrtl): Perform test for NaN at the beginning of the function and
71729         through a call to isnanl.
71730         * lib/tanl.c: Include isnanl.h.
71731         (tanl): Perform test for NaN at the beginning of the function and
71732         through a call to isnanl.
71733         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71734         * modules/mathl (Depends-on): Add isnanl.
71735
71736 2007-03-26  Eric Blake  <ebb9@byu.net>
71737
71738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71739         regression in logic sense of previous patch.
71740
71741 2007-03-26  Bruno Haible  <bruno@clisp.org>
71742
71743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71744         unportable shell command "if ! ...".
71745         Reported by Ralf Wildenhues.
71746
71747 2007-03-25  Bruno Haible  <bruno@clisp.org>
71748
71749         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71750         <sysexits.h> file, and only add EX_CONFIG.
71751         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71752         absolute file name and whether it is sufficient. Substitute also
71753         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71754         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71755         ABSOLUTE_SYSEXITS_H into sysexits.h.
71756
71757 2007-03-25  Bruno Haible  <bruno@clisp.org>
71758
71759         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71760         hints is NULL.
71761
71762 2007-03-25  Bruno Haible  <bruno@clisp.org>
71763
71764         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71765         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71766
71767 2007-03-25  Bruno Haible  <bruno@clisp.org>
71768
71769         * lib/vasnprintf.c: Include langinfo.h.
71770         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71771         multithread-safe.
71772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71773         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71774         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71775         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71776         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71777         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71778         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71779         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71780         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71781         Reported by Simon Josefsson.
71782
71783 2007-03-25  Bruno Haible  <bruno@clisp.org>
71784
71785         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71786         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71787         * modules/vasnprintf (Depends-on): Add stdint.
71788
71789 2007-03-25  Bruno Haible  <bruno@clisp.org>
71790
71791         * modules/fpieee: New file.
71792         * m4/fpieee.m4: New file.
71793         * modules/isnan-nolibm (Depends-on): Add fpieee.
71794         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71795         * modules/isnanl (Depends-on): Add fpieee.
71796
71797 2007-03-25  Bruno Haible  <bruno@clisp.org>
71798
71799         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
71800
71801 2007-03-25  Bruno Haible  <bruno@clisp.org>
71802
71803         Avoid test failures on IRIX 6.5.
71804         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
71805         (main): Use it.
71806         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
71807         macros.
71808         (main): Use them.
71809
71810 2007-03-25  Bruno Haible  <bruno@clisp.org>
71811
71812         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
71813         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
71814         exists but doesn't work.
71815         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
71816         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
71817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
71818         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
71819         math.h.
71820
71821 2007-03-25  Bruno Haible  <bruno@clisp.org>
71822
71823         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
71824         returns inf. Needed on IRIX 6.5.
71825
71826 2007-03-25  Bruno Haible  <bruno@clisp.org>
71827
71828         * tests/test-frexpl.c: Include isnanl-nolibm.h.
71829         (main): Use isnanl instead of x != x idiom.
71830         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
71831
71832         * tests/test-frexp.c: Include isnan.h.
71833         (main): Use isnan instead of x != x idiom.
71834         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
71835
71836 2007-03-25  Bruno Haible  <bruno@clisp.org>
71837
71838         * tests/test-frexp.c (NaN): New function/macro.
71839         (main): Use it instead of 0.0 / 0.0.
71840         * tests/test-isnan.c (NaN): New function/macro.
71841         (main): Use it instead of 0.0 / 0.0.
71842         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
71843         (test_function): Use it instead of 0.0 / 0.0.
71844         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71845         (test_function): Use it instead of 0.0 / 0.0.
71846         * tests/test-snprintf-posix.h (NaN): New function/macro.
71847         (test_function): Use it instead of 0.0 / 0.0.
71848         * tests/test-sprintf-posix.h (NaN): New function/macro.
71849         (test_function): Use it instead of 0.0 / 0.0.
71850         * tests/test-fprintf-posix.h (NaN): New function/macro.
71851         (test_function): Use it instead of 0.0 / 0.0.
71852         * tests/test-printf-posix.h (NaN): New function/macro.
71853         (test_function): Use it instead of 0.0 / 0.0.
71854
71855         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71856
71857 2007-03-25  Bruno Haible  <bruno@clisp.org>
71858
71859         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71860
71861 2007-03-25  Bruno Haible  <bruno@clisp.org>
71862
71863         * lib/regexec.c (merge_state_with_log): Make static.
71864
71865 2007-03-25  Bruno Haible  <bruno@clisp.org>
71866
71867         * lib/trigl.c (kernel_rem_pio2): Make static.
71868
71869 2007-03-25  Bruno Haible  <bruno@clisp.org>
71870
71871         * lib/sincosl.c (sincosl_table): Make static.
71872
71873 2007-03-25  Bruno Haible  <bruno@clisp.org>
71874
71875         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71876         if the compiler does not support C99.
71877
71878 2007-03-25  Bruno Haible  <bruno@clisp.org>
71879
71880         * modules/time (Makefile.am): Ensure all rule action lines start with a
71881         tab.
71882
71883 2007-03-24  Bruno Haible  <bruno@clisp.org>
71884
71885         * modules/tsearch-tests: New file.
71886         * tests/test-tsearch.sh: New file.
71887         * tests/test-tsearch.c: New file, mostly copied from glibc.
71888
71889         * modules/search-tests: New file.
71890         * tests/test-search.c: New file.
71891
71892         * modules/search: New file.
71893         * lib/search_.h: New file, incorporating lib/tsearch.h.
71894         * m4/search_h.m4: New file.
71895         * lib/tsearch.h: Remove file.
71896         * lib/tsearch.c: Include search.h instead of tsearch.h.
71897         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71898         HAVE_TSEARCH.
71899         * modules/tsearch (Files): Remove lib/tsearch.h.
71900         (Depends-on): Add search.
71901         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71902         (Include): Change tsearch.h into search.h.
71903
71904 2007-03-24  Bruno Haible  <bruno@clisp.org>
71905
71906         * modules/fpucw: New file.
71907         * lib/fpucw.h: New file.
71908         * lib/frexp.c: Include fpucw.h.
71909         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71910         (FUNC): Use them.
71911         * lib/printf-frexp.c: Include fpucw.h.
71912         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71913         (FUNC): Use them.
71914         * lib/vasnprintf.c: Include fpucw.h.
71915         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71916         'long double' calculations.
71917         * tests/test-frexpl.c: Include fpucw.h.
71918         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71919         * tests/test-printf-frexpl.c: Include fpucw.h.
71920         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71921         * modules/frexpl (Depends-on): Add fpucw.
71922         * modules/printf-frexpl (Depends-on): Likewise.
71923         * modules/fprintf-posix (Depends-on): Likewise.
71924         * modules/snprintf-posix (Depends-on): Likewise.
71925         * modules/sprintf-posix (Depends-on): Likewise.
71926         * modules/vasnprintf-posix (Depends-on): Likewise.
71927         * modules/vasprintf-posix (Depends-on): Likewise.
71928         * modules/vfprintf-posix (Depends-on): Likewise.
71929         * modules/vsnprintf-posix (Depends-on): Likewise.
71930         * modules/vsprintf-posix (Depends-on): Likewise.
71931         * modules/frexpl-tests (Depends-on): Likewise.
71932         * modules/printf-frexpl-tests (Depends-on): Likewise.
71933
71934 2007-03-24  Bruno Haible  <bruno@clisp.org>
71935
71936         * lib/float+.h: New file.
71937         * lib/isnan.c: Include float+.h.
71938         (SIZE): New macro.
71939         (FUNC): Compare only SIZE bytes of the value.
71940         * lib/vasnprintf.c: Include float+.h.
71941         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71942         SIZEOF_LDBL or SIZEOF_DBL bytes.
71943         * modules/isnan-nolibm (Files): Add lib/float+.h.
71944         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71945         * modules/isnanl (Files): Add lib/float+.h.
71946         * modules/vasnprintf (Files): Add lib/float+.h.
71947
71948 2007-03-24  Bruno Haible  <bruno@clisp.org>
71949
71950         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71951         include isnanl-nolibm.h.
71952
71953 2007-03-24  Bruno Haible  <bruno@clisp.org>
71954
71955         * tests/test-read-file.c (main): Don't produce spurious output for
71956         expected situations. Make the test fail if it encountered unexpected
71957         results.
71958
71959 2007-03-24  Bruno Haible  <bruno@clisp.org>
71960
71961         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71962         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71963
71964 2007-03-24  Bruno Haible  <bruno@clisp.org>
71965
71966         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71967
71968 2007-03-24  Bruno Haible  <bruno@clisp.org>
71969
71970         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71971         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71972
71973         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71974         * modules/utf8-ucs4: Turn into a symbolic link to module
71975         unistr/u8-mbtouc.
71976
71977         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71978         utf8-ucs4-unsafe.
71979         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71980         unistr/u8-mbtouc-unsafe.
71981
71982         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71983         * modules/utf16-ucs4: Turn into a symbolic link to module
71984         unistr/u16-mbtouc.
71985
71986         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71987         utf16-ucs4-unsafe.
71988         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71989         unistr/u16-mbtouc-unsafe.
71990
71991         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71992         * modules/ucs4-utf8: Turn into a symbolic link to module
71993         unistr/u8-ubtomb.
71994
71995         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71996         * modules/ucs4-utf16: Turn into a symbolic link to module
71997         unistr/u16-ubtomb.
71998
71999 2007-03-24  Bruno Haible  <bruno@clisp.org>
72000
72001         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72002         Enable the function only if HAVE_INLINE.
72003         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72004         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72005         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72006         Enable the function only if HAVE_INLINE.
72007         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72008         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72009         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72010         Enable the function only if HAVE_INLINE.
72011         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72012         Enable the function only if HAVE_INLINE.
72013         * modules/utf8-ucs4: Update.
72014         * modules/utf8-ucs4-unsafe: Update.
72015         * modules/utf16-ucs4: Update.
72016         * modules/utf16-ucs4-unsafe: Update.
72017         * modules/ucs4-utf8: Update.
72018         * modules/ucs4-utf16: Update.
72019
72020 2007-03-24  Bruno Haible  <bruno@clisp.org>
72021
72022         * lib/utf8-ucs4.h: Remove file.
72023         * lib/utf8-ucs4-unsafe.h: Remove file.
72024         * lib/utf16-ucs4.h: Remove file.
72025         * lib/utf16-ucs4-unsafe.h: Remove file.
72026         * lib/ucs4-utf8.h: Remove file.
72027         * lib/ucs4-utf16.h: Remove file.
72028         * lib/unistr.h: Include their previous contents.
72029         * m4/utf-ucs4.m4: Remove file.
72030         * m4/ucs4-utf.m4: Remove file.
72031         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72032         (Depends-on): Add unistr/base.
72033         (configure.ac): Remove gl_UTF_UCS4.
72034         (Makefile.am): Update.
72035         (Include): Change to unistr.h.
72036         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72037         (Depends-on): Add unistr/base.
72038         (configure.ac): Remove gl_UTF_UCS4.
72039         (Makefile.am): Update.
72040         (Include): Change to unistr.h.
72041         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72042         (Depends-on): Add unistr/base.
72043         (configure.ac): Remove gl_UTF_UCS4.
72044         (Makefile.am): Update.
72045         (Include): Change to unistr.h.
72046         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72047         (Depends-on): Add unistr/base.
72048         (configure.ac): Remove gl_UTF_UCS4.
72049         (Makefile.am): Update.
72050         (Include): Change to unistr.h.
72051         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72052         (Depends-on): Add unistr/base.
72053         (configure.ac): Remove gl_UCS4_UTF.
72054         (Makefile.am): Update.
72055         (Include): Change to unistr.h.
72056         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72057         (Depends-on): Add unistr/base.
72058         (configure.ac): Remove gl_UCS4_UTF.
72059         (Makefile.am): Update.
72060         (Include): Change to unistr.h.
72061         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72062         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72063         utf8-ucs4-unsafe.h.
72064         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72065         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72066         utf16-ucs4-unsafe.h.
72067         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72068         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72069         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72070         * lib/unistr/u8-strchr.c: Likewise.
72071         * lib/unistr/u8-strrchr.c: Likewise.
72072         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72073         * lib/unistr/u16-strchr.c: Likewise.
72074         * lib/unistr/u16-strrchr.c: Likewise.
72075         * lib/striconveh.c: Update.
72076         * lib/linebreak.c: Update.
72077
72078 2007-03-24  Bruno Haible  <bruno@clisp.org>
72079
72080         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72081         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72082
72083 2007-03-22  Bruno Haible  <bruno@clisp.org>
72084
72085         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72086
72087 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72088
72089         * MODULES.html.sh (File system functions): New module write-any-file.
72090         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72091         * m4/write-any-file.m4: New files.
72092
72093 2007-03-23  Eric Blake  <ebb9@byu.net>
72094
72095         * gnulib-tool: Rearrange space-tab sequences, since some editors
72096         like to eat them.
72097
72098 2007-03-23  Eric Blake  <ebb9@byu.net>
72099
72100         * lib/version-etc.c (version_etc_va): Update license wording to
72101         be more concise.  Recommended by Richard Stallman.
72102
72103 2007-03-22  Bruno Haible  <bruno@clisp.org>
72104
72105         * lib/poll.c (MSG_PEEK): New fallback definition.
72106
72107 2007-03-22  Bruno Haible  <bruno@clisp.org>
72108
72109         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72110         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72111         (main): Update.
72112         Fixes a compilation error on BeOS.
72113
72114 2007-03-22  Bruno Haible  <bruno@clisp.org>
72115
72116         * modules/frexpl-tests: New file.
72117         * tests/test-frexpl.c: New file.
72118
72119         * modules/frexpl: New file.
72120         * m4/frexpl.m4: New file.
72121         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72122         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72124         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72125         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72126         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72127
72128 2007-03-22  Bruno Haible  <bruno@clisp.org>
72129
72130         * lib/frexpl.c: Share code with lib/frexp.c.
72131         * modules/mathl (Files): Add lib/frexp.c.
72132         (Depends-on): Add isnanl-nolibm.
72133
72134 2007-03-22  Bruno Haible  <bruno@clisp.org>
72135
72136         * modules/printf-frexp (Files): Add m4/frexp.m4.
72137         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72138         only if the found frexp function actually works.
72139
72140 2007-03-22  Bruno Haible  <bruno@clisp.org>
72141
72142         * lib/frexp.c: Remove older implementation that uses divisions.
72143
72144 2007-03-21  Bruno Haible  <bruno@clisp.org>
72145
72146         * modules/frexp-tests: New file.
72147         * tests/test-frexp.c: New file.
72148
72149         * modules/frexp: New file.
72150         * lib/frexp.c: New file.
72151         * m4/frexp.m4: New file.
72152         * lib/math_.h (frexp): New declaration.
72153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72154         REPLACE_FREXP.
72155         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72156
72157 2007-03-21  Bruno Haible  <bruno@clisp.org>
72158
72159         * modules/isnanl-tests: New file.
72160         * tests/test-isnanl.c: New file.
72161
72162         * modules/isnanl: New file.
72163         * lib/isnanl.h: New file.
72164         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72165         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72166         gl_FUNC_ISNANL_WORKS.
72167         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72168         New macros.
72169
72170 2007-03-21  Bruno Haible  <bruno@clisp.org>
72171
72172         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72173         lib/isnanl.h.
72174         (Include): Update.
72175         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72176         * lib/vasnprintf.c: Update.
72177         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72178         tests/test-isnanl.h, remove tests/test-isnanl.c.
72179         (Makefile.am): Update.
72180         * tests/test-isnanl-nolibm.c: New file.
72181         * tests/test-isnanl.h: New file.
72182         * tests/test-isnanl.c: Remove file.
72183
72184 2007-03-21  Jim Meyering  <jim@meyering.net>
72185
72186         When trying to open ".", treat ESTALE like EACCES.
72187         * lib/savewd.c (savewd_save): Resort to forking not just upon
72188         failure with EACCES, but also when errno is ESTALE.
72189
72190 2007-03-20  Bruno Haible  <bruno@clisp.org>
72191
72192         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72193         Needed on AIX 5.1. Reported by Matthew Woehlke.
72194
72195 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72196
72197         Suggestions by Bruno Haible:
72198         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72199         our own.
72200         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72201         * modules/acl (Depends-on): Add gettext.
72202
72203 2007-03-19  Bruno Haible  <bruno@clisp.org>
72204
72205         * modules/iconvme: Remove file.
72206         * lib/iconvme.h: Remove file.
72207         * lib/iconvme.c: Remove file.
72208         * m4/iconvme.m4: Remove file.
72209
72210 2007-03-19  Bruno Haible  <bruno@clisp.org>
72211
72212         * doc/relocatable-maint.texi: Break long shell script line.
72213         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72214
72215 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72216
72217         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72218         handle file_has_acl.
72219         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72220         * lib/acl.c: Move header inclusions and related macro defns into
72221         lib/acl-internal.h.
72222         (S_ISLNK): Remove defn, since that's now done for us.
72223         (file_has_acl): Move to lib/file-has-acl.c.
72224         Call acl_trivial if available.  This is the crucial part of the fix.
72225         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72226         shared within the library.  Rewrite a bit, partly to make it compatible
72227         with the GNU coding style.
72228         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72229         Remove unnecessary double-quotes.
72230         Don't test for acl_to_text; the build will catch that.
72231         Replace acl_entries if it doesn't exist and it is needed.
72232         Check for -lsec and acl_trivial (as used on Solaris 10).
72233         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72234         lib/file-has-acl.c.
72235         (Depends-on): Add sys_stat, for S_ISLNK.
72236
72237 2007-03-19  Ben Pfaff  <blp@gnu.org>
72238
72239         * doc/gnulib.texi: Fix typos.
72240         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72241
72242 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72243
72244         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72245         If size is zero here, buf must be zero.
72246
72247 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72248
72249         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72250         <bruno@clisp.org>.
72251
72252 2007-03-18  Bruno Haible  <bruno@clisp.org>
72253
72254         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72255         Suggested by Eric Blake.
72256
72257 2007-03-18  Ben Pfaff  <blp@gnu.org>
72258
72259         * doc/relocatable.texi: Recommend using as prefix a directory
72260         that does not exist and will never be created.  Based on
72261         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72262         and others.
72263
72264 2007-03-17  Bruno Haible  <bruno@clisp.org>
72265
72266         * lib/fchownat.c: Include lchown.h.
72267
72268 2007-03-17  Bruno Haible  <bruno@clisp.org>
72269
72270         Fix endless loop when the given allocated size was > INT_MAX.
72271         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72272         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72273         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72274         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72275         * lib/sprintf.c (sprintf): Likewise.
72276
72277 2007-03-17  Bruno Haible  <bruno@clisp.org>
72278
72279         * tests/test-argp-2.sh (func_compare): Output a context diff.
72280
72281 2007-03-17  Bruno Haible  <bruno@clisp.org>
72282
72283         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72284         locale's decimal-point character.
72285
72286 2007-03-17  Bruno Haible  <bruno@clisp.org>
72287
72288         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72289         before comparing it. Needed because on some platforms (e.g. x86) a
72290         'long double' occupies less bytes than sizeof (long double).
72291
72292 2007-03-17  Bruno Haible  <bruno@clisp.org>
72293
72294         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72295         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72296         * tests/test-getaddrinfo.c (simple): Likewise.
72297         * tests/test-read-file.c (main): Likewise.
72298
72299 2007-03-17  Bruno Haible  <bruno@clisp.org>
72300
72301         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72302
72303 2007-03-17  Bruno Haible  <bruno@clisp.org>
72304
72305         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72306         unused variable.
72307
72308 2007-03-17  Bruno Haible  <bruno@clisp.org>
72309
72310         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72311         * tests/test-c-strncasecmp.c: Likewise.
72312
72313 2007-03-17  Bruno Haible  <bruno@clisp.org>
72314
72315         * modules/stdlib (Depends-on): Add unistd.
72316         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72317         Needed for MacOS X 10.3.
72318
72319 2007-03-17  Bruno Haible  <bruno@clisp.org>
72320
72321         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72322
72323 2007-03-17  Bruno Haible  <bruno@clisp.org>
72324
72325         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72326
72327 2007-03-17  Bruno Haible  <bruno@clisp.org>
72328
72329         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72330         to reflect files copied from gnulib (with or without modifications).
72331         Suggested by Jim Meyering.
72332
72333 2007-03-17  Eric Blake  <ebb9@byu.net>
72334
72335         * NEWS: Document stdlib change from 2007-02-18.
72336
72337 2007-03-17  Jim Meyering  <jim@meyering.net>
72338
72339         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72340         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72341         someone uses a name containing shell meta-characters.
72342         Reported by Alfred M. Szmidt.
72343
72344         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72345
72346 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72347
72348         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72349         and copy gettext configuration files only if configure.ac contains
72350         a use of AM_GNU_GETTEXT_VERSION.
72351
72352 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72353
72354         * build-aux/bootstrap (gnulib_name): New variable.
72355         (gnulib_tool_options): Use it.
72356
72357 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72358
72359         * tests/test-des.c: Use new namespace.
72360
72361 2007-03-15  Bruno Haible  <bruno@clisp.org>
72362
72363         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72364         Reported by James Youngman <jay@gnu.org>.
72365
72366 2007-03-15  Bruno Haible  <bruno@clisp.org>
72367
72368         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72369         declared prototype. Needed with cc on OSF/1 5.1.
72370
72371 2007-03-15  Bruno Haible  <bruno@clisp.org>
72372
72373         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72374         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72375         (struct gl_list_implementation): Add dispose_fn argument to the
72376         'create_empty', 'create' methods.
72377         (struct gl_list_impl_base): Add field 'dispose_fn'.
72378         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72379         argument.
72380         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72381         dispose_fn argument.
72382         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72383         dispose_fn on the dropped values.
72384         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72385         dispose_fn argument.
72386         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72387         dropped values.
72388         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72389         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72390         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72391         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72392         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72393         argument.
72394         (gl_tree_list_free): Call dispose_fn on the dropped values.
72395         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72396         the dropped values.
72397         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72398         Add dispose_fn argument.
72399         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72400         Call dispose_fn on the dropped values.
72401         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72402         Add dispose_fn argument.
72403         (gl_sublist_create): Initialize the 'dispose_fn' field.
72404         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72405         * tests/test-array_list.c (main): Update.
72406         * tests/test-carray_list.c (main): Update.
72407         * tests/test-avltree_list.c (main): Update.
72408         * tests/test-rbtree_list.c (main): Update.
72409         * tests/test-avltreehash_list.c (main): Update.
72410         * tests/test-rbtreehash_list.c (main): Update.
72411         * tests/test-linked_list.c (main): Update.
72412         * tests/test-linkedhash_list.c (main): Update.
72413         * tests/test-array_oset.c (main): Update.
72414
72415 2007-03-15  Bruno Haible  <bruno@clisp.org>
72416
72417         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72418         (gl_oset_create_empty): Add dispose_fn argument.
72419         (struct gl_oset_implementation): Add dispose_fn argument to
72420         'create_empty' method.
72421         (struct gl_oset_impl_base): Add dispose_fn field.
72422         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72423         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72424         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72425         values.
72426         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72427         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72428         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72429         dropped value.
72430         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72431         dropped value.
72432         * tests/test-array_oset.c (main): Update.
72433         * tests/test-avltree_oset.c (main): Update.
72434         * tests/test-rbtree_oset.c (main): Update.
72435         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72436
72437 2007-03-13  Bruno Haible  <bruno@clisp.org>
72438
72439         * tests/test-stdbool.c (i): Update after last patch.
72440
72441 2007-03-12  Bruno Haible  <bruno@clisp.org>
72442
72443         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72444         the iswprint macro. Needed on Solaris 2.5.1.
72445
72446 2007-03-12  Bruno Haible  <bruno@clisp.org>
72447
72448         * tests/test-printf-frexp.c (main): Declare x as volatile.
72449
72450 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72451
72452         * doc/gnulib.texi (Build robot for gnulib): New section.
72453
72454 2007-03-12  Jim Meyering  <jim@meyering.net>
72455
72456         * build-aux/bootstrap: New file.
72457         * build-aux/bootstrap.conf: New file, from coreutils.
72458
72459 2007-03-11  Bruno Haible  <bruno@clisp.org>
72460
72461         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72462
72463 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72464
72465         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72466         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72467         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72468
72469 2007-03-11  Bruno Haible  <bruno@clisp.org>
72470
72471         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72472         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72473
72474 2007-03-11  Bruno Haible  <bruno@clisp.org>
72475
72476         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72477         formula. Needed for SunPRO C 5.0.
72478
72479 2007-03-11  Bruno Haible  <bruno@clisp.org>
72480
72481         * modules/long-options (Depends-on): Add getopt.
72482
72483 2007-03-11  Bruno Haible  <bruno@clisp.org>
72484
72485         * modules/modechange (Depends-on): Add stdbool.
72486
72487 2007-03-11  Bruno Haible  <bruno@clisp.org>
72488
72489         * modules/i-ring (Depends-on): Add stdbool.
72490
72491 2007-03-11  Bruno Haible  <bruno@clisp.org>
72492
72493         * modules/gc-des (Depends-on): Add stdbool.
72494
72495 2007-03-11  Bruno Haible  <bruno@clisp.org>
72496
72497         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72498
72499 2007-03-11  Bruno Haible  <bruno@clisp.org>
72500
72501         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72502
72503 2007-03-11  Bruno Haible  <bruno@clisp.org>
72504
72505         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72506
72507 2007-03-11  Bruno Haible  <bruno@clisp.org>
72508
72509         * lib/vasnprintf.c (sprintf): Undefine.
72510
72511 2007-03-11  Bruno Haible  <bruno@clisp.org>
72512
72513         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72514         initializers in SunPRO C and Compaq C compilers.
72515
72516 2007-03-11  Bruno Haible  <bruno@clisp.org>
72517
72518         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72519         decrementing code ANSI C compliant.
72520
72521 2007-03-11  Bruno Haible  <bruno@clisp.org>
72522
72523         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72524         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72525
72526 2007-03-11  Bruno Haible  <bruno@clisp.org>
72527
72528         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72529         <stdbool.h> substitute doesn't pass.
72530
72531 2007-03-11  Bruno Haible  <bruno@clisp.org>
72532
72533         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72534
72535 2007-03-11  Bruno Haible  <bruno@clisp.org>
72536
72537         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72538         script, for submission to autobuild.josefsson.org.
72539
72540 2007-03-10  Bruno Haible  <bruno@clisp.org>
72541
72542         * modules/canonicalize-lgpl-tests: New file.
72543         * tests/test-canonicalize-lgpl.sh: New file.
72544         * tests/test-canonicalize-lgpl.c: New file.
72545
72546         * modules/c-strcase-tests: New file.
72547         * tests/test-c-strcase.sh: New file.
72548         * tests/test-c-strcasecmp.c: New file.
72549         * tests/test-c-strncasecmp.c: New file.
72550
72551         * modules/atexit-tests: New file.
72552         * tests/test-atexit.sh: New file.
72553         * tests/test-atexit.c: New file.
72554
72555 2007-03-10  Bruno Haible  <bruno@clisp.org>
72556
72557         * tests/test-binary-io.sh: Use temporary filenames that are not so
72558         likely to clash with those of other tests (in a parallel make).
72559         * tests/test-binary-io.c: Likewise.
72560
72561 2007-03-10  Bruno Haible  <bruno@clisp.org>
72562
72563         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72564         fallback; use #error instead.
72565         Suggested by Simon Josefsson.
72566
72567 2007-03-10  Bruno Haible  <bruno@clisp.org>
72568
72569         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72570         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72571         first and the last.
72572
72573 2007-03-10  Bruno Haible  <bruno@clisp.org>
72574
72575         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72576
72577 2007-03-10  Bruno Haible  <bruno@clisp.org>
72578
72579         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72580         "make distcheck".
72581         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72582         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72583         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72584
72585 2007-03-10  Bruno Haible  <bruno@clisp.org>
72586
72587         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72588         variable.
72589         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72590         variable.
72591
72592 2007-03-09  Eric Blake  <ebb9@byu.net>
72593         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72594
72595         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72596         types are not being provided by gnulib.
72597         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72598         types are supported.
72599
72600 2007-03-10  Bruno Haible  <bruno@clisp.org>
72601
72602         * lib/stdio_.h (__attribute__): New macro.
72603         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72604         vsprintf): Specify __attribute__ __format__ for GCC.
72605         Suggested by Eric Blake.
72606
72607 2007-03-09  Bruno Haible  <bruno@clisp.org>
72608
72609         * modules/printf-posix-tests: New file.
72610         * tests/test-printf-posix.sh: New file.
72611         * tests/test-printf-posix.c: New file.
72612
72613         * modules/printf-posix: New file.
72614         * lib/printf.c: New file.
72615         * m4/printf-posix-rpl.m4: New file.
72616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72617         REPLACE_PRINTF.
72618         * lib/stdio_.h (printf): New declaration.
72619         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72620         ____strfmon____): New macros.
72621         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72622         REPLACE_PRINTF.
72623
72624 2007-03-09  Bruno Haible  <bruno@clisp.org>
72625
72626         * tests/test-vasnprintf-posix2.sh: New file.
72627         * tests/test-vasnprintf-posix2.c: New file.
72628         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72629         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72630         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72631
72632         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72633         a locale dependent decimal point, rather than always '.'.
72634
72635 2007-03-09  Eric Blake  <ebb9@byu.net>
72636
72637         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72638         spite of platforms like Tandem/NSK that define it to -1.
72639
72640 2007-03-08  Bruno Haible  <bruno@clisp.org>
72641
72642         * modules/vprintf-posix-tests: New file.
72643         * tests/test-vprintf-posix.sh: New file.
72644         * tests/test-vprintf-posix.c: New file.
72645         * tests/test-printf-posix.h: New file.
72646
72647         * modules/vprintf-posix: New file.
72648         * lib/vprintf.c: New file.
72649         * m4/vprintf-posix.m4: New file.
72650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72651         REPLACE_VPRINTF.
72652         * lib/stdio_.h (vprintf): New declaration.
72653         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72654         REPLACE_VPRINTF.
72655
72656 2007-03-08  Bruno Haible  <bruno@clisp.org>
72657
72658         * modules/fprintf-posix-tests: New file.
72659         * tests/test-fprintf-posix.sh: New file.
72660         * tests/test-fprintf-posix.c: New file.
72661
72662         * modules/fprintf-posix: New file.
72663         * lib/fprintf.c: New file.
72664         * m4/fprintf-posix.m4: New file.
72665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72666         REPLACE_FPRINTF.
72667         * lib/stdio_.h (fprintf): New declaration.
72668         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72669         REPLACE_FPRINTF.
72670
72671 2007-03-08  Bruno Haible  <bruno@clisp.org>
72672
72673         * modules/vfprintf-posix-tests: New file.
72674         * tests/test-vfprintf-posix.sh: New file.
72675         * tests/test-vfprintf-posix.c: New file.
72676         * tests/test-fprintf-posix.h: New file.
72677         * tests/test-fprintf-posix.out: New file.
72678
72679         * modules/vfprintf-posix: New file.
72680         * lib/vfprintf.c: New file.
72681         * m4/vfprintf-posix.m4: New file.
72682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72683         REPLACE_VFPRINTF.
72684         * lib/stdio_.h (vfprintf): New declaration.
72685         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72686         REPLACE_VFPRINTF.
72687
72688 2007-03-08  Bruno Haible  <bruno@clisp.org>
72689
72690         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72691
72692 2007-03-08  Bruno Haible  <bruno@clisp.org>
72693
72694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72695         instead of 'expr' invocations.
72696         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72697         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72698         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72699         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72700         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72701         Suggested by Paul Eggert.
72702
72703 2007-03-08  Bruno Haible  <bruno@clisp.org>
72704
72705         * modules/fseterr-tests: New file.
72706         * tests/test-fseterr.c: New file.
72707
72708         * modules/fseterr: New file.
72709         * lib/fseterr.h: New file.
72710         * lib/fseterr.c: New file.
72711
72712 2007-03-08  Bruno Haible  <bruno@clisp.org>
72713
72714         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72715         * lib/getopt_.h: Likewise.
72716         * lib/mbswidth.h: Likewise.
72717         * lib/setenv.h: Likewise.
72718         * lib/vasnprintf.h: Likewise.
72719         * lib/vasprintf.h: Likewise.
72720         * lib/verror.h: Likewise.
72721         * lib/xsetenv.h: Likewise.
72722         * lib/xvasprintf.h: Likewise.
72723
72724 2007-03-08  Jim Meyering  <jim@meyering.net>
72725
72726         * users.txt: Add parted.
72727
72728         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72729
72730 2007-03-07  Bruno Haible  <bruno@clisp.org>
72731
72732         * m4/printf.m4: Make the shell script snippets copy&pastable.
72733
72734 2007-03-02  Bruno Haible  <bruno@clisp.org>
72735
72736         * lib/netinet_in_.h: New file.
72737         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72738         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72739         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72740         (Depends-on): Add absolute-header.
72741         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72742         into netinet/in.h.
72743
72744 2007-03-03  Bruno Haible  <bruno@clisp.org>
72745
72746         * lib/sys_select_.h: New file.
72747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72748         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72749         * modules/sys_select (Files): Add lib/sys_select_.h.
72750         (Depends-on): Add absolute-header.
72751         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72752         into sys/select.h.
72753
72754 2007-03-02  Bruno Haible  <bruno@clisp.org>
72755
72756         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72757         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72758         values.
72759         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72760         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72761         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72762         * modules/sys_socket (Depends-on): Add absolute-header.
72763         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72764         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72765         (Include): Remove requirement of inclusion of <sys/types.h>.
72766
72767 2007-03-02  Bruno Haible  <bruno@clisp.org>
72768
72769         * lib/byteswap_.h (bswap_32): Fix formula.
72770
72771 2007-03-06  Bruno Haible  <bruno@clisp.org>
72772
72773         * modules/sprintf-posix-tests: New file.
72774         * tests/test-sprintf-posix.c: New file.
72775
72776         * modules/sprintf-posix: New file.
72777         * lib/sprintf.c: New file.
72778         * m4/sprintf-posix.m4: New file.
72779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72780         REPLACE_SPRINTF.
72781         * lib/stdio_.h (sprintf): New declaration.
72782         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72783         REPLACE_SPRINTF.
72784
72785 2007-03-06  Bruno Haible  <bruno@clisp.org>
72786
72787         * modules/vsprintf-posix-tests: New file.
72788         * tests/test-vsprintf-posix.c: New file.
72789         * tests/test-sprintf-posix.h: New file.
72790
72791         * modules/vsprintf-posix: New file.
72792         * lib/vsprintf.c: New file.
72793         * m4/vsprintf-posix.m4: New file.
72794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72795         REPLACE_VSPRINTF.
72796         * lib/stdio_.h (vsprintf): New declaration.
72797         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
72798         REPLACE_VSPRINTF.
72799
72800 2007-03-06  Bruno Haible  <bruno@clisp.org>
72801
72802         * modules/vsnprintf (Depend-on): Remove minmax.
72803
72804 2007-03-06  Bruno Haible  <bruno@clisp.org>
72805
72806         * modules/snprintf-posix-tests: New file.
72807         * tests/test-snprintf-posix.c: New file.
72808
72809         * modules/snprintf-posix: New file.
72810         * m4/snprintf-posix.m4: New file.
72811         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
72812         gl_FUNC_SNPRINTF.
72813         (gl_FUNC_SNPRINTF): Invoke it.
72814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
72815         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
72816         is set.
72817         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
72818
72819 2007-03-06  Bruno Haible  <bruno@clisp.org>
72820
72821         * modules/vsnprintf-posix-tests: New file.
72822         * tests/test-vsnprintf-posix.c: New file.
72823         * tests/test-snprintf-posix.h: New file.
72824
72825         * modules/vsnprintf-posix: New file.
72826         * m4/vsnprintf-posix.m4: New file.
72827         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
72828         gl_FUNC_VSNPRINTF.
72829         (gl_FUNC_VSNPRINTF): Invoke it.
72830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
72831         * lib/stdio_.h (vsnprintf): Define as a replacement if
72832         REPLACE_VSNPRINTF is set.
72833         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
72834
72835 2007-03-06  Bruno Haible  <bruno@clisp.org>
72836
72837         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
72838         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
72839
72840 2007-03-06  Bruno Haible  <bruno@clisp.org>
72841
72842         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
72843         (asinl): Declare also if HAVE_DECL_ASINL is set.
72844         (atanl): Declare also if HAVE_DECL_ATANL is set.
72845         (ceill): Declare also if HAVE_DECL_CEILL is set.
72846         (cosl): Declare also if HAVE_DECL_COSL is set.
72847         (expl): Declare also if HAVE_DECL_EXPL is set.
72848         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72849         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72850         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72851         (logl): Declare also if HAVE_DECL_LOGL is set.
72852         (sinl): Declare also if HAVE_DECL_SINL is set.
72853         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72854         (tanl): Declare also if HAVE_DECL_TANL is set.
72855         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72857         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72858         declaration of frexpl, ldexpl.
72859         * modules/printf-frexpl (Depends-on): Add math.
72860         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72861
72862 2007-03-05  Bruno Haible  <bruno@clisp.org>
72863
72864         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72865         frexpl and ldexpl are declared.
72866         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72867
72868 2007-03-05  Bruno Haible  <bruno@clisp.org>
72869
72870         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72871         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72872
72873 2007-03-05  Bruno Haible  <bruno@clisp.org>
72874
72875         * lib/stdio_.h: Include <stddef.h>.
72876
72877 2007-03-05  Bruno Haible  <bruno@clisp.org>
72878
72879         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72880
72881 2007-03-05  Bruno Haible  <bruno@clisp.org>
72882
72883         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72884         NetBSD 4, from Ralf Wildenhues.
72885
72886 2007-03-04  Bruno Haible  <bruno@clisp.org>
72887
72888         * lib/vasprintf.h: Update #if logic for the case when the functions
72889         exist but are overridden.
72890
72891 2007-03-04  Bruno Haible  <bruno@clisp.org>
72892
72893         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72894         implementations: glibc-2.4 and MacOS X 10.3.
72895         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72896         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72897         * tests/test-vasprintf-posix.c (test_function): Likewise.
72898
72899 2007-03-04  Bruno Haible  <bruno@clisp.org>
72900
72901         * modules/vasprintf-posix-tests: New file.
72902         * tests/test-vasprintf-posix.c: New file.
72903
72904         * modules/vasprintf-posix: New file.
72905         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72906         defined.
72907         * m4/vasprintf-posix.m4: New file.
72908         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72909         gl_FUNC_VASPRINTF.
72910         (gl_FUNC_VASPRINTF): Invoke it.
72911         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72912         here.
72913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72914
72915 2007-03-04  Bruno Haible  <bruno@clisp.org>
72916
72917         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72918         REPLACE_GETTIMEOFDAY.
72919         * modules/sys_time (Makefile.am): Likewise.
72920         * m4/sys_time_h.m4: Likewise.
72921         * m4/gettimeofday.m4: Likewise.
72922
72923 2007-03-04  Bruno Haible  <bruno@clisp.org>
72924
72925         * modules/vasnprintf-posix-tests: New file.
72926         * tests/test-vasnprintf-posix.c: New file.
72927
72928         * modules/vasnprintf-posix: New file.
72929         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72930         printf-frexpl.h.
72931         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72932         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72933         REPLACE_VASNPRINTF is defined.
72934         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72935         gl_FUNC_VASNPRINTF.
72936         (gl_FUNC_VASNPRINTF): Invoke it.
72937         * m4/vasnprintf-posix.m4: New file.
72938         * m4/printf.m4: New file.
72939
72940 2007-03-04  Bruno Haible  <bruno@clisp.org>
72941
72942         Compile progreloc.c only if --enable-relocatable is specified.
72943         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72944         if --enable-relocatable was specified.
72945         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72946         lib_SOURCES.
72947
72948 2007-03-04  Jim Meyering  <jim@meyering.net>
72949
72950         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72951         Use it consistently, rather than enumerating errno constants.
72952
72953 2007-03-04  Bruno Haible  <bruno@clisp.org>
72954
72955         * modules/xvasprintf-tests: New file.
72956         * tests/test-xvasprintf.c: New file.
72957
72958         * modules/vasprintf-tests: New file.
72959         * tests/test-vasprintf.c: New file.
72960
72961         * modules/vasnprintf-tests: New file.
72962         * tests/test-vasnprintf.c: New file.
72963
72964         * modules/vsnprintf-tests: New file.
72965         * tests/test-vsnprintf.c: New file.
72966
72967         * modules/snprintf-tests: New file.
72968         * tests/test-snprintf.c: New file.
72969
72970 2007-03-04  Bruno Haible  <bruno@clisp.org>
72971
72972         Compile relocatable.c only if --enable-relocatable is specified.
72973         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72974         gl_RELOCATABLE_LIBRARY.
72975         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72976         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72977         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72978         gl_RELOCATABLE_LIBRARY.
72979         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72980         (Makefile.am): Remove lib_SOURCES.
72981         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72982         gl_RELOCATABLE_LIBRARY.
72983         (Makefile.am): Remove lib_SOURCES.
72984         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72985         always.
72986         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72987         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72988
72989 2007-03-04  Bruno Haible  <bruno@clisp.org>
72990
72991         * modules/argmatch-tests: New file.
72992         * tests/test-argmatch.c: New file.
72993
72994         * tests/test-allocsa.c (main): Halve the number of loop runs.
72995
72996         * modules/alloca-opt-tests: New file.
72997         * tests/test-alloca-opt.c: New file.
72998
72999 2007-03-04  Jim Meyering  <jim@meyering.net>
73000
73001         Work around difference between Linux ACLs and Solaris 10 ZFS.
73002         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73003         for EINVAL.
73004
73005 2007-03-03  Bruno Haible  <bruno@clisp.org>
73006
73007         * modules/relocatable-prog (Depends-on): Add back progreloc's
73008         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73009
73010 2007-03-03  Bruno Haible  <bruno@clisp.org>
73011
73012         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73013         * modules/relocatable-lib: New file.
73014
73015 2007-03-03  Bruno Haible  <bruno@clisp.org>
73016
73017         * modules/relocatable-prog: Renamed from modules/relocatable.
73018         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73019
73020 2007-03-03  Bruno Haible  <bruno@clisp.org>
73021
73022         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73023         m4/relocatable-lib.m4.
73024         (Depends-on): Remove 'relocatable'.
73025         (configure.ac): Add gl_RELOCATABLE_NOP.
73026
73027 2007-03-03  Bruno Haible  <bruno@clisp.org>
73028
73029         * modules/relocatable-prog-wrapper: New file.
73030         * modules/relocatable (Depends-on): Add it. Remove all other
73031         dependencies except progname.
73032         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73033
73034         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73035         (gl_FUNC_STRERROR): Nop.
73036         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73037
73038         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73039         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73040
73041         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73042         (gl_FUNC_READLINK): Update.
73043
73044         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73045
73046 2007-03-03  Bruno Haible  <bruno@clisp.org>
73047
73048         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73049         * modules/xreadlink (Depends-on): Add unistd.
73050         * modules/xreadlink-with-size (Depends-on): Likewise.
73051
73052 2007-03-03  Bruno Haible  <bruno@clisp.org>
73053
73054         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73055         extracted from gt_FUNC_SETENV.
73056         (gt_FUNC_SETENV): Remove macro.
73057         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73058         remove gt_FUNC_SETENV.
73059
73060 2007-03-03  Bruno Haible  <bruno@clisp.org>
73061
73062         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73063         ENABLE_RELOCATABLE here.
73064         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73065
73066 2007-03-03  Bruno Haible  <bruno@clisp.org>
73067
73068         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73069         * tests/test-rbtreehash_list.c: Include progname.h.
73070         (main): Call set_program_name.
73071
73072         * modules/rbtree-oset-tests (Depends-on): Add progname.
73073         * tests/test-rbtree_oset.c: Include progname.h.
73074         (main): Call set_program_name.
73075
73076         * modules/rbtree-list-tests (Depends-on): Add progname.
73077         * tests/test-rbtree_list.c: Include progname.h.
73078         (main): Call set_program_name.
73079
73080         * modules/linked-list-tests (Depends-on): Add progname.
73081         * tests/test-linked_list.c: Include progname.h.
73082         (main): Call set_program_name.
73083
73084 2007-03-03  Bruno Haible  <bruno@clisp.org>
73085
73086         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73087         All uses of __restrict changed to _Restrict_.
73088         * lib/glob_.h (__restrict): Remove macro.
73089
73090 2007-03-02  Bruno Haible  <bruno@clisp.org>
73091
73092         * modules/gettext (configure.ac): Require gettext infrastructure
73093         from version 0.16.1.
73094
73095 2007-03-02  Bruno Haible  <bruno@clisp.org>
73096
73097         * modules/linkedhash-list-tests (Depends-on): Add progname.
73098         * tests/test-linkedhash_list.c: Include progname.h.
73099         (main): Call set_program_name.
73100
73101         * modules/carray-list-tests (Depends-on): Add progname.
73102         * tests/test-carray_list.c: Include progname.h.
73103         (main): Call set_program_name.
73104
73105         * modules/avltreehash-list-tests (Depends-on): Add progname.
73106         * tests/test-avltreehash_list.c: Include progname.h.
73107         (main): Call set_program_name.
73108
73109         * modules/avltree-oset-tests (Depends-on): Add progname.
73110         * tests/test-avltree_oset.c: Include progname.h.
73111         (main): Call set_program_name.
73112
73113         * modules/avltree-list-tests (Depends-on): Add progname.
73114         * tests/test-avltree_list.c: Include progname.h.
73115         (main): Call set_program_name.
73116
73117         * modules/array-oset-tests (Depends-on): Add progname.
73118         * tests/test-array_oset.c: Include progname.h.
73119         (main): Call set_program_name.
73120
73121         * modules/array-list-tests (Depends-on): Add progname.
73122         * tests/test-array_list.c: Include progname.h.
73123         (main): Call set_program_name.
73124
73125         * modules/argp-tests (Depends-on): Add progname.
73126         * tests/test-argp.c: Include argp.h first. Include progname.h.
73127         (main): Call set_program_name.
73128
73129 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73130
73131         * doc/gnulib-tool.texi (Initial import): Reword description of
73132         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73133         limited effect even if defined after the first system include.
73134
73135 2007-03-01  Bruno Haible  <bruno@clisp.org>
73136
73137         * build-aux/config.libpath: Update to libtool-1.5.22.
73138         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73139
73140 2007-03-01  Bruno Haible  <bruno@clisp.org>
73141
73142         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73143         foo_CFLAGS.
73144         Reported by Ralf Wildenhues.
73145
73146 2007-03-01  Bruno Haible  <bruno@clisp.org>
73147
73148         * build-aux/install-reloc: Remove object files left over by some
73149         compilers.
73150         Reported by Ralf Wildenhues.
73151
73152 2007-03-01  Bruno Haible  <bruno@clisp.org>
73153
73154         * build-aux/install-reloc: Break long lines.
73155
73156 2007-03-01  Bruno Haible  <bruno@clisp.org>
73157
73158         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73159         Reported by Ralf Wildenhues.
73160
73161 2007-03-01  Bruno Haible  <bruno@clisp.org>
73162
73163         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73164         include ordering constraints.
73165
73166 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73167
73168         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73169         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73170         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73171         as another example.
73172         * lib/time_.h: Fix misspelling.
73173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73174         Require gl_HEADER_TIME_H_DEFAULTS.
73175         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73176         * m4/time_r.m4 (gl_TIME_R): Likewise.
73177         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73178
73179 2007-03-01  Bruno Haible  <bruno@clisp.org>
73180
73181         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73182         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73183
73184 2007-03-01  Jim Meyering  <jim@meyering.net>
73185
73186         * modules/xreadlink (Maintainer): Add my name.
73187         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73188
73189 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73190             Bruno Haible  <bruno@clisp.org>
73191
73192         * build-aux/install-reloc: Compile also c-ctype.c.
73193         * build-aux/relocatable.sh.in: New file.
73194         * doc/relocatable.texi: New file.
73195         * doc/relocatable-maint.texi: New file.
73196         * doc/gnulib.texi: Include relocatable-maint.texi.
73197         * lib/progreloc.c: Include unistd.h unconditionally.
73198         * lib/relocwrapper.c: Include unistd.h unconditionally.
73199         Include c-ctype.h.
73200         (add_dotbin): Use c_tolower.
73201         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73202         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73203         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73204         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73205         to m4/relocatable-lib.m4.
73206         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73207         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73208         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73209         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73210         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73211         * modules/relocatable: New file.
73212         * modules/relocatable-lib: New file.
73213         * modules/relocatable-script: New file.
73214
73215 2007-02-28  Bruno Haible  <bruno@clisp.org>
73216
73217         Import --enable-relocatable infrastructure.
73218         * build-aux/config.libpath: New file, from GNU gettext.
73219         * build-aux/install-reloc: New file, from GNU gettext.
73220         * build-aux/reloc-ldflags: New file, from GNU gettext.
73221         * lib/relocatable.h: New file, from GNU gettext.
73222         * lib/relocatable.c: New file, from GNU gettext.
73223         * lib/relocwrapper.c: New file, from GNU gettext.
73224         * m4/relocatable.m4: New file, from GNU gettext.
73225
73226 2007-02-28  Bruno Haible  <bruno@clisp.org>
73227
73228         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73229
73230         * modules/xreadlink: New file, from GNU gettext with modifications.
73231         * lib/xreadlink.c: New file, from GNU gettext.
73232         * lib/xreadlink.h: Add comments.
73233         (xreadlink): New declaration.
73234
73235         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73236         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73237         lib/xreadlink-with-size.c.
73238         (configure.ac): Remove gl_XREADLINK invocation.
73239         (Makefile.am): Augment lib_SOURCES.
73240         * m4/xreadlink.m4: Remove file.
73241         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73242         (xreadlink_with_size): Renamed from xreadink.
73243         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73244         * modules/canonicalize (Depends-on): Replace xreadlink with
73245         xreadlink-with-size.
73246         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73247
73248 2007-02-25  Jim Meyering  <jim@meyering.net>
73249
73250         * build-aux/announce-gen: When complaining about excess arguments,
73251         list them.
73252
73253 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73254
73255         * README: Document signed integer overflow situation more
73256         accurately.
73257
73258 2007-02-25  Bruno Haible  <bruno@clisp.org>
73259
73260         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73261         'a' or 'A' conversion.
73262
73263 2007-02-25  Bruno Haible  <bruno@clisp.org>
73264
73265         * modules/filename: Renamed from modules/pathname.
73266         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73267         lib/concatpath.c with lib/concat-filename.c.
73268         (Makefile.am): Update.
73269         (Include): Replace pathname.h with filename.h.
73270         * lib/filename.h: Renamed from lib/pathname.h.
73271         (concatenated_filename): Renamed from concatenated_pathname.
73272         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73273         (concatenated_filename): Renamed from concatenated_pathname.
73274         * lib/findprog.c: Include filename.h instead of pathname.h.
73275         (find_in_path): Update.
73276         * lib/javacomp.c: Include filename.h instead of pathname.h.
73277         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73278         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73279         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73280         is_oldgcj_14_13_usable, is_javac_usable): Update.
73281         * lib/javaexec.c: Include filename.h instead of pathname.h.
73282         (execute_java_class): Update.
73283         * modules/findprog: Update.
73284         * modules/javacomp: Update.
73285         * modules/javaexec: Update.
73286         * MODULES.html.sh (File system functions): Add 'filename', remove
73287         'pathname'.
73288
73289 2007-02-25  Bruno Haible  <bruno@clisp.org>
73290
73291         * modules/printf-frexpl-tests: New file.
73292         * tests/test-printf-frexpl.c: New file.
73293
73294         * modules/printf-frexpl: New file.
73295         * lib/printf-frexpl.h: New file.
73296         * lib/printf-frexpl.c: New file.
73297         * m4/printf-frexpl.m4: New file.
73298
73299 2007-02-25  Bruno Haible  <bruno@clisp.org>
73300
73301         * modules/printf-frexp-tests: New file.
73302         * tests/test-printf-frexp.c: New file.
73303
73304         * modules/printf-frexp: New file.
73305         * lib/printf-frexp.h: New file.
73306         * lib/printf-frexp.c: New file.
73307         * m4/printf-frexp.m4: New file.
73308
73309 2007-02-25  Bruno Haible  <bruno@clisp.org>
73310
73311         Assume automake >= 1.10 for the tests.
73312         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73313         * modules/arctwo-tests: Likewise.
73314         * modules/argp-tests: Likewise.
73315         * modules/avltree-list-tests: Likewise.
73316         * modules/avltree-oset-tests: Likewise.
73317         * modules/avltreehash-list-tests: Likewise.
73318         * modules/carray-list-tests: Likewise.
73319         * modules/crc-tests: Likewise.
73320         * modules/des-tests: Likewise.
73321         * modules/gc-arcfour-tests: Likewise.
73322         * modules/gc-arctwo-tests: Likewise.
73323         * modules/gc-des-tests: Likewise.
73324         * modules/gc-hmac-md5-tests: Likewise.
73325         * modules/gc-hmac-sha1-tests: Likewise.
73326         * modules/gc-md2-tests: Likewise.
73327         * modules/gc-md4-tests: Likewise.
73328         * modules/gc-md5-tests: Likewise.
73329         * modules/gc-pbkdf2-sha1-tests: Likewise.
73330         * modules/gc-rijndael-tests: Likewise.
73331         * modules/gc-sha1-tests: Likewise.
73332         * modules/gc-tests: Likewise.
73333         * modules/getaddrinfo-tests: Likewise.
73334         * modules/hmac-md5-tests: Likewise.
73335         * modules/hmac-sha1-tests: Likewise.
73336         * modules/linked-list-tests: Likewise.
73337         * modules/linkedhash-list-tests: Likewise.
73338         * modules/lock-tests: Likewise.
73339         * modules/md2-tests: Likewise.
73340         * modules/md4-tests: Likewise.
73341         * modules/md5-tests: Likewise.
73342         * modules/rbtree-list-tests: Likewise.
73343         * modules/rbtree-oset-tests: Likewise.
73344         * modules/rbtreehash-list-tests: Likewise.
73345         * modules/read-file-tests: Likewise.
73346         * modules/rijndael-tests: Likewise.
73347         * modules/stdint-tests: Likewise.
73348         * modules/tls-tests: Likewise.
73349
73350 2007-02-24  Bruno Haible  <bruno@clisp.org>
73351
73352         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73353         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73354         function; instead check whether isnan with a double argument links.
73355         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73356         function; instead check whether isnan with a 'long double' argument
73357         links.
73358         Reported by Eric Blake <ebb9@byu.net>.
73359
73360 2007-02-24  Bruno Haible  <bruno@clisp.org>
73361
73362         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73363         defined.
73364         * lib/isnanl.c: Remove all code. Just include isnan.c.
73365         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73366
73367 2007-02-25  Jim Meyering  <jim@meyering.net>
73368
73369         Avoid conflicting types for 'unsetenv' on FreeBSD.
73370         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73371         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73372         in stdlib.h.
73373
73374 2007-02-24  Bruno Haible  <bruno@clisp.org>
73375
73376         * modules/isnanl-nolibm-tests: New file.
73377         * tests/test-isnanl.c: New file.
73378
73379         * modules/isnanl-nolibm: New file.
73380         * lib/isnanl.h: New file.
73381         * lib/isnanl.c: New file.
73382         * m4/isnanl.m4: New file.
73383
73384 2007-02-24  Bruno Haible  <bruno@clisp.org>
73385
73386         * modules/isnan-nolibm-tests: New file.
73387         * tests/test-isnan.c: New file.
73388
73389         * modules/isnan-nolibm: New file.
73390         * lib/isnan.h: New file.
73391         * lib/isnan.c: New file.
73392         * m4/isnan.m4: New file.
73393
73394 2007-02-24  Bruno Haible  <bruno@clisp.org>
73395
73396         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73397         assume that an exponent fits in 20 bits.
73398
73399 2007-02-24  Jim Meyering  <jim@meyering.net>
73400
73401         * m4/regex.m4: Update the description of the configure-time option,
73402         --without-included-regex, to state accurately what the defaults are,
73403         and perhaps to give people an idea why using this option is risky.
73404
73405 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73408         loops on small arguments.  This attempts to avoid the problem
73409         Bruno Haible reported for AIX 4.3.2 in
73410         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73411
73412 2007-02-23  Bruno Haible  <bruno@clisp.org>
73413
73414         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73415         Needed for help2man.
73416
73417 2007-02-23  Karl Berry  <karl@gnu.org>
73418
73419         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73420         exists, foo.h should be cvs-ignored, not committed.
73421
73422 2007-02-23  Eric Blake  <ebb9@byu.net>
73423
73424         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73425         * lib/stat-time.h (includes): Likewise.
73426         * lib/utimecmp.c (includes): Likewise.
73427         * lib/utimens.h (includes): Likewise.
73428         * lib/getdate.y (includes): Also include "timespec.h" for use
73429         internal to the module.
73430         * modules/utimens (Depends-on): Revert yesterday's patch.
73431         * modules/nanosleep (Depends-on): Add missing dependency.
73432
73433 2007-02-22  Bruno Haible  <bruno@clisp.org>
73434
73435         * lib/glob.c: Don't include getlogin_r.h.
73436
73437 2007-02-22  Jim Meyering  <jim@meyering.net>
73438
73439         * modules/utimens (Depends-on): Add timespec, required for
73440         utimens.h's inclusion of timespec.h.
73441
73442 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73445         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73446         Schwab in
73447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73448         I'll try to think of a better way to fix the Solaris problem.
73449
73450         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73451         like glibc; on Solaris 10, it fails with errno == EINVAL.
73452         POSIX says the behavior is unspecified if the first argument is NULL,
73453         so play it safe and never pass NULL to the system getcwd.
73454
73455 2007-02-21  Jim Meyering  <jim@meyering.net>
73456
73457         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73458         of gettimeofday.  It would conflict with the one now always
73459         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73460         an IRIX 6.5 build failure.
73461
73462 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73463
73464         Minor fixups to port to Solaris 10 with Sun C 5.8.
73465         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73466         * modules/getcwd (Depends-on): Add dirfd.
73467         * lib/putenv.c (putenv): #undef it.
73468         (rpl_putenv): New decl.
73469         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73470
73471 2007-02-20  Bruno Haible  <bruno@clisp.org>
73472
73473         * modules/stdio-tests: New file.
73474         * tests/test-stdio.c: New file.
73475
73476         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73477         (Depends-on): Add stdio.
73478         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73479         (Include): Use <stdio.h> instead of vsnprintf.h.
73480         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73481         HAVE_DECL_VSNPRINTF.
73482         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73483
73484         * modules/snprintf (Files): Remove lib/snprintf.h.
73485         (Depends-on): Add stdio.
73486         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73487         (Include): Use <stdio.h> instead of snprintf.h.
73488         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73489         HAVE_DECL_SNPRINTF.
73490         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73491         * lib/getaddrinfo.c: Likewise.
73492
73493         * modules/stdio: New file.
73494         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73495         * lib/snprintf.h: Remove file.
73496         * lib/vsnprintf.h: Remove file.
73497         * lib/.cppi-disable: Remove snprintf.h.
73498         * m4/stdio_h.m4: New file.
73499         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73500
73501 2007-02-20  Jim Meyering  <jim@meyering.net>
73502
73503         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73504         used by e.g., mingw.  From Bruno Haible.
73505
73506 2007-02-19  Bruno Haible  <bruno@clisp.org>
73507
73508         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73509         warnings.
73510         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73511
73512 2007-02-19  Bruno Haible  <bruno@clisp.org>
73513
73514         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73515         from mingw users.
73516
73517 2007-02-19  Bruno Haible  <bruno@clisp.org>
73518
73519         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73520         warnings.
73521         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73522
73523 2007-02-19  Jim Meyering  <jim@meyering.net>
73524
73525         Don't use FD after a successful "fdopendir (fd)".
73526         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73527         Reset it by calling dirfd on the just-obtained DIR*.
73528
73529         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73530         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73531
73532 2007-02-18  Bruno Haible  <bruno@clisp.org>
73533
73534         * lib/readlink.c: Include <unistd.h>.
73535         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73536         HAVE_READLINK.
73537         * modules/readlink (Depends-on): Add unistd.
73538         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73539         (Include): Add <unistd.h>.
73540
73541         * lib/getlogin_r.h: Remove file.
73542         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73543         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73544         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73545         HAVE_DECL_GETLOGIN_R.
73546         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73547         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73548         (Include): Use <unistd.h> instead of getlogin_r.h.
73549
73550         * lib/getcwd.h: Remove file.
73551         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73552         * lib/xgetcwd.c: Likewise.
73553         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73554         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73555         * modules/getcwd (Files): Remove lib/getcwd.h.
73556         (Depends-on): Add unistd.
73557         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73558         (Include): Use <unistd.h> instad of getcwd.h.
73559
73560         * lib/ftruncate.c: Include <unistd.h> first.
73561         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73562         Set HAVE_FTRUNCATE.
73563         * modules/ftruncate (Depends-on): Add unistd.
73564         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73565
73566         * lib/fchdir.c: Include <unistd.h> first.
73567         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73568         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73569         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73570         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73571         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73572
73573         * lib/dup2.c: Include <unistd.h> first.
73574         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73575         HAVE_DUP2.
73576         * modules/dup2 (Depends-on): Add unistd.
73577         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73578
73579         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73580         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73581         REPLACE_CHOWN. Don't define chown as a macro here.
73582         * modules/chown (Depends-on): Add unistd.
73583         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73584
73585         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73586         Add definition for GL_LINK_WARNING.
73587         (chown, dup2): New declarations.
73588         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73589         link warning.
73590         (ftruncate): New declaration.
73591         (getcwd): New declaration, taken from old getcwd.h.
73592         (getlogin_r): New declaration, taken from old getlogin_r.h.
73593         (readlink): New declaration.
73594         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73595         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73596         (gl_PREREQ_UNISTD): Remove macro.
73597         (gl_UNISTD_MODULE_INDICATOR): New macro.
73598         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73599         many new variables. Don't set UNISTD_H.
73600         * modules/unistd (Description): Change.
73601         (Depends-on): Add link-warning.
73602         (configure.ac): Update.
73603         (Makefile.am): Create unistd.h always. Substitute many new variables
73604         into it.
73605
73606 2007-02-18  Bruno Haible  <bruno@clisp.org>
73607
73608         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73609         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73610         HAVE_GETSUBOPT.
73611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73612         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73613         * lib/getsubopt.h: Remove file.
73614         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73615         (Depends-on): Add stdlib.
73616         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73617         (Includes): Use <stdlib.h> instead of getsubopt.h.
73618         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73619         Set HAVE_GETSUBOPT.
73620         * lib/getsubopt.c: Don't include getsubopt.h.
73621
73622 2007-02-18  Bruno Haible  <bruno@clisp.org>
73623
73624         * modules/fchdir (Depends-on): Add dup2.
73625
73626 2007-02-18  Bruno Haible  <bruno@clisp.org>
73627
73628         * lib/stdlib_.h: Handle glibc's special invocation convention
73629         specially.
73630
73631 2007-02-18  Bruno Haible  <bruno@clisp.org>
73632
73633         * modules/stdlib-tests: New file.
73634         * tests/test-stdlib.c: New file.
73635
73636         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73637         (Depends-on): Add stdlib.
73638         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73639         (Includes): Use <stdlib.h> instead of mkstemp.h.
73640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73641         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73642         * lib/mkstemp.c: Don't include mkstemp.h.
73643         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73644         * lib/stdlib--.h: Don't include mkstemp.h.
73645
73646         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73647         (Depends-on): Add stdlib.
73648         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73649         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73650         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73651         HAVE_MKDTEMP.
73652         * lib/mkdtemp.c: Don't include mkdtemp.h.
73653         * lib/clean-temp.c: Don't include mkdtemp.h.
73654
73655         * modules/exit (Files): Remove lib/exit.h.
73656         (Depends-on): Add stdlib.
73657         (Makefile.am): Remove lib_SOURCES.
73658         (Include): Use <stdlib.h> instead of exit.h.
73659         * lib/argmatch.c: Don't include exit.h.
73660         * lib/execute.c: Likewise.
73661         * lib/pagealign_alloc.c: Likewise.
73662         * lib/pipe.c: Likewise.
73663         * lib/wait-process.c: Likewise.
73664         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73665         * lib/exitfail.c: Likewise.
73666         * lib/savewd.c: Likewise.
73667         * lib/xsetenv.c: Likewise.
73668
73669         * modules/stdlib: New file.
73670         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73671         and extra comments about mkstemp().
73672         * lib/exit.h: Remove file.
73673         * lib/mkdtemp.h: Remove file.
73674         * lib/mkstemp.h: Remove file.
73675         * m4/stdlib_h.m4: New file.
73676         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73677
73678 2007-02-18  Bruno Haible  <bruno@clisp.org>
73679
73680         * modules/math-tests: New file.
73681         * tests/test-math.c: New file.
73682
73683         * modules/math: New file.
73684         * modules/mathl (Files): Remove lib/mathl.h.
73685         (Depends-on): Add math.
73686         (Makefile.am): Don't mention mathl.h.
73687         (Include): Use <math.h> instead of mathl.h.
73688         * lib/math_.h: New file.
73689         * lib/mathl.h: Remove file.
73690         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73691         mathl.h.
73692         * lib/asinl.c: Likewise.
73693         * lib/atanl.c: Likewise.
73694         * lib/ceill.c: Likewise.
73695         * lib/cosl.c: Likewise.
73696         * lib/expl.c: Likewise.
73697         * lib/floorl.c: Likewise.
73698         * lib/frexpl.c: Likewise.
73699         * lib/ldexpl.c: Likewise.
73700         * lib/logl.c: Likewise.
73701         * lib/sincosl.c: Likewise.
73702         * lib/sinl.c: Likewise.
73703         * lib/sqrtl.c: Likewise.
73704         * lib/tanl.c: Likewise.
73705         * lib/trigl.c: Likewise.
73706         * m4/math_h.m4: New file.
73707         * MODULES.html.sh (Mathematics): Add math.
73708
73709 2007-02-17  Bruno Haible  <bruno@clisp.org>
73710
73711         * modules/wctype-tests: New file.
73712         * tests/test-wctype.c: New file.
73713
73714         * modules/wchar-tests: New file.
73715         * tests/test-wchar.c: New file.
73716
73717         * modules/unistd-tests: New file.
73718         * tests/test-unistd.c: New file.
73719
73720         * modules/time-tests: New file.
73721         * tests/test-time.c: New file.
73722
73723         * modules/sysexits-tests: New file.
73724         * tests/test-sysexits.c: New file.
73725
73726         * modules/sys_time-tests: New file.
73727         * tests/test-sys_time.c: New file.
73728
73729         * modules/sys_stat-tests: New file.
73730         * tests/test-sys_stat.c: New file.
73731
73732         * modules/sys_socket-tests: New file.
73733         * tests/test-sys_socket.c: New file.
73734
73735         * modules/sys_select-tests: New file.
73736         * tests/test-sys_select.c: New file.
73737
73738         * modules/string-tests: New file.
73739         * tests/test-string.c: New file.
73740
73741         * modules/stdbool-tests: New file.
73742         * tests/test-stdbool.c: New file.
73743
73744         * modules/netinet_in-tests: New file.
73745         * tests/test-netinet_in.c: New file.
73746
73747         * modules/inttypes-tests: New file.
73748         * tests/test-inttypes.c: New file.
73749
73750         * modules/fcntl-tests: New file.
73751         * tests/test-fcntl.c: New file.
73752
73753         * modules/byteswap-tests: New file.
73754         * tests/test-byteswap.c: New file.
73755
73756         * modules/arpa_inet-tests: New file.
73757         * tests/test-arpa_inet.c: New file.
73758
73759 2007-02-17  Bruno Haible  <bruno@clisp.org>
73760
73761         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73762         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73763         if the corresponding module is not enabled. Emit link warnings if
73764         the function is used nevertheless.
73765         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73766         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73767         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73768         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73769         * modules/inttypes (Depends-on): Add link-warning.
73770         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73771         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73772         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73773         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73774         * modules/imaxdiv (configure.ac): Likewise.
73775         * modules/strtoimax (configure.ac): Likewise.
73776         * modules/strtoumax (configure.ac): Likewise.
73777
73778 2007-02-17  Bruno Haible  <bruno@clisp.org>
73779
73780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73781         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73782         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73783         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73784
73785 2007-02-17  Bruno Haible  <bruno@clisp.org>
73786
73787         * modules/link-warning: New file.
73788         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73789         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73790         * modules/string (Depends-on): Add link-warning.
73791         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73792         string.h.
73793         * MODULES.html.sh (Support for building libraries and executables): Add
73794         link-warning.
73795
73796 2007-02-17  Bruno Haible  <bruno@clisp.org>
73797
73798         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
73799         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
73800         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
73801         long lines.
73802
73803 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
73804             Bruno Haible  <bruno@clisp.org>
73805
73806         * modules/tmpfile: New file.
73807         * lib/tmpfile.c: New file.
73808         * m4/tmpfile.m4: New file.
73809         * MODULES.html.sh (func_all_modules): New section "Input/output".
73810
73811 2007-02-15  Bruno Haible  <bruno@clisp.org>
73812
73813         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
73814         (supports_delete_on_close): New function.
73815         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
73816
73817 2007-02-14  Bruno Haible  <bruno@clisp.org>
73818
73819         * modules/mbspcasecmp-tests: New file.
73820         * tests/test-mbspcasecmp.sh: New file.
73821         * tests/test-mbspcasecmp.c: New file.
73822
73823         New module mbspcasecmp.
73824         * modules/mbspcasecmp: New file.
73825         * lib/mbspcasecmp.c: New file.
73826         * lib/string_.h (strncasecmp): Change warning message.
73827         (mbspcasecmp): New declaration.
73828         * m4/mbspcasecmp.m4: New file.
73829         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73830         GNULIB_MBSPCASECMP.
73831         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
73832         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
73833
73834 2007-02-14  Bruno Haible  <bruno@clisp.org>
73835
73836         * modules/mbsncasecmp-tests: New file.
73837         * tests/test-mbsncasecmp.sh: New file.
73838         * tests/test-mbsncasecmp.c: New file.
73839
73840         New module mbsncasecmp.
73841         * modules/mbsncasecmp: New file.
73842         * lib/mbsncasecmp.c: New file.
73843         * lib/string_.h (mbsncasecmp): New declaration.
73844         * m4/mbsncasecmp.m4: New file.
73845         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73846         GNULIB_MBSNCASECMP.
73847         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73848         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73849
73850 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73851
73852         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73853         Verify that it doesn't overlap with our flags.
73854         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73855         do not have the desired effect in multibyte locales; instead, use
73856         mbscasecmp.
73857         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73858         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73859         we don't require GNU fnmatch ourselves (if our users require it, they
73860         should do so explicitly).
73861
73862         Fix regex code so it doesn't rely on strcasecmp.
73863         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73864         Otherwise, include gnulib's langinfo.h.
73865         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73866         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73867         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73868         * modules/regex (FILES): Remove m4/codeset.m4.
73869         (Depends-on): Add localcharset.  Remove strcase.
73870
73871 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73872
73873         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73874         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73875
73876 2007-02-13  Bruno Haible  <bruno@clisp.org>
73877
73878         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73879         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73880
73881 2007-02-12  Bruno Haible  <bruno@clisp.org>
73882
73883         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73884         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73885         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73886         time warning rather than a link error.
73887
73888 2007-02-12  Bruno Haible  <bruno@clisp.org>
73889
73890         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73891         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73893
73894 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73895
73896         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73897         args, not 2.
73898
73899 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73900
73901         New module 'time', so that apps can include <time.h> as per
73902         POSIX and GNU instead of separate include files like time_r.h
73903         and timegm.h.  This implementation tries out a simpler approach
73904         for replacing decls in standard include files (as compared to
73905         the string module), somewhat as an experiment.
73906
73907         * config/srclist.txt: Comment out mktime.c for now.
73908         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73909         since it doesn't apply any more.  Use generic wording instead.
73910         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73911         'time'.
73912         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73913         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73914         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73915         Don't include <sys/types.h>; no longer needed since we assume C89.
73916         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73917         * lib/strftime.c: Likewise.
73918         * lib/time_r.c: Likewise.
73919         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73920         * lib/nanosleep.c: Include <time.h> first, to check interface.
73921         * lib/strptime.c: Likewise.
73922         * lib/time_r.c: Likewise.
73923         * lib/timegm.c: Likewise.
73924         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73925         needed.
73926         * lib/timegm.c: Don't include timegm.h; no longer needed.
73927         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73928         time.h now handles any problems in that area.
73929         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73930         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73931         that time.h defines struct timespec.
73932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73933         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73934         handles that.
73935         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73936         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73937         needed.  Set REPLACE_LOCALTIME.
73938         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73939         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73940         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73941         nanosleep; time_h.m4 now does that.  Don't require
73942         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73943         module handles this now.
73944         * modules/getdate (Depends-on): Remove timespec.  Add time.
73945         * modules/nanosleep (Depends-on): Likewise.
73946         * modules/stat-time (Depends-on): Likewise.
73947         * modules/nanosleep (Include): Include time.h, not timespec.h.
73948         * modules/strptime (Files): Remove lib/strptime.h.
73949         (Depends-on): Add extensions, time.
73950         (Include): Include time.h, not strptime.h.
73951         * modules/time_r (Files): Remove lib/time_r.h.
73952         (Depends-on): Add time.
73953         (Include): Include time.h, not time_r.h.
73954         * modules/timegm: Likewise.
73955         * modules/timespec (Description): Now does timespec-related decls
73956         of our own, instead of struct timespec itself.
73957         (Depends-on): Add time; remove extensions.
73958         (Maintainer): Add self.
73959         * modules/utimecmp (Depends-on): Add time; remove timespec.
73960         * modules/utimens (Depends-on): Likewise.
73961         * modules/xnanosleep (Depends-on): Likewise.
73962
73963 2007-02-11  Bruno Haible  <bruno@clisp.org>
73964
73965         * lib/c-strstr.c: Include allocsa.h.
73966         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73967         * lib/c-strcasestr.c: Include allocsa.h.
73968         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73969         * lib/strcasestr.c: Include allocsa.h.
73970         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73971         * lib/mbsstr.c: Include allocsa.h.
73972         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73973         allocsa/freesa instead of malloc/free.
73974         * lib/mbscasestr.c: Include allocsa.h.
73975         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73976         allocsa/freesa instead of malloc/free.
73977         * modules/c-strstr (Depends-on): Add allocsa.
73978         * modules/c-strcasestr (Depends-on): Likewise.
73979         * modules/strcasestr (Depends-on): Likewise.
73980         * modules/mbsstr (Depends-on): Likewise.
73981         * modules/mbscasestr (Depends-on): Likewise.
73982
73983 2007-02-11  Bruno Haible  <bruno@clisp.org>
73984
73985         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73986
73987         * modules/mbsspn-tests: New file.
73988         * tests/test-mbsspn.sh: New file.
73989         * tests/test-mbsspn.c: New file.
73990
73991 2007-02-11  Bruno Haible  <bruno@clisp.org>
73992
73993         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73994
73995         * modules/mbspbrk-tests: New file.
73996         * tests/test-mbspbrk.sh: New file.
73997         * tests/test-mbspbrk.c: New file.
73998
73999 2007-02-11  Bruno Haible  <bruno@clisp.org>
74000
74001         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74002         unneeded cast.
74003
74004         * modules/mbscspn-tests: New file.
74005         * tests/test-mbscspn.sh: New file.
74006         * tests/test-mbscspn.c: New file.
74007
74008 2007-02-11  Bruno Haible  <bruno@clisp.org>
74009
74010         * modules/mbscasecmp-tests: New file.
74011         * tests/test-mbscasecmp.sh: New file.
74012         * tests/test-mbscasecmp.c: New file.
74013
74014 2007-02-11  Bruno Haible  <bruno@clisp.org>
74015
74016         Ensure O(n) worst-case complexity of mbscasestr.
74017         * lib/mbscasestr.c: Include stdbool.h.
74018         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74019         functions.
74020         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74021         the bookkeeping indicates that it's worth it.
74022         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74023
74024         * modules/mbscasestr-tests: New file.
74025         * tests/test-mbscasestr1.c: New file.
74026         * tests/test-mbscasestr2.sh: New file.
74027         * tests/test-mbscasestr2.c: New file.
74028         * tests/test-mbscasestr3.sh: New file.
74029         * tests/test-mbscasestr3.c: New file.
74030         * tests/test-mbscasestr4.sh: New file.
74031         * tests/test-mbscasestr4.c: New file.
74032         * m4/locale-tr.m4: New file.
74033
74034 2007-02-11  Bruno Haible  <bruno@clisp.org>
74035
74036         Ensure O(n) worst-case complexity of mbsstr.
74037         * lib/mbsstr.c: Include stdbool.h.
74038         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74039         functions.
74040         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74041         bookkeeping indicates that it's worth it.
74042         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74043
74044         * modules/mbsstr-tests: New file.
74045         * tests/test-mbsstr1.c: New file.
74046         * tests/test-mbsstr2.sh: New file.
74047         * tests/test-mbsstr2.c: New file.
74048         * tests/test-mbsstr3.sh: New file.
74049         * tests/test-mbsstr3.c: New file.
74050         * m4/locale-fr.m4: New file.
74051
74052 2007-02-11  Bruno Haible  <bruno@clisp.org>
74053
74054         * lib/mbsrchr.c (mbsrchr): Fix bug.
74055
74056         * modules/mbsrchr-tests: New file.
74057         * tests/test-mbsrchr.sh: New file.
74058         * tests/test-mbsrchr.c: New file.
74059
74060 2007-02-11  Bruno Haible  <bruno@clisp.org>
74061
74062         * lib/mbschr.c (mbschr): Fix bug.
74063
74064         * modules/mbschr-tests: New file.
74065         * tests/test-mbschr.sh: New file.
74066         * tests/test-mbschr.c: New file.
74067         * m4/locale-zh.m4: New file.
74068
74069 2007-02-11  Bruno Haible  <bruno@clisp.org>
74070
74071         Support for copying multibyte string iterators.
74072         * lib/mbiter.h: Include <string.h>.
74073         (mbiter_multi_copy): New function.
74074         (mbi_copy): New macro.
74075         * lib/mbuiter.h: Include <string.h>.
74076         (mbuiter_multi_copy): New function.
74077         (mbui_copy): New macro.
74078
74079 2007-02-11  Bruno Haible  <bruno@clisp.org>
74080
74081         New module mbslen.
74082         * modules/mbslen: New file.
74083         * lib/mbslen.c: New file.
74084         * lib/string_.h (mbslen): New declaration.
74085         * m4/mbslen.m4: New file.
74086         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74087         GNULIB_MBSLEN.
74088         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74089         * MODULES.html.sh (Internationalization functions): Add mbslen.
74090
74091 2007-02-11  Bruno Haible  <bruno@clisp.org>
74092
74093         Ensure O(n) worst-case complexity of strcasestr substitute.
74094         * lib/strcasestr.c: Include stdbool.h.
74095         (knuth_morris_pratt): New function.
74096         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74097         bookkeeping indicates that it's worth it.
74098         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74099
74100         * modules/strcasestr-tests: New file.
74101         * tests/test-strcasestr.c: New file.
74102
74103 2007-02-11  Bruno Haible  <bruno@clisp.org>
74104
74105         Ensure O(n) worst-case complexity of c_strcasestr.
74106         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74107         (knuth_morris_pratt): New function.
74108         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74109         the bookkeeping indicates that it's worth it.
74110         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74111
74112         * modules/c-strcasestr-tests: New file.
74113         * tests/test-c-strcasestr.c: New file.
74114
74115 2007-02-11  Bruno Haible  <bruno@clisp.org>
74116
74117         Ensure O(n) worst-case complexity of c_strstr.
74118         * lib/c-strstr.c: Include stdbool.h, string.h.
74119         (knuth_morris_pratt): New function.
74120         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74121         bookkeeping indicates that it's worth it.
74122         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74123
74124         * lib/c-strstr.c: Complete rewrite for maintainability.
74125
74126         * modules/c-strstr-tests: New file.
74127         * tests/test-c-strstr.c: New file.
74128
74129 2007-02-11  Bruno Haible  <bruno@clisp.org>
74130
74131         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74132         5.2.1 and earlier, whereby \055 was treated just like the range
74133         delimiter '-'.
74134         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74135
74136 2007-02-08  Bruno Haible  <bruno@clisp.org>
74137
74138         * modules/regex (Depends-on): Add stdbool.
74139         Reported by Dalibor Topic <robilad@kaffe.org>.
74140
74141 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74142
74143         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74144         Prefer returning from main to exiting from it.
74145         Remove unnecessary parens after sizeof.
74146
74147 2007-02-05  Bruno Haible  <bruno@clisp.org>
74148
74149         New module mbssep.
74150         * modules/mbssep: New file.
74151         * lib/mbssep.c: New file.
74152         * lib/string_.h (strsep): Add a conditional link warning.
74153         (mbssep): New declaration.
74154         * m4/mbssep.m4: New file.
74155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74156         GNULIB_MBSSEP.
74157         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74158         * MODULES.html.sh (Internationalization functions): Add mbssep.
74159
74160 2007-02-05  Bruno Haible  <bruno@clisp.org>
74161
74162         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74163         Optimize search in case of 1 delimiter.
74164
74165 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74166
74167         * lib/acl.h: Include sys/types.h before sys/acl.h.
74168
74169 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74170
74171         Merge upstream fix for glibc bugzilla #3957:
74172
74173         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74174
74175         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74176         bit for RE_HAT_LISTS_NOT_NEWLINE.
74177         (build_charclass_op): Remove bogus comment.
74178
74179 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74180
74181         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74182
74183 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74184
74185         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74186         * lib/memmem.c [!defined _LIBC]: Include config.h.
74187
74188 2007-02-04  Bruno Haible  <bruno@clisp.org>
74189
74190         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74191         warning message.
74192
74193 2007-02-04  Bruno Haible  <bruno@clisp.org>
74194
74195         New module mbstok_r.
74196         * modules/mbstok_r: New file.
74197         * lib/mbstok_r.c: New file.
74198         * lib/string_.h (strtok_r): Change argument names to match the
74199         comments. Add a conditional link warning.
74200         (mbstok_r): New declaration.
74201         * m4/mbstok_r.m4: New file.
74202         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74203         GNULIB_MBSTOK_R.
74204         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74205         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74206
74207 2007-02-04  Bruno Haible  <bruno@clisp.org>
74208
74209         New module mbsspn.
74210         * modules/mbsspn: New file.
74211         * lib/mbsspn.c: New file.
74212         * lib/string_.h (strspn): Add a conditional link warning.
74213         (mbsspn): New declaration.
74214         * m4/mbsspn.m4: New file.
74215         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74216         GNULIB_MBSSPN.
74217         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74218         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74219
74220 2007-02-04  Bruno Haible  <bruno@clisp.org>
74221
74222         New module mbspbrk.
74223         * modules/mbspbrk: New file.
74224         * lib/mbspbrk.c: New file.
74225         * lib/string_.h (strpbrk): Add a conditional link warning.
74226         (mbspbrk): New declaration.
74227         * m4/mbspbrk.m4: New file.
74228         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74229         GNULIB_MBSPBRK.
74230         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74231         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74232
74233 2007-02-04  Bruno Haible  <bruno@clisp.org>
74234
74235         New module mbscspn.
74236         * modules/mbscspn: New file.
74237         * lib/mbscspn.c: New file.
74238         * lib/string_.h (strcspn): Add a conditional link warning.
74239         (mbscspn): New declaration.
74240         * m4/mbscspn.m4: New file.
74241         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74242         GNULIB_MBSCSPN.
74243         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74244         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74245
74246 2007-02-04  Bruno Haible  <bruno@clisp.org>
74247
74248         New module mbscasestr, reduced goal of strcasestr.
74249         * modules/mbscasestr: New file.
74250         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74251         (mbscasestr): Renamed from strcasestr.
74252         * lib/strcasestr.c: Don't include mbuiter.h.
74253         (strcasestr): Remove support for multibyte locales.
74254         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74255         Change the conditional link warning.
74256         (mbscasestr): New declaration.
74257         * m4/mbscasestr.m4: New file.
74258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74259         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74260         REPLACE_STRCASESTR.
74261         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74263         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74264         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74265         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74266         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74267         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74268         (Depends-on): Remove mbuiter.
74269         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74270
74271 2007-02-04  Bruno Haible  <bruno@clisp.org>
74272
74273         Simplify handling of strncasecmp.
74274         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74275         the conditional link warning.
74276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74277         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74278         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74279         * modules/strcase (configure.ac): Don't invoke
74280         gl_STRING_MODULE_INDICATOR.
74281         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74282
74283 2007-02-04  Bruno Haible  <bruno@clisp.org>
74284
74285         New module mbscasecmp, reduced goal of strcasecmp.
74286         * modules/mbscasecmp: New file.
74287         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74288         (mbscasecmp): Renamed from strcasecmp.
74289         * lib/strcasecmp.c: Don't include mbuiter.h.
74290         (strcasecmp): Remove support for multibyte locales.
74291         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74292         Change the conditional link warning.
74293         (mbscasecmp): New declaration.
74294         * m4/mbscasecmp.m4: New file.
74295         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74296         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74297         REPLACE_STRCASECMP.
74298         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74300         GNULIB_MBSCASECMP.
74301         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74302         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74303         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74304         (Depends-on): Remove mbuiter.
74305         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74306
74307 2007-02-04  Bruno Haible  <bruno@clisp.org>
74308
74309         New module mbsstr. Remove module strstr.
74310         * modules/mbsstr: New file.
74311         * modules/strstr: Remove file.
74312         * lib/mbsstr.c: Renamed from lib/strstr.c.
74313         (mbsstr): Renamed from strstr.
74314         * lib/string_.h (strstr): Remove declaration. Change the conditional
74315         link warning.
74316         (mbsstr): New declaration.
74317         * m4/mbsstr.m4: New file.
74318         * m4/strstr.m4: Remove file.
74319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74320         REPLACE_STRSTR.
74321         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74322         Don't initialize GNULIB_STRSTR.
74323         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74324         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74325         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74326         (Support for systems lacking ANSI C 89): Remove strstr.
74327
74328 2007-02-04  Bruno Haible  <bruno@clisp.org>
74329
74330         New module mbsrchr.
74331         * modules/mbsrchr: New file.
74332         * lib/mbsrchr.c: New file.
74333         * lib/string_.h (strrchr): Add a conditional link warning.
74334         (mbsrchr): New declaration.
74335         * m4/mbsrchr.m4: New file.
74336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74337         GNULIB_MBSRCHR.
74338         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74339         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74340
74341 2007-02-04  Bruno Haible  <bruno@clisp.org>
74342
74343         New module mbschr.
74344         * modules/mbschr: New file.
74345         * lib/mbschr.c: New file.
74346         * lib/string_.h (strchr): Add a conditional link warning.
74347         (mbschr): New declaration.
74348         * m4/mbschr.m4: New file.
74349         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74350         GNULIB_MBSCHR.
74351         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74352         * MODULES.html.sh (Internationalization functions): Add mbschr.
74353
74354 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74355
74356         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74357
74358         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74359
74360 2007-02-04  Bruno Haible  <bruno@clisp.org>
74361
74362         New module description section 'configure.ac-early'.
74363         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74364         (func_get_autoconf_early_snippet): New function.
74365         (func_import, func_create_testdir): Use it. Remove special cases for
74366         modules 'extensions' and 'lock'.
74367         * modules/extensions (configure.ac-early): Require
74368         gl_USE_SYSTEM_EXTENSIONS.
74369         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74370
74371 2007-02-04  Bruno Haible  <bruno@clisp.org>
74372
74373         Make use of gcj-4.3's -fsource and -ftarget option.
74374         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74375         and if so try the options -fsource and -ftarget.
74376         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74377         source_version, ftarget_option, target_version arguments.
74378         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74379         (is_envjavac_oldgcj_14_14_usable): Renamed from
74380         is_envjavac_gcj_14_14_usable.
74381         (is_envjavac_oldgcj_14_13_usable): Renamed from
74382         is_envjavac_gcj_14_13_usable.
74383         (is_gcj_present): Update.
74384         (is_gcj_43, is_gcj43_usable): New functions.
74385         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74386         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74387         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74388         try the options -fsource and -ftarget.
74389
74390 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74391
74392         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74393         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74394         larger value.
74395
74396 2007-02-03  Jim Meyering  <jim@meyering.net>
74397
74398         Give tools a better chance to allocate space for very large buffers.
74399         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74400
74401         Make pwd and readlink work also when run with an unreadable parent dir
74402         on systems with openat support.
74403         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74404         provided getcwd function, even when we have openat support.
74405         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74406
74407 2007-02-02  Bruno Haible  <bruno@clisp.org>
74408
74409         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74410         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74411         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74412         portability problems if one of these functions is only used on specific
74413         platforms.
74414         Reported by Paul Eggert.
74415
74416 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74417
74418         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74419         is causing more trouble than it's curing.
74420         * lib/regex_internal.h (__mempcpy): Remove.
74421         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74422         (and make the code a tad smaller to boot).
74423         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74424
74425 2007-02-02  Jim Meyering  <jim@meyering.net>
74426
74427         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74428         section, not in the Makefile.am: one.
74429
74430 2007-02-02  Eric Blake  <ebb9@byu.net>
74431
74432         * lib/strchrnul.c: Always include config.h first.
74433
74434         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74435         gnulib strstr is not necessary here.
74436
74437 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74438
74439         * m4/socklen.m4: Fix typo.
74440
74441 2007-02-02  Eric Blake  <ebb9@byu.net>
74442
74443         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74444         * modules/netinet_in (Makefile.am): Likewise.
74445
74446 2007-02-01  Bruno Haible  <bruno@clisp.org>
74447
74448         * lib/string_.h (GL_LINK_WARNING): New macro.
74449         (strcasecmp, strstr, strcasestr): If provided by the system,
74450         conditionally define as a macro that leads to a warning instead of to
74451         an error.
74452         (strncasecmp): Conditionally define as a macro that leads to a warning.
74453
74454 2007-02-01  Karl Berry  <karl@gnu.org>
74455
74456         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74457
74458 2007-02-01  Bruno Haible  <bruno@clisp.org>
74459
74460         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74461         renamings.
74462
74463 2007-02-01  Eric Blake  <ebb9@byu.net>
74464
74465         * modules/regex (Depends-on): Revert dependence on mempcpy.
74466         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74467         module's definition of mempcpy.
74468         Reported by Paul Eggert.
74469
74470 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74471
74472         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74473         the symbol XYZ before redefining it.  This fixes a problem with
74474         programs that don't use XYZ, when compiled on systems that define
74475         XYZ to something else.
74476
74477 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74478
74479         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74480         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74481         writeable to group or other and (2) is intended to have a special
74482         mode bit that is set or cleared.  In such a case, the directory
74483         should be neither group- nor other-writeable until the special
74484         mode bits are right.
74485
74486 2007-01-31  Eric Blake  <ebb9@byu.net>
74487
74488         * modules/mountlist (Depends-on): Add strstr.
74489
74490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74491         bug.
74492         * modules/string (Makefile.am): Remove redundant replacement.
74493         * modules/regex (Depends-on): Add mempcpy.
74494
74495 2007-01-31  Bruno Haible  <bruno@clisp.org>
74496
74497         New module description field 'Link'.
74498         * gnulib-tool (func_usage): Document --extract-link-directive.
74499         (sed_extract_prog): Recognize 'Link' directive.
74500         (func_get_link_directive): New function.
74501         (func_import): Show summary of link directives.
74502         Handle --extract-link-directive option.
74503         * modules/acl (Link): New section.
74504         * modules/clock-time (Link): New section.
74505         * modules/euidaccess (Link): New section.
74506         * modules/gettext (Link): New section.
74507         * modules/iconv (Link): New section.
74508         * modules/lock (Link): New section.
74509         * modules/nanosleep (Link): New section.
74510         * modules/readline (Link): New section.
74511
74512 2007-01-27  Bruno Haible  <bruno@clisp.org>
74513
74514         Enforce the use of gnulib modules for unportable <string.h> functions.
74515         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74516         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74517         (gl_HEADER_STRING_H_BODY): Require it.
74518         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74519         the symbol XYZ to one that gives a link error.
74520         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74521         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74522         * modules/mempcpy (configure.ac): Likewise.
74523         * modules/memrchr (configure.ac): Likewise.
74524         * modules/stpcpy (configure.ac): Likewise.
74525         * modules/stpncpy (configure.ac): Likewise.
74526         * modules/strcase (configure.ac): Likewise.
74527         * modules/strcasestr (configure.ac): Likewise.
74528         * modules/strchrnul (configure.ac): Likewise.
74529         * modules/strdup (configure.ac): Likewise.
74530         * modules/strndup (configure.ac): Likewise.
74531         * modules/strnlen (configure.ac): Likewise.
74532         * modules/strpbrk (configure.ac): Likewise.
74533         * modules/strsep (configure.ac): Likewise.
74534         * modules/strstr (configure.ac): Likewise.
74535         * modules/strtok_r (configure.ac): Likewise.
74536
74537 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74538
74539         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74540
74541 2007-01-30  Jim Meyering  <jim@meyering.net>
74542
74543         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74544
74545 2007-01-29  Bruno Haible  <bruno@clisp.org>
74546
74547         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74548         * lib/execute.c: Likewise.
74549         * lib/pipe.c: Likewise.
74550         * lib/printf-args.h: Likewise.
74551         * lib/printf-args.c: Likewise.
74552         * lib/printf-parse.c: Likewise.
74553         * lib/vasnprintf.c: Likewise.
74554
74555 2007-01-29  Eric Blake  <ebb9@byu.net>
74556
74557         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74558         declaration.
74559
74560 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74561
74562         * lib/strptime.h (strptime): Use 'restrict' for args where
74563         POSIX requires this.
74564         * lib/strptime.c (strptime): Likewise.
74565         Change license notice from LGPL to GPL, since gnulib-tool will
74566         change this as needed.
74567         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74568         defined.
74569         Include "strptime.h" first, to check interface.
74570         Do not #undef _LIBC and _NL_CURRENT.
74571         Do not include <stdlib.h>; no longer needed.
74572         Include "time_r.h" and declare ptime_locale_status
74573         only if _LIBC is not defined.
74574         (__P): Remove unused macro.
74575         (match_string): Bring back glibc version, but use it only if _LIBC
74576         is defined.
74577         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74578         Remove unnecessary assertion and abort() call.
74579         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74580         * m4/strptime.m4: Fix serial number comment.
74581         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74582         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74583         (Depends-on): Add time_r.
74584
74585 2007-01-29  Bruno Haible  <bruno@clisp.org>
74586
74587         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74588         strptime.
74589         * modules/strptime (Depends-on): Add stdbool.
74590         * lib/strptime.h: Include <time.h> always. Add comments.
74591
74592 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74593
74594         * modules/strptime: New file.
74595         * lib/strptime.h: New file.
74596         * lib/strptime.c: New file.
74597         * m4/strptime.m4: New file.
74598
74599 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74600
74601         * MODULES.html.sh: New module mpsort.
74602         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74603
74604         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74605         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74606         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74607         All uses changed.
74608         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74609         All uses changed.
74610         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74611         to _Restrict_.
74612         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74613         the parameter matches the prototype.
74614
74615 2007-01-28  Jim Meyering  <jim@meyering.net>
74616
74617         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74618         sys/time.h here, reverting that part of the previous patch:
74619         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74620
74621 2007-01-28  Bruno Haible  <bruno@clisp.org>
74622
74623         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74624         value of $(SYS_TIME_H).
74625         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74626         remove it conditionally, too. [added by Jim Meyering]
74627         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74628         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74629         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74630         GETTIMEOFDAY_REPLACEMENT to 1.
74631
74632 2007-01-28  Bruno Haible  <bruno@clisp.org>
74633
74634         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74635         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74636         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74637         Set UNISTD_H instead of UNISTD_H2.
74638         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74639
74640 2007-01-28  Bruno Haible  <bruno@clisp.org>
74641
74642         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74643         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74644
74645 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74646
74647         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74648         (func_create_testdir): Ensure C locale for `grep' and `tr'
74649         character ranges.
74650         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74651         ACLOCAL_AMFLAGS parsing state machine.
74652
74653 2007-01-27  Bruno Haible  <bruno@clisp.org>
74654
74655         * modules/unistr/base: Update.
74656
74657 2007-01-27  Bruno Haible  <bruno@clisp.org>
74658
74659         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74660         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74661         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74662         modules/unistr/u32-mbtouc.
74663         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74664         * lib/unistr.h: Update.
74665         * lib/linebreak.c: Update.
74666         * modules/unistr/u32-mbtouc: Renamed from
74667         modules/unistr/u32-mbtouc-safe.
74668         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74669         * lib/unistr.h: Update.
74670         * lib/unistr/u32-to-u8.c: Update.
74671         * lib/unistr/u32-to-u16.c: Update.
74672
74673 2007-01-27  Bruno Haible  <bruno@clisp.org>
74674
74675         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74676         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74677         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74678         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74679         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74680         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74681         modules/unistr/u16-mbtouc.
74682         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74683         * lib/unistr.h: Update.
74684         * lib/linebreak.c: Update.
74685         * modules/linebreak: Update.
74686         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74687         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74688         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74689         * modules/unistr/u16-mbtouc: Renamed from
74690         modules/unistr/u16-mbtouc-safe.
74691         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74692         * lib/unistr.h: Update.
74693         * lib/unistr/u16-to-u8.c: Update.
74694         * modules/unistr/u16-to-u8: Update.
74695         * lib/unistr/u16-to-u32.c: Update.
74696         * modules/unistr/u16-to-u32: Update.
74697
74698 2007-01-27  Bruno Haible  <bruno@clisp.org>
74699
74700         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74701         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74702         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74703         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74704         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74705         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74706         modules/unistr/u8-mbtouc.
74707         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74708         * lib/unistr.h: Update.
74709         * lib/striconveh.c: Update.
74710         * modules/striconveh: Update.
74711         * lib/linebreak.c: Update.
74712         * modules/linebreak: Update.
74713         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74714         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74715         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74716         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74717         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74718         * lib/unistr.h: Update.
74719         * lib/striconveh.c: Update.
74720         * modules/striconveh: Update.
74721         * lib/unistr/u8-to-u16.c: Update.
74722         * modules/unistr/u8-to-u16: Update.
74723         * lib/unistr/u8-to-u32.c: Update.
74724         * modules/unistr/u8-to-u32: Update.
74725
74726 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74727
74728         Sync from Libtool.
74729         * lib/argz.c: Do not include strings.h nor memory.h, include
74730         string.h unconditionally.  Patch by Simon Josefsson.
74731
74732 2007-01-27  Bruno Haible  <bruno@clisp.org>
74733
74734         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74735         from gl_HEADER_STRING_H_BODY.
74736         (gl_HEADER_STRING_H_BODY): Require it.
74737         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74738         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74739         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74740         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74741         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74742         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74743         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74744         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74745         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74746         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74747         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74748         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74749         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74750         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74751         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74752
74753 2007-01-27  Bruno Haible  <bruno@clisp.org>
74754
74755         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74756         check_PROGRAMS into noinst_PROGRAMS.
74757         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74758         check_PROGRAMS in this case.
74759         (func_import): Set for_test to false.
74760         (func_create_testdir): Set for_test to true.
74761
74762 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74763             Bruno Haible  <bruno@clisp.org>
74764
74765         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74766         (Depends-on): Add string.
74767         (Includes): Use <string.h> instead of strcasestr.h.
74768         * modules/string (Makefile.am): Also substitute the value of
74769         REPLACE_STRCASESTR.
74770         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74771         assume strcasestr is declared in <string.h> not <strings.h>. Also
74772         set REPLACE_STRCASESTR.
74773         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74774         REPLACE_STRCASESTR.
74775         * lib/strcasestr.h: Remove file.
74776         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74777         * lib/string_.h (strcasestr): New declaration.
74778
74779 2007-01-27  Bruno Haible  <bruno@clisp.org>
74780
74781         * lib/string_.h: Use 'extern'.
74782
74783 2007-01-27  Jim Meyering  <jim@meyering.net>
74784
74785         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74786         of set-but-not-used local, "q".
74787
74788         * lib/mempcpy.c: Include <config.h> before <string.h>.
74789         This fixes a compilation error on HP-UX, due to the system's
74790         "restrict"-using mempcpy prototype.
74791
74792 2007-01-26  Bruno Haible  <bruno@clisp.org>
74793
74794         Small optimization.
74795         * lib/javacomp.c: Include c-strstr.h.
74796          (is_envjavac_gcj): Use c_strstr instead of strstr.
74797         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
74798
74799 2007-01-26  Bruno Haible  <bruno@clisp.org>
74800
74801         * MODULES.html.sh (Unicode string functions): Add the new modules.
74802
74803         * modules/uniconv/u32-strconv-to-locale: New file.
74804         * lib/uniconv/u32-strconv-to-locale.c: New file.
74805
74806         * modules/uniconv/u16-strconv-to-locale: New file.
74807         * lib/uniconv/u16-strconv-to-locale.c: New file.
74808
74809         * modules/uniconv/u8-strconv-to-locale: New file.
74810         * lib/uniconv/u8-strconv-to-locale.c: New file.
74811
74812         * modules/uniconv/u32-strconv-from-locale: New file.
74813         * lib/uniconv/u32-strconv-from-locale.c: New file.
74814
74815         * modules/uniconv/u16-strconv-from-locale: New file.
74816         * lib/uniconv/u16-strconv-from-locale.c: New file.
74817
74818         * modules/uniconv/u8-strconv-from-locale: New file.
74819         * lib/uniconv/u8-strconv-from-locale.c: New file.
74820
74821         * modules/uniconv/u32-strconv-to-enc: New file.
74822         * lib/uniconv/u32-strconv-to-enc.c: New file.
74823         * modules/uniconv/u32-strconv-to-enc-tests: New file.
74824         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
74825
74826         * modules/uniconv/u16-strconv-to-enc: New file.
74827         * lib/uniconv/u16-strconv-to-enc.c: New file.
74828         * lib/uniconv/u-strconv-to-enc.h: New file.
74829         * modules/uniconv/u16-strconv-to-enc-tests: New file.
74830         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
74831
74832         * modules/uniconv/u8-strconv-to-enc: New file.
74833         * lib/uniconv/u8-strconv-to-enc.c: New file.
74834         * modules/uniconv/u8-strconv-to-enc-tests: New file.
74835         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
74836
74837         * modules/uniconv/u32-strconv-from-enc: New file.
74838         * lib/uniconv/u32-strconv-from-enc.c: New file.
74839         * modules/uniconv/u32-strconv-from-enc-tests: New file.
74840         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
74841
74842         * modules/uniconv/u16-strconv-from-enc: New file.
74843         * lib/uniconv/u16-strconv-from-enc.c: New file.
74844         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74845         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74846
74847         * modules/uniconv/u8-strconv-from-enc: New file.
74848         * lib/uniconv/u8-strconv-from-enc.c: New file.
74849         * lib/uniconv/u-strconv-from-enc.h: New file.
74850         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74851         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74852
74853         * modules/uniconv/u32-conv-from-enc: New file.
74854         * lib/uniconv/u32-conv-from-enc.c: New file.
74855         * modules/uniconv/u32-conv-from-enc-tests: New file.
74856         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74857
74858         * modules/uniconv/u16-conv-from-enc: New file.
74859         * lib/uniconv/u16-conv-from-enc.c: New file.
74860         * lib/uniconv/u-conv-from-enc.h: New file.
74861         * modules/uniconv/u16-conv-from-enc-tests: New file.
74862         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74863
74864         * modules/uniconv/u8-conv-from-enc: New file.
74865         * lib/uniconv/u8-conv-from-enc.c: New file.
74866         * modules/uniconv/u8-conv-from-enc-tests: New file.
74867         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74868
74869         * modules/uniconv/base: New file.
74870         * lib/uniconv.h: New file.
74871
74872 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74873
74874         * doc/gnulib-tool.texi (Initial import): Update to match current
74875         behavior with strdup module.
74876         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74877         * lib/memmem.h: Remove; all uses removed.  This is now done
74878         by <string.h>.
74879         * lib/mempcpy.h: Likewise.
74880         * lib/memrchr.h: Likewise.
74881         * lib/stpcpy.h: Likewise.
74882         * lib/stpncpy.h: Likewise.
74883         * lib/strcase.h: Likewise.
74884         * lib/strchrnul.h: Likewise.
74885         * lib/strdup.h: Likewise.
74886         * lib/strndup.h: Likewise.
74887         * lib/strnlen.h: Likewise.
74888         * lib/strpbrk.h: Likewise.
74889         * lib/strsep.h: Likewise.
74890         * lib/strstr.h: Likewise.
74891         * lib/strtok_r.h: Likewise.
74892         * lib/string_.h: New file.
74893         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74894         Rely on <string.h> instead.
74895         * lib/canon-host.c: Likewise.
74896         * lib/chdir-long.c: Likewise.
74897         * lib/concatpath.c: Likewise.
74898         * lib/exclude.c: Likewise.
74899         * lib/fchdir.c: Likewise.
74900         * lib/getaddrinfo.c: Likewise.
74901         * lib/getcwd.c: Likewise.
74902         * lib/getsubopt.c: Likewise.
74903         * lib/glob.c: Likewise.
74904         * lib/hard-locale.c: Likewise.
74905         * lib/iconvme.c: Likewise.
74906         * lib/javacomp.c: Likewise.
74907         * lib/mempcpy.c: Likewise.
74908         * lib/memrchr.c: Likewise.
74909         * lib/regex_internal.h: Likewise.
74910         * lib/stpncpy.c: Likewise.
74911         * lib/strcasecmp.c: Likewise.
74912         * lib/strchrnul.c: Likewise.
74913         * lib/strdup.c: Likewise.
74914         * lib/striconv.c: Likewise.
74915         * lib/striconveh.c: Likewise.
74916         * lib/striconveha.c: Likewise.
74917         * lib/strncasecmp.c: Likewise.
74918         * lib/strndup.c: Likewise.
74919         * lib/strnlen.c: Likewise.
74920         * lib/strsep.c: Likewise.
74921         * lib/strstr.c: Likewise.
74922         * lib/strtok_r.c: Likewise.
74923         * lib/userspec.c: Likewise.
74924         * lib/w32spawn.h: Likewise.
74925         * lib/xstrndup.c: Likewise.
74926         * lib/mountlist.c (strstr): Remove decl.
74927         * m4/string_h.m4: New file.
74928         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74929         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74930         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74931         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74932         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74933         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74934         Set REPLACE_STRCASECMP if necessary.
74935         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74936         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74937         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74938         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74939         HAVE_DECL_STRDUP if necessary.
74940         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74941         since gl_FUNC_STRNDUP does that now.
74942         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74943         Check for decl here...
74944         (gl_PREREQ_STRNLEN): ... not here.
74945         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74946         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74947         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74948         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74949         necessary.
74950         * modules/string: New file.
74951         * modules/memmem (Files): Remove special-purpose include file.
74952         (Depends-on): Add string.
74953         (Include): Include <string.h>, not the removed file.
74954         * modules/mempcpy: Likewise.
74955         * modules/memrchr: Likewise.
74956         * modules/stpcpy: Likewise.
74957         * modules/stpncpy: Likewise.
74958         * modules/strcase: Likewise.
74959         * modules/strchrnul: Likewise.
74960         * modules/strdup: Likewise.
74961         * modules/strndup: Likewise.
74962         * modules/strnlen: Likewise.
74963         * modules/strpbrk: Likewise.
74964         * modules/strsep: Likewise.
74965         * modules/strstr: Likewise.
74966         * modules/strtok_r: Likewise.
74967         * tests/test-dirname.c: Don't include "strdup.h", since
74968         <string.h> now suffices.
74969         * tests/test-memmem.c: Don't include "memmem.h", since
74970         <string.h> now suffices.
74971
74972 2007-01-25  Bruno Haible  <bruno@clisp.org>
74973
74974         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74975         *resultp is 0.
74976
74977         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74978         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74979         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74980         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74981
74982         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74983         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74984         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74985         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74986         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74987         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74988
74989 2007-01-24  Bruno Haible  <bruno@clisp.org>
74990
74991         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74992         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74993         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74994         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74995         gl_FUNC_FTS_CORE.
74996         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74997         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74998         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74999         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75000         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75001         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75002         gl_FUNC_FCHOWNAT.
75003         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75004         gl_FUNC_STRFTIME.
75005         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75006         Reported by Ralf Wildenhues.
75007
75008 2007-01-24  Bruno Haible  <bruno@clisp.org>
75009
75010         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75011         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75012         gl_GETADDRINFO.
75013         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75014         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75015         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75016
75017 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75018
75019         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75020         Don't use 'exit'; just return from 'main'.
75021         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75022
75023         * lib/fnmatch_.h: Readjust white space and comments to match
75024         glibc, to avoid spurious diffs.
75025
75026 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75027
75028         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75029         2004-12-01 change by Jakub Jelinek, since this code won't compile
75030         if !LIBC.  Problem reported by Bob Proulx.
75031
75032 2007-01-23  Bruno Haible  <bruno@clisp.org>
75033
75034         * lib/striconveh.c: Include c-strcaseeq.h.
75035         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75036         * modules/striconveh (Depends-on): Add c-strcaseeq.
75037
75038 2007-01-23  Bruno Haible  <bruno@clisp.org>
75039
75040         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75041
75042         * modules/c-strcaseeq: New file.
75043         * lib/c-strcaseeq.h: New file.
75044
75045         * modules/streq: New file.
75046         * lib/streq.h: New file.
75047
75048 2007-01-23  Bruno Haible  <bruno@clisp.org>
75049
75050         * modules/striconveha-tests: New file.
75051         * tests/test-striconveha.c: New file.
75052
75053         * lib/striconveha.h: Include <stdbool.h>.
75054         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75055         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75056         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75057         (mem_iconveha): New function.
75058         (str_iconveha_notranslit): Renamed from str_iconveha.
75059         (str_iconveha): New function.
75060         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75061         c-strcase.
75062
75063 2007-01-23  Bruno Haible  <bruno@clisp.org>
75064
75065         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75066         encodings without forgiving before trying any encoding with handler.
75067         (str_iconveha): Try all encodings without forgiving before trying any
75068         encoding with handler.
75069
75070 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75071
75072         Import the following changes from libc.
75073
75074         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75075
75076         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75077
75078         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75079
75080         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75081         normal_bracket label.
75082
75083         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75084
75085         [BZ #361]
75086         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75087         to normal_bracket after fetching the next character.
75088
75089 2007-01-22  Bruno Haible  <bruno@clisp.org>
75090
75091         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75092         argument.
75093         * lib/striconveh.c (iconv_carefully_1): New function.
75094         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75095         argument.
75096         (str_cd_iconveh): Update.
75097         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75098         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75099         * tests/test-striconveh.c (MAGIC): New macro.
75100         (new_offsets): New function.
75101         (main): Test call with and without offsets.
75102
75103 2007-01-22  Bruno Haible  <bruno@clisp.org>
75104
75105         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75106         * modules/sys_select (Makefile.am): Likewise.
75107         * modules/sys_socket (Makefile.am): Likewise.
75108         * modules/sys_time (Makefile.am): Likewise.
75109
75110 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75111
75112         * modules/gettimeofday (License): Change from GPL to LGPL, since
75113         gettimeofday is a library function.
75114
75115 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75116
75117         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75118
75119 2007-01-21  Bruno Haible  <bruno@clisp.org>
75120
75121         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75122
75123 2007-01-21  Bruno Haible  <bruno@clisp.org>
75124
75125         * modules/striconveha: New file.
75126         * lib/striconveha.h: New file.
75127         * lib/striconveha.c: New file.
75128         * MODULES.html.sh (Internationalization functions): Add striconveha.
75129         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75130         string.
75131         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75132
75133 2007-01-21  Bruno Haible  <bruno@clisp.org>
75134
75135         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75136         * lib/striconveh.c (str_iconveh): Likewise.
75137
75138 2007-01-21  Bruno Haible  <bruno@clisp.org>
75139
75140         * lib/striconveh.h (mem_iconveh): New declaration.
75141         * lib/striconveh.c (mem_iconveh): New function.
75142         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75143
75144 2007-01-21  Bruno Haible  <bruno@clisp.org>
75145
75146         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75147
75148         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75149         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75150         original result buffer.
75151         (str_cd_iconveh): Update.
75152         * tests/test-striconveh.c (main): Update.
75153
75154         * lib/striconv.h (mem_cd_iconv): Change specification.
75155         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75156         result buffer.
75157         (str_cd_iconv): Update.
75158         * tests/test-striconv.c (main): Update.
75159
75160 2007-01-21  Bruno Haible  <bruno@clisp.org>
75161
75162         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75163
75164 2007-01-20  Jim Meyering  <jim@meyering.net>
75165
75166         * lib/userspec.c (parse_with_separator): If a user or group string
75167         starts with "+", skip the corresponding name-to-ID look-up, since
75168         such a look-up must fail: user and group names may not include "+".
75169
75170 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75171
75172         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75173         since we now assume the sys_time module.
75174         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75175         check for sys/time.h; no longer needed.
75176         * modules/poll (Depends-on): Depend on sys_time.
75177
75178 2007-01-18  Bruno Haible  <bruno@clisp.org>
75179
75180         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75181         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75182
75183         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75184         gettimeofday.
75185
75186         * tests/test-gettimeofday.c: Include <time.h>.
75187         (dummy): Remove variable.
75188
75189         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75190         gl_HEADER_SYS_TIME_H.
75191         (gl_HEADER_SYS_TIME_H): New macro.
75192
75193         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75194         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75195         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75196         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75197         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75198         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75199         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75200         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75201         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75202         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75203         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75204
75205         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75206         last change; it caused a compilation error when cross-compiling to
75207         Cygwin.
75208
75209 2007-01-18  Jim Meyering  <jim@meyering.net>
75210
75211         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75212         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75213         than the race-prone "test -d sys || mkdir sys".
75214         (configure.ac): Use AC_PROG_MKDIR_P.
75215         * modules/sys_select: Likewise.
75216         * modules/sys_socket: Likewise.
75217         * modules/sys_time: Likewise.
75218
75219 2007-01-18  Eric Blake  <ebb9@byu.net>
75220
75221         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75222         replace gettimeofday.
75223         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75224         name, to avoid infinite recursion.
75225
75226 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75227
75228         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75229         module sys_time.
75230         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75231         assume timespec.h defines struct timeval.
75232         * lib/settime.c: Likewise.
75233         * lib/utimens.c: Likewise.
75234         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75235         since we now assume the gettimeofday module.
75236         * lib/tempname.c (__gen_tempname): Likewise.
75237         * lib/gettimeofday.h: Remove.
75238         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75239         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75240         Include <time.h>, for 'time()'.
75241         (localtime_buffer_addr): Also use this workaround if
75242         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75243         to simplify the uses.  All uses changed.
75244         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75245         that #undef is inside {}, and 'const' follows type name consistently.
75246         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75247         (gettimeofday): Do not use the maximum possible value for
75248         tv->tv_usec, since that might break usages other than ls.c.
75249         Instead, we'll leave ls.c alone.  This undoes today's patch
75250         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75251         we've never observed the problem but might as well keep the
75252         canary.
75253         * lib/nanosleep.c: Include timespec.h first, for interface check.
75254         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75255         now assume the sys_time module.
75256         * lib/tempname.c: Likewise.
75257         * lib/timespec.h: Likewise.
75258         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75259         needed.
75260         * lib/strftime.c: Likewise.
75261         * lib/timespec.h: Likewise.
75262         * lib/posixtm.c: Include posixtm.h first, for interface check.
75263         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75264         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75265         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75266         * lib/sys_time_.h: New file.
75267         * lib/timespec.h (struct timespec): Use long int, not long.
75268         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75269         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75270         Remove obsolescent call to AC_HEADER_TIME.
75271         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75272         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75273         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75274         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75275         Likewise.
75276         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75277         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75278         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75279         into the sys_time module.  Check for gettimeofday just once.
75280         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75281         for gettimeofday signature to just check the signature.  Merely
75282         compile it, since linking doesn't test signature.  Improve test for
75283         whether gettimeofday.o is actually needed.
75284         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75285         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75286         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75287         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75288         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75289         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75290         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75291         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75292         than worrying about sys/time.h.
75293         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75294         Don't bother worrying about TIME_WITH_SYS_TIME.
75295         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75296         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75297         * m4/sys_time_h.m4: New file.
75298         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75299         Don't include sys/time.h.  Return from main rather than exiting.
75300         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75301         all uses changed.
75302         * modules/gethrxtime (Depends-on): Add sys_time.
75303         * modules/gettime (Depends-on): Likewise.
75304         * modules/gettimeofday (Depends-on): Likewise.
75305         * modules/nanosleep (Depends-on): Likewise.
75306         * modules/settime (Depends-on): Likewise.
75307         * modules/tempname (Depends-on): Likewise.
75308         * modules/utimens (Depends-on): Likewise.
75309         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75310         (Include): Change back to <sys/time.h>.
75311         (Maintainer): Add self.
75312         * modules/sys_time: New file.
75313         * modules/tempname (Depends-on): Add gettimeofday.
75314         * tests/test-gettimeofday.c: Include <sys/time.h>
75315         rather than gettimeofday.h.
75316
75317 2007-01-17  Bruno Haible  <bruno@clisp.org>
75318
75319         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75320         the license default to GPL.
75321         (func_create_testdir): Don't complain if a module is LGPL and its
75322         tests module depends on GPLed modules.
75323
75324 2007-01-17  Bruno Haible  <bruno@clisp.org>
75325
75326         * lib/gettimeofday.c (gettimeofday): Add code for the case
75327         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75328         maximum possible value for tv->tv_usec, rather than the minimum one.
75329
75330 2005-10-08  Martin Lambers  <marlam@marlam.de>
75331 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75332 2007-01-16  Bruno Haible  <bruno@clisp.org>
75333
75334         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75335         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75336         gl_FUNC_GETTIMEOFDAY.
75337         (Include): Add gettimeofday.h.
75338         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75339         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75340         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75341         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75342         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75343         * lib/gettimeofday.h: New file.
75344         * lib/gettimeofday.c: Include <sys/timeb.h>.
75345         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75346         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75347         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75348         fall back on time().
75349
75350         * tests/test-gettimeofday.c: New file.
75351         * modules/gettimeofday-tests: New file.
75352
75353 2007-01-16  Eric Blake  <ebb9@byu.net>
75354
75355         * modules/fnmatch (Depends-on): Depend on wchar.
75356         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75357         * m4/fnmatch.m4: Likewise.
75358         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75359         * m4/mbchar.m4: Likewise.
75360         * modules/mbswidth (Depends-on): Depend on wchar.
75361         * lib/mbswidth.c: Assume <wchar.h>.
75362         * m4/mbswidth.m4: Likewise.
75363         * modules/quotearg (Depends-on): Depend on wchar.
75364         * lib/quotearg.c: Assume <wchar.h>.
75365         * m4/quotearg.m4: Likewise.
75366         * modules/regex (Depends-on): Depend on wchar.
75367         * lib/regex_internal.h: Assume <wchar.h>.
75368         * m4/regex.m4: Likewise.
75369         * modules/stdint (Depends-on): Depend on wchar.
75370         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75371         * m4/stdint.m4: Likewise.
75372         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75373         * modules/strftime (Depends-on): Depend on wchar.
75374         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75375         * modules/strtol (Depends-on): Depend on wchar.
75376         * lib/strtol.c: Assume <wchar.h>.
75377         * modules/wcwidth (Depends-on): Depend on wchar.
75378         * lib/wcwidth.h: Assume <wchar.h>.
75379         * m4/wcwidth.m4: Likewise.
75380
75381 2007-01-16  Bruno Haible  <bruno@clisp.org>
75382
75383         * modules/csharpexec-script: New, created from...
75384         * modules/csharpexec: ... this.
75385
75386 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75387
75388         * modules/javaexec-script: New, created from...
75389         * modules/javaexec: ... this.
75390
75391 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75392
75393         * modules/poll (Dependencies): Add sys_select.
75394
75395 2007-01-15  Jim Meyering  <jim@meyering.net>
75396
75397         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75398         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75399         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75400         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75401
75402 2007-01-15  Bruno Haible  <bruno@clisp.org>
75403
75404         * modules/striconveh: New file.
75405         * lib/striconveh.h: New file.
75406         * lib/striconveh.c: New file.
75407         * MODULES.html.sh (Internationalization functions): Add striconveh.
75408
75409         * modules/striconveh-tests: New file.
75410         * tests/test-striconveh.c: New file.
75411
75412 2007-01-15  Bruno Haible  <bruno@clisp.org>
75413
75414         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75415         not from GNU libiconv or GNU libc.
75416
75417 2007-01-15  Bruno Haible  <bruno@clisp.org>
75418
75419         * doc/gnulib-intro.texi (Copyright): Explain the different license
75420         terms for module descriptions, autoconf macros, tests, documentation.
75421
75422 2007-01-14  Bruno Haible  <bruno@clisp.org>
75423
75424         * modules/striconv-tests: New file.
75425         * tests/test-striconv.c: New file.
75426
75427 2007-01-14  Bruno Haible  <bruno@clisp.org>
75428
75429         * modules/iconv-tests: New file.
75430         * tests/test-iconv.c: New file.
75431
75432 2007-01-14  Bruno Haible  <bruno@clisp.org>
75433
75434         * gnulib-tool (func_get_license): For test modules, use the license of
75435         the main module.
75436
75437 2007-01-14  Bruno Haible  <bruno@clisp.org>
75438
75439         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75440         if iconv is found to exist.
75441
75442 2007-01-14  Bruno Haible  <bruno@clisp.org>
75443
75444         * modules/c-ctype-tests: New file.
75445         * tests/test-c-ctype.c: New file.
75446
75447 2007-01-14  Bruno Haible  <bruno@clisp.org>
75448
75449         * modules/binary-io-tests: New file.
75450         * tests/test-binary-io.sh: New file.
75451         * tests/test-binary-io.c: New file.
75452
75453 2007-01-14  Bruno Haible  <bruno@clisp.org>
75454
75455         * modules/array-oset-tests: New file.
75456         * tests/test-array_oset.c: New file.
75457
75458 2007-01-14  Bruno Haible  <bruno@clisp.org>
75459
75460         * modules/array-list-tests: New file.
75461         * tests/test-array_list.c: New file.
75462
75463 2007-01-14  Bruno Haible  <bruno@clisp.org>
75464
75465         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75466         and make.
75467         Reported by Simon Josefsson in
75468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75469
75470 2007-01-14  Bruno Haible  <bruno@clisp.org>
75471
75472         * modules/allocsa-tests: New file.
75473         * tests/test-allocsa.c: New file.
75474
75475 2007-01-14  Bruno Haible  <bruno@clisp.org>
75476
75477         * modules/fchdir (Depends-on): Add absolute-header.
75478         * modules/unistd (Depends-on): Likewise.
75479
75480 2006-12-30  Bruno Haible  <bruno@clisp.org>
75481
75482         * modules/fchdir: New file.
75483         * modules/unistd (Files): Add lib/unistd_.h.
75484         (Makefile.am): Generate unistd.h from unistd_.h.
75485         * lib/fchdir.c: New file.
75486         * lib/dirent_.h: New file.
75487         * lib/unistd_.h: New file.
75488         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75489         * m4/fchdir.m4: New file.
75490         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75491         (gl_HEADER_UNISTD): Invoke it.
75492         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75493         function.
75494         * lib/backupfile.c (opendir, closedir): Undefine.
75495         * lib/chown.c (open, close): Undefine.
75496         * lib/clean-temp.c (open, close): Undefine.
75497         * lib/copy-file.c (open, close): Undefine.
75498         * lib/execute.c (open, close): Undefine.
75499         * lib/fsusage.c (open, close): Undefine.
75500         * lib/gc-gnulib.c (open, close): Undefine.
75501         * lib/getcwd.c (opendir, closedir): Undefine.
75502         * lib/glob.c (opendir, closedir): Undefine.
75503         * lib/javacomp.c (open, close): Undefine.
75504         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75505         * lib/openat-proc.c (open, close): Undefine.
75506         * lib/pagealign_alloc.c (open, close): Undefine.
75507         * lib/pipe.c (open, close): Undefine.
75508         * lib/progreloc.c (open, close): Undefine.
75509         * lib/savedir.c (opendir, closedir): Undefine.
75510         * lib/utime.c (open, close): Undefine.
75511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75512
75513 2007-01-10  Bruno Haible  <bruno@clisp.org>
75514
75515         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75516
75517 2007-01-12  Eric Blake  <ebb9@byu.net>
75518
75519         Provide a robust <wchar.h>.  Further simplifications are now
75520         possible in other modules, but not included here.
75521         * modules/wchar: New module.
75522         * m4/wchar.m4: New file.
75523         * lib/wchar_.h: Likewise.
75524         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75525         of the new module.
75526         * MODULES.html.sh (Extended multibyte and wide character utilities):
75527         New section.
75528
75529 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75530
75531         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75532         to a reasonable default for memory allocation.
75533         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75534         file system that reports garbage st_size values for symlinks.
75535         Problem reported by Liyang Hu.
75536
75537 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75538
75539         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75540         Emacs .#* auto-save files).
75541
75542 2007-01-11  Bruno Haible  <bruno@clisp.org>
75543
75544         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75545         directory.
75546
75547 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75548
75549         Use @...@ consistently in lib/wctype_.h.
75550         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75551         on it being set to 1 or 0.
75552         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75553         go back to AC_SUBSTing it.
75554         * modules/wctype (Makefile.am): Undo previous change.
75555
75556 2007-01-10  Eric Blake  <ebb9@byu.net>
75557
75558         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75559         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75560         * modules/wctype (Makefile.am): Likewise.
75561         Reported by Chris McGuire.
75562
75563 2007-01-10  Jim Meyering  <jim@meyering.net>
75564
75565         fts.c: a small readability/maintainability improvement
75566         * lib/fts.c (fts_read): Make this code slightly more readable and
75567         maintainable by hoisting the "sp->fts_cur = p" assignments to
75568         immediately follow the statements that set P.  Derived from
75569         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75570
75571 2007-01-10  Eric Blake  <ebb9@byu.net>
75572
75573         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75574         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75576         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75577         Reported by Chris McGuire.
75578
75579 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75580
75581         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75582         in sed script.
75583
75584 2007-01-09  Bruno Haible  <bruno@clisp.org>
75585
75586         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75587         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75588         variables.
75589         (func_module): Use them.
75590
75591 2007-01-09  Bruno Haible  <bruno@clisp.org>
75592
75593         * modules/unistr/base: New file.
75594         * lib/unistr.h: New file.
75595
75596         * modules/unistr/u8-to-u16: New file.
75597         * lib/unistr/u8-to-u16.c: New file.
75598
75599         * modules/unistr/u8-to-u32: New file.
75600         * lib/unistr/u8-to-u32.c: New file.
75601
75602         * modules/unistr/u16-to-u8: New file.
75603         * lib/unistr/u16-to-u8.c: New file.
75604
75605         * modules/unistr/u16-to-u32: New file.
75606         * lib/unistr/u16-to-u32.c: New file.
75607
75608         * modules/unistr/u32-to-u8: New file.
75609         * lib/unistr/u32-to-u8.c: New file.
75610
75611         * modules/unistr/u32-to-u16: New file.
75612         * lib/unistr/u32-to-u16.c: New file.
75613
75614         * modules/unistr/u8-check: New file.
75615         * modules/unistr/u16-check: New file.
75616         * modules/unistr/u32-check: New file.
75617         * lib/unistr/u8-check.c: New file.
75618         * lib/unistr/u16-check.c: New file.
75619         * lib/unistr/u32-check.c: New file.
75620
75621         * modules/unistr/u8-chr: New file.
75622         * modules/unistr/u16-chr: New file.
75623         * modules/unistr/u32-chr: New file.
75624         * lib/unistr/u8-chr.c: New file.
75625         * lib/unistr/u16-chr.c: New file.
75626         * lib/unistr/u32-chr.c: New file.
75627
75628         * modules/unistr/u8-cmp: New file.
75629         * modules/unistr/u16-cmp: New file.
75630         * modules/unistr/u32-cmp: New file.
75631         * lib/unistr/u8-cmp.c: New file.
75632         * lib/unistr/u16-cmp.c: New file.
75633         * lib/unistr/u32-cmp.c: New file.
75634
75635         * modules/unistr/u8-cpy: New file.
75636         * modules/unistr/u16-cpy: New file.
75637         * modules/unistr/u32-cpy: New file.
75638         * lib/unistr/u8-cpy.c: New file.
75639         * lib/unistr/u16-cpy.c: New file.
75640         * lib/unistr/u32-cpy.c: New file.
75641         * lib/unistr/u-cpy.h: New file.
75642
75643         * modules/unistr/u8-cpy-alloc: New file.
75644         * modules/unistr/u16-cpy-alloc: New file.
75645         * modules/unistr/u32-cpy-alloc: New file.
75646         * lib/unistr/u8-cpy-alloc.c: New file.
75647         * lib/unistr/u16-cpy-alloc.c: New file.
75648         * lib/unistr/u32-cpy-alloc.c: New file.
75649         * lib/unistr/u-cpy-alloc.h: New file.
75650
75651         * modules/unistr/u8-endswith: New file.
75652         * modules/unistr/u16-endswith: New file.
75653         * modules/unistr/u32-endswith: New file.
75654         * lib/unistr/u8-endswith.c: New file.
75655         * lib/unistr/u16-endswith.c: New file.
75656         * lib/unistr/u32-endswith.c: New file.
75657         * lib/unistr/u-endswith.h: New file.
75658
75659         * modules/unistr/u8-mblen: New file.
75660         * modules/unistr/u16-mblen: New file.
75661         * modules/unistr/u32-mblen: New file.
75662         * lib/unistr/u8-mblen.c: New file.
75663         * lib/unistr/u16-mblen.c: New file.
75664         * lib/unistr/u32-mblen.c: New file.
75665
75666         * modules/unistr/u8-mbtouc: New file.
75667         * modules/unistr/u16-mbtouc: New file.
75668         * modules/unistr/u32-mbtouc: New file.
75669         * lib/unistr/u8-mbtouc.c: New file.
75670         * lib/unistr/u16-mbtouc.c: New file.
75671         * lib/unistr/u32-mbtouc.c: New file.
75672
75673         * modules/unistr/u8-mbtouc-safe: New file.
75674         * modules/unistr/u16-mbtouc-safe: New file.
75675         * modules/unistr/u32-mbtouc-safe: New file.
75676         * lib/unistr/u8-mbtouc-safe.c: New file.
75677         * lib/unistr/u16-mbtouc-safe.c: New file.
75678         * lib/unistr/u32-mbtouc-safe.c: New file.
75679
75680         * modules/unistr/u8-move: New file.
75681         * modules/unistr/u16-move: New file.
75682         * modules/unistr/u32-move: New file.
75683         * lib/unistr/u8-move.c: New file.
75684         * lib/unistr/u16-move.c: New file.
75685         * lib/unistr/u32-move.c: New file.
75686         * lib/unistr/u-move.h: New file.
75687
75688         * modules/unistr/u8-next: New file.
75689         * modules/unistr/u16-next: New file.
75690         * modules/unistr/u32-next: New file.
75691         * lib/unistr/u8-next.c: New file.
75692         * lib/unistr/u16-next.c: New file.
75693         * lib/unistr/u32-next.c: New file.
75694
75695         * modules/unistr/u8-prev: New file.
75696         * modules/unistr/u16-prev: New file.
75697         * modules/unistr/u32-prev: New file.
75698         * lib/unistr/u8-prev.c: New file.
75699         * lib/unistr/u16-prev.c: New file.
75700         * lib/unistr/u32-prev.c: New file.
75701
75702         * modules/unistr/u8-set: New file.
75703         * modules/unistr/u16-set: New file.
75704         * modules/unistr/u32-set: New file.
75705         * lib/unistr/u8-set.c: New file.
75706         * lib/unistr/u16-set.c: New file.
75707         * lib/unistr/u32-set.c: New file.
75708         * lib/unistr/u-set.h: New file.
75709
75710         * modules/unistr/u8-startswith: New file.
75711         * modules/unistr/u16-startswith: New file.
75712         * modules/unistr/u32-startswith: New file.
75713         * lib/unistr/u8-startswith.c: New file.
75714         * lib/unistr/u16-startswith.c: New file.
75715         * lib/unistr/u32-startswith.c: New file.
75716         * lib/unistr/u-startswith.h: New file.
75717
75718         * modules/unistr/u8-stpcpy: New file.
75719         * modules/unistr/u16-stpcpy: New file.
75720         * modules/unistr/u32-stpcpy: New file.
75721         * lib/unistr/u8-stpcpy.c: New file.
75722         * lib/unistr/u16-stpcpy.c: New file.
75723         * lib/unistr/u32-stpcpy.c: New file.
75724         * lib/unistr/u-stpcpy.h: New file.
75725
75726         * modules/unistr/u8-stpncpy: New file.
75727         * modules/unistr/u16-stpncpy: New file.
75728         * modules/unistr/u32-stpncpy: New file.
75729         * lib/unistr/u8-stpncpy.c: New file.
75730         * lib/unistr/u16-stpncpy.c: New file.
75731         * lib/unistr/u32-stpncpy.c: New file.
75732         * lib/unistr/u-stpncpy.h: New file.
75733
75734         * modules/unistr/u8-strcat: New file.
75735         * modules/unistr/u16-strcat: New file.
75736         * modules/unistr/u32-strcat: New file.
75737         * lib/unistr/u8-strcat.c: New file.
75738         * lib/unistr/u16-strcat.c: New file.
75739         * lib/unistr/u32-strcat.c: New file.
75740         * lib/unistr/u-strcat.h: New file.
75741
75742         * modules/unistr/u8-strchr: New file.
75743         * modules/unistr/u16-strchr: New file.
75744         * modules/unistr/u32-strchr: New file.
75745         * lib/unistr/u8-strchr.c: New file.
75746         * lib/unistr/u16-strchr.c: New file.
75747         * lib/unistr/u32-strchr.c: New file.
75748
75749         * modules/unistr/u8-strcmp: New file.
75750         * modules/unistr/u16-strcmp: New file.
75751         * modules/unistr/u32-strcmp: New file.
75752         * lib/unistr/u8-strcmp.c: New file.
75753         * lib/unistr/u16-strcmp.c: New file.
75754         * lib/unistr/u32-strcmp.c: New file.
75755
75756         * modules/unistr/u8-strcpy: New file.
75757         * modules/unistr/u16-strcpy: New file.
75758         * modules/unistr/u32-strcpy: New file.
75759         * lib/unistr/u8-strcpy.c: New file.
75760         * lib/unistr/u16-strcpy.c: New file.
75761         * lib/unistr/u32-strcpy.c: New file.
75762         * lib/unistr/u-strcpy.h: New file.
75763
75764         * modules/unistr/u8-strcspn: New file.
75765         * modules/unistr/u16-strcspn: New file.
75766         * modules/unistr/u32-strcspn: New file.
75767         * lib/unistr/u8-strcspn.c: New file.
75768         * lib/unistr/u16-strcspn.c: New file.
75769         * lib/unistr/u32-strcspn.c: New file.
75770         * lib/unistr/u-strcspn.h: New file.
75771
75772         * modules/unistr/u8-strdup: New file.
75773         * modules/unistr/u16-strdup: New file.
75774         * modules/unistr/u32-strdup: New file.
75775         * lib/unistr/u8-strdup.c: New file.
75776         * lib/unistr/u16-strdup.c: New file.
75777         * lib/unistr/u32-strdup.c: New file.
75778         * lib/unistr/u-strdup.h: New file.
75779
75780         * modules/unistr/u8-strlen: New file.
75781         * modules/unistr/u16-strlen: New file.
75782         * modules/unistr/u32-strlen: New file.
75783         * lib/unistr/u8-strlen.c: New file.
75784         * lib/unistr/u16-strlen.c: New file.
75785         * lib/unistr/u32-strlen.c: New file.
75786         * lib/unistr/u-strlen.h: New file.
75787
75788         * modules/unistr/u8-strmblen: New file.
75789         * modules/unistr/u16-strmblen: New file.
75790         * modules/unistr/u32-strmblen: New file.
75791         * lib/unistr/u8-strmblen.c: New file.
75792         * lib/unistr/u16-strmblen.c: New file.
75793         * lib/unistr/u32-strmblen.c: New file.
75794
75795         * modules/unistr/u8-strmbtouc: New file.
75796         * modules/unistr/u16-strmbtouc: New file.
75797         * modules/unistr/u32-strmbtouc: New file.
75798         * lib/unistr/u8-strmbtouc.c: New file.
75799         * lib/unistr/u16-strmbtouc.c: New file.
75800         * lib/unistr/u32-strmbtouc.c: New file.
75801
75802         * modules/unistr/u8-strncat: New file.
75803         * modules/unistr/u16-strncat: New file.
75804         * modules/unistr/u32-strncat: New file.
75805         * lib/unistr/u8-strncat.c: New file.
75806         * lib/unistr/u16-strncat.c: New file.
75807         * lib/unistr/u32-strncat.c: New file.
75808         * lib/unistr/u-strncat.h: New file.
75809
75810         * modules/unistr/u8-strncmp: New file.
75811         * modules/unistr/u16-strncmp: New file.
75812         * modules/unistr/u32-strncmp: New file.
75813         * lib/unistr/u8-strncmp.c: New file.
75814         * lib/unistr/u16-strncmp.c: New file.
75815         * lib/unistr/u32-strncmp.c: New file.
75816
75817         * modules/unistr/u8-strncpy: New file.
75818         * modules/unistr/u16-strncpy: New file.
75819         * modules/unistr/u32-strncpy: New file.
75820         * lib/unistr/u8-strncpy.c: New file.
75821         * lib/unistr/u16-strncpy.c: New file.
75822         * lib/unistr/u32-strncpy.c: New file.
75823         * lib/unistr/u-strncpy.h: New file.
75824
75825         * modules/unistr/u8-strnlen: New file.
75826         * modules/unistr/u16-strnlen: New file.
75827         * modules/unistr/u32-strnlen: New file.
75828         * lib/unistr/u8-strnlen.c: New file.
75829         * lib/unistr/u16-strnlen.c: New file.
75830         * lib/unistr/u32-strnlen.c: New file.
75831         * lib/unistr/u-strnlen.h: New file.
75832
75833         * modules/unistr/u8-strpbrk: New file.
75834         * modules/unistr/u16-strpbrk: New file.
75835         * modules/unistr/u32-strpbrk: New file.
75836         * lib/unistr/u8-strpbrk.c: New file.
75837         * lib/unistr/u16-strpbrk.c: New file.
75838         * lib/unistr/u32-strpbrk.c: New file.
75839         * lib/unistr/u-strpbrk.h: New file.
75840
75841         * modules/unistr/u8-strrchr: New file.
75842         * modules/unistr/u16-strrchr: New file.
75843         * modules/unistr/u32-strrchr: New file.
75844         * lib/unistr/u8-strrchr.c: New file.
75845         * lib/unistr/u16-strrchr.c: New file.
75846         * lib/unistr/u32-strrchr.c: New file.
75847
75848         * modules/unistr/u8-strspn: New file.
75849         * modules/unistr/u16-strspn: New file.
75850         * modules/unistr/u32-strspn: New file.
75851         * lib/unistr/u8-strspn.c: New file.
75852         * lib/unistr/u16-strspn.c: New file.
75853         * lib/unistr/u32-strspn.c: New file.
75854         * lib/unistr/u-strspn.h: New file.
75855
75856         * modules/unistr/u8-strstr: New file.
75857         * modules/unistr/u16-strstr: New file.
75858         * modules/unistr/u32-strstr: New file.
75859         * lib/unistr/u8-strstr.c: New file.
75860         * lib/unistr/u16-strstr.c: New file.
75861         * lib/unistr/u32-strstr.c: New file.
75862         * lib/unistr/u-strstr.h: New file.
75863
75864         * modules/unistr/u8-strtok: New file.
75865         * modules/unistr/u16-strtok: New file.
75866         * modules/unistr/u32-strtok: New file.
75867         * lib/unistr/u8-strtok.c: New file.
75868         * lib/unistr/u16-strtok.c: New file.
75869         * lib/unistr/u32-strtok.c: New file.
75870         * lib/unistr/u-strtok.h: New file.
75871
75872         * modules/unistr/u8-uctomb: New file.
75873         * modules/unistr/u16-uctomb: New file.
75874         * modules/unistr/u32-uctomb: New file.
75875         * lib/unistr/u8-uctomb.c: New file.
75876         * lib/unistr/u16-uctomb.c: New file.
75877         * lib/unistr/u32-uctomb.c: New file.
75878
75879         * MODULES.html.sh (Unicode string functions): Add the new modules.
75880
75881 2007-01-08  Bruno Haible  <bruno@clisp.org>
75882
75883         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75884         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75885         subdirectories.
75886
75887 2007-01-08  Karl Berry  <karl@gnu.org>
75888
75889         * doc/error.texi: mention that main() fns must set program_name
75890         when progname is used.
75891
75892 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75893
75894         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75895         WCTYPE_H is empty, for the benefit of builds from non-distclean
75896         directories.  Problem reported by Eric Blake in
75897         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75898
75899 2007-01-08  Bruno Haible  <bruno@clisp.org>
75900
75901         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75902         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75903         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75904         PROVIDE_CANONICALIZE_FILENAME_MODE.
75905         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75906
75907 2007-01-08  Bruno Haible  <bruno@clisp.org>
75908
75909         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75910         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75911         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75912         * lib/fts.c: Likewise.
75913         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75914
75915 2006-12-25  Bruno Haible  <bruno@clisp.org>
75916
75917         * modules/utf8-ucs4-safe: New file.
75918         * lib/utf8-ucs4-safe.h: New file.
75919         * lib/unistr/utf8-ucs4-safe.c: New file.
75920
75921         * modules/utf16-ucs4-safe: New file.
75922         * lib/utf16-ucs4-safe.h: New file.
75923         * lib/unistr/utf16-ucs4-safe.c: New file.
75924
75925         * MODULES.html.sh (Unicode string functions): Add the new modules.
75926
75927 2007-01-08  Bruno Haible  <bruno@clisp.org>
75928
75929         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75930         (Depends-on): Add unitypes.
75931         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75932         (u8_mbtouc_aux): Move out to separate file.
75933         (u8_mbtouc): Use ucs4_t, uint8_t types.
75934         * lib/unistr/utf8-ucs4.c: New file.
75935
75936         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75937         (Depends-on): Add unitypes.
75938         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75939         (u16_mbtouc_aux): Move out to separate file.
75940         (u16_mbtouc): Use ucs4_t, uint16_t types.
75941         * lib/unistr/utf16-ucs4.c: New file.
75942
75943         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75944         (Depends-on): Add unitypes.
75945         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75946         (u8_uctomb_aux): Move out to separate file.
75947         (u8_uctomb): Use ucs4_t, uint8_t types.
75948         * lib/unistr/ucs4-utf8.c: New file.
75949
75950         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75951         (Depends-on): Add unitypes.
75952         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75953         (u16_uctomb_aux): Move out to separate file.
75954         (u16_uctomb): Use ucs4_t, uint16_t types.
75955         * lib/unistr/ucs4-utf16.c: New file.
75956
75957 2006-12-25  Bruno Haible  <bruno@clisp.org>
75958
75959         * modules/unitypes: New file.
75960         * lib/unitypes.h: New file.
75961         * MODULES.html.sh (func_all_modules): New section "Unicode string
75962         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75963         this section. Add unitypes.
75964
75965 2007-01-08  Bruno Haible  <bruno@clisp.org>
75966
75967         Avoid variable names that conflict with those from libtool.
75968         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75969         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75970         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75971         library_names_spec to acl_library_names_spec, hardcode_* to
75972         acl_hardcode_*.
75973         Reported by Ralf Wildenhues.
75974
75975 2007-01-08  Bruno Haible  <bruno@clisp.org>
75976
75977         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75978         definition.
75979         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75980         definition.
75981         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75982         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75983         definition.
75984         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75985         definition.
75986         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75987         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75988         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75989         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75990         definition.
75991         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75992         definition.
75993         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75994         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75995         GC_USE_<algorithm>.
75996         * lib/gc-libgcrypt.c: Likewise.
75997         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75998         * modules/gc-arctwo (configure.ac): Likewise.
75999         * modules/gc-des (configure.ac): Likewise.
76000         * modules/gc-hmac-md5 (configure.ac): Likewise.
76001         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76002         * modules/gc-md2 (configure.ac): Likewise.
76003         * modules/gc-md4 (configure.ac): Likewise.
76004         * modules/gc-md5 (configure.ac): Likewise.
76005         * modules/gc-random (configure.ac): Likewise.
76006         * modules/gc-rijndael (configure.ac): Likewise.
76007         * modules/gc-sha1 (configure.ac): Likewise.
76008
76009 2007-01-08  Bruno Haible  <bruno@clisp.org>
76010
76011         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76012         macro definition.
76013         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76014         definition.
76015         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76016         definition.
76017         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76018         * modules/fcntl-safer (configure.ac): Likewise.
76019         * modules/fopen-safer (configure.ac): Likewise.
76020         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76021         GNULIB_FWRITEERROR macro definition.
76022
76023 2007-01-08  Bruno Haible  <bruno@clisp.org>
76024
76025         * m4/gnulib-common.m4: New file.
76026         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76027         (func_get_filelist): Add m4/gnulib-common.m4.
76028
76029 2007-01-08  Bruno Haible  <bruno@clisp.org>
76030
76031         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76032         command.
76033
76034 2007-01-08  Jim Meyering  <jim@meyering.net>
76035
76036         Use a more robust test for a "can't happen" condition.
76037         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76038         narrowed the st_size value.  Presuming the "can't happen" condition
76039         is true, that narrowing could conceivably convert an invalid st_size
76040         value into a valid one.  Instead, use a change based on Matthew
76041         Woehlke's original patch.
76042
76043         Slight readability improvement: use an assert-like macro
76044         in place of literal "abort ()" uses.
76045         * lib/fts.c (fts_assert): Define.
76046         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76047         Use this macro instead of a bare 'abort'.
76048
76049 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76050
76051         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76052         simply work around them.
76053         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76054         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76055         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76056         declaring.
76057         Don't bother to define as macros, since the standard doesn't require it.
76058         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76059         longer worry about IRIX 5.3.
76060         (HAVE_WCTYPE_CTMP_BUG): Remove.
76061
76062 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76063
76064         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76065         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76066         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76067         Problems reported by Georg Schwarz for IRIX 5.3.
76068
76069         * gnulib-tool (autoconf_minversion): Take the maximum version number
76070         found, not the minimum.  Problem reported by James Youngman.
76071
76072 2007-01-03  Karl Berry  <karl@gnu.org>
76073
76074         * doc/error.texi: new file, explaining interaction with progname.
76075         * doc/gnulib.texi: include it.  Update copyright.
76076
76077 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76078
76079         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76080         AC_CANONICAL_HOST, to improve autobuild outputs.
76081
76082 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76083             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76084
76085         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76086         sockets, server sockets, and other file descriptors.  Count errors
76087         to compute the return value.  Reorder the code a bit to be easier
76088         to follow.  Don't set event bits that were not requested (except
76089         POLLERR and POLLHUP).
76090
76091 2007-01-01  Bruno Haible  <bruno@clisp.org>
76092
76093         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76094
76095 2007-01-03  Jim Meyering  <jim@meyering.net>
76096
76097         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76098
76099 2007-01-02  Bruno Haible  <bruno@clisp.org>
76100
76101         * modules/settime (Include): Require timespec.h.
76102         * modules/nanosleep (Include): Likewise.
76103
76104 2007-01-01  Bruno Haible  <bruno@clisp.org>
76105
76106         * gnulib-tool (func_emit_copyright_notice): Bump year.
76107         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76108
76109 2007-01-01  Bruno Haible  <bruno@clisp.org>
76110
76111         Improve support for OpenBSD.
76112         * build-aux/config.rpath (libname_spec): Export.
76113         (library_names_spec): New variable. Export.
76114         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76115         library_names_spec from the config.rpath output. Locate shared library
76116         through the name pattern in library_names_spec.
76117
76118 2007-01-01  Eric Blake  <ebb9@byu.net>
76119
76120         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76121
76122 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76123
76124         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76125         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76126         assume the C locale, and avoid an "eval" that could cause trouble.
76127         Problem with SORT reported by Bob Proulx.
76128
76129         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76130         Define.  Trivial patch from Henning Nielsen Lund, originally
76131         sent to bug-grep@gnu.org today.
76132
76133 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76134
76135         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76136         struct stat.  Problem reported by Henning Nielsen Lund.
76137         * lib/acl.c: Include acl.h first, to check interface.  Don't
76138         bother to include sys/types.h and sys/stat.h again.
76139
76140 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76141
76142         Import the following change from libc; problem reported by
76143         Sven Verdoolaege.
76144
76145         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76146
76147         [BZ #1373]
76148         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76149
76150 2006-12-28  Jim Meyering  <jim@meyering.net>
76151
76152         * build-aux/announce-gen: Do not assume that the package
76153         builds any of tar.gz, tar.bz2, and .xdelta files.
76154         Suggestion from Simon Josefsson.
76155
76156 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76157
76158         * modules/announce-gen: New file.
76159
76160 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76161
76162         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76163         handles its gotchas now.
76164         * lib/mbswidth.c: Likewise.
76165         * lib/wcwidth.h: Likewise.
76166         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76167         and iswcntrl; the wctype module does this stuff now.
76168         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76169         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76170         * modules/mbchar (Depends-on): Add wctype.
76171         * modules/mbswidth (Depends-on): Likewise.
76172         * modules/wcwidth (Depends-on): Likewise.
76173
76174 2006-12-27  Eric Blake  <ebb9@byu.net>
76175
76176         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76177         module uses more than what <wctype.h> is required to provide.
76178
76179 2006-12-26  Eric Blake  <ebb9@byu.net>
76180
76181         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76182
76183 2006-12-26  Eric Blake  <ebb9@byu.net>
76184
76185         * modules/absolute-header: New module.
76186         * modules/fcntl (Depends-on): Depend on it.
76187         * modules/inttypes (Depends-on): Likewise.
76188         * modules/stdint (Depends-on): Likewise.
76189         * modules/sys_stat (Depends-on): Likewise.
76190         * modules/wctype (Depends-on): Likewise.
76191         * MODULES.html.sh (Support for building libraries and
76192         executables): Document it.
76193
76194 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76195
76196         * gnulib-tool (SED): Remove, undoing previous change.
76197         The problem was that it broke coreutils on Solaris, because
76198         "sed --posix" leaked into a makefile.
76199         (sed): New alias, if 'alias' and GNU sed.
76200
76201 2006-12-24  Jim Meyering  <jim@meyering.net>
76202
76203         Work around an fchownat bug in glibc-2.4:
76204         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76205         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76206         in spite of the -P option.
76207         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76208         New macros.
76209         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76210         * modules/openat (Files): Add lib/fchownat.c.
76211         * lib/openat.c (fchownat): Don't define here.  Move to...
76212         * lib/fchownat.c: ...this new file.
76213
76214 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76215
76216         Fix bug reported by Bruno Haible in
76217         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76218         where quotearg.c didn't compile on Mac OS X 10.2 because it
76219         lacks <wchar.h> and wint_t.
76220         * lib/wctype_.h (__wctype_wint_t): New type.
76221         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76222         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76223         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76224         Arg is now of type __wctype_wint_t, not wint_t.
76225         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76226         substitute HAVE_WINT_T.
76227         * modules/wctype (Files): Add m4/wint_t.m4.
76228         (wctype.h): Substitute HAVE_WINT_T.
76229
76230 2006-12-23  Bruno Haible  <bruno@clisp.org>
76231
76232         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76233
76234 2006-12-23  Bruno Haible  <bruno@clisp.org>
76235
76236         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76237         S_ISLNK.
76238         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76239         mingw.
76240
76241 2006-12-22  Bruno Haible  <bruno@clisp.org>
76242
76243         * lib/copy-file.c: Include acl.h.
76244         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76245         Close the file descriptors only after being done with copy_acl.
76246         * modules/copy-file (Depends-on): Add acl.
76247
76248 2006-12-22  Bruno Haible  <bruno@clisp.org>
76249
76250         * gnulib-tool (SED): New variable.
76251         Use $SED instead of sed everywhere.
76252
76253 2006-12-22  Bruno Haible  <bruno@clisp.org>
76254
76255         * modules/no-c++: New file.
76256         * m4/no-c++.m4: New file.
76257         * MODULES.html.sh (Support for building libraries and executables):
76258         Add no-c++.
76259
76260 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76261
76262         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76263         Include <limits.h>, and use its INT_MAX to rewrite the
76264         j loop so that it does not overflow 'int'.  Problem reported by
76265         Ralf Wildenhues in
76266         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76267         Play it safe by shifting left by 1 rather than multiplying by 2,
76268         as GCC is less likely to optimize this away when the value
76269         is signed (when it assumes overflow leads to undefined behavior).
76270         Also, don't assume time_t uses two's complement.
76271
76272 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76273
76274         * MODULES.html.sh: New module wctype.
76275         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76276         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76277         <wctype.h>, since the new wctype module should fix this.
76278         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76279         the wctype module should arrange for it.
76280         * lib/regex_internal.h: Likewise.
76281         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76282         since the wctype module should handle this now.
76283         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76284         * modules/fnmatch (Depends-on): Add wctype.
76285         * modules/quotearg (Depends-on): Likewise.
76286         * modules/regex (Depends-on): Likewise.
76287
76288 2006-12-19  Bruno Haible  <bruno@clisp.org>
76289
76290         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76291         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76292
76293 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76294
76295         * modules/savewd (Depends-on): Fix dependency on fcntl.
76296
76297 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76298
76299         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76300         conforms to C99, rather than relying on the user's environment
76301         setting of STDINT_H.
76302
76303 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76304         and Eric Blake  <ebb9@byu.net>
76305
76306         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76307         This is more consistent with the other defines here.
76308         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76309         Port to z/OS.  Problem reported by Paul Gilmartin.
76310         Change local vars to use gl_ prefix rather than ac_.
76311         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76312         with other defines.
76313         * modules/double-slash-root: New module.
76314         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76315         (Depends-on): Add double-slash-root.
76316         * MODULES.html.sh (File system functions): Mention new module.
76317
76318 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76319
76320         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76321         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76322         This is for the benefit of gzip, which doesn't do i18n.
76323
76324 2006-12-12  Jim Meyering  <jim@meyering.net>
76325
76326         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76327         Reported by Andreas Schwab <schwab@suse.de>.
76328
76329 2006-12-12  Bruno Haible  <bruno@clisp.org>
76330
76331         Merge these changes.
76332         2006-09-05  Bruno Haible  <bruno@clisp.org>
76333         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76334         iconv_alloc succeeded.
76335         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76336         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76337         test for " && dest " at the end - dest is always != NULL there. Call
76338         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76339         with 2xNULL arguments, also to flush the state storage. Handle the
76340         IRIX iconv behaviour. Realloc the final result, to throw away unused
76341         memory.
76342
76343 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76346         and fchmodat unconditionally, since glibc 2.4 has them.
76347         Problem reported by Arkadiusz Miskiewicz.
76348
76349 2006-12-10  Bruno Haible  <bruno@clisp.org>
76350
76351         * gnulib-tool (func_import): Show the include files only for those
76352         modules that are copied and specified.
76353         Reported by Karl Berry.
76354
76355 2006-12-08  Jim Meyering  <jim@meyering.net>
76356
76357         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76358         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76359
76360         * build-aux/announce-gen: Add two new options, both optional:
76361         --bootstrap-tools=TOOL_LIST
76362               a comma-separated list of tools, e.g.,
76363               autoconf,automake,bison,gnulib
76364         --gnulib-snapshot-date=DATE
76365               if gnulib is in the bootstrap tool list,
76366               then report this as the snapshot date.
76367               If not specified, use the current date/time.
76368               If you specify a date here, be sure it's UTC.
76369
76370 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76371
76372         * tests/test-argp-2.sh: Fix test to match actual output.
76373         (func_compare): Fix sed script to be portable.
76374
76375 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76376
76377         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76378         workaround for this case.  It is not autoconfigured now; offhand
76379         it's hard to see how to autoconfigure it.
76380
76381 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76382
76383         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76384         a directory that is about to be chowned.  Such a directory's
76385         initial file permissions should permit the owner only and this
76386         should not be changed until after the chown, since the group and
76387         other bits would be incorrect if they granted permission before
76388         the chown.
76389
76390         Fix porting problem for iswctype reported by Georg Schwarz in:
76391         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76392         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76393         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76394         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76395         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76396
76397 2006-12-03  Jim Meyering  <jim@meyering.net>
76398
76399         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76400         p->fts_statp may not yet be defined.
76401         (fts_read): Instead, set it in the caller, once p->fts_statp is
76402         sure to be defined, and corresponds to a top-level directory.
76403         This bug made du -x fail.  Here's the coreutils test case:
76404         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76405         Reported by Mike Frysinger.
76406
76407 2006-12-01  Jim Meyering  <jim@meyering.net>
76408
76409         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76410         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76411         Reported by Simon Josefsson.
76412
76413 2006-11-30  Jim Meyering  <jim@meyering.net>
76414
76415         * m4/warning.m4: Use the all-permissive copyright notice
76416         recommended by RMS (rather than LGPL).
76417         * m4/vararrays.m4: Likewise.
76418         * m4/flexmember.m4: Likewise.
76419
76420 2006-11-29  Bruno Haible  <bruno@clisp.org>
76421
76422         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76423         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76424         using +=.
76425         Reported by Simon Josefsson <simon@josefsson.org>.
76426
76427 2006-11-28  James Youngman <jay@gnu.org>
76428
76429         * README: Advise users that they might find the bug-gnulib@gnu.org
76430         and autotools-announce@gnu.org mailing lists useful.
76431
76432 2006-11-28  Bruno Haible  <bruno@clisp.org>
76433
76434         * m4/ptrdiff_max.m4: Remove file.
76435
76436 2006-11-21  Bruno Haible  <bruno@clisp.org>
76437
76438         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76439         _AC_COMPUTE_INT.
76440         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76441         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76442         _AC_COMPUTE_INT.
76443         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76444         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76445         _AC_COMPUTE_INT.
76446         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76447
76448 2006-11-28  Jim Meyering  <jim@meyering.net>
76449
76450         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76451         warning from "gcc -Wshadow" about shadowing the builtin.
76452
76453 2006-11-27  Bruno Haible  <bruno@clisp.org>
76454
76455         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76456         _AC_COMPUTE_INT.
76457         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76458
76459 2006-11-27  Bruno Haible  <bruno@clisp.org>
76460             Paul Eggert  <eggert@cs.ucla.edu>
76461
76462         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76463
76464 2006-11-26  Bruno Haible  <bruno@clisp.org>
76465
76466         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76467         noinst_LTLIBRARIES.
76468
76469 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76470             Bruno Haible  <bruno@clisp.org>
76471
76472         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76473         if compiling with "gcc -ansi".
76474
76475 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76476
76477         Fix some incompatibilities with gcc -ansi -pedantic.
76478         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76479         if compiling pedantically with GCC, unless it's C99 or later.
76480         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76481         it mishandles gcc -ansi -pedantic as well.
76482         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76483         if gcc -pedantic.
76484         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76485         initializers for struct if -pedantic, unless it's C99 or later.
76486
76487 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76488
76489         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76490         Don't close an fd more than once. Identical atimes indicate
76491         success, not failure.
76492
76493 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76494
76495         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76496
76497 2006-11-23  Jim Meyering  <jim@meyering.net>
76498
76499         * build-aux/announce-gen: New file.  From coreutils.
76500
76501 2006-11-22  Jim Meyering  <jim@meyering.net>
76502
76503         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76504         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76505         (fts_read): Use a temporary to narrow the overused st_size member
76506         before using it in a switch statement.  Reported by Matthew Woehlke.
76507
76508         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76509         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76510
76511 2006-11-20  Bruno Haible  <bruno@clisp.org>
76512
76513         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76514         changequote instead of pairs of brackets.
76515         Reported by Andreas Schwab <schwab@suse.de>.
76516
76517 2006-11-21  Jim Meyering  <jim@meyering.net>
76518
76519         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76520         so as to remain compatible with older compilers.
76521         Patch from Michael Deutschmann.
76522
76523 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76524
76525         * MODULES.html.sh (File system functions): Add openat.
76526
76527         * lib/openat.h (rpl_fstatat): New macro, if
76528         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76529         (fstatat): Define to rpl_fstatat under the same conditions,
76530         unless COMPILING_FSTATAT.
76531         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76532         seems to have the bug.
76533         * lib/fstatat.c: New file.
76534         * modules/openat (Files): Add it.
76535
76536 2006-11-20  Bruno Haible  <bruno@clisp.org>
76537
76538         * Makefile: New file.
76539
76540 2006-11-20  Jim Meyering  <jim@meyering.net>
76541
76542         The beginnings of syntax-related checks for gnulib.
76543         * lib/Makefile: New file.
76544         * lib/t-idcache: New script.  Ensure that the two halves of
76545         idcache.c stay in sync.
76546
76547         * lib/idcache.c: Adjust comments in user- and group- portions to
76548         be more accurate, and to be consistent with one another.
76549
76550 2006-11-20  Jim Meyering  <jim@meyering.net>
76551
76552         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76553         continue using the flexible array member (thus, this module performs
76554         half as many malloc calls), with the addition that...
76555         (getgroup, getuser): Consistently record a non-match via an empty
76556         "name" string, and map an empty string match to a NULL return value.
76557         * modules/idcache (Depends-on): Re-add flexmember.
76558
76559         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76560         (getuidbyname, getgroup, getgidbyname): Likewise.
76561
76562         Use cleaner syntax: NULL rather than 0.
76563         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76564
76565 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76566
76567         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76568         It mishandled the case where the group was missing.
76569         Problem reported by Greg Schafer.
76570         * modules/idcache: Likewise.
76571
76572 2006-11-18  Jim Meyering  <jim@meyering.net>
76573
76574         * check-module (%exempt_header): Add exception for some
76575         conditionally-included headers.
76576
76577         * modules/i-ring (Depends-on): Add verify.
76578         (License): Change to LGPL.
76579
76580 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76581
76582         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76583         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76584         and inttostr.h.  Use snprintf rather than uinttostr, so that
76585         LGPLed code doesn't depend on GPLed.
76586
76587 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76588
76589         * modules/inline (License): Change from GPL to LGPL.
76590
76591 2006-11-17  Jim Meyering  <jim@meyering.net>
76592
76593         * modules/d-type (License): Switch to LGPL.
76594
76595 2006-11-15  Bruno Haible  <bruno@clisp.org>
76596
76597         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76598
76599 2006-11-15  Eric Blake  <ebb9@byu.net>
76600
76601         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76602         the module dependency.
76603
76604 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76605             Bruno Haible  <bruno@clisp.org>
76606
76607         * gnulib-tool (func_create_testdir): Add license consistency check.
76608
76609 2006-11-15  Eric Blake  <ebb9@byu.net>
76610
76611         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76612         random "(cached)" in configure output.
76613
76614 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76615
76616         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76617         test for conforming inttypes.h is both announced and cached.
76618
76619         * MODULES.html.sh (seen_modules, seen_files): New variables.
76620         (func_module): Rewrite to use a few less gnulib-tool and sed
76621         invocations.  Avoid a couple of quadratic algorithms for ...
76622         (missed_modules, missed_files): ... these, with ...
76623         (func_append, func_tmpdir): ... these new functions, from
76624         gnulib-tool.  Analogously, install traps for cleanup.
76625
76626         * tests/test-gc.c (main): Remove unused variables.
76627         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76628
76629 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76630
76631         * modules/inttostr (License): Change to LGPL.
76632
76633 2006-11-14  Eric Blake  <ebb9@byu.net>
76634
76635         * modules/tempname (License): Change to LGPL.
76636
76637 2006-11-14  Eric Blake  <ebb9@byu.net>
76638
76639         * doc/functions.texi (Function Portability): *printf functions on
76640         Cygwin now understand all POSIX size specifiers.
76641
76642 2006-11-14  Bruno Haible  <bruno@clisp.org>
76643
76644         * modules/c-ctype (License): Change to LGPL.
76645
76646 2006-11-12  Bruno Haible  <bruno@clisp.org>
76647
76648         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76649         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76650         for GNOME libraries, for which the include files are installed in
76651         subdirectories of $prefix/include.
76652
76653 2006-11-12  Bruno Haible  <bruno@clisp.org>
76654
76655         * m4/lib-link.m4: Require at least autoconf-2.54.
76656         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76657         name to underscores for the --with option.
76658
76659 2006-11-13  Bruno Haible  <bruno@clisp.org>
76660
76661         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76662         the tests directory.
76663         Reported by Ralf Wildenhues.
76664
76665 2006-11-13  Bruno Haible  <bruno@clisp.org>
76666
76667         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76668         (func_emit_initmacro_end): Undo the override here.
76669         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76670         Works around the famous automake error in coreutils.
76671
76672 2006-11-13  Eric Blake  <ebb9@byu.net>
76673
76674         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76675         element, not its node.
76676
76677 2006-11-12  Bruno Haible  <bruno@clisp.org>
76678
76679         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76680         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76681
76682 2006-11-12  Bruno Haible  <bruno@clisp.org>
76683
76684         * gnulib-tool: New option --local-symlink.
76685         (func_usage): Document it.
76686         (lsymbolic): New variable.
76687         (func_import, func_create_testdir): If --symlink was not specified,
76688         test whether --local-symlink was specified and the file comes from
76689         the local_gnulib_dir.
76690
76691 2006-11-12  Bruno Haible  <bruno@clisp.org>
76692
76693         * gnulib-tool (func_ln): New function.
76694         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76695
76696 2006-11-12  Bruno Haible  <bruno@clisp.org>
76697
76698         Finish support for source files in subdirectories.
76699         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76700         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76701         AUTOMAKE_OPTIONS.
76702         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76703
76704 2006-11-12  Bruno Haible  <bruno@clisp.org>
76705
76706         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76707         EXTRA_lib_SOURCES augmentation.
76708         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76709
76710 2006-11-12  Jim Meyering  <jim@meyering.net>
76711
76712         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76713         file descriptors.  This also averts a failure on systems with
76714         native openat support when a traversed directory lacks "x" access.
76715         * lib/fts_.h: Include "i-ring.h"
76716         (struct FTS) [fts_fd_ring]: New member.
76717         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76718         (FCHDIR): Add parentheses.
76719         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76720         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76721         When descending, rather than simply closing the previous
76722         fts_cwd_fd value, push that file descriptor onto the ring.
76723         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76724         (fts_open): Initialize the new fd_ring member.
76725         (fts_close): Clear the ring.
76726         (fts_safe_changedir): When possible, use our new fd_ring to skip
76727         the diropen and fstat and dev/ino comparison that would normally
76728         accompany a virtual `chdir ("..")'.
76729
76730         * modules/fts (Depends-on): Add i-ring.
76731         * modules/i-ring: New module.
76732         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76733         * m4/i-ring.m4: New file.
76734
76735 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76736
76737         * gnulib-tool (func_create_testdir): Fix replacement of
76738         `build-aux' in configure.ac.  Run autotools in gltests
76739         subdirectory.
76740         (func_create_testdir, func_create_megatestdir, test): There is
76741         no need for '--force' in most autotool invocations in a new
76742         tree.  Actually fail the whole test if any of the tools, or the
76743         configure or make stages fail.
76744
76745         Sync from Automake.
76746         * build-aux/gnupload: Revert last change.  Add pointer to upload
76747         instructions of the GNU Maintenance Instructions.
76748         Suggestion by Karl Berry.
76749
76750 2006-11-10  Jim Meyering  <jim@meyering.net>
76751
76752         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76753
76754 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76755
76756         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76757         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76758         (bind_textdomain_codeset) [! ENABLE_NLS]:
76759         Evaluate all the arguments.  That way, callers get compatible behavior
76760         if the arguments have side effects.  Also, it avoids some GCC
76761         diagnostics in some cases; Joel E. Denny reported problems when Bison
76762         was configured with --enable-gcc-warnigs.
76763
76764 2006-11-10  Jim Meyering  <jim@meyering.net>
76765
76766         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76767         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76768         account.
76769
76770 2006-11-10  Jim Meyering  <jim@meyering.net>
76771
76772         * modules/inline: New file/module.
76773         * modules/xalloc (Files): Remove m4/inline.m4.
76774         (Depends-on): Add inline, instead.
76775         * modules/oset: Likewise.
76776         * modules/list: Likewise.
76777
76778 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76779
76780         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76781         Problem reported by Matthew Woehlke.
76782
76783 2006-11-09  Bruno Haible  <bruno@clisp.org>
76784
76785         * lib/tempname.c (gen_tempname): Remove variant that invokes
76786         __gen_tempname.
76787         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76788         __gen_tempname.
76789
76790 2006-11-08  Bruno Haible  <bruno@clisp.org>
76791
76792         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76793         to 'yes' instead of 'cross-compiling'.
76794
76795 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
76796
76797         * lib/quotearg.h (quotearg_free): New decl.
76798         * lib/quotearg.c (quotearg_free): New function.
76799         (slot0, nslots, slotvec0, slotvec):
76800         Now file-scope so that quotearg_free can get at them.
76801
76802 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76803
76804         Sync from Automake.
76805         * build-aux/gnupload: Add missing 'gnu' to example URL.
76806         Report by Karl Berry.
76807
76808 2006-11-08  Bruno Haible  <bruno@clisp.org>
76809
76810         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
76811         Suggested by Paul Eggert.
76812
76813 2006-11-08  Jim Meyering  <jim@meyering.net>
76814
76815         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
76816         It's already included if !_LIBC.
76817         (fts_safe_changedir): Add a comment.
76818
76819 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76820
76821         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
76822         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
76823         Matthew Woehlke.
76824
76825         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
76826         definitions up, to avoid colliding with change below.
76827         (static_inline) [HAVE_INLINE]: New macro.
76828         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
76829         Provide extern decls when !HAVE_INLINE.  Do not define unless
76830         static_inline is defined, either by us or by xmalloc.c.  Use
76831         static_inline rather than static inline.
76832         (XCALLOC): Optimize sizeof(T) = 1 case.
76833         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
76834
76835 2006-11-07  Bruno Haible  <bruno@clisp.org>
76836
76837         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
76838         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
76839         AC_C_INLINE.
76840         * modules/xalloc (Files): Add m4/inline.m4.
76841
76842 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76843
76844         * README: Fix typo.
76845         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76846         (Miscellanous Notes): ...from this.
76847
76848 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76851         Mention that offsetof should be used instead of sizeof.
76852         From Bruno Haible.
76853
76854 2006-11-07  Bruno Haible  <bruno@clisp.org>
76855
76856         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76857
76858 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76859
76860         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76861         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76862         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76863         (gl_tree_add_before, gl_tree_add_after):
76864         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76865         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76866         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76867         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76868         (gl_linked_add_after, gl_linked_add_at): Likewise.
76869         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76870         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76871         (gl_tree_add_before, gl_tree_add_after): Likewise.
76872         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76873         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76874         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76875
76876 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76877
76878         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76879
76880 2006-11-06  Bruno Haible  <bruno@clisp.org>
76881
76882         * m4/inline.m4: New file.
76883         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76884         * modules/list (Files): Add m4/inline.m4.
76885         * modules/oset (Files): Likewise.
76886
76887 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * lib/idcache.c: Include <stddef.h>, for offsetof.
76890         (struct userid.name): Change from char * to a flexible array member.
76891         All uses changed.
76892         * modules/idcache (Depends-on): Add flexmember.
76893
76894         * MODULES.html.sh (Core language properties): New module flexmember.
76895         * modules/flexmember, m4/flexmember.m4: New files.
76896
76897         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76898         inline functions that are identical with the old xnmalloc_inline,
76899         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76900         that we can avoid some unnecessary integer multiplications and
76901         divisions in the common case where the element size is known at
76902         compile time.
76903         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76904         needed.
76905         (xnboundedmalloc): Remove.
76906         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76907         arguments, for consistency with rest of this header.
76908         (xcharalloc): Rewrite using XNMALLOC.
76909         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76910         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76911         versions have been moved to lib/xalloc.h and renamed to be the
76912         non-*_inline versions.
76913         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76914         and xnrealloc functions, since those functions are now inline and
76915         now call us.
76916         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76917         renaming described above.
76918         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76919         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76920         captures the dependency in AC_C_INLINE.
76921
76922         New module canonicalize-lgpl, proposed by Charles Wilson in
76923         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76924         with a few small changes afterwards.
76925         * MODULES.html.sh (File system functions): New module
76926         canonicalize-lgpl.
76927         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76928         and canonicalize_file_name.
76929         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76930         * modules/canonicalize-lgpl: New files.
76931
76932 2006-11-05  Bruno Haible  <bruno@clisp.org>
76933
76934         * gnulib-tool (func_import, func_create_testdir): Create directories
76935         also for files in subdirectories of lib/.
76936
76937 2006-11-05  Bruno Haible  <bruno@clisp.org>
76938
76939         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76940         ANSI C compliant.
76941
76942 2006-11-03  Bruno Haible  <bruno@clisp.org>
76943
76944         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76945         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76946         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76947         (xnboundedmalloc): New inline function.
76948         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76949         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76950         xmalloc.
76951         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76952         xmalloc.
76953         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76954         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76955         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76956         xmalloc.
76957         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76958         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76959         xmalloc.
76960         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76961         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76962         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76963         xmalloc.
76964         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76965         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76966         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76967         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76968         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76969         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76970         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76971
76972 2006-11-03  Bruno Haible  <bruno@clisp.org>
76973
76974         * lib/c-ctype.h [C++]: Define functions without name mangling.
76975         * lib/fwriteerror.h [C++]: Likewise.
76976         * lib/gcd.h [C++]: Likewise.
76977         * lib/linebreak.h [C++]: Likewise.
76978
76979 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76980
76981         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76982         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76983         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76984         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76985         Check for functions and headers just once.
76986         Check for declaration of canonicalize_file_name.
76987         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76988
76989 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76990
76991         * gnulib-tool (func_import): Fix typo in actioncmd.
76992
76993 2006-11-02  Bruno Haible  <bruno@clisp.org>
76994
76995         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76996         newline sequence in the Makefile.am snippet as a space, like "make"
76997         does.
76998         Reported by Roger Persson <perrog@gmail.com>.
76999
77000 2006-11-01  Bruno Haible  <bruno@clisp.org>
77001
77002         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77003         already declared in <string.h>.
77004         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77005
77006 2006-11-01  Bruno Haible  <bruno@clisp.org>
77007
77008         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77009         * lib/strcase.h: Include <string.h>.
77010         (strcasecmp): Define to rpl_strcasecmp here.
77011
77012 2006-11-01  Bruno Haible  <bruno@clisp.org>
77013
77014         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77015
77016 2006-11-01  Eric Blake  <ebb9@byu.net>
77017
77018         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77019
77020         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77021
77022 2006-10-29  Bruno Haible  <bruno@clisp.org>
77023
77024         Make it compile in C++ mode.
77025         * lib/full-write.c (full_rw): Add a cast.
77026
77027 2006-11-01  Bruno Haible  <bruno@clisp.org>
77028
77029         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77030         be POSIX compliant.
77031         Reported by Roger Persson <perrog@gmail.com>.
77032
77033 2006-11-01  Eric Blake  <ebb9@byu.net>
77034
77035         * lib/getopt_.h: Fix comments.
77036
77037 2006-10-31  Eric Blake  <ebb9@byu.net>
77038
77039         * modules/tmpdir (Depends-on): Add sys_stat.
77040         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77041         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77042         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77043         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77044         tempname.
77045
77046 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77047
77048         Avoid some C++ diagnostics reported by Bruno Haible.
77049         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77050         xmalloc.
77051         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77052         (struct slotvec): Move to top level.
77053         (quotearg_n_options): Rewrite to avoid xmalloc.
77054         * lib/xalloc.h (xcharalloc): New function.
77055         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77056         [defined __cplusplus]: Add function template that provides result
77057         type propagation.  This part of the change is from Bruno Haible.
77058
77059 2006-10-29  Bruno Haible  <bruno@clisp.org>
77060
77061         Make it compile in C++ mode.
77062         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77063         * lib/strnlen1.c (strnlen1): Cast memchr result.
77064         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77065         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77066         (create_temp_dir): Rename local variable 'template'.
77067         (compile_csharp_using_sscli): Add cast.
77068         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77069         * lib/findprog.c (find_in_path): Likewise.
77070         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77071         * lib/wait-process.c (register_slave_subprocess): Likewise.
77072
77073 2006-10-22  Bruno Haible  <bruno@clisp.org>
77074
77075         * modules/tsearch: New file.
77076         * lib/tsearch.h: New file.
77077         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77078         * m4/tsearch.m4: New file.
77079         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77080
77081 2006-10-29  Eric Blake  <ebb9@byu.net>
77082
77083         * lib/arcfour.c: Assume config.h.
77084         * lib/arctwo.c: Likewise.
77085         * lib/base64.c: Likewise.
77086         * lib/check-version.c: Likewise.
77087         * lib/crc.c: Likewise.
77088         * lib/des.c: Likewise.
77089         * lib/gc-gnulib.c: Likewise.
77090         * lib/gc-libgcrypt.c: Likewise.
77091         * lib/gc-pbkdf2-sha1.c: Likewise.
77092         * lib/getaddrinfo.c: Likewise.
77093         * lib/getdelim.c: Likewise.
77094         * lib/getline.c: Likewise.
77095         * lib/hmac-md5.c: Likewise.
77096         * lib/hmac-sha1.c: Likewise.
77097         * lib/iconvme.c: Likewise.
77098         * lib/md2.c: Likewise.
77099         * lib/md4.c: Likewise.
77100         * lib/memxor.c: Likewise.
77101         * lib/read-file.c: Likewise.
77102         * lib/readline.c: Likewise.
77103         * lib/rijndael-alg-fst.c: Likewise.
77104         * lib/rijndael-api-fst.c: Likewise.
77105         * lib/xgetdomainname.c: Likewise.
77106
77107 2006-10-28  Eric Blake  <ebb9@byu.net>
77108
77109         * lib/xstrndup.c: Assume config.h.
77110
77111 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77112
77113         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77114         stat-macros.h is now for our own macros, whereas stat_h is for
77115         macros in the <sys/stat.h> name space.
77116         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77117         (STAT_MACROS_H): Remove.
77118         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77119         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77120         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77121         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77122         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77123         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77124         Move these macros to ...
77125         * lib/stat_.h: here.  Don't include stat-macros.h.
77126         * lib/canonicalize.c: Don't include stat-macros.h.
77127         * lib/chown.c: Likewise.
77128         * lib/euidaccess.c: Likewise.
77129         * lib/file-type.c: Likewise.
77130         * lib/filemode.c: Likewise.
77131         * lib/glob.c: Likewise.
77132         * lib/isapipe.c: Likewise.
77133         * lib/lchown.c: Likewise.
77134         * lib/lstat.c: Likewise.
77135         * lib/mkdir-p.c: Likewise.
77136         * lib/rmdir.c: Likewise.
77137         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77138         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77139         unless mkdir isn't declared, to speed up 'configure'.
77140         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77141         would define all the S_* symbols.
77142         * modules/canonicalize (Depends-on):
77143         Depend on sys_stat, not stat-macros.
77144         * modules/chown: Likewise.
77145         * modules/euidaccess: Likewise.
77146         * modules/filemode: Likewise.
77147         * modules/file-type: Likewise.
77148         * modules/glob: Likewise.
77149         * modules/isapipe: Likewise.
77150         * modules/lchown: Likewise.
77151         * modules/lstat: Likewise.
77152         * modules/mkancesdirs: Likewise.
77153         * modules/rmdir: Likewise.
77154         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77155         * modules/modechange: Likewise.
77156         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77157         (configure.ac): Remove gl_STAT_MACROS.
77158         * modules/sys_stat (Depends-on): Remove stat-macros.
77159
77160 2006-10-27  Bruno Haible  <bruno@clisp.org>
77161
77162         * m4/signed.m4: Remove file.
77163         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77164         invocation.
77165         * modules/vasnprintf (Files): Remove m4/signed.m4.
77166
77167 2006-10-27  Bruno Haible  <bruno@clisp.org>
77168
77169         Update to GNU gettext 0.16.
77170         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77171         m4/inttypes-h.m4, m4/signed.m4.
77172         * m4/gettext.m4: Update to GNU gettext 0.16.
77173         * m4/intl.m4: New file, from GNU gettext.
77174         * m4/intldir.m4: New file, from GNU gettext.
77175         * config/srclist.txt: Update
77176
77177 2006-10-27  Eric Blake  <ebb9@byu.net>
77178
77179         * MODULES.html.sh: Document tempname.
77180         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77181         dependencies.
77182         (Files): Move lib/tempname.c...
77183         * modules/tempname: ...to this new module.
77184         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77185         (gl_PREREQ_TEMPNAME): Move...
77186         * m4/tempname.m4: ...to this new file.
77187         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77188         * modules/sys_stat (Depends-on): Add stat-macros.
77189         * lib/stat_.h (includes): Pick up stat macros.
77190         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77191         if stat macros are broken.
77192         * lib/tempname.c (includes): No need to include "stat-macros.h".
77193         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77194         (direxists, __path_search) [!_LIBC]: Don't compile these in
77195         gnulib; the tmpdir module covers that.
77196         * lib/tempname.h: New file.
77197
77198 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77199
77200         * COPYING: Explain how gnulib-tool converts licence headers.
77201         Almost all wording by Eric Blake.
77202
77203 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77204
77205         * lib/mbchar.h (is_basic_table): Make read-only.
77206         * lib/mbchar.c (is_basic_table): Likewise.
77207         Reported by John Darrington.
77208
77209 2006-10-25  Bruno Haible  <bruno@clisp.org>
77210
77211         * lib/progname.h (set_program_name): Undefine before defining.
77212
77213 2006-10-25  Bruno Haible  <bruno@clisp.org>
77214
77215         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77216         false for non-gcc C++ compilers.
77217         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77218
77219 2006-10-24  Bruno Haible  <bruno@clisp.org>
77220
77221         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77222         iconv implementations like Irix iconv.
77223
77224 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77225
77226         * modules/vararrays: New file.
77227         * m4/vararrays.m4: New file, taken from diffutils.
77228         * MODULES.html.sh: New module vararrays.
77229
77230 2006-10-24  Karl Berry  <karl@gnu.org>
77231
77232         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77233         Don't call GNU Unix.
77234
77235 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77236
77237         * users.txt: Add Libtool.
77238
77239         Sync from Libtool:
77240
77241         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77242
77243         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77244         to gnulib's policy of including config.h unconditionally.
77245
77246 2006-10-24  Bruno Haible  <bruno@clisp.org>
77247
77248         * modules/wcwidth (Files): Add m4/wint_t.m4.
77249         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77250         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77251
77252 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77253
77254         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77255         to pacify GCC with some -W flags enabled.  Problem reported by
77256         Bruno Haible.
77257
77258 2006-10-24  Jim Meyering  <jim@meyering.net>
77259
77260         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77261         Reported by Karl Berry.
77262
77263 2006-10-23  Bruno Haible  <bruno@clisp.org>
77264
77265         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77266
77267 2006-10-24  Bruno Haible  <bruno@clisp.org>
77268
77269         * lib/gl_list.h: Use C comment style, not C++ comment style.
77270
77271 2006-10-23  Eric Blake  <ebb9@byu.net>
77272
77273         * lib/getaddrinfo.c (includes): Add missing include.
77274
77275 2006-10-23  Bruno Haible  <bruno@clisp.org>
77276             Paul Eggert  <eggert@cs.ucla.edu>
77277
77278         Ability to rename obstack_free.
77279         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77280         obstack_free.
77281         (obstack_free): Invoke the __obstack_free macro.
77282         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77283
77284 2006-10-23  Bruno Haible  <bruno@clisp.org>
77285             Paul Eggert  <eggert@cs.ucla.edu>
77286
77287         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77288         __argc, __argv from the declaration. (They are defined as macros on
77289         mingw.)
77290
77291 2006-10-22  Bruno Haible  <bruno@clisp.org>
77292
77293         * doc/gnulib-intro.texi: New file.
77294         * doc/gnulib.texi: Include it.
77295
77296 2006-10-21  Bruno Haible  <bruno@clisp.org>
77297
77298         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77299         "Introduction", "Miscellanous Notes", "Particular Modules".
77300
77301 2006-10-21  Bruno Haible  <bruno@clisp.org>
77302
77303         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77304         Change mostlyclean-local rule to avoid sh syntax error from bash
77305         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77306
77307 2006-10-23  Jim Meyering  <jim@meyering.net>
77308
77309         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77310         in place of snprintf.
77311
77312         * modules/inttostr (Files): Add lib/uinttostr.c.
77313         * lib/uinttostr.c (inttostr): New file/function.
77314         * lib/inttostr.h (uinttostr): Declare.
77315         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77316         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77317         Add uinttostr.
77318         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77319
77320 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77321
77322         * lib/canonicalize.c (ELOOP): Define if not already defined.
77323         Problem reported by Bruno Haible in
77324         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77325
77326 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77327
77328         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77329         Problem reported by Perry Smith and Ville Laurikari.
77330
77331         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77332         uses.
77333
77334 2006-10-19  Bruno Haible  <bruno@clisp.org>
77335
77336         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77337         for mingw.
77338
77339 2006-10-19  Bruno Haible  <bruno@clisp.org>
77340
77341         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77342         Needed for mingw.
77343
77344 2006-10-19  Bruno Haible  <bruno@clisp.org>
77345
77346         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77347
77348 2006-10-19  Bruno Haible  <bruno@clisp.org>
77349
77350         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77351         it.
77352
77353 2006-10-19  Bruno Haible  <bruno@clisp.org>
77354
77355         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77356         invocation.
77357
77358 2006-10-19  Bruno Haible  <bruno@clisp.org>
77359
77360         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77361         mountlist by default.
77362
77363 2006-10-16  Bruno Haible  <bruno@clisp.org>
77364
77365         * lib/c-strstr.c: Include c-strstr.h.
77366
77367 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77368
77369         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77370         in a slash.
77371
77372 2006-10-18  Bruno Haible  <bruno@clisp.org>
77373
77374         * lib/lock.h [C++]: Wrap definitions in extern "C".
77375
77376 2006-10-18  Bruno Haible  <bruno@clisp.org>
77377
77378         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77379         gl_LIBOBJS list.
77380
77381 2006-10-18  Bruno Haible  <bruno@clisp.org>
77382
77383         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77384
77385 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77386
77387         * lib/xstrtol.h: Include gettext.h.
77388         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77389         Problem reported by Eric Blake.
77390         * modules/xstrtol (Depends-on): Add gettext-h.
77391
77392 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77393
77394         * lib/strftime.c (advance): New macro.
77395         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77396         incomplete type, so you can't add 0 to it.  Problem and patch
77397         reported by Eelco Dolstra for dietlibc.
77398
77399 2006-10-18  Jim Meyering  <jim@meyering.net>
77400
77401         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77402         type for a local, and rename it: s/up/user_proc/.
77403
77404 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77405
77406         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77407         READ_UTMP_USER_PROCESS.
77408         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77409
77410 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77411
77412         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77413         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77414
77415 2006-10-17  Eric Blake  <ebb9@byu.net>
77416
77417         * lib/sigprocmask.c (sigprocmask): Fix typo.
77418
77419         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77420
77421         * modules/clean-temp (Makefile.am): Don't add to make output...
77422         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77423         config.h.
77424
77425 2006-10-17  Bruno Haible  <bruno@clisp.org>
77426
77427         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77428         differently if DEFAULT_TEXT_DOMAIN is set.
77429
77430 2006-10-16  Bruno Haible  <bruno@clisp.org>
77431
77432         * lib/clean-temp.c: Include fwriteerror.h.
77433
77434 2006-10-16  Bruno Haible  <bruno@clisp.org>
77435
77436         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77437
77438 2006-10-16  Bruno Haible  <bruno@clisp.org>
77439
77440         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77441         * lib/sigprocmask.h: Include <sys/types.h>.
77442         (sigset_t): Use the system's definition if present.
77443
77444 2006-10-17  Eric Blake  <ebb9@byu.net>
77445
77446         * lib/xvasprintf.c (includes): Assume config.h.
77447         * lib/xasprintf.c (includes): Likewise.
77448
77449 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77450
77451         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77452         at least as wide as intmax_t.
77453
77454 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77455
77456         (Imported from Automake.)
77457         * build-aux/gnupload: Update to version 1.1 of directive file.
77458
77459 2006-10-16  Eric Blake  <ebb9@byu.net>
77460
77461         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77462         match Automake 1.10a.
77463
77464 2006-10-14  Bruno Haible  <bruno@clisp.org>
77465
77466         * modules/sigprocmask: New file.
77467         * lib/sigprocmask.h: New file.
77468         * lib/sigprocmask.c: New file.
77469         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77470         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77471         request sigprocmask.o.
77472         (gl_PREREQ_SIGPROCMASK): New macro.
77473         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77474         (Depends-on): Add sigprocmask.
77475         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77476         gt_SIGNALBLOCKING. Test for 'raise' only once.
77477         * lib/fatal-signal.c: Include sigprocmask.h.
77478         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77479         unblock_fatal_signals): Define always.
77480         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77481         sigprocmask.
77482
77483 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77484
77485         Sync from Automake.
77486         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77487         which incorrectly sets the mode of an existing destination
77488         directory.  In some cases the unpatched install-sh could do the
77489         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77490         system.  We hope this is rare in practice, but it's clearly worth
77491         fixing.  Problem reported by Alex Unleashed in
77492         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77493         Also, don't bother to check for -m bugs unless we're using -m;
77494         suggested by Stepan Kasal.
77495
77496 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77497
77498         Sync from Automake.
77499         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77500         `-c' flag, so they appear at the same position as in %FASTDEP%
77501         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77502         which ignores unknown options only after the first non-option.
77503         Bug report against M4 by Nelson H. F. Beebe.
77504
77505 2006-10-13  Jim Meyering  <jim@meyering.net>
77506
77507         Fix a bug in yesterday's change.
77508         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77509         p->fts_statp->st_dev would be used uninitialized.
77510         Ensures that we always call fts_stat on the very first entry.
77511         Miklos Szeredi reported that find -xdev stopped working.
77512
77513 2006-10-12  Bruno Haible  <bruno@clisp.org>
77514
77515         * gnulib-tool (func_get_automake_snippet): Append an automatically
77516         computed EXTRA_DIST augmentation.
77517         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77518         * modules/alloca-opt (Makefile.am): Likewise.
77519         * modules/allocsa (Makefile.am): Likewise.
77520         * modules/arcfour (Makefile.am): Likewise.
77521         * modules/arctwo (Makefile.am): Likewise.
77522         * modules/argmatch (Makefile.am): Likewise.
77523         * modules/argz (Makefile.am): Likewise.
77524         * modules/atexit (Makefile.am): Likewise.
77525         * modules/backupfile (Makefile.am): Likewise.
77526         * modules/byteswap (Makefile.am): Likewise.
77527         * modules/c-strtod (Makefile.am): Likewise.
77528         * modules/c-strtold (Makefile.am): Likewise.
77529         * modules/calloc (Makefile.am): Likewise.
77530         * modules/canon-host (Makefile.am): Likewise.
77531         * modules/canonicalize (Makefile.am): Likewise.
77532         * modules/chdir-long (Makefile.am): Likewise.
77533         * modules/chdir-safer (Makefile.am): Likewise.
77534         * modules/check-version (Makefile.am): Likewise.
77535         * modules/chown (Makefile.am): Likewise.
77536         * modules/cloexec (Makefile.am): Likewise.
77537         * modules/close-stream (Makefile.am): Likewise.
77538         * modules/closeout (Makefile.am): Likewise.
77539         * modules/crc (Makefile.am): Likewise.
77540         * modules/csharpexec (Makefile.am): Likewise.
77541         * modules/cycle-check (Makefile.am): Likewise.
77542         * modules/des (Makefile.am): Likewise.
77543         * modules/dev-ino (Makefile.am): Likewise.
77544         * modules/dirfd (Makefile.am): Likewise.
77545         * modules/dirname (Makefile.am): Likewise.
77546         * modules/dup2 (Makefile.am): Likewise.
77547         * modules/eealloc (Makefile.am): Likewise.
77548         * modules/error (Makefile.am): Likewise.
77549         * modules/euidaccess (Makefile.am): Likewise.
77550         * modules/exclude (Makefile.am): Likewise.
77551         * modules/exitfail (Makefile.am): Likewise.
77552         * modules/fcntl-safer (Makefile.am): Likewise.
77553         * modules/fcntl (Makefile.am): Likewise.
77554         * modules/file-type (Makefile.am): Likewise.
77555         * modules/fileblocks (Makefile.am): Likewise.
77556         * modules/filemode (Makefile.am): Likewise.
77557         * modules/filenamecat (Makefile.am): Likewise.
77558         * modules/fnmatch (Makefile.am): Likewise.
77559         * modules/fopen-safer (Makefile.am): Likewise.
77560         * modules/fpending (Makefile.am): Likewise.
77561         * modules/fprintftime (Makefile.am): Likewise.
77562         * modules/free (Makefile.am): Likewise.
77563         * modules/fsusage (Makefile.am): Likewise.
77564         * modules/ftruncate (Makefile.am): Likewise.
77565         * modules/fts (Makefile.am): Likewise.
77566         * modules/gc-arcfour (Makefile.am): Likewise.
77567         * modules/gc-des (Makefile.am): Likewise.
77568         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77569         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77570         * modules/gc-md4 (Makefile.am): Likewise.
77571         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77572         * modules/gc-sha1 (Makefile.am): Likewise.
77573         * modules/gc (Makefile.am): Likewise.
77574         * modules/getaddrinfo (Makefile.am): Likewise.
77575         * modules/getcwd (Makefile.am): Likewise.
77576         * modules/getdelim (Makefile.am): Likewise.
77577         * modules/getdomainname (Makefile.am): Likewise.
77578         * modules/getgroups (Makefile.am): Likewise.
77579         * modules/gethostname (Makefile.am): Likewise.
77580         * modules/gethrxtime (Makefile.am): Likewise.
77581         * modules/getline (Makefile.am): Likewise.
77582         * modules/getloadavg (Makefile.am): Likewise.
77583         * modules/getlogin_r (Makefile.am): Likewise.
77584         * modules/getndelim2 (Makefile.am): Likewise.
77585         * modules/getopt (Makefile.am): Likewise.
77586         * modules/getpagesize (Makefile.am): Likewise.
77587         * modules/getpass-gnu (Makefile.am): Likewise.
77588         * modules/getpass (Makefile.am): Likewise.
77589         * modules/getsubopt (Makefile.am): Likewise.
77590         * modules/gettime (Makefile.am): Likewise.
77591         * modules/gettimeofday (Makefile.am): Likewise.
77592         * modules/getugroups (Makefile.am): Likewise.
77593         * modules/getusershell (Makefile.am): Likewise.
77594         * modules/glob (Makefile.am): Likewise.
77595         * modules/group-member (Makefile.am): Likewise.
77596         * modules/hard-locale (Makefile.am): Likewise.
77597         * modules/hash (Makefile.am): Likewise.
77598         * modules/hmac-md5 (Makefile.am): Likewise.
77599         * modules/hmac-sha1 (Makefile.am): Likewise.
77600         * modules/human (Makefile.am): Likewise.
77601         * modules/idcache (Makefile.am): Likewise.
77602         * modules/imaxabs (Makefile.am): Likewise.
77603         * modules/imaxdiv (Makefile.am): Likewise.
77604         * modules/inet_ntop (Makefile.am): Likewise.
77605         * modules/inet_pton (Makefile.am): Likewise.
77606         * modules/intprops (Makefile.am): Likewise.
77607         * modules/inttostr (Makefile.am): Likewise.
77608         * modules/inttypes (Makefile.am): Likewise.
77609         * modules/isapipe (Makefile.am): Likewise.
77610         * modules/javaversion (Makefile.am): Likewise.
77611         * modules/lchmod (Makefile.am): Likewise.
77612         * modules/lchown (Makefile.am): Likewise.
77613         * modules/localcharset (Makefile.am): Likewise.
77614         * modules/long-options (Makefile.am): Likewise.
77615         * modules/lstat (Makefile.am): Likewise.
77616         * modules/malloc (Makefile.am): Likewise.
77617         * modules/mathl (Makefile.am): Likewise.
77618         * modules/mbchar (Makefile.am): Likewise.
77619         * modules/md2 (Makefile.am): Likewise.
77620         * modules/md4 (Makefile.am): Likewise.
77621         * modules/md5 (Makefile.am): Likewise.
77622         * modules/memcasecmp (Makefile.am): Likewise.
77623         * modules/memchr (Makefile.am): Likewise.
77624         * modules/memcmp (Makefile.am): Likewise.
77625         * modules/memcoll (Makefile.am): Likewise.
77626         * modules/memcpy (Makefile.am): Likewise.
77627         * modules/memmem (Makefile.am): Likewise.
77628         * modules/memmove (Makefile.am): Likewise.
77629         * modules/mempcpy (Makefile.am): Likewise.
77630         * modules/memrchr (Makefile.am): Likewise.
77631         * modules/memset (Makefile.am): Likewise.
77632         * modules/memxor (Makefile.am): Likewise.
77633         * modules/mkancesdirs (Makefile.am): Likewise.
77634         * modules/mkdir-p (Makefile.am): Likewise.
77635         * modules/mkdir (Makefile.am): Likewise.
77636         * modules/mkdtemp (Makefile.am): Likewise.
77637         * modules/mkstemp (Makefile.am): Likewise.
77638         * modules/mktime (Makefile.am): Likewise.
77639         * modules/modechange (Makefile.am): Likewise.
77640         * modules/mountlist (Makefile.am): Likewise.
77641         * modules/nanosleep (Makefile.am): Likewise.
77642         * modules/obstack (Makefile.am): Likewise.
77643         * modules/openat (Makefile.am): Likewise.
77644         * modules/pagealign_alloc (Makefile.am): Likewise.
77645         * modules/pathmax (Makefile.am): Likewise.
77646         * modules/physmem (Makefile.am): Likewise.
77647         * modules/poll (Makefile.am): Likewise.
77648         * modules/posixtm (Makefile.am): Likewise.
77649         * modules/posixver (Makefile.am): Likewise.
77650         * modules/putenv (Makefile.am): Likewise.
77651         * modules/quote (Makefile.am): Likewise.
77652         * modules/quotearg (Makefile.am): Likewise.
77653         * modules/raise (Makefile.am): Likewise.
77654         * modules/read-file (Makefile.am): Likewise.
77655         * modules/readline (Makefile.am): Likewise.
77656         * modules/readlink (Makefile.am): Likewise.
77657         * modules/readtokens (Makefile.am): Likewise.
77658         * modules/readutmp (Makefile.am): Likewise.
77659         * modules/realloc (Makefile.am): Likewise.
77660         * modules/regex (Makefile.am): Likewise.
77661         * modules/rename-dest-slash (Makefile.am): Likewise.
77662         * modules/rename (Makefile.am): Likewise.
77663         * modules/rijndael (Makefile.am): Likewise.
77664         * modules/rmdir (Makefile.am): Likewise.
77665         * modules/rpmatch (Makefile.am): Likewise.
77666         * modules/safe-read (Makefile.am): Likewise.
77667         * modules/safe-write (Makefile.am): Likewise.
77668         * modules/same-inode (Makefile.am): Likewise.
77669         * modules/same (Makefile.am): Likewise.
77670         * modules/save-cwd (Makefile.am): Likewise.
77671         * modules/savedir (Makefile.am): Likewise.
77672         * modules/setenv (Makefile.am): Likewise.
77673         * modules/settime (Makefile.am): Likewise.
77674         * modules/sha1 (Makefile.am): Likewise.
77675         * modules/sig2str (Makefile.am): Likewise.
77676         * modules/snprintf (Makefile.am): Likewise.
77677         * modules/stat-macros (Makefile.am): Likewise.
77678         * modules/stat-time (Makefile.am): Likewise.
77679         * modules/stdbool (Makefile.am): Likewise.
77680         * modules/stdint (Makefile.am): Likewise.
77681         * modules/stdlib-safer (Makefile.am): Likewise.
77682         * modules/stpcpy (Makefile.am): Likewise.
77683         * modules/stpncpy (Makefile.am): Likewise.
77684         * modules/strcase (Makefile.am): Likewise.
77685         * modules/strcasestr (Makefile.am): Likewise.
77686         * modules/strchrnul (Makefile.am): Likewise.
77687         * modules/strcspn (Makefile.am): Likewise.
77688         * modules/strdup (Makefile.am): Likewise.
77689         * modules/strerror (Makefile.am): Likewise.
77690         * modules/strftime (Makefile.am): Likewise.
77691         * modules/strndup (Makefile.am): Likewise.
77692         * modules/strnlen (Makefile.am): Likewise.
77693         * modules/strpbrk (Makefile.am): Likewise.
77694         * modules/strsep (Makefile.am): Likewise.
77695         * modules/strstr (Makefile.am): Likewise.
77696         * modules/strtod (Makefile.am): Likewise.
77697         * modules/strtoimax (Makefile.am): Likewise.
77698         * modules/strtok_r (Makefile.am): Likewise.
77699         * modules/strtol (Makefile.am): Likewise.
77700         * modules/strtoll (Makefile.am): Likewise.
77701         * modules/strtoul (Makefile.am): Likewise.
77702         * modules/strtoull (Makefile.am): Likewise.
77703         * modules/strtoumax (Makefile.am): Likewise.
77704         * modules/strverscmp (Makefile.am): Likewise.
77705         * modules/sys_socket (Makefile.am): Likewise.
77706         * modules/sys_stat (Makefile.am): Likewise.
77707         * modules/sysexits (Makefile.am): Likewise.
77708         * modules/time_r (Makefile.am): Likewise.
77709         * modules/timegm (Makefile.am): Likewise.
77710         * modules/timespec (Makefile.am): Likewise.
77711         * modules/tmpfile-safer (Makefile.am): Likewise.
77712         * modules/trim (Makefile.am): Likewise.
77713         * modules/unistd-safer (Makefile.am): Likewise.
77714         * modules/unlinkdir (Makefile.am): Likewise.
77715         * modules/unlocked-io (Makefile.am): Likewise.
77716         * modules/userspec (Makefile.am): Likewise.
77717         * modules/utime (Makefile.am): Likewise.
77718         * modules/utimecmp (Makefile.am): Likewise.
77719         * modules/utimens (Makefile.am): Likewise.
77720         * modules/vasnprintf (Makefile.am): Likewise.
77721         * modules/vasprintf (Makefile.am): Likewise.
77722         * modules/vsnprintf (Makefile.am): Likewise.
77723         * modules/xalloc (Makefile.am): Likewise.
77724         * modules/xgetcwd (Makefile.am): Likewise.
77725         * modules/xnanosleep (Makefile.am): Likewise.
77726         * modules/xreadlink (Makefile.am): Likewise.
77727         * modules/xstrtod (Makefile.am): Likewise.
77728         * modules/xstrtol (Makefile.am): Likewise.
77729         * modules/xstrtold (Makefile.am): Likewise.
77730         * modules/yesno (Makefile.am): Likewise.
77731         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77732
77733 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77734
77735         * modules/error (Makefile.am): Distribute files through
77736         EXTRA_DIST, not lib_SOURCES.
77737
77738 2006-10-12  Eric Blake  <ebb9@byu.net>
77739
77740         * modules/error (Makefile.am): Distribute files in /lib.
77741         * modules/obstack (Makefile.am): Likewise.
77742
77743 2006-10-12  Bruno Haible  <bruno@clisp.org>
77744
77745         * modules/acl (Makefile.am): Distribute all files in lib/ through
77746         EXTRA_DIST.
77747         * modules/arcfour (Makefile.am): Likewise.
77748         * modules/arctwo (Makefile.am): Likewise.
77749         * modules/argmatch (Makefile.am): Likewise.
77750         * modules/argz (Makefile.am): Likewise.
77751         * modules/atexit (Makefile.am): Likewise.
77752         * modules/backupfile (Makefile.am): Likewise.
77753         * modules/c-strtod (Makefile.am): Likewise.
77754         * modules/c-strtold (Makefile.am): Likewise.
77755         * modules/calloc (Makefile.am): Likewise.
77756         * modules/canon-host (Makefile.am): Likewise.
77757         * modules/canonicalize (Makefile.am): Likewise.
77758         * modules/chdir-long (Makefile.am): Likewise.
77759         * modules/chdir-safer (Makefile.am): Likewise.
77760         * modules/check-version (Makefile.am): Likewise.
77761         * modules/chown (Makefile.am): Likewise.
77762         * modules/cloexec (Makefile.am): Likewise.
77763         * modules/close-stream (Makefile.am): Likewise.
77764         * modules/closeout (Makefile.am): Likewise.
77765         * modules/crc (Makefile.am): Likewise.
77766         * modules/cycle-check (Makefile.am): Likewise.
77767         * modules/des (Makefile.am): Likewise.
77768         * modules/dirfd (Makefile.am): Likewise.
77769         * modules/dirname (Makefile.am): Likewise.
77770         * modules/dup2 (Makefile.am): Likewise.
77771         * modules/euidaccess (Makefile.am): Likewise.
77772         * modules/exclude (Makefile.am): Likewise.
77773         * modules/exitfail (Makefile.am): Likewise.
77774         * modules/fcntl-safer (Makefile.am): Likewise.
77775         * modules/file-type (Makefile.am): Likewise.
77776         * modules/fileblocks (Makefile.am): Likewise.
77777         * modules/filemode (Makefile.am): Likewise.
77778         * modules/filenamecat (Makefile.am): Likewise.
77779         * modules/fnmatch (Makefile.am): Likewise.
77780         * modules/fopen-safer (Makefile.am): Likewise.
77781         * modules/fpending (Makefile.am): Likewise.
77782         * modules/fprintftime (Makefile.am): Likewise.
77783         * modules/free (Makefile.am): Likewise.
77784         * modules/fsusage (Makefile.am): Likewise.
77785         * modules/ftruncate (Makefile.am): Likewise.
77786         * modules/fts (Makefile.am): Likewise.
77787         * modules/gc (Makefile.am): Likewise.
77788         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77789         * modules/getaddrinfo (Makefile.am): Likewise.
77790         * modules/getcwd (Makefile.am): Likewise.
77791         * modules/getdelim (Makefile.am): Likewise.
77792         * modules/getdomainname (Makefile.am): Likewise.
77793         * modules/getgroups (Makefile.am): Likewise.
77794         * modules/gethostname (Makefile.am): Likewise.
77795         * modules/gethrxtime (Makefile.am): Likewise.
77796         * modules/getline (Makefile.am): Likewise.
77797         * modules/getloadavg (Makefile.am): Likewise.
77798         * modules/getlogin_r (Makefile.am): Likewise.
77799         * modules/getopt (Makefile.am): Likewise.
77800         * modules/getpass (Makefile.am): Likewise.
77801         * modules/getpass-gnu (Makefile.am): Likewise.
77802         * modules/getsubopt (Makefile.am): Likewise.
77803         * modules/gettime (Makefile.am): Likewise.
77804         * modules/gettimeofday (Makefile.am): Likewise.
77805         * modules/getugroups (Makefile.am): Likewise.
77806         * modules/getusershell (Makefile.am): Likewise.
77807         * modules/glob (Makefile.am): Likewise.
77808         * modules/group-member (Makefile.am): Likewise.
77809         * modules/hard-locale (Makefile.am): Likewise.
77810         * modules/hash (Makefile.am): Likewise.
77811         * modules/hmac-md5 (Makefile.am): Likewise.
77812         * modules/hmac-sha1 (Makefile.am): Likewise.
77813         * modules/human (Makefile.am): Likewise.
77814         * modules/idcache (Makefile.am): Likewise.
77815         * modules/imaxabs (Makefile.am): Likewise.
77816         * modules/imaxdiv (Makefile.am): Likewise.
77817         * modules/inet_ntop (Makefile.am): Likewise.
77818         * modules/inet_pton (Makefile.am): Likewise.
77819         * modules/inttostr (Makefile.am): Likewise.
77820         * modules/isapipe (Makefile.am): Likewise.
77821         * modules/lchown (Makefile.am): Likewise.
77822         * modules/long-options (Makefile.am): Likewise.
77823         * modules/lstat (Makefile.am): Likewise.
77824         * modules/malloc (Makefile.am): Likewise.
77825         * modules/mathl (Makefile.am): Likewise.
77826         * modules/mbchar (Makefile.am): Likewise.
77827         * modules/md2 (Makefile.am): Likewise.
77828         * modules/md4 (Makefile.am): Likewise.
77829         * modules/md5 (Makefile.am): Likewise.
77830         * modules/memcasecmp (Makefile.am): Likewise.
77831         * modules/memchr (Makefile.am): Likewise.
77832         * modules/memcmp (Makefile.am): Likewise.
77833         * modules/memcoll (Makefile.am): Likewise.
77834         * modules/memcpy (Makefile.am): Likewise.
77835         * modules/memmem (Makefile.am): Likewise.
77836         * modules/memmove (Makefile.am): Likewise.
77837         * modules/mempcpy (Makefile.am): Likewise.
77838         * modules/memrchr (Makefile.am): Likewise.
77839         * modules/memset (Makefile.am): Likewise.
77840         * modules/memxor (Makefile.am): Likewise.
77841         * modules/mkancesdirs (Makefile.am): Likewise.
77842         * modules/mkdir (Makefile.am): Likewise.
77843         * modules/mkdir-p (Makefile.am): Likewise.
77844         * modules/mkdtemp (Makefile.am): Likewise.
77845         * modules/mkstemp (Makefile.am): Likewise.
77846         * modules/mktime (Makefile.am): Likewise.
77847         * modules/modechange (Makefile.am): Likewise.
77848         * modules/mountlist (Makefile.am): Likewise.
77849         * modules/nanosleep (Makefile.am): Likewise.
77850         * modules/openat (Makefile.am): Likewise.
77851         * modules/pagealign_alloc (Makefile.am): Likewise.
77852         * modules/physmem (Makefile.am): Likewise.
77853         * modules/poll (Makefile.am): Likewise.
77854         * modules/posixtm (Makefile.am): Likewise.
77855         * modules/posixver (Makefile.am): Likewise.
77856         * modules/putenv (Makefile.am): Likewise.
77857         * modules/quote (Makefile.am): Likewise.
77858         * modules/quotearg (Makefile.am): Likewise.
77859         * modules/raise (Makefile.am): Likewise.
77860         * modules/read-file (Makefile.am): Likewise.
77861         * modules/readline (Makefile.am): Likewise.
77862         * modules/readlink (Makefile.am): Likewise.
77863         * modules/readtokens (Makefile.am): Likewise.
77864         * modules/readutmp (Makefile.am): Likewise.
77865         * modules/realloc (Makefile.am): Likewise.
77866         * modules/regex (Makefile.am): Likewise.
77867         * modules/rename (Makefile.am): Likewise.
77868         * modules/rename-dest-slash (Makefile.am): Likewise.
77869         * modules/rijndael (Makefile.am): Likewise.
77870         * modules/rmdir (Makefile.am): Likewise.
77871         * modules/rpmatch (Makefile.am): Likewise.
77872         * modules/safe-read (Makefile.am): Likewise.
77873         * modules/safe-write (Makefile.am): Likewise.
77874         * modules/same (Makefile.am): Likewise.
77875         * modules/save-cwd (Makefile.am): Likewise.
77876         * modules/savedir (Makefile.am): Likewise.
77877         * modules/setenv (Makefile.am): Likewise.
77878         * modules/settime (Makefile.am): Likewise.
77879         * modules/sha1 (Makefile.am): Likewise.
77880         * modules/sig2str (Makefile.am): Likewise.
77881         * modules/snprintf (Makefile.am): Likewise.
77882         * modules/stdlib-safer (Makefile.am): Likewise.
77883         * modules/stpcpy (Makefile.am): Likewise.
77884         * modules/stpncpy (Makefile.am): Likewise.
77885         * modules/strcase (Makefile.am): Likewise.
77886         * modules/strcasestr (Makefile.am): Likewise.
77887         * modules/strchrnul (Makefile.am): Likewise.
77888         * modules/strcspn (Makefile.am): Likewise.
77889         * modules/strdup (Makefile.am): Likewise.
77890         * modules/strerror (Makefile.am): Likewise.
77891         * modules/strftime (Makefile.am): Likewise.
77892         * modules/strndup (Makefile.am): Likewise.
77893         * modules/strnlen (Makefile.am): Likewise.
77894         * modules/strpbrk (Makefile.am): Likewise.
77895         * modules/strsep (Makefile.am): Likewise.
77896         * modules/strstr (Makefile.am): Likewise.
77897         * modules/strtod (Makefile.am): Likewise.
77898         * modules/strtoimax (Makefile.am): Likewise.
77899         * modules/strtok_r (Makefile.am): Likewise.
77900         * modules/strtol (Makefile.am): Likewise.
77901         * modules/strtoll (Makefile.am): Likewise.
77902         * modules/strtoul (Makefile.am): Likewise.
77903         * modules/strtoull (Makefile.am): Likewise.
77904         * modules/strtoumax (Makefile.am): Likewise.
77905         * modules/strverscmp (Makefile.am): Likewise.
77906         * modules/time_r (Makefile.am): Likewise.
77907         * modules/timegm (Makefile.am): Likewise.
77908         * modules/tmpfile-safer (Makefile.am): Likewise.
77909         * modules/unistd-safer (Makefile.am): Likewise.
77910         * modules/unlinkdir (Makefile.am): Likewise.
77911         * modules/userspec (Makefile.am): Likewise.
77912         * modules/utime (Makefile.am): Likewise.
77913         * modules/utimecmp (Makefile.am): Likewise.
77914         * modules/utimens (Makefile.am): Likewise.
77915         * modules/vasnprintf (Makefile.am): Likewise.
77916         * modules/vasprintf (Makefile.am): Likewise.
77917         * modules/vsnprintf (Makefile.am): Likewise.
77918         * modules/xalloc (Makefile.am): Likewise.
77919         * modules/xgetcwd (Makefile.am): Likewise.
77920         * modules/xnanosleep (Makefile.am): Likewise.
77921         * modules/xreadlink (Makefile.am): Likewise.
77922         * modules/xstrtod (Makefile.am): Likewise.
77923         * modules/xstrtol (Makefile.am): Likewise.
77924         * modules/xstrtold (Makefile.am): Likewise.
77925         * modules/yesno (Makefile.am): Likewise.
77926
77927 2006-10-12  Jim Meyering  <jim@meyering.net>
77928
77929         * m4/getloadavg.m4: Revert the change below.
77930
77931         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77932         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77933         fail with a symlink, which is what coreutils' ./bootstrap now
77934         creates by default.
77935
77936 2006-10-12  Bruno Haible  <bruno@clisp.org>
77937
77938         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77939         mingw.
77940         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77941         MSVC and mingw explicitly.
77942
77943 2006-10-11  Simon Josefsson  <jas@extundo.com>
77944             Bruno Haible  <bruno@clisp.org>
77945
77946         Add support for multiple gnulib-tool invocations in the scope of a
77947         single configure.ac file.
77948         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77949         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77950         with the same contents as the _LIBADD variable.
77951         (func_emit_initmacro_start, func_emit_initmacro_end,
77952         func_emit_initmacro_done): New functions.
77953         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77954         gl_LIBOBJS and gl_LTLIBOBJS.
77955
77956 2006-10-11  Bruno Haible  <bruno@clisp.org>
77957
77958         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77959         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77960         autoreconf. Instead, invoke autopoint explicitly but move back the
77961         *.m4 files from gnulib.
77962
77963 2006-10-11  Bruno Haible  <bruno@clisp.org>
77964
77965         * gnulib-tool (func_usage): Make module names after --create-testdir
77966         optional.
77967         (func_create_testdir): If no module was specified, use nearly all
77968         modules.
77969
77970 2006-10-12  Jim Meyering  <jim@meyering.net>
77971
77972         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77973         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77974         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77975         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77976         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77977         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77978         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77979         (fts_set_stat_required): New function.
77980         (fts_open): Defer the calls to fts_stat, if possible or requested.
77981         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77982         into fts_stat itself.
77983         (fts_read): Perform any required (deferred) fts_stat call.
77984         (fts_build): Likewise, for the directory we're about to open and read.
77985         In the readdir loop, carefully decide whether each entry will require
77986         an eventual call to fts_stat, using dirent.d_type info if available.
77987         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77988         a command line argument into this function.  Update all callers.
77989         Map a return value of FTS_DOT to FTS_D for a command line argument.
77990         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77991         Thanks to Miklos Szeredi for his tenacity and for the initial
77992         bug report about "find" failing on a FUSE-based file system.
77993
77994         * lib/fts.c (fts_open): Use consistent indentation.
77995
77996 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77997
77998         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77999         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78000         reported by Jim Meyering.  All uses of cache variables renamed
78001         to match Autoconf's.
78002         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78003         the other one.
78004
78005         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78006         Fix misspelling in diagnostic.
78007
78008 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78009
78010         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78011         defined.  Problem reported by Matthew Woehlke.
78012
78013         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78014         Add support for Tandem NonStop R series.
78015         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78016         Use new macro.
78017
78018         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78019         (has_trailing_slash): Omit size arg; all callers changed.
78020         Omit 'inline', since it doesn't help performance and we'd
78021         need to configure it.
78022         Don't count //, ///, etc. as having a trailing slash.
78023         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78024         (rpl_rename_dest_slash): On failure, use rename's errno rather
78025         than (in some cases) an incorrect or junk errno.
78026         Simplify code by removing need to compute length; this does
78027         cause it to make two passes instead of one over the file name,
78028         but it's worth it.
78029
78030         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78031         change, since Autoconf's version may no longer be appropriate now
78032         that we are using CVS Autoconf's version.  Add support for Tandem.
78033
78034 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78035             Bruno Haible  <bruno@clisp.org>
78036
78037         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78038         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78039         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78040         gl_AC_TYPE_LONG_LONG.
78041
78042         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78043         instead of HAVE_LONG_LONG.
78044         * lib/printf-args.c (printf_fetchargs): Likewise.
78045         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78046         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78047         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78048         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78049         gl_AC_TYPE_LONG_LONG.
78050
78051 2006-10-11  Bruno Haible  <bruno@clisp.org>
78052
78053         * m4/longlong.m4: Add comments.
78054         * m4/ulonglong.m4: Likewise.
78055
78056 2006-10-10  Bruno Haible  <bruno@clisp.org>
78057
78058         Make it possible to #define stpcpy, strdup to aliases.
78059         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78060         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78061
78062 2006-10-10  Bruno Haible  <bruno@clisp.org>
78063
78064         Make it possible to #define gcd to an alias.
78065         * lib/gcd.c: Include config.h.
78066
78067 2006-10-10  Bruno Haible  <bruno@clisp.org>
78068
78069         Make it possible to #define c_isascii to an alias.
78070         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78071         defined. Undefine the macros before defining them, to avoid gcc
78072         warnings.
78073         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78074         define NO_C_CTYPE_MACROS early.
78075
78076 2006-10-10  Bruno Haible  <bruno@clisp.org>
78077
78078         Make it possible to #define set_program_name to an alias.
78079         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78080         ENABLE_RELOCATABLE early.
78081
78082 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78083
78084         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78085         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78086         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78087         More generally, don't assume that 64-bit signed int is available
78088         if unsigned int is, and vice versa.
78089         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78090         unsigned symbols, not on their signed counterparts.
78091         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78092         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78093         (UINT64_C, UINTMAX_C):
78094         Likewise.
78095         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78096         unsigned counterparts.
78097         (Have_long_long, Unsigned): New macros.
78098         (Int): Renamed from INT.
78099         (strtoimax): Use the new macros.
78100         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78101         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78102         * modules/inttypes (inttypes.h): Substitute
78103         HAVE_UNSIGNED_LONG_LONG_INT.
78104         * modules/stdint (stdint.h): Likewise.
78105         (Files): Add m4/ulonglong.m4.
78106
78107 2006-10-10  Bruno Haible  <bruno@clisp.org>
78108
78109         Fix a gcc -Wshadow warning.
78110         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78111         to 'bucket'.
78112         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78113         gl_linked_indexof_from_to): Likewise.
78114         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78115         Likewise.
78116         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78117         Likewise.
78118         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78119         Reported by Eric Blake.
78120
78121 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78122
78123         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78124         for NetBSD.  Problem reported by Bruno Haible.
78125
78126 2006-10-09  Jim Meyering  <jim@meyering.net>
78127
78128         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78129         Patch from Bruno Haible.
78130
78131 2006-10-09  Jim Meyering  <jim@meyering.net>
78132
78133         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78134         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78135         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78136
78137 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78138
78139         Don't include <config.h> twice; this doesn't work in some cases,
78140         e.g., when config.h has "#define intmax_t long long int" and
78141         we include <config.h>, <inttypes.h>, <config.h> in that order.
78142         Problem reported by Matthew Woehlke in:
78143         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78144         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78145         * lib/fts-cycle.c: Don't include config.h.
78146         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78147         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78148         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78149         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78150         inttypes.h.
78151         * lib/xstrtoumax.c: Likewise.
78152         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78153         __strtol and the like, so that this module is more like its siblings.
78154         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78155         Remove; no longer needed now that we assume gnulib inttypes.h.
78156
78157 2006-10-08  Bruno Haible  <bruno@clisp.org>
78158
78159         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78160         option.
78161
78162 2006-10-07  Jim Meyering  <jim@meyering.net>
78163
78164         * modules/inttypes (inttypes.h): Revert what seems to have been
78165         an inadvertent part of today's change: use "|", not "/" in the
78166         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78167
78168 2006-10-07  Bruno Haible  <bruno@clisp.org>
78169
78170         * modules/sublist: New file.
78171
78172 2006-10-07  Bruno Haible  <bruno@clisp.org>
78173
78174         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78175         * modules/argz (argz.h): Likewise.
78176         * modules/arpa_inet (arpa/inet.h): Likewise.
78177         * modules/byteswap (byteswap.h): Likewise.
78178         * modules/configmake (configmake.h): Likewise.
78179         * modules/fcntl (fcntl.h): Likewise.
78180         * modules/fnmatch (fnmatch.h): Likewise.
78181         * modules/getopt (getopt.h): Likewise.
78182         * modules/glob (glob.h): Likewise.
78183         * modules/inttypes (inttypes.h): Likewise.
78184         * modules/netinet_in (netinet/in.h): Likewise.
78185         * modules/poll (poll.h): Likewise.
78186         * modules/stdbool (stdbool.h): Likewise.
78187         * modules/stdint (stdint.h): Likewise.
78188         * modules/sys_select (sys/select.h): Likewise.
78189         * modules/sys_socket (sys/socket.h): Likewise.
78190         * modules/sys_stat (sys/stat.h): Likewise.
78191         * modules/sysexits (sysexits.h): Likewise.
78192         * modules/unistd (unistd.h): Likewise.
78193         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78194         Add a "DO NOT EDIT" comment to the generated file.
78195         (func_import): Likewise for gnulib-comp.m4.
78196
78197 2006-10-07  Bruno Haible  <bruno@clisp.org>
78198
78199         * lib/gl_sublist.h: New file.
78200         * lib/gl_sublist.c: New file.
78201
78202 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78203
78204         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78205         name (relative to the original working directory) and the file
78206         name component (relative to the temporary working directory).  All
78207         callers changed.
78208         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78209         * lib/mkdir-p.c (make_dir_parents): Likewise.
78210         * lib/mkdir-p.h (make_dir_parents): Likewise.
78211
78212 2006-10-06  Eric Blake  <ebb9@byu.net>
78213
78214         Define several macros for use by the clean-temp module.
78215         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78216         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78217         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78218
78219         * lib/clean-temp.h (close_stream_temp): New declaration.
78220         * lib/clean-temp.c (includes): Pull in headers according to what
78221         other modules are in use.
78222         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78223
78224 2006-10-06  Bruno Haible  <bruno@clisp.org>
78225
78226         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78227         instead of fopen, fwriteerror.
78228
78229 2006-10-06  Bruno Haible  <bruno@clisp.org>
78230
78231         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78232         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78233         int.
78234         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78235         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78236         Return an error indicator.
78237         Suggested by Eric Blake.
78238
78239 2006-10-06  Bruno Haible  <bruno@clisp.org>
78240
78241         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78242         Reported by Eric Blake.
78243
78244 2006-10-06  Bruno Haible  <bruno@clisp.org>
78245
78246         * modules/closeout (Description): Mention stderr too.
78247
78248 2006-10-06  Bruno Haible  <bruno@clisp.org>
78249         and Paul Eggert  <eggert@cs.ucla.edu>
78250
78251         * lib/closeout.c (close_stdout): Also close stderr.
78252         * lib/closeout.h: Update comment.
78253
78254 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78255
78256         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78257         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78258         * lib/dirchownmod.c: Include lchown.h.
78259         * lib/lchown.c: Don't include files that lchown.h now includes.
78260         Don't declare chown, since lchown.h now does that.
78261         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78262         (lchown): Define to rpl_chown if lchown is declared but
78263         does not exist.  Declare using a prototype if lchown is not
78264         declared.  Add a copyright notice.
78265         * lib/mkstemp.h: Include <unistd.h>.
78266         * lib/openat.c: Include lchown.h.
78267
78268         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78269         we now test for that separately.
78270         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78271         rather than O_NOFOLLOW, when testing whether it's possible to
78272         avoid a race condition reliably.
78273         * lib/savewd.c (savewd_chdir): Likewise.
78274
78275         Remove macros that are no longer needed now that stdint.h is
78276         reliable.
78277         * lib/fsusage.c (UINTMAX_MAX): Remove.
78278         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78279         * lib/utimecmp.c (SIZE_MAX): Remove.
78280
78281         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78282
78283         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78284         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78285         O_NOATIME works.
78286
78287 2006-10-05  Bruno Haible  <bruno@clisp.org>
78288
78289         * lib/gl_list.h (gl_sortedlist_search_from_to,
78290         gl_sortedlist_indexof_from_to): New declarations.
78291         (gl_list_implementation): New fields sortedlist_search_from_to,
78292         sortedlist_indexof_from_to.
78293         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78294         inline functions.
78295         * lib/gl_list.c (gl_sortedlist_search_from_to,
78296         gl_sortedlist_indexof_from_to): New functions.
78297         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78298         function.
78299         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78300         (gl_array_sortedlist_search_from_to): New function.
78301         (gl_array_list_implementation): Update.
78302         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78303         function.
78304         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78305         (gl_carray_sortedlist_search_from_to): New function.
78306         (gl_carray_list_implementation): Update.
78307         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78308         gl_linked_sortedlist_indexof_from_to): New functions.
78309         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78310         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78311         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78312         gl_tree_sortedlist_indexof_from_to): New functions.
78313         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78314         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78315         Update.
78316         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78317         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78318         Update.
78319
78320 2006-10-05  Bruno Haible  <bruno@clisp.org>
78321
78322         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78323         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78324         (struct gl_list_implementation): Add fields search_from_to,
78325         indexof_from_to. Remove fields search, indexof.
78326         (gl_list_search): Use the search_from_to method.
78327         (gl_list_search_from, gl_list_search_from_to): New functions.
78328         (gl_list_indexof): Use the indexof_from_to method.
78329         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78330         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78331         (gl_list_search_from, gl_list_search_from_to): New functions.
78332         (gl_list_indexof): Use the indexof_from_to method.
78333         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78334         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78335         gl_array_indexof. Add start_index, end_index arguments.
78336         (gl_array_search_from_to): Renamed from gl_array_search. Add
78337         start_index, end_index arguments.
78338         (gl_array_remove, gl_array_list_implementation): Update.
78339         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78340         gl_carray_indexof. Add start_index, end_index arguments.
78341         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78342         start_index, end_index arguments.
78343         (gl_carray_remove, gl_carray_list_implementation): Update.
78344         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78345         gl_linked_search. Add start_index, end_index arguments.
78346         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78347         start_index, end_index arguments.
78348         (gl_linked_remove): Update.
78349         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78350         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78351         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78352         field to 'size_t'.
78353         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78354         gl_tree_search. Add start_index, end_index arguments.
78355         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78356         start_index, end_index arguments.
78357         (gl_tree_remove): Update.
78358         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78359         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78360         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78361         function.
78362         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78363         gl_tree_search. Add start_index, end_index arguments.
78364         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78365         start_index, end_index arguments.
78366         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78367         Update.
78368         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78369
78370 2006-10-05  Bruno Haible  <bruno@clisp.org>
78371
78372         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78373
78374         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78375         fwriteerror_temp): New declarations.
78376         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78377         (descriptors): New variable.
78378         (cleanup): First, close the descriptors.
78379         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78380         fclose_temp, fwriteerror_temp): New functions.
78381
78382 2006-10-04  Jim Meyering  <jim@meyering.net>
78383
78384         * lib/fts.c (fts_open): Tiny comment change.
78385
78386 2006-10-04  Bruno Haible  <bruno@clisp.org>
78387
78388         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78389         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78390         gl_LOCK_BODY.
78391         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78392         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78393         gl_LOCK_EARLY_BODY.
78394         (gl_LOCK): Require gl_LOCK_BODY.
78395
78396 2006-10-04  Bruno Haible  <bruno@clisp.org>
78397
78398         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78399         (gl_oset_search_atleast): New declaration.
78400         (struct gl_oset_implementation): Add field 'search_atleast'.
78401         (gl_oset_search_atleast): New inline function.
78402         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78403         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78404         (gl_array_oset_implementation): Update.
78405         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78406         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78407         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78408
78409 2006-10-04  Bruno Haible  <bruno@clisp.org>
78410
78411         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78412
78413 2006-10-03  Bruno Haible  <bruno@clisp.org>
78414
78415         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78416         from gl_avltreehash_list_implementation.
78417
78418 2006-10-03  Bruno Haible  <bruno@clisp.org>
78419
78420         * lib/gl_oset.c (gl_oset_add): Fix return type.
78421
78422 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78423
78424         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78425
78426 2006-10-02  Eric Blake  <ebb9@byu.net>
78427
78428         * modules/strnlen (Depends-on): Add extensions.
78429
78430 2006-10-02  Eric Blake  <ebb9@byu.net>
78431
78432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78433         definition in 2.60+.
78434
78435 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78436
78437         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78438         checks.
78439
78440 2006-10-02  Bruno Haible  <bruno@clisp.org>
78441
78442         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78443         to the AUTOMAKE_OPTIONS.
78444         Reported by Jim Meyering.
78445
78446 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78447
78448         Work around bug in Solaris 10 /proc file system:
78449         /proc/self/fd/NNN/.. isn't the parent directory of
78450         the directory whose file descriptor is NNN.  This needs to
78451         be worked around at run time, not compile time, since a
78452         program might be built on Solaris 8, where things work, and
78453         run on Solaris 10.
78454         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78455         to use the following interface instead:
78456         (OPENAT_BUFFER_SIZE): New macro.
78457         (openat_proc_name): New function.
78458         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78459         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78460         Likewise.
78461         * lib/openat-proc.c: New file.
78462         * modules/openat (Files): Add lib/openat-proc.c.
78463         (Depends-on): Add same-inode, stdbool.
78464         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78465
78466 2006-09-29  Bruno Haible  <bruno@clisp.org>
78467
78468         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78469         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78470         argument. Set stdout_closed before testing for ferror, not after.
78471         (fwriteerror, fwriteerror_no_ebadf): New functions.
78472
78473 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78474
78475         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78476
78477 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78478
78479         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78480         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78481
78482 2006-09-28  Jim Meyering  <jim@meyering.net>
78483
78484         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78485         Include <unistd.h>.
78486
78487 2006-09-28  Bruno Haible  <bruno@clisp.org>
78488
78489         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78490         * modules/linkedhash-list (Depends-on): Likewise.
78491         * modules/rbtreehash-list (Depends-on): Likewise.
78492
78493 2006-09-28  Bruno Haible  <bruno@clisp.org>
78494
78495         * lib/strndup.h: Simplify the redefinition of strndup.
78496         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78497         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78498
78499 2006-09-28  Bruno Haible  <bruno@clisp.org>
78500
78501         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78502         * lib/gl_linkedhash_list.c: Likewise.
78503         * lib/gl_rbtreehash_list.c: Likewise.
78504
78505 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78506
78507         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78508         getaddrinfo.
78509
78510         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78511         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78512         it causes <stdio_ext.h> to cause a compile-time error.
78513         Problem reported by Nelson H. F. Beebe.
78514         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78515         of HAVE_DECL___PENDING.
78516
78517         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78518         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78519         declaration.
78520
78521 2006-09-27  Jim Meyering  <jim@meyering.net>
78522
78523         This file could end up with a definition for a function
78524         named __strndup, rather than rpl_strndup on a system with
78525         incomplete weak_alias support.
78526         * lib/strndup.c (strndup): Rename from __strndup.
78527         Remove #defines that used to map __strndup to strndup.
78528         Don't use K&R prototypes.
78529         Remove LIBC-related code, since this file is not sync'd with glibc.
78530         * lib/strndup.h: Revamp, accordingly.
78531         * m4/strndup.m4: Modernize.
78532
78533 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78534
78535         * modules/savewd (Depends-on): Add 'raise'.
78536         * lib/savewd.c: Include <signal.h>, for 'raise'.
78537
78538 2006-09-26  Jim Meyering  <jim@meyering.net>
78539
78540         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78541         when we detect Darwin 8.7.0's acl_get_file bug.
78542         Rearrange to perform the new (below) run-test while $LIBS
78543         contains any acl-related library.  Set USE_ACL at the end.
78544         (gl_ACL_GET_FILE): New function.
78545
78546 2006-09-26  Eric Blake  <ebb9@byu.net>
78547
78548         * lib/verror.c: Include <config.h> unconditionally.
78549
78550 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78551
78552         * modules/clock-time (Maintainer): Add self.
78553         * modules/getlogin_r (Depends-on): Add extensions.
78554
78555 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78556
78557         * modules/clock-time: New module.
78558         * modules/nanosleep (Depends-on): Add clock-time.
78559         * modules/gethrxtime (Depends-on): Likewise.
78560         * modules/gettime (Depends-on): Likewise.
78561         * modules/settime (Depends-on): Likewise.
78562
78563         * modules/fts-lgpl: Depend on openat.
78564         * modules/mkancesdirs: Depend on savewd.
78565         * modules/mkdir-p: Likewise.
78566
78567 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78568
78569         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78570
78571         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78572         `gl_have_arbitrary_file_name_length_limit' to
78573         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78574         actually works between configure runs.
78575
78576 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78577             Bruno Haible  <bruno@clisp.org>
78578
78579         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78580
78581 2006-09-25  Jim Meyering  <jim@meyering.net>
78582
78583         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78584         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78585
78586 2006-09-25  Eric Blake  <ebb9@byu.net>
78587
78588         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78589         exec's in 2006-09-18 patch when shuffling fds.
78590
78591 2006-09-25  Bruno Haible  <bruno@clisp.org>
78592
78593         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78594         Reported by Jim Meyering.
78595
78596 2006-09-24  Jim Meyering  <jim@meyering.net>
78597
78598         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78599         compare a pointer against a literal "0".  That caused failures with
78600         at least HP-UX's hpcc.
78601
78602 2006-09-22  Simon Josefsson  <jas@extundo.com>
78603
78604         * modules/gc-sha1:
78605         * modules/gc-md4:
78606         * modules/gc-hmac-sha1:
78607         * modules/gc-hmac-md5:
78608         * modules/gc-des:
78609         * modules/gc-arcfour: Distribute more files.
78610
78611 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78612
78613         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78614         (gl_linked_iterator_from_to): Initialize struct completely.
78615         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78616         (gl_tree_iterator_from_to): Likewise
78617         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78618         * lib/gl_array_list.c [lint] (gl_array_iterator)
78619         (gl_array_iterator_from_to): Likewise.
78620         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78621         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78622         (gl_carray_iterator_from_to): Likewise.
78623
78624         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78625         * lib/md4.c (md4_process_block): Remove unused variable.
78626         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78627         parentheses for clarity.
78628
78629 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78630
78631         * modules/bison-i18n (Depends-on): Add gettext.
78632
78633 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78634
78635         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78636         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78637         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78638         also add missing comma that caused broken test.
78639         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78640         stdlib.h, for `abort'.
78641         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78642         variables.
78643         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78644         include unistd.h if present, for `rmdir'.
78645         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78646         variables.
78647         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78648         in the process include standard headers for prototypes.
78649         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78650         gets declared on GNU/Linux.
78651         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78652         unistd.h, for `rmdir'.
78653         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78654
78655         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78656         always true.
78657         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78658
78659         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78660
78661 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78662
78663         * gnulib-tool (func_version): Create output all at once.  This
78664         may help avoid triggering unnecessary SIGPIPEs, and at any
78665         rate it doesn't hurt.
78666
78667 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78668             Bruno Haible  <bruno@clisp.org>
78669
78670         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78671         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78672         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78673
78674         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78675         (gl_FUNC_VASPRINTF): Invoke it.
78676
78677 2006-09-22  Bruno Haible  <bruno@clisp.org>
78678
78679         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78680         getloadavg.c as first argument.
78681
78682 2006-09-22  Bruno Haible  <bruno@clisp.org>
78683
78684         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78685         at the beginning of the gl_INIT macro.
78686         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78687         gl_GETLOADAVG.
78688
78689 2006-09-22  Bruno Haible  <bruno@clisp.org>
78690
78691         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78692         module.
78693         Suggested by Ralf Wildenhues.
78694
78695 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78696
78697         Import this patch from libc:
78698
78699         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78700
78701         * lib/regex_internal.c (re_string_reconstruct): Handle
78702         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78703         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78704         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78705         re_string_context_at.
78706
78707         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78708         now requires it.
78709         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78710         gl_REGEX now does it for us.
78711         (gl_REGEX): Add test taken from
78712         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78713
78714         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78715         Check that large offsets work.  Modernize Autoconf usages.
78716         Prefer "yes" to mean a good thing rather than a bad.
78717         Don't put "#define mkstemp" in config.h, as this might interfere
78718         with standard system headers that "#define mkstemp mkstemp64".
78719
78720         * modules/mkstemp (Depends-on): Add extensions, so that
78721         mkstemp is visible on some platforms.
78722         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78723         (Include): Change to "mkstemp.h" from <stdlib.h>.
78724         (Files): Add mkstemp.h.
78725
78726         * lib/mkstemp.h: New file, since some standard headers
78727         #define mkstemp.
78728         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78729         Include "mkstemp.h".
78730         Make the _LIBC code resemble glibc original more,
78731         e.g., use K&R style.
78732         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78733         (mkstemp): Remove, since mkstemp.h does this for us.
78734         * lib/stdlib--.h: Include mkstemp.h.
78735
78736         Import this patch from libc:
78737
78738         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78739
78740         * lib/tempname.c (__gen_tempname): Change attempts_min
78741         into a macro.  Use preprocessor to decide how to initialize
78742         attempts [Coverity CID 67].
78743
78744 2006-09-20  Bruno Haible  <bruno@clisp.org>
78745
78746         * lib/mkdtemp.c: Import from libc.
78747         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78748                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78749                 attempts_min into a macro.  Use preprocessor to decide how to
78750                 initialize attempts [Coverity CID 67].
78751         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78752                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78753                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78754
78755 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78756
78757         * gnulib-tool (func_exit): New function, to allow to pass the
78758         exit status portably through the trap.  Use everywhere.
78759         (--help, --version): Signal a write error.
78760         (trap): catch SIGPIPE, for write errors.
78761         Exit at the end of the trap, with the correct exit status.
78762
78763 2006-09-19  Karl Berry  <karl@gnu.org>
78764
78765         * doc/gnulib.texi: note about the license texinfo files.
78766
78767 2006-09-19  Eric Blake  <ebb9@byu.net>
78768
78769         * gnulib-tool: Avoid space-tab.
78770
78771 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78772
78773         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78774         that prevented coreutils 6.1 from building.  Problem reported
78775         by Petter Reinholdtsen.
78776
78777 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78778
78779         * gnulib-tool (avoidlist): Fix typo that broke options like
78780         --avoid=lock that are used by coreutils bootstrap.
78781
78782 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78783
78784         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78785         more systematically.
78786
78787 2006-09-18  Jim Meyering  <jim@meyering.net>
78788
78789         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78790
78791 2006-09-18  Bruno Haible  <bruno@clisp.org>
78792
78793         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78794
78795 2006-09-18  Bruno Haible  <bruno@clisp.org>
78796
78797         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
78798         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
78799         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
78800         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
78801         * m4/gettext.m4: Require autoconf >= 2.52.
78802         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
78803         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
78804         of gl_cv_header_inttypes_h.
78805
78806 2006-09-18  Bruno Haible  <bruno@clisp.org>
78807
78808         * lib/javaversion.c: Include configmake.h.
78809
78810 2006-09-18  Bruno Haible  <bruno@clisp.org>
78811
78812         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
78813         avoid that the while loops be executed in a subshell.
78814
78815 2006-09-18  Bruno Haible  <bruno@clisp.org>
78816
78817         * MODULES.html.sh (func_module): Break long lines.
78818         Suggested by Bruce Korb <bkorb@gnu.org>.
78819
78820 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78821
78822         Speed up by a factor of 1.12.
78823         * gnulib-tool (nl): New variable.
78824         (func_import): Rewrite include directive extraction to only read each
78825         directive once.
78826
78827 2006-09-17  Bruno Haible  <bruno@clisp.org>
78828
78829         * modules/javaversion (Makefile.am): Remove DEFS setting.
78830         (Depends-on): Add configmake, for PKGDATADIR definition.
78831
78832 2006-09-17  Bruno Haible  <bruno@clisp.org>
78833
78834         * gnulib-tool (func_create_testdir): Rewrite all files at once.
78835
78836 2006-09-17  Bruno Haible  <bruno@clisp.org>
78837
78838         * gnulib-tool (func_append): New function, stolen from libtool.m4.
78839         (func_modules_transitive_closure, func_modules_add_dummy,
78840         func_modules_to_filelist, func_import, func_create_testdir,
78841         func_create_megatestdir, ...): Use it wherever possible.
78842         Suggested by Ralf Wildenhues.
78843
78844 2006-09-16  Karl Berry  <karl@gnu.org>
78845
78846         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78847         to avoid sectioning errors.
78848         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78849         [ifinfo]: blank line after @center-ed titles.
78850         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78851         Spell FSF address consistently with others.
78852         (These changes approved by rms.)
78853
78854 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78855
78856         Speed up by a factor of 1.61.
78857         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78858         already checked module names again.
78859
78860 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78861
78862         Speed up by a factor of 1.13.
78863         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78864         for new_files, and the input to func_add_or_update.
78865
78866 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78867
78868         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78869         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78870
78871 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         * modules/mkancesdirs (Depends-on): Add fcntl.
78874         * modules/savewd: New file.
78875         * MODULES.html.sh (File system functions): Add savewd.
78876
78877         * modules/configmake (Makefile.am): Add support for the
78878         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78879
78880 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78881
78882         * m4/savewd.m4: New file.
78883
78884 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78885
78886         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78887         (dirchownmod): New arg FD.  All callers changed.
78888         Use FD rather than opening the directory ourself, as opening is
78889         now the caller's responsibility.
78890         * lib/dirchownmod.h: Likewise.
78891         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78892         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78893         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78894         (test_dir): Remove.
78895         (mkancesdirs): Return length of prefix of FILE that has already
78896         been made, or -2 if there is a child doing the work.  Redo
78897         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78898         ".", and treat ".." specially since it might stray back into
78899         already-created areas.  Use a subprocess if necessary.  New arg
78900         WD; all users changed.  MAKE_DIR function should now return 1
78901         if it creates a directory that is not readable.  Return -2 if
78902         a child process is spun off.
78903         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78904         Adjust signature to match code.
78905         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78906         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78907         all users changed.
78908         * lib/savewd.c, lib/savewd.h: New files.
78909
78910 2006-09-15  Jim Meyering  <jim@meyering.net>
78911
78912         * modules/rename-dest-slash: New module.
78913         * MODULES.html.sh (posix_compat): Add it here.
78914
78915         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78916
78917 2006-09-15  Jim Meyering  <jim@meyering.net>
78918
78919         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78920         file.
78921
78922         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78923
78924 2006-09-15  Jim Meyering  <jim@meyering.net>
78925
78926         * lib/rename-dest-slash.c (has_trailing_slash): Use
78927         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78928         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78929         test before testing whether SRC is a directory.
78930         Suggestions from Bruno Haible.
78931
78932         Avoid a warning about an unused variable.
78933         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78934         into the #ifdef block where it's used.
78935
78936         * lib/rename-dest-slash.c: New file.
78937
78938 2006-09-14  Bruno Haible  <bruno@clisp.org>
78939
78940         * lib/allocsa.c: Include <config.h> unconditionally.
78941         * lib/asnprintf.c: Likewise.
78942         * lib/asprintf.c: Likewise.
78943         * lib/c-strcasecmp.c: Likewise.
78944         * lib/c-strcasestr.c: Likewise.
78945         * lib/c-strncasecmp.c: Likewise.
78946         * lib/c-strstr.c: Likewise.
78947         * lib/classpath.c: Likewise.
78948         * lib/clean-temp.c: Likewise.
78949         * lib/concatpath.c: Likewise.
78950         * lib/copy-file.c: Likewise.
78951         * lib/csharpcomp.c: Likewise.
78952         * lib/csharpexec.c: Likewise.
78953         * lib/execute.c: Likewise.
78954         * lib/fatal-signal.c: Likewise.
78955         * lib/findprog.c: Likewise.
78956         * lib/fwriteerror.c: Likewise.
78957         * lib/gl_array_list.c: Likewise.
78958         * lib/gl_array_oset.c: Likewise.
78959         * lib/gl_avltree_list.c: Likewise.
78960         * lib/gl_avltree_oset.c: Likewise.
78961         * lib/gl_avltreehash_list.c: Likewise.
78962         * lib/gl_carray_list.c: Likewise.
78963         * lib/gl_linked_list.c: Likewise.
78964         * lib/gl_linkedhash_list.c: Likewise.
78965         * lib/gl_list.c: Likewise.
78966         * lib/gl_oset.c: Likewise.
78967         * lib/gl_rbtree_list.c: Likewise.
78968         * lib/gl_rbtree_oset.c: Likewise.
78969         * lib/gl_rbtreehash_list.c: Likewise.
78970         * lib/imaxabs.c: Likewise.
78971         * lib/imaxdiv.c: Likewise.
78972         * lib/javacomp.c: Likewise.
78973         * lib/javaexec.c: Likewise.
78974         * lib/javaversion.c: Likewise.
78975         * lib/linebreak.c: Likewise.
78976         * lib/localcharset.c: Likewise.
78977         * lib/lock.c: Likewise.
78978         * lib/mbchar.c: Likewise.
78979         * lib/mbswidth.c: Likewise.
78980         * lib/mkdtemp.c: Likewise.
78981         * lib/pipe.c: Likewise.
78982         * lib/printf-args.c: Likewise.
78983         * lib/printf-parse.c: Likewise.
78984         * lib/progname.c: Likewise.
78985         * lib/progreloc.c: Likewise.
78986         * lib/readlink.c: Likewise.
78987         * lib/sh-quote.c: Likewise.
78988         * lib/stpcpy.c: Likewise.
78989         * lib/stpncpy.c: Likewise.
78990         * lib/strcasecmp.c: Likewise.
78991         * lib/strcasestr.c: Likewise.
78992         * lib/strcspn.c: Likewise.
78993         * lib/striconv.c: Likewise.
78994         * lib/strncasecmp.c: Likewise.
78995         * lib/strnlen1.c: Likewise.
78996         * lib/strstr.c: Likewise.
78997         * lib/strtok_r.c: Likewise.
78998         * lib/tls.c: Likewise.
78999         * lib/tmpdir.c: Likewise.
79000         * lib/unicodeio.c: Likewise.
79001         * lib/unsetenv.c: Likewise.
79002         * lib/vasnprintf.c: Likewise.
79003         * lib/vasprintf.c: Likewise.
79004         * lib/wait-process.c: Likewise.
79005         * lib/xallocsa.c: Likewise.
79006         * lib/xsetenv.c: Likewise.
79007         * lib/xstriconv.c: Likewise.
79008
79009 2006-09-13  Simon Josefsson  <jas@extundo.com>
79010
79011         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79012         that internally, suggested by Ralf Wildenhues
79013         <Ralf.Wildenhues@gmx.de>.
79014
79015 2006-09-13  Simon Josefsson  <jas@extundo.com>
79016
79017         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79018         @LIBOBJS@.
79019         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79020
79021 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79022
79023         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79024         longer worry about uses that don't define HAVE_CONFIG_H.
79025         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79026         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79027         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79028         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79029         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79030         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79031         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79032         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79033         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79034         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79035         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79036         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79037         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79038         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79039         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79040         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79041         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79042         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79043         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79044         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79045         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79046         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79047         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79048         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79049         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79050         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79051         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79052         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79053         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79054         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79055         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79056         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79057         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79058         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79059         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79060         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79061         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79062         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79063         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79064         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79065         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79066         Likewise.
79067
79068 2006-09-13  Eric Blake  <ebb9@byu.net>
79069
79070         * lib/getopt.c: Fix typo in last commit.
79071
79072 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79073
79074         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79075         dgettext.
79076
79077 2006-09-12  Jim Meyering  <jim@meyering.net>
79078
79079         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79080         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79081         Reported by Nelson H. F. Beebe.
79082
79083 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79084
79085         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79086         program_invocation_name and program_invocation_short_name are
79087         initialized.
79088         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79089         and program_invocation_short_name to argp.h, so they are visible
79090         to user programs.
79091         * lib/argp.h: Likewise
79092
79093 2006-09-10  Bruno Haible  <bruno@clisp.org>
79094
79095         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79096         m4/inttypes_h.m4, m4/uintmax_t.m4.
79097
79098 2006-09-10  Bruno Haible  <bruno@clisp.org>
79099
79100         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79101         gl_AC_TYPE_UINTMAX_T.
79102
79103 2006-09-10  Bruno Haible  <bruno@clisp.org>
79104
79105         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79106
79107 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79108
79109         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79110         convention.  Text proposed by Bruno Haible.
79111         (struct argp_option): Document the use of N_() wrappers.
79112
79113         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79114         '\v', and translate the two parts separately, instead of feeding
79115         the whole string to gettext.  This allows to exclude
79116         '\v' from the strings visible to the translator by writing doc
79117         strings as N_("..") "\v" N_("..").
79118
79119 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         * config/srclist.txt: Undo latest change; the bug was fixed.
79122
79123 2006-09-09  Bruno Haible  <bruno@clisp.org>
79124
79125         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79126         assignments if building a library without libtool.
79127         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79128         in func_emit_lib_Makefile_am.
79129         (func_import): When building a static library libfoo.a, arrange to
79130         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79131         (func_create_testdir): Likewise.
79132         * modules/gc (configure.ac, Makefile.am): If building statically,
79133         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79134         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79135         * modules/striconv (configure.ac, Makefile.am): Likewise.
79136         Based on a suggestion by Ralf Wildenhues.
79137
79138 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79139
79140         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79141         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79142         Also:
79143
79144         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79145         Add year_2050_test to catch glibc bug 2821
79146         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79147
79148         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79149         Prefer #ifdef to #if.
79150
79151         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79152         Return from 'main' instead of calling 'exit'.
79153
79154 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79155
79156         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79157         returned the maximum time_t value rather than (time_t) -1.
79158         Problem originally reported by William Bardwell
79159         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79160
79161         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79162         Moved to here ...
79163         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79164         ... from here.
79165
79166 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79169         2821 is fixed.
79170
79171 2006-09-08  Jim Meyering  <jim@meyering.net>
79172
79173         Don't make generated files read-only.  That would bother too many
79174         people.  However, do retain the ability to work when targets are
79175         read-only: remove the destination and temporary files before writing
79176         them (when generated via sed or echo), or by using the -f option for
79177         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79178         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79179         * modules/byteswap, modules/configmake, modules/fcntl:
79180         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79181         * modules/localcharset, modules/netinet_in, modules/poll:
79182         * modules/stdbool, modules/stdint, modules/sys_select:
79183         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79184
79185 2006-09-08  Jim Meyering  <jim@meyering.net>
79186
79187         Avoid new build failure on FreeBSD 6.0.
79188         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79189         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79190         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79191
79192 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79193
79194         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79195
79196 2006-09-07  Jim Meyering  <jim@meyering.net>
79197
79198         Fix global typo in last change: use chmod u-w, not chmod u-x.
79199         Spotted by Paul Eggert and Bruce Korb.
79200         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79201         * modules/byteswap, modules/configmake, modules/fcntl:
79202         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79203         * modules/localcharset, modules/netinet_in, modules/poll:
79204         * modules/stdbool, modules/stdint, modules/sys_select:
79205         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79206
79207 2006-09-06  Jim Meyering  <jim@meyering.net>
79208
79209         Make generated files be read-only.
79210         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79211         Ensure that each generated file is now read-only.
79212         * modules/argz: Likewise.
79213         * modules/arpa_inet: Likewise.
79214         * modules/byteswap: Likewise.
79215         * modules/configmake: Likewise.
79216         * modules/fcntl: Likewise.
79217         * modules/fnmatch: Likewise.
79218         * modules/getopt: Likewise.
79219         * modules/glob: Likewise.
79220         * modules/inttypes: Likewise.
79221         * modules/netinet_in: Likewise.
79222         * modules/poll: Likewise.
79223         * modules/stdbool: Likewise.
79224         * modules/stdint: Likewise.
79225         * modules/sys_select: Likewise.
79226         * modules/sys_socket: Likewise.
79227         * modules/sys_stat: Likewise.
79228         * modules/sysexits: Likewise.
79229         * modules/localcharset: Same as above, but continue using temporary
79230         file named "t-$@" (why different?) rather than the "$@-t" used
79231         everywhere else.
79232
79233         * modules/sysexits (Makefile.am): Replace literal occurrences
79234         of "sysexit.h" more readable, and more consistent, "$@".
79235
79236 2006-09-06  Bruno Haible  <bruno@clisp.org>
79237
79238         * modules/striconv: New file.
79239         * modules/xstriconv: New file.
79240         * MODULES.html.sh (Internationalization functions): Add striconv,
79241         xstriconv.
79242
79243 2006-09-06  Bruno Haible  <bruno@clisp.org>
79244
79245         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79246         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79247         not using libtool correctly.
79248
79249 2006-09-06  Bruno Haible  <bruno@clisp.org>
79250
79251         * lib/striconv.h: New file.
79252         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79253         iconvstring.c.
79254         * lib/xstriconv.h: New file.
79255         * lib/xstriconv.c: New file.
79256
79257 2006-09-06  Bruno Haible  <bruno@clisp.org>
79258
79259         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79260         lib_..._LDFLAGS.
79261
79262 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79263
79264         * lib/argz_.h: Sync from Libtool.
79265
79266         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79267                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79268
79269         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79270
79271 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79272
79273         * modules/trim: New file.
79274
79275 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79276
79277         * lib/trim.h: New file.
79278         * lib/trim.c: New file.
79279
79280 2006-09-05  Bruno Haible  <bruno@clisp.org>
79281
79282         * MODULES.html.sh (String handling): Add trim.
79283
79284 2006-09-04  Karl Berry  <karl@gnu.org>
79285
79286         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79287         until next release.
79288
79289 2006-09-03  Bruno Haible  <bruno@clisp.org>
79290
79291         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79292         correctly.
79293
79294 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79295
79296         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79297         not gl_GETLOADAVG.  Omit unneeded semicolons.
79298         Problems reported by Ralf Wildenhues in
79299         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79300         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79301         at the end, which is the usual gnulib style.
79302
79303         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79304         of doing all the work ourselves.
79305         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79306         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79307
79308 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79309
79310         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79311         Problem reported by Ralf Wildenhues in
79312         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79313
79314         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79315         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79316
79317 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79318
79319         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79320         yesterday's patch by changing test -n to test -z.
79321
79322 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79323
79324         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79325         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79326         the former is now obsolescent.
79327
79328         * modules/chdir-long (Depends-on): Add fcntl.
79329
79330 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79331
79332         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79333         obsolescent, and programs should use gnulib instead.
79334         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79335         but with prefixes changed.
79336
79337 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79338
79339         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79340         or stdbool.h, because they might not exist while configuring.
79341
79342         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79343         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79344         does that for us.
79345         (O_DIRECTORY): Remove.
79346
79347 2006-08-31  Eric Blake  <ebb9@byu.net>
79348
79349         * gnulib-tool: Don't let emacs change spaces to TAB.
79350
79351 2006-08-31  Bruno Haible  <bruno@clisp.org>
79352
79353         * gnulib-tool: When calling func_import more than once, do it in a
79354         subshell.
79355         Reported by Eric Blake <ebb9@byu.net>.
79356
79357 2006-08-31  Bruno Haible  <bruno@clisp.org>
79358
79359         * gnulib-tool (nl): Remove variable.
79360         (sed_transform_lib_file): Use more robust test for config-h module.
79361         (func_import): Fix typo in 2006-08-25 patch.
79362
79363 2006-08-31  Bruno Haible  <bruno@clisp.org>
79364
79365         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79366         specified, augment Makefile.am variables instead of assigning them.
79367
79368 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79369
79370         Work around a bug in both the Linux and SunOS 64-bit kernels:
79371         nanosleep mishandles sleeps for longer than 2**31 seconds.
79372         Problem reported by Frank v Waveren in
79373         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79374         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79375         Check for nanosleep bug.
79376         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79377
79378 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79379
79380         Work around a bug in both the Linux and SunOS 64-bit kernels:
79381         nanosleep mishandles sleeps for longer than 2**31 seconds.
79382         Problem reported by Frank v Waveren in
79383         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79384         * lib/nanosleep.c (BILLION): New constant.
79385         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79386         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79387         implementation.
79388
79389 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * modules/nanosleep (Depends-on): Add gettime.
79392
79393 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79394         and Simon Josefsson  <jas@extundo.com>
79395         and Oskar Liljeblad  <oskar@osk.mine.nu>
79396
79397         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79398         * gnulib-tool (func_import): New license type 'unmodifiable license
79399         text'.
79400         * modules/fdl: Use it.  Longer description.
79401         * module/gpl, module/lgpl: New files.
79402
79403 2006-08-30  Jim Meyering  <jim@meyering.net>
79404
79405         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79406         shadowing the parameter.
79407
79408 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79409
79410         Sync from Libtool:
79411
79412         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79413
79414         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79415         sharing with gnulib.  Report by Eric Blake.
79416
79417 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79418
79419         * modules/isapipe: New file.
79420         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79421
79422 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79423
79424         * modules/configmake (Makefile.am): Add a comment, and omit
79425         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79426         by Bruno Haible.
79427
79428 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79429
79430         * m4/isapipe.m4: New file.
79431
79432 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79433
79434         * lib/isapipe.c, lib/isapipe.h: New files.
79435
79436 2006-08-29  Jim Meyering  <jim@meyering.net>
79437
79438         * modules/configmake (Makefile.am): Make configmake.h depend on
79439         Makefile.  Otherwise, a stale configmake.h could hang around.
79440
79441 2006-08-29  Eric Blake  <ebb9@byu.net>
79442
79443         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79444         resolution of upstream bug 3044.
79445
79446 2006-08-29  Bruno Haible  <bruno@clisp.org>
79447
79448         * modules/localcharset (Depends-on): Add configmake.
79449         (Makefile.am): Remove setting of LIBDIR through DEFS.
79450
79451 2006-08-29  Bruno Haible  <bruno@clisp.org>
79452
79453         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79454         defined.
79455
79456 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79457
79458         * modules/fcntl: New file.
79459         * modules/chdir-safer (Depends-on): Add fcntl.
79460         * modules/fts: Likewise.
79461         * modules/mkdir-p: Likewise.
79462
79463         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79464         This undoes the most recent change, since we're now addressing the
79465         problem in a different way.
79466
79467         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79468         into output, since the output might be called Makefile.am even
79469         if $makefile_name is something different.
79470         (func_import): Use $makefile_am rather than
79471         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79472         empty.
79473
79474         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79475
79476 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79477
79478         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79479         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79480         recent change to stdint.m4, since we're now addressing the problem in a
79481         different way.
79482
79483 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79484
79485         * m4/fcntl_h.m4: New file.
79486
79487 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79488
79489         * lib/fcntl_.h: New file.
79490         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79491         the fcntl module.
79492         * lib/dirchownmod.c: Likewise.
79493         * lib/fts.c: Likewise.
79494
79495         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79496         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79497         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79498         just before including <inttypes.h>, to avoid circular inclusion.
79499
79500 2006-08-28  Jim Meyering  <jim@meyering.net>
79501
79502         * doc/visibility.texi: Actually read and correct the grammar of the
79503         sentence affected by yesterday's change.
79504
79505 2006-08-28  Eric Blake  <ebb9@byu.net>
79506
79507         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79508         needs wrapper.
79509
79510 2006-08-28  Eric Blake  <ebb9@byu.net>
79511
79512         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79513
79514 2006-08-28  Eric Blake  <ebb9@byu.net>
79515
79516         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79517
79518 2006-08-28  Bruno Haible  <bruno@clisp.org>
79519
79520         * modules/c-strstr: New file, from GNU gettext.
79521         * MODULES.html.sh (String handling): Add c-strstr.
79522
79523 2006-08-28  Bruno Haible  <bruno@clisp.org>
79524
79525         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79526         macros.
79527         Reported by Eric Blake.
79528
79529 2006-08-28  Bruno Haible  <bruno@clisp.org>
79530
79531         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79532         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79533         * lib/vasprintf.c: Include errno.h, limits.h.
79534         (EOVERFLOW): New fallback definition.
79535         (vasprintf): Test here whether the string length is > INT_MAX.
79536         * lib/vsnprintf.c: Include errno.h, limits.h.
79537         (EOVERFLOW): New fallback definition.
79538         (vsnprintf): Fix bug when generated string was too long for the buffer.
79539         Test here whether the string length is > INT_MAX.
79540
79541 2006-08-28  Bruno Haible  <bruno@clisp.org>
79542
79543         * lib/inttypes_.h (SCNX*): Remove definitions.
79544         Reported by Eric Blake.
79545
79546 2006-08-28  Bruno Haible  <bruno@clisp.org>
79547
79548         * lib/c-strstr.h: New file, from GNU gettext.
79549         * lib/c-strstr.c: New file, from GNU gettext.
79550
79551 2006-08-28  Bruno Haible  <bruno@clisp.org>
79552
79553         * gnulib-tool: Reorder some statements.
79554
79555 2006-08-28  Bruno Haible  <bruno@clisp.org>
79556
79557         * gnulib-tool: New option --makefile-name.
79558         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79559         $makefile_name.
79560         (func_import): Write $makefile_name to the cache file, and read it from
79561         there unless explicitly specified. Use $makefile_name as file name
79562         instead of Makefile.am. Adjust the recommendations accordingly.
79563
79564 2006-08-28  Bruno Haible  <bruno@clisp.org>
79565
79566         * gnulib-tool (func_verify_module): Check against misapplying patch.
79567
79568 2006-08-28  Bruno Haible  <bruno@clisp.org>
79569
79570         * gnulib-tool (func_relativize, func_relconcat): New functions.
79571         Give an error if --local-dir is given with --update.
79572         Remove trailing slashes from $local_gnulib_dir.
79573         (func_import): Store the relativized $local_gnulib_dir in
79574         gnulib-cache.m4, and read it from there if not specified explicitly.
79575
79576 2006-08-28  Bruno Haible  <bruno@clisp.org>
79577
79578         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79579         is the current directory. Respect also $local_gnulib_dir.
79580
79581 2006-08-28  Bruno Haible  <bruno@clisp.org>
79582             Simon Josefsson  <jas@extundo.com>
79583
79584         BeOS portability.
79585         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79586
79587 2006-08-27  Jim Meyering  <jim@meyering.net>
79588
79589         * doc/visibility.texi: Remove duplicate word: "pointer".
79590
79591 2006-08-26  Bruno Haible  <bruno@clisp.org>
79592
79593         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79594         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79595         (Makefile.am): Create inttypes.h from inttypes_.h.
79596         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79597
79598         * modules/imaxabs: New file.
79599
79600         * modules/imaxdiv: New file.
79601
79602 2006-08-26  Bruno Haible  <bruno@clisp.org>
79603
79604         * m4/inttypes.m4: New file.
79605         * m4/_inttypes_h.m4: Remove file.
79606         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79607         PRI_MACROS_BROKEN.
79608         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79609
79610         * m4/imaxabs.m4: New file.
79611
79612         * m4/imaxdiv.m4: New file.
79613
79614 2006-08-26  Bruno Haible  <bruno@clisp.org>
79615
79616         * lib/inttypes_.h: New file.
79617         * lib/inttypes.h: Remove file.
79618         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79619
79620         * lib/imaxabs.c: New file.
79621
79622         * lib/imaxdiv.c: New file.
79623
79624 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79625
79626         New config-h module, so that "make" output needn't be cluttered
79627         by -DHAVE_CONFIG_H.
79628         * MODULES.html.sh (Support for building libraries and executables):
79629         Add config-h.
79630         * modules/config-h: New file.
79631         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79632         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79633         the config-h module is used.
79634
79635         New configmake module, so that "make" output needn't be cluttered
79636         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79637         * MODULES.html.sh (Support for building libraries and executables):
79638         Add configmake.
79639         * modules/configmake: New file.
79640
79641 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79642
79643         * m4/config-h.m4: New file.
79644
79645 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79646
79647         * config/srclist.txt: Add elisp-comp.
79648
79649 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79650
79651         * MODULES.html.sh (Support for building libraries and executables):
79652         Add elisp-comp.
79653         * build-aux/elisp-comp: New file.
79654         * modules/elisp-comp: New file.
79655
79656 2006-08-24  Bruno Haible  <bruno@clisp.org>
79657
79658         * gnulib-tool (func_create_testdir): Use non-default values of
79659         sourcebase and m4base.
79660
79661 2006-08-24  Bruno Haible  <bruno@clisp.org>
79662
79663         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79664         HTML structure.
79665
79666 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79667
79668         * modules/openat (Depends-on): Add lchown.
79669
79670 2006-08-23  Bruno Haible  <bruno@clisp.org>
79671
79672         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79673         of gl_LOCK_EARLY instead of gl_LOCK.
79674
79675 2006-08-23  Bruno Haible  <bruno@clisp.org>
79676
79677         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79678         on OSF/1 to no.
79679         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79680
79681 2006-08-23  Bruno Haible  <bruno@clisp.org>
79682
79683         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79684         as unusable.
79685
79686         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79687         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79688         (gl_LOCK): New macro.
79689
79690 2006-08-22  Simon Josefsson  <jas@extundo.com>
79691
79692         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79693         to md5 module.
79694
79695 2006-08-22  Simon Josefsson  <jas@extundo.com>
79696
79697         * MODULES.html.sh: Add "Support for maintaining and release
79698         projects".
79699
79700         * build-aux/gnupload: New file, from coreutils.
79701
79702 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         Avoid the need for AC_LIBSOURCES in m4 macros.
79705         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79706         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79707         * modules/check-version (EXTRA_DIST): Add check-version.h.
79708         * modules/crc (EXTRA_DIST): Add crc.h.
79709         * modules/des (EXTRA_DIST): Add des.h.
79710         * modules/gc (EXTRA_DIST): Add gc.h.
79711         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79712         * modules/getline (EXTRA_DIST): Add getline.h.
79713         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79714         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79715         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79716         * modules/md2 (EXTRA_DIST): Add md2.h.
79717         * modules/md4 (EXTRA_DIST): Add md4.h.
79718         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79719         * modules/read-file (EXTRA_DIST): Add read-file.h.
79720         * modules/readline (EXTRA_DIST): Add readline.h.
79721         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79722         rijndael-api-fst.h.
79723
79724 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79725
79726         * m4/rijndael.m4 (gl_ARCFOUR):
79727         * m4/arctwo.m4 (gl_ARCTWO):
79728         * m4/check-version.m4 (gl_CHECK_VERSION):
79729         * m4/crc.m4 (gl_CRC):
79730         * m4/des.m4 (gl_DES):
79731         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79732         * m4/gc.m4 (gl_GC):
79733         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79734         * m4/getline.m4 (gl_FUNC_GETLINE):
79735         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79736         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79737         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79738         * m4/md2.m4 (gl_MD2):
79739         * m4/md4.m4 (gl_MD4):
79740         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79741         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79742         * m4/readline.m4 (gl_FUNC_READLINE):
79743         * m4/rijndael.m4 (gl_RIJNDAEL):
79744         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79745         to get the necessary .h files and whatnot.
79746
79747 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79748
79749         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79750         gnulib rather than the other way around.
79751         * config/srclistvars.sh (COREUTILS): Remove.
79752
79753 2006-08-22  Jim Meyering  <jim@meyering.net>
79754
79755         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79756
79757         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79758
79759 2006-08-22  Eric Blake  <ebb9@byu.net>
79760
79761         * modules/regexprops-generic: New file.
79762         * MODULES.html.sh (Support for building documentation): List it.
79763
79764 2006-08-22  Eric Blake  <ebb9@byu.net>
79765
79766         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79767         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79768         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79769         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79770
79771 2006-08-22  Bruno Haible  <bruno@clisp.org>
79772
79773         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79774         and lib_LTLIBRARIES like the other lib_* variables.
79775
79776 2006-08-22  Bruno Haible  <bruno@clisp.org>
79777
79778         * build-aux/x-to-1.in: New file, from GNU gettext.
79779
79780 2006-08-22  Bruno Haible  <bruno@clisp.org>
79781
79782         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79783         <utmpx.h> exists.
79784
79785 2006-08-22  Bruno Haible  <bruno@clisp.org>
79786
79787         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79788         <utmpx.h> exists.
79789
79790 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79791
79792         BeOS portability.
79793         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79794         exist.
79795         Problem reported by Bruno Haible.
79796
79797 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79798
79799         Avoid the need for AC_LIBSOURCES in m4 macros.
79800         * modules/acl (EXTRA_DIST): Add acl.h.
79801         * modules/argmatch (Files): Add m4/argmatch.m4.
79802         (configure.ac): Add gl_ARGMATCH.
79803         (EXTRA_DIST): Renamed from lib_SOURCES, for
79804         consistency with the other modules.  Remove argmatch.c.
79805         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
79806         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
79807         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
79808         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
79809         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
79810         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
79811         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
79812         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
79813         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
79814         * modules/closeout (EXTRA_DIST): Add closeout.h.
79815         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
79816         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
79817         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
79818         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
79819         dirname.h; remove basename.c and stripslash.c.
79820         * modules/exclude (EXTRA_DIST): Add exclude.h.
79821         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
79822         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
79823         * modules/file-type (EXTRA_DIST): Add file-type.h.
79824         * modules/filemode (EXTRA_DIST): Add filemode.h.
79825         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
79826         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79827         * modules/fpending (EXTRA_DIST): Add __fpending.h.
79828         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
79829         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
79830         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
79831         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
79832         * modules/getdate (EXTRA_DIST): Add getdate.c.
79833         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
79834         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
79835         * modules/getpass (EXTRA_DIST): Add getpass.h.
79836         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
79837         * modules/group-member (EXTRA_DIST): Add group-member.h.
79838         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
79839         * modules/hash (EXTRA_DIST): Add hash.h.
79840         * modules/human (EXTRA_DIST): Add human.h.
79841         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
79842         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
79843         * modules/lchown (EXTRA_DIST): Add lchown.h.
79844         * modules/long-options (EXTRA_DIST): Add long-options.h.
79845         * modules/lstat (EXTRA_DIST): Add lstat.h.
79846         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79847         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79848         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79849         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79850         * modules/memxor (EXTRA_DIST): Add memxor.h.
79851         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79852         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79853         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79854         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79855         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79856         * modules/physmem (EXTRA_DIST): Add physmem.h.
79857         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79858         * modules/posixver (EXTRA_DIST): Add posixver.h.
79859         * modules/quote (EXTRA_DIST): Add quote.h.
79860         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79861         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79862         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79863         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79864         regex_internal.h regexec.c.
79865         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79866         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79867         * modules/same (EXTRA_DIST): Add same.h.
79868         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79869         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79870         * modules/savedir (EXTRA_DIST): Add savedir.h.
79871         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79872         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79873         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79874         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79875         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79876         * modules/strdup (EXTRA_DIST): Add strdup.h.
79877         * modules/strftime (EXTRA_DIST): Add strftime.h.
79878         * modules/strndup (EXTRA_DIST): Add strndup.h.
79879         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79880         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79881         * modules/time_r (EXTRA_DIST): Add time_r.h.
79882         * modules/timespec (EXTRA_DIST): Add timespec.h.
79883         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79884         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79885         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79886         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79887         * modules/userspec (EXTRA_DIST): Add userspec.h.
79888         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79889         * modules/utimens (EXTRA_DIST): Add utimens.h.
79890         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79891         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79892         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79893         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79894         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79895         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79896         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79897         * modules/yesno (EXTRA_DIST): Add yesno.h.
79898
79899 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79900
79901         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79902
79903         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79904         * m4/dev-ino.m4, same-inode.m4: Remove.
79905
79906         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79907         * m4/acl.m4 (AC_FUNC_ACL):
79908         * m4/backupfile.m4 (gl_BACKUPFILE):
79909         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79910         * m4/canon-host.m4 (gl_CANON_HOST):
79911         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79912         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79913         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79914         * m4/cloexec.m4 (gl_CLOEXEC):
79915         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79916         * m4/closeout.m4 (gl_CLOSEOUT):
79917         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79918         * m4/dirname.m4 (gl_DIRNAME):
79919         * m4/exclude.m4 (gl_EXCLUDE):
79920         * m4/exitfail.m4 (gl_EXITFAIL):
79921         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79922         * m4/file-type.m4 (gl_FILE_TYPE):
79923         * m4/filemode.m4 (gl_FILEMODE):
79924         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79925         * m4/fpending.m4 (gl_FUNC_FPENDING):
79926         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79927         * m4/fts.m4 (gl_FUNC_FTS):
79928         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79929         * m4/getdate.m4 (gl_GETDATE):
79930         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79931         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79932         * m4/getpass.m4 (gl_FUNC_GETPASS):
79933         * m4/gettime.m4 (gl_GETTIME):
79934         * m4/getugroups.m4 (gl_GETUGROUPS):
79935         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79936         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79937         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79938         * m4/hash.m4 (gl_HASH):
79939         * m4/idcache.m4 (gl_IDCACHE):
79940         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79941         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79942         * m4/long-options.m4 (gl_LONG_OPTIONS):
79943         * m4/lstat.m4 (gl_FUNC_LSTAT):
79944         * m4/md5.m4 (gl_MD5):
79945         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79946         * m4/memcoll.m4 (gl_MEMCOLL):
79947         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79948         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79949         * m4/memxor.m4 (gl_MEMXOR):
79950         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79951         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79952         * m4/modechange.m4 (gl_MODECHANGE):
79953         * m4/mountlist.m4 (gl_MOUNTLIST):
79954         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79955         * m4/openat.m4 (gl_FUNC_OPENAT):
79956         * m4/pathmax.m4 (gl_PATHMAX):
79957         * m4/physmem.m4 (gl_PHYSMEM):
79958         * m4/posixtm.m4 (gl_POSIXTM):
79959         * m4/posixver.m4 (gl_POSIXVER):
79960         * m4/quote.m4 (gl_QUOTE):
79961         * m4/quotearg.m4 (gl_QUOTEARG):
79962         * m4/readtokens.m4 (gl_READTOKENS):
79963         * m4/readutmp.m4 (gl_READUTMP):
79964         * m4/regex.m4 (gl_REGEX):
79965         * m4/safe-read.m4 (gl_SAFE_READ):
79966         * m4/safe-write.m4 (gl_SAFE_WRITE):
79967         * m4/same.m4 (gl_SAME):
79968         * m4/save-cwd.m4 (gl_SAVE_CWD):
79969         * m4/savedir.m4 (gl_SAVEDIR):
79970         * m4/settime.m4 (gl_SETTIME):
79971         * m4/sha1.m4 (gl_SHA1):
79972         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79973         * m4/stat-macros.m4 (gl_STAT_MACROS):
79974         * m4/stat-time.m4 (gl_STAT_TIME):
79975         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79976         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79977         * m4/strdup.m4 (gl_FUNC_STRDUP):
79978         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79979         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79980         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79981         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79982         * m4/time_r.m4 (gl_TIME_R):
79983         * m4/timespec.m4 (gl_TIMESPEC):
79984         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79985         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79986         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79987         * m4/userspec.m4 (gl_USERSPEC):
79988         * m4/utimecmp.m4 (gl_UTIMECMP):
79989         * m4/utimens.m4 (gl_UTIMENS):
79990         * m4/xalloc.m4 (gl_XALLOC):
79991         * m4/xgetcwd.m4 (gl_XGETCWD):
79992         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79993         * m4/xreadlink.m4 (gl_XREADLINK):
79994         * m4/xstrtod.m4 (gl_XSTRTOD):
79995         * m4/yesno.m4 (gl_YESNO):
79996         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79997         to get the necessary .h files and whatnot.
79998
79999 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80000             Bruno Haible  <bruno@clisp.org>
80001
80002         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80003         /bin/sh understanding of '!' conditional negation.
80004
80005 2006-08-21  Jim Meyering  <jim@meyering.net>
80006
80007         * modules/openat (Depends-on): Really alphabetize.
80008
80009         * modules/acl (Depends-on): Add error and quote.
80010
80011         * check-module (find_included_lib_files): Add at-func.c to the
80012         ok-to-include-more-than-once white list.
80013
80014         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80015
80016 2006-08-21  Bruno Haible  <bruno@clisp.org>
80017
80018         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80019         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80020         Reported by Martin Lambers <marlam@marlam.de>.
80021
80022 2006-08-21  Bruno Haible  <bruno@clisp.org>
80023
80024         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80025         specify an installation location, don't emit a noinst_LIBRARIES or
80026         noinst_LTLIBRARIES assignment.
80027
80028 2006-08-21  Bruno Haible  <bruno@clisp.org>
80029
80030         BeOS portability.
80031         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80032         BeOS has mbrtowc() but no <wctype.h>.
80033
80034 2006-08-21  Bruno Haible  <bruno@clisp.org>
80035
80036         BeOS portability.
80037         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80038         exist.
80039
80040 2006-08-21  Bruno Haible  <bruno@clisp.org>
80041
80042         BeOS portability.
80043         * lib/mbchar.h: Include <wctype.h> only if it exists.
80044
80045 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80046
80047         Remove files that are no longer needed by their respective modules.
80048         * m4/obstack.m4: Remove.
80049         * m4/strerror_r.m4: Remove.
80050         * m4/uint32_t.m4: Remove.
80051         * m4/uintptr_t.m4: Remove.
80052         * m4/ullong_max.m4: Remove.
80053         * m4/xstrtoimax.m4: Remove.
80054         * m4/xstrtoumax.m4: Remove.
80055
80056         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80057         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80058         dependencies now capture this.
80059
80060         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80061         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80062         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80063         * m4/human.m4 (gl_HUMAN): Likewise.
80064         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80065         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80066
80067         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80068
80069         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80070         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80071         stdint.
80072         * m4/human.m4 (gl_HUMAN): Likewise.
80073         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80074         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80075         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80076         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80077         * m4/xstrtol (gl_XSTRTOL): Likewise.
80078
80079         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80080         AC_TYPE_LONG_LONG_INT.
80081         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80082         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80083         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80084         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80085
80086         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80087         on stdbool.
80088
80089         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80090         (gl_PREREQ_XSTRTOUL): Remove.
80091
80092         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80093
80094         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80095         mode.
80096
80097 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80098
80099         Add and change modules to make it easier for coreutils to use
80100         gnulib-tool.
80101         * modules/backupfile (Files): Remove m4/d-ino.m4.
80102         (Depends-on): Add d-ino.
80103         * modules/cycle-check (Depends-on): Add stdint.
80104         (lib_SOURCES): Add cycle-check.h.
80105         * modules/d-ino: New module.
80106         * modules/d-type: New module.
80107         * modules/error (Files): Remove m4/strerror_r.m4.
80108         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80109         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80110         m4/inttypes_h.m4, m4/uintmax_t.m4.
80111         (Depends-on): Add stdint.
80112         (lib_SOURCES): Add fsusage.h.
80113         * modules/getcwd (Files): Remove d-ino.m4.
80114         (Depends-on): Add d-ino.
80115         * modules/getndelim2 (Depends-on): Add stdint.
80116         * modules/glob (Files): Remove m4/d-type.m4.
80117         (Depends-on): Add d-type.
80118         * modules/host-os: New module.
80119         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80120         m4/inttypes_h.m4, m4/uintmax_t.m4.
80121         * Depends-on: Add stdint.
80122         (lib_SOURCES): Add human.h.
80123         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80124         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80125         m4/uintmax_t.m4, m4/ulonglong.m4.
80126         (Depends-on): Add stdint.
80127         (EXTRA_DIST): Add inttostr.h.
80128         * modules/lchmod: New module.
80129         * modules/link-follow: New module.
80130         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80131         (Depends-on): Add lchmod.
80132         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80133         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80134         (Depends-on): Add stdint.
80135         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80136         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80137         (Depends-on): Add stdint.
80138         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80139         * modules/perl: New module.
80140         * modules/regex (Depends-on): Add stdint.
80141         * modules/rmdir-errno: New module.
80142         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80143         m4/intmax_t.m4.
80144         (Depends-on): Add stdint.
80145         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80146         m4/uintmax_t.m4.
80147         (Depends-on): Add stdint.
80148         * modules/unlink-busy: New module.
80149         * modules/utimecmp (Depends-on): Add stdint.
80150         * modules/uptime: New module.
80151         * modules/winsz-ioctl: New module.
80152         * modules/winsz-termios: New module.
80153         * modules/xnanosleep (Depends-on): Add nanosleep.
80154         * modules/ullong_max: Remove.
80155         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80156         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80157         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80158         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80159         (Depends-on): Add inttypes.
80160         (lib_SOURCES): Add xstrtol.h.
80161         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80162         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80163         * MODULES.html.sh: Move 'assert' into the assert section.
80164         Move 'dummy' into the linking section.
80165         Remove ullong_max.
80166         Add section for compatibility checks for POSIX:2001 functions,
80167         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80168         winsz-ioctl, and winsz-termios into it.
80169         Add lchmod.
80170         Add top-level Misc section and put host-os, perl, and uptime
80171         into it.
80172
80173 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80174
80175         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80176         now assume the stdint module.  Do not include inttypes.h.
80177         * lib/fsusage.h: Likewise.
80178         * lib/getndelim2.c: Likewise.
80179         * lib/human.h: Likewise.
80180         * lib/inttostr.h: Likewise.
80181         * lib/obstack.c: Likewise.
80182         * lib/regex_internal.h: Likewise.
80183         * lib/tempname.c: Likewise.
80184         * lib/utimecmp.c: Likewise.
80185         * lib/xstrtol.h: Likewise.
80186
80187         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80188
80189         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80190         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80191         * lib/xtime.h: Likewise.
80192
80193 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80194
80195         * modules/openat (Files): Add lib/fchmodat.c.
80196         Fixes problem reported by Jay Youngman.
80197
80198 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80199
80200         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80201         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80202
80203 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80204             Bruno Haible  <bruno@clisp.org>
80205
80206         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80207         and is a script that invokes bison. Tighten the code. Add comments.
80208
80209 2006-08-18  Jim Meyering  <jim@meyering.net>
80210
80211         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80212         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80213         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80214         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80215
80216 2006-08-18  Bruno Haible  <bruno@clisp.org>
80217
80218         * modules/bison-i18n: New file.
80219         * MODULES.html.sh (Internationalization functions): Add it.
80220
80221 2006-08-18  Bruno Haible  <bruno@clisp.org>
80222
80223         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80224         sys/statvfs.h. When getmntinfo was found, check its declaration and
80225         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80226
80227 2006-08-18  Bruno Haible  <bruno@clisp.org>
80228
80229         * m4/bison-i18n.m4: New file, from bison.
80230
80231 2006-08-18  Bruno Haible  <bruno@clisp.org>
80232
80233         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80234         (ME_DUMMY): Treat "kernfs" as a dummy.
80235         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80236
80237 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80238
80239         Update from coreutils.
80240
80241         2006-08-15  Jim Meyering  <jim@meyering.net>
80242
80243         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80244
80245         2006-01-17  Jim Meyering  <jim@meyering.net>
80246
80247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80248
80249         2006-01-11  Jim Meyering  <jim@meyering.net>
80250
80251         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80252         Check for the lchmod function.
80253
80254 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80255
80256         Update from coreutils.
80257
80258         * lib/__fpending.h: Add copyright notice.
80259         * lib/fprintftime.h: Likewise.
80260         * lib/savedir.c: Use (C) in copyright notice.
80261         * lib/savedir.h: Likewise.
80262
80263         2006-08-15  Jim Meyering  <jim@meyering.net>
80264
80265         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80266         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80267         in support of the EXPECTED_ERRNO macro.
80268         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80269         definitions.  Instead, define the appropriate symbols and include
80270         "at-func.c".
80271         * lib/mkdirat.c (mkdirat): Likewise.
80272         * lib/fchmodat.c (fchmodat): Likewise.
80273         (ENOSYS): Remove definition.
80274         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80275         it.  Don't include "unistd--.h" -- it wasn't ever used.
80276
80277         2006-01-17  Jim Meyering  <jim@meyering.net>
80278
80279         Rewrite fts.c not to change the current working directory,
80280         by using openat, fstatat, fdopendir, etc..
80281
80282         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80283         (HAVE_OPENAT_SUPPORT): Define.
80284         [_LIBC] (fchdir): Don't undef or define; no longer used.
80285         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80286         Now, this `function' always succeeds, and consumes its file descriptor
80287         parameter -- so callers must not close such FDs.  Update callers.
80288         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80289         (diropen): Add parameter, SP.  Adjust all callers.
80290         Implement using diropen_fd, rather than open.
80291         (fts_open): Initialize new member, fts_cwd_fd.
80292         Remove fts_rft-setting code.
80293         (fts_close): Close fts_cwd_fd, if necessary.
80294         (__opendir2): Define in terms of opendir or opendirat,
80295         depending on whether the FST_NOCHDIR flag is set.
80296         (fts_build): Since fts_safe_changedir consumes its FD, and since
80297         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80298         and close the dup'd file descriptor upon failure.
80299         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80300         (fts_safe_changedir): Tweak semantics to reflect that this function
80301         now calls cwd_advance_fd and hence consumes its FD argument.
80302         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80303         [struct FTS] (fts_rft): Remove now-unused member.
80304         [struct FTS] (fts_cycle.state): Improve comment.
80305
80306         * lib/openat.c (openat_needs_fchdir): New function.
80307         * lib/openat.h (openat_needs_fchdir): Declare it.
80308
80309 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80310
80311         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80312         Problem and fix reported by Pádraig Brady in
80313         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80314
80315 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80316
80317         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80318
80319 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80320
80321         * lib/memcoll.c (memcoll): Optimize for the common case where the
80322         arguments are bytewise equal.
80323
80324 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80325
80326         * doc/regexprops-generic.texi: Add a copyright notice.
80327
80328 2006-08-15  Bruno Haible  <bruno@clisp.org>
80329
80330         * modules/tmpdir (License): Change to LGPL.
80331
80332 2006-08-15  Bruno Haible  <bruno@clisp.org>
80333
80334         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80335         module.
80336
80337 2006-08-14  Simon Josefsson  <jas@extundo.com>
80338
80339         * config/srclist.txt: Add gnupload.
80340
80341 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80342
80343         Change copyright notice from LGPL 2 to GPL 2, since that's the
80344         standard form used in the gnulib repository.
80345         * tests/test-lock.c: Likewise.
80346         * tests/test-stdint.c: Likewise.
80347         * tests/test-tls.c: Likewise.
80348
80349         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80350         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80351         Add copyright notice.
80352
80353         * check-module: Add copyright notice.  Output a copyright
80354         notice if "--version" is specified.
80355         * modules/COPYING: New file.
80356         * tests/test-getaddrinfo.c: Add copyright notice.
80357         * tests/test-verify.c: Likewise.
80358
80359 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80360
80361         Change copyright notice from LGPL 2 to GPL 2, since that's the
80362         standard form used in the gnulib repository.
80363         * lib/lock.c: LGPL -> GPL.
80364         * lib/lock.h: Likewise.
80365         * lib/strnlen1.c: Likewise.
80366         * lib/strnlen1.h: Likewise.
80367         * lib/tls.c: Likewise.
80368         * lib/tls.h: Likewise.
80369         * lib/tmpdir.c: Likewise.
80370
80371         * lib/TODO: Remove; this belongs only in coreutils.
80372
80373 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80374
80375         Add copyright notices to long-enough files that lack them, since
80376         otherwise the files aren't clearly free.  Use the same notice that
80377         getdate.texi already uses.
80378         * doc/alloca-opt.texi: Add copyright notice.
80379         * doc/alloca.texi: Likewise.
80380         * doc/ctime.texi: Likewise.
80381         * doc/functions.texi: Likewise.
80382         * doc/gcd.texi: Likewise.
80383         * doc/gnulib-tool.texi: Likewise.
80384         * doc/inet_ntoa.texi: Likewise.
80385         * doc/visibility.texi: Likewise.
80386
80387         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80388         * doc/quote.texi: Add copyright notice.
80389
80390         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80391         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80392         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80393         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80394         is now obsolete, and give a pointer to the Sun list.
80395         Add copyright notice.
80396
80397 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80398
80399         * config/srclistvars.sh: Add copyright notice.
80400
80401 2006-08-14  Eric Blake  <ebb9@byu.net>
80402
80403         Import the following change from libc:
80404
80405         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80406
80407         Upstream bug 2997.
80408         * lib/misc/error.c: Add space between program name and message if file
80409         name is missing.
80410
80411 2006-08-12  Karl Berry  <karl@gnu.org>
80412
80413         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80414         remove, these originate in gnulib now.
80415
80416 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80417
80418         * doc/Makefile (standards.info standards.html standards.dvi):
80419         Also depend on make-stds.texi.
80420
80421 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80422
80423         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80424         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80425
80426         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80427         in wchar_t.  Problem reported by Eric Blake.
80428
80429         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80430         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80431         Also, help the compiler to keep LEN in a register.
80432
80433 2006-08-11  Eric Blake  <ebb9@byu.net>
80434
80435         * users.txt: Sort.  Add tar.
80436
80437 2006-08-11  Bruno Haible  <bruno@clisp.org>
80438
80439         * users.txt: New file.
80440
80441 2006-08-11  Bruno Haible  <bruno@clisp.org>
80442
80443         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80444         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80445
80446 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80447
80448         * modules/snprintf (Depends-on): Remove minmax.
80449         (Maintainer): Add self and Bruno.
80450
80451 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80452
80453         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80454         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80455         (EOVERFLOW): Define if the system does not.
80456         Do not include "minmax.h"; it wasn't used.
80457         (snprintf): Don't assume size_t promotes to an unsigned type.
80458         Fix bug when generated string was too long for the buffer: the
80459         buffer's contents are supposed to be the initial prefix of the
80460         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80461         exceeds INT_MAX; do the check ourselves.
80462
80463         Import the following changes from libc:
80464
80465         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80466
80467         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80468         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80469         set wc to the byte which couldn't be converted.
80470         (re_string_reconstruct): Don't clear valid_raw_len before calling
80471         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80472         tip_context using re_string_context_at.
80473
80474         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80475
80476         * lib/posix/regex.h: g++ still cannot handled [restrict].
80477
80478         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80479
80480         * lib/posix/regex.h: Remove special handling for VMS.
80481
80482 2006-08-10  Jim Meyering  <jim@meyering.net>
80483
80484         * modules/same-inode: New module.
80485         * modules/dev-ino: New module.
80486         * modules/cycle-check: Depend on these modules, rather than simply
80487         including their .h files.
80488         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80489         required via m4/cycle-check.m4.
80490         * modules/same: Depend on new same-inode module, rather than
80491         including same-inode.h.
80492         * modules/chdir-safer: New file.
80493
80494         * modules/chown (Depends-on): Add stat-macros.
80495
80496 2006-08-10  Jim Meyering  <jim@meyering.net>
80497
80498         * m4/cycle-check.m4: New file.
80499         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80500         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80501
80502 2006-08-10  Eric Blake  <ebb9@byu.net>
80503
80504         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80505         in from original proposal.
80506
80507 2006-08-10  Eric Blake  <ebb9@byu.net>
80508         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80509
80510         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80511         namespace.
80512
80513 2006-08-10  Bruno Haible  <bruno@clisp.org>
80514
80515         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80516         as well.
80517
80518 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80519
80520         Sync from coreutils.
80521
80522         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80523
80524         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80525         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80526
80527 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80528
80529         * modules/restrict: Remove; no longer needed now that we assume
80530         Autoconf 2.59 or later.
80531         * MODULES.html.sh: Remove 'restrict'.
80532         * modules/argp (Depends-on): Remove 'restrict'.
80533         * modules/base64 (Depends-on): Likewise.
80534         * modules/gc (Depends-on): Likewise.
80535         * modules/getaddrinfo (Depends-on): Likewise.
80536         * modules/glob (Depends-on): Likewise.
80537         * modules/inet_ntop (Depends-on): Likewise.
80538         * modules/inet_pton (Depends-on): Likewise.
80539         * modules/memxor (Depends-on): Likewise.
80540         * modules/regex (Depends-on): Likewise.
80541         * modules/strtok_r (Depends-on): Likewise.
80542         * modules/time_r (Depends-on): Likewise.
80543
80544 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80545
80546         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80547         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80548         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80549         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80550         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80551         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80552         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80553         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80554
80555         Merge from coreutils.
80556         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80557         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80558         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80559         * m4/time_r.m4 (gl_TIME_R): Likewise.
80560
80561 2006-08-09  Karl Berry  <karl@gnu.org>
80562
80563         * config/srclist.txt: no more gettext-tools, per Bruno.
80564
80565 2006-08-08  Eric Blake  <ebb9@byu.net>
80566
80567         * modules/verror: New module.
80568         * MODULES.html.sh: Document it.
80569
80570 2006-08-08  Eric Blake  <ebb9@byu.net>
80571
80572         * lib/verror.h, lib/verror.c: New files.
80573
80574 2006-08-08  Eric Blake  <ebb9@byu.net>
80575
80576         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80577         verror_at_line output complies with GNU Coding Standards even when
80578         file is NULL.
80579
80580 2006-08-07  Bruno Haible  <bruno@clisp.org>
80581
80582         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80583         versions of AIX.
80584         Reported by Ralf Wildenhues.
80585
80586 2006-08-07  Bruno Haible  <bruno@clisp.org>
80587
80588         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80589         in an AC_DEFUN. Needed so that the autoconf snippets can use
80590         AC_REQUIRE.
80591
80592 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80593
80594         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80595         Initialize pkgdata_DATA.
80596         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80597         overriding it.
80598
80599 2006-08-06  Eric Blake  <ebb9@byu.net>
80600
80601         * lib/error.h: Fold in some upstream changes from glibc.
80602         * lib/error.c: Likewise.
80603
80604 2006-08-04  Bruno Haible  <bruno@clisp.org>
80605
80606         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80607         Make the mostlyclean-local rule depend on mostlyclean-generic.
80608         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80609
80610 2006-07-31  Bruno Haible  <bruno@clisp.org>
80611
80612         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80613         <stdlib.h>, <string.h>.
80614
80615 2006-07-30  Bruno Haible  <bruno@clisp.org>
80616
80617         * modules/readlink (License): Change to LGPL.
80618
80619 2006-07-30  Bruno Haible  <bruno@clisp.org>
80620
80621         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80622         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80623         set PKGDATADIR to point to it.
80624
80625 2006-07-30  Bruno Haible  <bruno@clisp.org>
80626
80627         * modules/csharpexec (configure.ac): Comment out macro invocation.
80628         * modules/javaexec (configure.ac): Likewise.
80629         * modules/javacomp-script (configure.ac): Likewise.
80630
80631         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80632
80633 2006-07-30  Bruno Haible  <bruno@clisp.org>
80634
80635         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80636         linked-list.
80637
80638 2006-07-30  Bruno Haible  <bruno@clisp.org>
80639
80640         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80641
80642 2006-07-30  Bruno Haible  <bruno@clisp.org>
80643
80644         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80645         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80646         get removed.
80647
80648 2006-07-29  Bruno Haible  <bruno@clisp.org>
80649
80650         Make it possible for gnulib-tool to work with locally modified or
80651         augmented gnulib repositories.
80652         * gnulib-tool (func_usage): Document --local-dir option.
80653         (local_gnulib_dir): New variable.
80654         Handle --local-dir option.
80655         (func_lookup_file): New function.
80656         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80657         (func_get_description, func_get_filelist, func_get_description,
80658         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80659         func_get_automake_snippet, func_get_include_directive,
80660         func_get_license, func_get_maintainer): Use func_lookup_file.
80661         (func_import, func_create_testdir): Use func_lookup_file.
80662
80663 2006-07-29  Bruno Haible  <bruno@clisp.org>
80664
80665         * modules/setenv (Depends-on): Add unistd.
80666
80667 2006-07-29  Bruno Haible  <bruno@clisp.org>
80668
80669         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80670
80671 2006-07-29  Bruno Haible  <bruno@clisp.org>
80672
80673         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80674
80675 2006-07-29  Bruno Haible  <bruno@clisp.org>
80676
80677         * gnulib-tool (import, update): If there is no Makefile.am, look at
80678         aclocal.m4, instead of bailing out.
80679
80680 2006-07-29  Bruno Haible  <bruno@clisp.org>
80681
80682         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80683         Categorize the options by when they are useful.
80684
80685 2006-07-29  Bruno Haible  <bruno@clisp.org>
80686
80687         * gnulib-tool (func_usage): Document option --no-libtool.
80688         Handle option --no-libtool.
80689         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80690         for changed semantics of $libtool variable.
80691         (func_import): Likewise. If libtool is not used, show this through
80692         an option --no-libtool.
80693         (func_create_testdir): Update.
80694
80695 2006-07-29  Bruno Haible  <bruno@clisp.org>
80696
80697         * gnulib-tool (func_import): Extend error message about missing
80698         --doc-base.
80699
80700 2006-07-29  Bruno Haible  <bruno@clisp.org>
80701
80702         * gnulib-tool (func_import): Don't create the $docbase directory if
80703         there is no file to store there.
80704
80705 2006-07-29  Bruno Haible  <bruno@clisp.org>
80706
80707         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80708         relevant, look for configure.ac there, not in the current directory.
80709         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80710
80711 2006-07-29  Bruno Haible  <bruno@clisp.org>
80712
80713         * gnulib-tool (SORT): New variable.
80714         (func_usage): Undocument --assume-autoconf option.
80715         Remove --assume-autoconf option handling.
80716         (autoconf_minversion): Determine from the contents of configure.ac.
80717         (func_import): Remove autoconf_minversion handling.
80718         Suggested by Eric Blake.
80719
80720 2006-07-29  Bruno Haible  <bruno@clisp.org>
80721
80722         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80723
80724 2006-07-29  Bruno Haible  <bruno@clisp.org>
80725
80726         * config/srclist.txt (*setenv.[ch]): Remove rules.
80727
80728 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80729
80730         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80731
80732 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80733
80734         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80735         arpa/inet.h.
80736
80737 2006-07-28  Simon Josefsson  <jas@extundo.com>
80738
80739         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80740         * modules/inet_pton (Depends-on): Likewise.
80741
80742 2006-07-28  Simon Josefsson  <jas@extundo.com>
80743
80744         * m4/netinet_in_h.m4: New file.
80745
80746 2006-07-28  Simon Josefsson  <jas@extundo.com>
80747
80748         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80749         #include's.
80750
80751 2006-07-28  Simon Josefsson  <jas@extundo.com>
80752
80753         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80754         #include's.
80755
80756 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80757
80758         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80759         setgid on directories only if they set these bits.
80760         * lib/modechange.h: Remove obsolete comment about masks.
80761
80762 2006-07-28  Eric Blake  <ebb9@byu.net>
80763
80764         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80765         macro expansion.
80766
80767 2006-07-28  Bruno Haible  <bruno@clisp.org>
80768
80769         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80770
80771 2006-07-28  Bruno Haible  <bruno@clisp.org>
80772
80773         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80774
80775 2006-07-28  Bruno Haible  <bruno@clisp.org>
80776
80777         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80778         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80779         Define fallbacks.
80780         Avoids link error on FreeBSD 4.x.
80781         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80782
80783         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80784         encoding.
80785         * lib/mbswidth.c (iswcntrl): Likewise.
80786
80787 2006-07-27  Bruno Haible  <bruno@clisp.org>
80788
80789         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80790         test.
80791
80792 2006-07-27  Bruno Haible  <bruno@clisp.org>
80793
80794         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80795         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
80796         defined.
80797
80798 2006-07-26  Eric Blake  <ebb9@byu.net>
80799
80800         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
80801
80802 2006-07-26  Eric Blake  <ebb9@byu.net>
80803
80804         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
80805         like mingw that lack mkstemp.
80806         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
80807         avoid compilation warning on mingw.
80808
80809 2006-07-26  Bruno Haible  <bruno@clisp.org>
80810
80811         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
80812         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
80813         INT_FAST*_MIN, INTPTR_MIN.
80814
80815 2006-07-25  Bruno Haible  <bruno@clisp.org>
80816
80817         * modules/version-etc (Depends-on): Add stdarg.
80818
80819 2006-07-25  Bruno Haible  <bruno@clisp.org>
80820
80821         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
80822         complex commands.
80823
80824 2006-07-25  Bruno Haible  <bruno@clisp.org>
80825
80826         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
80827         defined in <stdarg.h> or config.h.
80828
80829 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80830
80831         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
80832         (gl_STDIO_SAFER): Remove.
80833
80834 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80835
80836         * MODULES.html.sh (File stream based Input/Output):
80837         Add fopen-safer, tmpfile-safer; remove stdio-safer.
80838         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
80839         * modules/fopen-safer, modules/tmpfile-safer: New files.
80840         * modules/stdio-safer: Remove.
80841
80842 2006-07-24  Bruno Haible  <bruno@clisp.org>
80843
80844         * modules/tmpdir: New file.
80845         * MODULES.html.sh (File system functions): Add it.
80846
80847 2006-07-24  Bruno Haible  <bruno@clisp.org>
80848
80849         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80850         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80851
80852 2006-07-24  Bruno Haible  <bruno@clisp.org>
80853
80854         * modules/clean-temp: New file.
80855
80856 2006-07-24  Bruno Haible  <bruno@clisp.org>
80857
80858         * m4/tmpdir.m4: New file, from GNU gettext.
80859
80860 2006-07-24  Bruno Haible  <bruno@clisp.org>
80861
80862         * lib/tmpdir.h: New file, from GNU gettext.
80863         * lib/tmpdir.c: New file, from GNU gettext.
80864
80865 2006-07-24  Bruno Haible  <bruno@clisp.org>
80866
80867         * lib/clean-temp.h: New file, from GNU gettext.
80868         * lib/clean-temp.c: New file, from GNU gettext.
80869
80870 2006-07-23  Eric Blake  <ebb9@byu.net>
80871
80872         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80873         (Depends-on): Add binary-io.
80874
80875 2006-07-23  Eric Blake  <ebb9@byu.net>
80876
80877         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80878
80879 2006-07-23  Eric Blake  <ebb9@byu.net>
80880
80881         * lib/tmpfile-safer.c: New file.
80882         * lib/stdio-safer.h (fopen_safer): Add prototype.
80883         * lib/stdio--.h (tmpfile): Make safer.
80884
80885 2006-07-23  Bruno Haible  <bruno@clisp.org>
80886
80887         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80888         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80889         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80890         gl_linked_remove_at): Use it.
80891
80892 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80893         and Simon Josefsson <jas@extundo.com>
80894
80895         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80896
80897         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80898
80899 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80900
80901         * modules/close-stream: New file.
80902         * modules/closeout (Description): Make it clear that it exits
80903         with a diagnostic on error.
80904         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80905         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80906
80907 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80908
80909         * m4/close-stream.m4: New file.
80910
80911 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80912
80913         * lib/close-stream.c, lib/close-stream.h: New files.
80914
80915 2006-07-22  Bruno Haible  <bruno@clisp.org>
80916
80917         Merge from GNU gettext 0.15.
80918
80919         2006-05-01  Bruno Haible  <bruno@clisp.org>
80920
80921                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80922
80923         2006-07-22  Bruno Haible  <bruno@clisp.org>
80924
80925                 * modules/javaversion: New file.
80926                 * MODULES.html.sh (Java): Add javaversion.
80927
80928         2006-03-12  Bruno Haible  <bruno@clisp.org>
80929
80930                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80931
80932         2005-12-04  Bruno Haible  <bruno@clisp.org>
80933
80934                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80935                 (untested).
80936
80937         2006-06-21  Bruno Haible  <bruno@clisp.org>
80938
80939                 Avoid warnings from recent versions of mcs.
80940                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80941                 -o, -L, -r any more. Use options documented since mcs-1.0
80942                 instead. Similarly for -g.
80943
80944         2005-12-04  Bruno Haible  <bruno@clisp.org>
80945
80946                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80947                 .resources, not .resource.
80948
80949         2005-07-09  Bruno Haible  <bruno@clisp.org>
80950
80951                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80952                 add a .dll suffix.
80953                 Reported by Mark Junker <mjscod@gmx.de>.
80954
80955         2006-07-22  Bruno Haible  <bruno@clisp.org>
80956
80957                 * modules/gettext: Upgrade to gettext-0.15.
80958                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80959                 m4/visibility.m4.
80960                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80961
80962 2006-07-22  Bruno Haible  <bruno@clisp.org>
80963
80964         Merge from GNU gettext 0.15.
80965
80966         2006-03-25  Bruno Haible  <bruno@clisp.org>
80967
80968                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80969
80970         2006-07-21  Bruno Haible  <bruno@clisp.org>
80971
80972                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80973                 "1.1".
80974
80975         2006-05-09  Bruno Haible  <bruno@clisp.org>
80976
80977                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80978                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80979                 for the conftestver execution.
80980
80981         2006-05-01  Bruno Haible  <bruno@clisp.org>
80982
80983                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80984                 optional target-version argument. Verify that the compiler
80985                 groks source of the specified source-version, or add -source
80986                 option as necessary. Verify that the compiler produces
80987                 bytecode in the specified target-version, or add -target and
80988                 -source options as necessary. Make the result of the test
80989                 available as variable CONF_JAVAC. Also log error output in
80990                 config.log.
80991
80992         2006-03-11  Bruno Haible  <bruno@clisp.org>
80993
80994                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80995
80996         2006-05-09  Bruno Haible  <bruno@clisp.org>
80997
80998                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80999                 CLASSPATH_SEPARATOR to a semicolon.
81000
81001         2006-03-12  Bruno Haible  <bruno@clisp.org>
81002
81003                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81004                 available as variable CONF_JAVA, for subsequent autoconf
81005                 tests. Also log error output in config.log.
81006
81007         2006-07-19  Bruno Haible  <bruno@clisp.org>
81008
81009                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81010                 that getline works on glibc2 systems. Needed to avoid trouble
81011                 in relocatable.c.
81012                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81013
81014         2005-12-04  Bruno Haible  <bruno@clisp.org>
81015
81016                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81017                 launcher (untested).
81018
81019         2005-12-04  Bruno Haible  <bruno@clisp.org>
81020
81021                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81022
81023         2006-07-22  Bruno Haible  <bruno@clisp.org>
81024
81025                 * gettext.m4: Update from GNU gettext-0.15.
81026                 * nls.m4: Likewise.
81027                 * po.m4: Likewise.
81028                 * inttypes-pri.m4: Likewise.
81029                 * inttypes-h.m4: Renamed from inttypes.m4.
81030                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81031
81032 2006-07-22  Bruno Haible  <bruno@clisp.org>
81033
81034         Merge from GNU gettext 0.15.
81035
81036         2005-07-05  Bruno Haible  <bruno@clisp.org>
81037
81038                 * printf-args.c (printf_fetchargs): Work around broken
81039                 definition of wint_t on mingw.
81040
81041         2005-02-12  Bruno Haible  <bruno@clisp.org>
81042
81043                 * xallocsa.h: Add extern "C" for C++.
81044
81045         2006-05-17  Bruno Haible  <bruno@clisp.org>
81046
81047                 Cygwin portability.
81048                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81049
81050         2006-04-30  Bruno Haible  <bruno@clisp.org>
81051
81052                 * progreloc.c: Include <mach-o/dyld.h> if available.
81053                 (find_executable): Use _NSGetExecutablePath when possible.
81054
81055         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81056
81057                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81058                 function.
81059
81060         2005-12-29  Bruno Haible  <bruno@clisp.org>
81061
81062                 * progreloc.c (set_program_name_and_installdir): Fix
81063                 compilation error.
81064
81065         2005-12-04  Bruno Haible  <bruno@clisp.org>
81066
81067                 Cygwin portability.
81068                 * progreloc.c: Include <windows.h> also on Cygwin.
81069                 (find_executable): Add support for Cygwin.
81070                 (set_program_name_and_installdir): Handle also platforms with
81071                 nonempty EXEEXT.
81072
81073         2006-07-11  Bruno Haible  <bruno@clisp.org>
81074
81075                 * javacomp.c: Fix a comment.
81076                 Reported by Jim Meyering.
81077
81078         2006-04-30  Bruno Haible  <bruno@clisp.org>
81079
81080                 * javacomp.h (compile_java_class): Add source_version,
81081                 target_version arguments.
81082                 * javacomp.c: Rewritten to choose only a compiler that
81083                 respects the specified source_version and target_version.
81084
81085         2006-06-27  Bruno Haible  <bruno@clisp.org>
81086
81087                 Assume correct S_ISDIR macro.
81088                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81089
81090         2006-07-22  Bruno Haible  <bruno@clisp.org>
81091
81092                 * javaversion.h: New file, from GNU gettext.
81093                 * javaversion.c: New file, from GNU gettext.
81094                 * javaversion.java: New file, from GNU gettext.
81095                 * javaversion.class: New file, from GNU gettext.
81096
81097         2006-05-17  Bruno Haible  <bruno@clisp.org>
81098
81099                 Cygwin portability.
81100                 * javaexec.c (execute_java_class): Test for jview program
81101                 also on Cygwin.
81102
81103         2006-04-09  Bruno Haible  <bruno@clisp.org>
81104
81105                 * fatal-signal.c: Don't include string.h.
81106                 (at_fatal_signal): Use a copying loop instead of memcpy.
81107
81108         2005-12-04  Bruno Haible  <bruno@clisp.org>
81109
81110                 * csharpexec.c: Add support for 'clix' launcher (untested).
81111                 (execute_csharp_using_sscli): New function.
81112                 (execute_csharp_program): Call it.
81113
81114         2006-06-21  Bruno Haible  <bruno@clisp.org>
81115
81116                 Avoid warnings from recent versions of mcs.
81117                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81118                 -o, -L, -r any more. Use options documented since mcs-1.0
81119                 instead. Similarly for -g.
81120
81121         2005-07-09  Bruno Haible  <bruno@clisp.org>
81122
81123                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81124                 add a .dll suffix.
81125                 Reported by Mark Junker <mjscod@gmx.de>.
81126
81127         2006-06-17  Bruno Haible  <bruno@clisp.org>
81128
81129                 * config.charset: Update for NetBSD 3.0.
81130
81131         2006-05-17  Bruno Haible  <bruno@clisp.org>
81132
81133                 Cygwin portability.
81134                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81135
81136         2006-05-16  Bruno Haible  <bruno@clisp.org>
81137
81138                 * localcharset.c [CYGWIN]: Include <windows.h>.
81139                 (get_charset_aliases): For Cygwin, return the same CPxxx
81140                 aliases list as under WIN32.
81141                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81142                 the environment variables. Fall back to GetACP().
81143
81144         2006-04-05  Bruno Haible  <bruno@clisp.org>
81145
81146                 * config.charset: Update Juan Manuel Guerrero's address.
81147
81148         2005-02-12  Bruno Haible  <bruno@clisp.org>
81149
81150                 * allocsa.h: Add extern "C" for C++.
81151
81152         2005-02-10  Bruno Haible  <bruno@clisp.org>
81153
81154                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81155                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81156
81157         2006-07-22  Bruno Haible  <bruno@clisp.org>
81158
81159                 * gettext.h: Update to GNU gettext-0.15.
81160
81161 2006-07-22  Bruno Haible  <bruno@clisp.org>
81162
81163         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81164         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81165         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81166
81167 2006-07-21  Eric Blake  <ebb9@byu.net>
81168
81169         * modules/stdlib-safer: New file.
81170         * MODULES.html.sh (File stream based Input/Output): Add
81171         stdlib-safer.
81172
81173 2006-07-21  Eric Blake  <ebb9@byu.net>
81174
81175         * lib/stdlib-safer.h: New file from coreutils, required by
81176         stdlib--.h.
81177
81178 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81179
81180         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81181
81182 2006-07-20  Bruno Haible  <bruno@clisp.org>
81183
81184         * gnulib-tool: Recognize new option --assume-autoconf.
81185         (autoconf_minversion): New variable.
81186         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81187
81188 2006-07-20  Bruno Haible  <bruno@clisp.org>
81189
81190         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81191
81192 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81193
81194         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81195         Reindent and repaginate.
81196
81197 2006-07-19  Derek Price  <derek@ximbiot.com>
81198
81199         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81200         Correct grammar.
81201
81202 2006-07-17  Bruno Haible  <bruno@clisp.org>
81203
81204         * modules/list: New file.
81205         * modules/array-list: New file.
81206         * modules/carray-list, modules/carray-list-tests: New files.
81207         * modules/linked-list, modules/linked-list-tests: New files.
81208         * modules/avltree-list, modules/avltree-list-tests: New files.
81209         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81210         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81211         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81212         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81213         * modules/oset: New file.
81214         * modules/array-oset: New file.
81215         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81216         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81217         * tests/test-carray_list.c: New file.
81218         * tests/test-linked_list.c: New file.
81219         * tests/test-avltree_list.c: New file.
81220         * tests/test-rbtree_list.c: New file.
81221         * tests/test-linkedhash_list.c: New file.
81222         * tests/test-avltreehash_list.c: New file.
81223         * tests/test-rbtreehash_list.c: New file.
81224         * tests/test-avltree_oset.c: New file.
81225         * tests/test-rbtree_oset.c: New file.
81226         * MODULES.html.sh (Container data structures): New section.
81227
81228 2006-07-17  Bruno Haible  <bruno@clisp.org>
81229
81230         * m4/gl_list.m4: New file.
81231
81232 2006-07-17  Bruno Haible  <bruno@clisp.org>
81233
81234         * lib/gl_list.h: New file.
81235         * lib/gl_list.c: New file.
81236         * lib/gl_array_list.h: New file.
81237         * lib/gl_array_list.c: New file.
81238         * lib/gl_carray_list.h: New file.
81239         * lib/gl_carray_list.c: New file.
81240         * lib/gl_linked_list.h: New file.
81241         * lib/gl_linked_list.c: New file.
81242         * lib/gl_anylinked_list1.h: New file.
81243         * lib/gl_anylinked_list2.h: New file.
81244         * lib/gl_avltree_list.h: New file.
81245         * lib/gl_avltree_list.c: New file.
81246         * lib/gl_anyavltree_list1.h: New file.
81247         * lib/gl_anyavltree_list2.h: New file.
81248         * lib/gl_rbtree_list.h: New file.
81249         * lib/gl_rbtree_list.c: New file.
81250         * lib/gl_anyrbtree_list1.h: New file.
81251         * lib/gl_anyrbtree_list2.h: New file.
81252         * lib/gl_anytree_list1.h: New file.
81253         * lib/gl_anytree_list2.h: New file.
81254         * lib/gl_linkedhash_list.h: New file.
81255         * lib/gl_linkedhash_list.c: New file.
81256         * lib/gl_anyhash_list1.h: New file.
81257         * lib/gl_anyhash_list2.h: New file.
81258         * lib/gl_avltreehash_list.h: New file.
81259         * lib/gl_avltreehash_list.c: New file.
81260         * lib/gl_rbtreehash_list.h: New file.
81261         * lib/gl_rbtreehash_list.c: New file.
81262         * lib/gl_anytreehash_list1.h: New file.
81263         * lib/gl_anytreehash_list2.h: New file.
81264
81265         * lib/gl_oset.h: New file.
81266         * lib/gl_oset.c: New file.
81267         * lib/gl_array_oset.h: New file.
81268         * lib/gl_array_oset.c: New file.
81269         * lib/gl_avltree_oset.h: New file.
81270         * lib/gl_avltree_oset.c: New file.
81271         * lib/gl_rbtree_oset.h: New file.
81272         * lib/gl_rbtree_oset.c: New file.
81273         * lib/gl_anytree_oset.h: New file.
81274
81275 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81276
81277         * m4/mkancesdirs.m4: New file.
81278         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81279         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81280         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81281         it.
81282
81283 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81284
81285         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81286         * lib/mkancesdirs.h: New files.
81287         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81288         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81289         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81290         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81291         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81292         callers changed.  Revamp internals significantly, by not
81293         attempting to create directories that are temporarily more
81294         permissive than the final results.  Do not attempt to use
81295         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81296         This removes some race conditions, fixes some bugs, and simplifies
81297         things.  Use new dirchownmod function to do owner and mode changes.
81298         * lib/mkdir-p.h: Likewise.
81299         * lib/modechange.c (octal_to_mode): New function.
81300         (struct mode_change): New member mentioned.
81301         (make_node_op_equals): New arg mentioned.  All callers changed.
81302         (mode_compile): Keep track of which mode bits the user has explicitly
81303         mentioned.
81304         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81305         New arg PMODE_BITS, to keep track of which mode bits the user
81306         mentioned; it treats S_ISUID and S_ISGID speciall.
81307         All callers changed.
81308         * lib/modechange.h: Likewise.
81309
81310 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81311
81312         * MODULES.html.sh: Add mkancestors.
81313         * modules/mkancesdirs: New module.
81314         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81315         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81316         The chdir-safer and afs files are now orphans; I'll remove them
81317         unless someone speaks up.
81318         Add lib/dirchownmod.c, lib/dirchownmod.h.
81319         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81320         Add lchown, mkancesdirs.
81321         (Maintainer): Add self.
81322
81323 2006-07-15  Karl Berry  <karl@gnu.org>
81324
81325         * gnulib-tool: help message wording/arrangement.
81326
81327 2006-07-14  Simon Josefsson  <jas@extundo.com>
81328
81329         * doc/gnulib.texi (Libtool and Windows): New section.
81330
81331 2006-07-12  Simon Josefsson  <jas@extundo.com>
81332
81333         * modules/gendocs (License): Fix license, approved by Karl.
81334
81335 2006-07-12  Eric Blake  <ebb9@byu.net>
81336
81337         * MODULES.html.sh: Add gendocs.
81338
81339 2006-07-11  Eric Blake  <ebb9@byu.net>
81340
81341         * modules/fdl: New module, to install doc/fdl.texi.
81342         * MODULES.html.sh: Add new section for documentation modules.
81343         * gnulib-tool: Avoid space-tab.
81344         (--doc-base): New option, to manage files from doc.
81345
81346 2006-07-11  Eric Blake  <ebb9@byu.net>
81347
81348         * m4/absolute-header.m4: Fix comments to match recent change.
81349
81350 2006-07-11  Eric Blake  <ebb9@byu.net>
81351
81352         * gnulib-tool: List --doc-base before --tests-base.
81353
81354 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81355
81356         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81357
81358 2006-07-11  Bruno Haible  <bruno@clisp.org>
81359
81360         * README: Mention where to put documentation.
81361
81362 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81363
81364         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81365
81366 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81367
81368         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81369         to stdint.m4.
81370
81371 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81372
81373         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81374         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81375         "no/such/file/stdint.h" when there is no such file, so that
81376         the resulting C code can be parsed by dodgy compilers.
81377         Problems reported by Bob Proulx.
81378
81379 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81380
81381         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81382         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81383         macros into the GNU _D_EXACT_NAMLEN.
81384         * lib/savedir.c:  Likewise.
81385         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81386
81387 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81388         and Paul Eggert  <eggert@cs.ucla.edu>
81389
81390         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81391         * m4/savedir.m4:
81392         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81393         macros into the GNU _D_EXACT_NAMLEN.
81394
81395 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81396
81397         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81398         around the absolute name, to work around a problem with the HP-UX
81399         11.23 native C compiler, reported by Bob Proulx.
81400
81401 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81402
81403         * doc/maintain.texi, make-stds.texi: Sync from
81404         <http://savannah.gnu.org/projects/gnustandards>.
81405
81406 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81407
81408         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81409
81410 2006-07-09  Jim Meyering  <jim@meyering.net>
81411
81412         * m4/glob.m4: Remove a doubled word in a comment.
81413
81414 2006-07-09  Jim Meyering  <jim@meyering.net>
81415
81416         * lib/argp-pv.c: Remove a doubled word in a comment.
81417         * lib/check-version.c (check_version): Likewise.
81418         * lib/javacomp.c (compile_java_class): Likewise.
81419
81420 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81421
81422         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81423         for the benefit of people using Autoconf 2.60.  If you want to
81424         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81425         (or m4/onceonly.m4, if pre-2.57) manually.
81426
81427 2006-07-08  Jim Meyering  <jim@meyering.net>
81428
81429         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81430         comment.
81431         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81432         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81433         comment.
81434
81435 2006-07-08  Jim Meyering  <jim@meyering.net>
81436
81437         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81438
81439 2006-07-07  Simon Josefsson  <jas@extundo.com>
81440
81441         * tests/test-crc.c: Change expected crc value, the test vector
81442         were probably computed using the old broken crc.c?
81443
81444 2006-07-06  Simon Josefsson  <jas@extundo.com>
81445
81446         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81447         now the canonical place for the M4 file).
81448
81449         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81450         from the sys_socket dependency now.
81451
81452         * modules/inet_pton (Files): Ditto.
81453
81454         * modules/inet_ntop (Files): Ditto.
81455
81456 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81457
81458         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81459         not gl_PREREQ_GETUSERSHELL.
81460
81461 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81462
81463         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81464         with only one argument, for Autoconf 2.60.
81465         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81466         expand to nothing, so add a shell command to avoid syntax error.
81467         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81468
81469 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81470
81471         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81472
81473 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81474
81475         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81476         no longer needed.  Check for isblank decl.
81477         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81478         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81479         of existence.
81480
81481 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81482
81483         * lib/getloadavg.c: Use __VMS, not VMS.
81484         * lib/getopt.c: Likewise.
81485         * lib/getpagesize.h: Likewise.
81486         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81487         and probably does not work.
81488
81489 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81490
81491         * lib/.cppi-disable: Add wcwidth.
81492         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81493         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81494         (ISGRAPH): Remove.  All uses changed to isgraph.
81495         (FOLD) [!defined _LIBC]: Remove special case.
81496         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81497         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81498         HAVE_ISBLANK.
81499         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81500         case.
81501
81502 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81503
81504         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81505         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81506         brackets.  Other minor changes to suppress some compiler
81507         warnings.
81508
81509 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81510         and Paul Eggert  <eggert@cs.ucla.edu>
81511
81512         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81513         of invoking obsolescent AC_HEADER_DIRENT macro.
81514         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81515         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81516         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81517         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81518         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81519         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81520         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81521         * m4/readdir.m4: Remove; no longer needed.
81522
81523 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81524         and Paul Eggert  <eggert@cs.ucla.edu>
81525
81526         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81527         Don't worry about this obsolete case any more.
81528         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81529         directories.
81530         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81531         worry about this obsolete case any more.
81532         * lib/fts.c: Likewise.
81533         * lib/getcwd.c: Likewise.
81534         * lib/glob.h: Likewise.
81535         * lib/savedir.c: Likewise.
81536
81537 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81538
81539         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81540         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81541         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81542         needed.
81543         All uses removed.
81544         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81545         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81546         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81547         needed.
81548         * m4/getdate.m4 (gl_GETDATE): Likewise.
81549         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81550         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81551         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81552         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81553         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81554         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81555         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81556         needed.
81557
81558 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81559
81560         * lib/memcasecmp.c: Include <limits.h>.
81561         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81562         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81563         Don't assume isdigit succeeds only on '0' through '9'.
81564
81565 2006-07-05  Eric Blake  <ebb9@byu.net>
81566
81567         * modules/getaddrinfo (Depends-on): Add snprintf.
81568
81569 2006-07-05  Eric Blake  <ebb9@byu.net>
81570
81571         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81572         to avoid 'header present but could not be compiled' on cygwin.
81573
81574 2006-07-05  Eric Blake  <ebb9@byu.net>
81575
81576         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81577         missing from netdb.h.
81578         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81579
81580 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81581
81582         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81583         no longer needed.
81584         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81585         * m4/getdate.m4 (gl_GETDATE): Likewise.
81586         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81587         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81588         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81589         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81590         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81591
81592 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81593
81594         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81595         All uses of is_space replaced by isspace.
81596         * lib/exit.h: Don't talk about STDC_HEADERS.
81597         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81598         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81599         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81600         replaced by isprint etc.
81601         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81602         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81603         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81604         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81605         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81606         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81607
81608 2006-07-05  Bruno Haible  <bruno@clisp.org>
81609
81610         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81611         the function exists, before testing against AIX.
81612         Reported by Martin Lambers <marlam@marlam.de>.
81613
81614 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81615
81616         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81617         From Mark D. Baushke.
81618
81619 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81620
81621         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81622         to the absolute name, not just one, to bypass Sun C 5.8's
81623         "warning: #include of /usr/include/... may be non-portable".
81624
81625 2006-07-04  Eric Blake  <ebb9@byu.net>
81626
81627         * modules/dirname-tests: New test module.
81628         * tests/test-dirname.c: New file, replacing dirname.c
81629         TEST_DIRNAME section that was recently deleted.
81630
81631 2006-07-04  Bruno Haible  <bruno@clisp.org>
81632
81633         Assume ANSI C header files and <ctype.h> functions.
81634         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81635         (mbsnwidth): Use isprint, iscntrl instead.
81636
81637 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81638
81639         Merge from coreutils.
81640         * MODULES.html.sh: Add xstrtold.
81641         * modules/xstrtold: New file.
81642         * modules/cycle-check (Files): Add lib/same-inode.h.
81643         * modules/dirname (Files): Add m4/double-slash-root.m4.
81644         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81645         * modules/mkdir-p (Files): Add lib/same-inode.h.
81646         * modules/same (Files): Add lib/same-inode.h.
81647
81648 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81649
81650         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81651         This is to keep the terminology clean; POSIX talks about
81652         "absolute pathnames", not "full pathnames", but the GNU
81653         Coding Standards say to use "path" for something else;
81654         so use "absolute" to keep both sides happy.
81655         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81656         Set gl_absolute_header, not gl_full_header_path.
81657         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81658         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81659         All uses changed.
81660
81661         Merge from coreutils.
81662
81663         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81664
81665         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81666         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81667         want to require the building of c-strtod.o.
81668         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81669         needs -lm directly.
81670         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81671
81672         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81673
81674         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81675         --as-needed option if available.  Problem reported by Albert Chin in
81676         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81677         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81678         cc merely issues a bunch of annoying warnings for --as-needed
81679         (this problem was reported by Bob Proulx).  Also, try linking with
81680         -lm to detect a bug in binutils 2.16 (this problem was reported
81681         by Ralf Wildenhues).
81682
81683         2006-06-18  Jim Meyering  <jim@meyering.net>
81684
81685         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81686         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81687         macro.
81688         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81689         also check for glibc-2.4's abort-inducing bug.
81690
81691         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81692         Low-probability clean-up should be to use rmdir to get rid of
81693         the just-created directory, not unlink.
81694
81695         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81696         configure fail, and request a bug report to inform us about it.
81697         Add a comment that, barring reports to the contrary, in 2007 we'll
81698         assume ftruncate is universally available.
81699
81700         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81701
81702         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81703
81704         2006-03-12  Jim Meyering  <jim@meyering.net>
81705
81706         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81707         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81708         * m4/same.m4 (gl_SAME): Likewise.
81709         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81710
81711         2006-03-11  Eric Blake  <ebb9@byu.net>
81712
81713         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81714         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81715         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81716         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81717
81718 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81719
81720         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81721         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81722         reported by Mark D. Baushke, one in
81723         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81724
81725         Merge from coreutils.
81726
81727         * lib/.cppi-disable: Add stdint_.h.
81728         * lib/.cvsignore: Add stdint.h.
81729
81730         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81731
81732         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81733         both double and long double versions.
81734         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81735         * lib/xstrtold.c: New file.
81736         * lib/xstrtod.h (xstrtold): New decl.
81737
81738         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81739
81740         * lib/filemode.c (setst): Remove.
81741         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81742         (arguably) clearer, and the generated code is a bit smaller on my
81743         Debian GNU/Linux stable x86 host.
81744
81745         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81746
81747         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81748         Assume that filemode.h includes sys/types.h and sys/stat.h.
81749         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81750         (ftypelet): Reorder to put common cases first, for efficiency.
81751         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81752         to do 'M'.
81753         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81754         of 10, for compatibility with FreeBSD.  All callers changed.
81755         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81756         types that can't be deduced solely from st_mode.  First arg is now a
81757         const pointer.
81758         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81759         (strmode): Renamed from mode_string.
81760         (filemodestring): New decl.
81761         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81762         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81763         needed.
81764         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81765
81766         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81767
81768         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81769         fsusage.h now does that.  Include fsusage.h first, to test interface.
81770         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81771         at most one method (the old code could have generated decls that
81772         didn't conform to C89, not that this was ever exercised).
81773         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81774
81775         2006-03-19  Jim Meyering  <jim@meyering.net>
81776
81777         Work even in a chroot where d_ino values for entries in "/"
81778         don't match the stat.st_ino values for the same names.
81779         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81780         number, iterate through all entries again, using lstat instead.
81781         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81782         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81783
81784         * lib/getcwd.c (__getcwd): Clarify a comment.
81785         Use memcpy in place of a call to strcpy.
81786
81787         2006-03-12  Jim Meyering  <jim@meyering.net>
81788
81789         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81790         matches that of the current directory (which we're about to chdir ".."
81791         out of), then save the dev-ino of the parent, instead.
81792
81793         * lib/same-inode.h (SAME_INODE): New file/macro.
81794         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81795         Include "same-inode.h", instead.
81796         * lib/same.c: Likewise.
81797         * lib/cycle-check.h: Include "same-inode.h".
81798         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
81799         * lib/cycle-check.c (SAME_INODE): Remove definition.
81800         * lib/root-dev-ino.h: Include "same-inode.h".
81801
81802         2006-03-11  Eric Blake  <ebb9@byu.net>
81803
81804         * lib/same.c (same_name): s/base_name/last_component/
81805         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
81806         * lib/filenamecat.c (file_name_concat): Likewise.
81807
81808         2006-03-11  Eric Blake  <ebb9@byu.net>,
81809                     Paul Eggert  <eggert@cs.ucla.edu>
81810
81811         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
81812         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
81813         drive prefix.
81814         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
81815         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
81816         (last_component): New method.
81817         * lib/dirname.c (dir_len): Determine when drive letters need a
81818         subsequent slash.  Preserve // when it is special.
81819         (dir_name): Don't append dot when drive letter is absolute.
81820         [TEST_DIRNAME]: Move into a full-blown gnulib test.
81821         * lib/basename.c (base_name): New semantics - malloc the result.
81822         Preserve // when it is special.  Preserve relative files that look
81823         like drive letters.
81824         (base_len): Preserve // when it is special.
81825         (last_component): New method, similar to old base_name semantics.
81826         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
81827         base_name.  Strip redundant slashes from ///.
81828
81829 2006-07-03  Jim Meyering  <jim@meyering.net>
81830
81831         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
81832         macro is used before the first cycle_check call.
81833
81834 2006-07-03  Eric Blake  <ebb9@byu.net>
81835
81836         * modules/dirname (Depends-on): Add xstrndup.
81837
81838 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81839
81840         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
81841         test cases, so that config.log is a bit easier to follow.
81842
81843 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81844
81845         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81846         both are 64 bits, since this seems to be the tradition, and this
81847         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81848         we ever run into a host that prefers long long to long in this
81849         case, we'll need another configure-time test.  Problem reported by
81850         Jim Meyering.
81851
81852 2006-07-02  Eric Blake  <ebb9@byu.net>
81853
81854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81855
81856 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81857
81858         * modules/inttypes (Depends-on): No longer depends on stdint.
81859         * modules/stdint (Description): Say more about assumptions.
81860         Say that the fast types might differ.  Say macros are used.
81861         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81862         (Makefile.am): Revise list of substituted symbols to match
81863         new stdint.m4.
81864         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81865         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81866         * tests/test-stdint.c (verify_same_types)
81867         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81868         the code conforms to C99/C89.
81869         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81870         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81871
81872 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81875         but fix a bug, by requiring at least 64 bits.
81876         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81877         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81878         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81879         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81880
81881         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81882         changes.  Make 2.59 a prerequisite.  Check and substitute for
81883         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81884         inttypes.h.  Do not use special include files; just use the
81885         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81886         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81887         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81888         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81889         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81890         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81891         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81892         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81893         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81894         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81895         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81896         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81897         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81898         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81899         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81900         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81901         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81902         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81903         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81904         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81905         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81906         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81907         not check for things that C99 does not require, e.g., int8_t.  If
81908         a test isn't needed unless <stdint.h> isn't working, and is
81909         unlikely to be needed for any other reason, then don't do it
81910         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81911         size_t, since we assume C89 freestanding at least.  Do not check
81912         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81913         the right thing even if the types are not defined.  Instead use:
81914         (gl_STDINT_TYPE_PROPERTIES): New macro.
81915         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81916         testing whether <sys/types.h> clashes, as Autoconf does this for
81917         us now.  All uses removed.
81918         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81919         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81920         (gl_CHECK_TYPE_SAME):
81921         Remove; no longer needed.
81922         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81923         exists, since we'll return 0 anyway in that case.
81924         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81925
81926 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81927
81928         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81929         possible collision with system files.
81930         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81931         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81932         WCHAR_MIN and WCHAR_MAX in this case.
81933         (<stddef.h>): Do not include; no longer needed.
81934         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81935         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81936         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81937         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81938         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81939         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81940         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81941         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81942         !defined(__c99))]: Include in this case too, since it's harmless
81943         now.
81944         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81945         dangerous to do so.
81946         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81947         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81948         (_STDINT_MIN, _STDINT_MAX): New macros.
81949         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81950         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81951         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81952         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81953         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81954         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81955         macros, not typedefs; this simplifies things quite a bit.
81956         Use long int for all types narrower than int64_t.
81957         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81958         Define in terms of long long int or int64_t or long int,
81959         not int64_t or int32_t.  This saves some compile-time testing.
81960         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81961         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81962         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81963         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81964         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81965         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81966         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81967         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81968         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81969         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81970         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81971         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81972         undef any previous version and define our own version, for
81973         simplicity and consistency with the new macros for types.
81974         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81975         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81976         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81977         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81978         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81979         @WINT_T_SUFFIX@ to keep things simple here.
81980         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81981         Simplify by assuming typical 8/16/32/64 host, since we're
81982         already doing that elsewhere anyway.
81983         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81984         and assume long long int is 64 bits if available.  This
81985         speeds up 'configure'.
81986
81987 2006-07-01  Eric Blake  <ebb9@byu.net>
81988
81989         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81990         Reported by Andreas Buening.
81991
81992 2006-07-01  Eric Blake  <ebb9@byu.net>
81993
81994         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81995
81996 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81997
81998         * lib/getaddrinfo.c: fixed typo
81999
82000 2006-06-29  Jim Meyering  <jim@meyering.net>
82001
82002         * modules/strftime (Maintainer): Add my name, since with the
82003         FPRINTFTIME changes strftime.c has forked from glibc.
82004
82005 2006-06-29  Eric Blake  <ebb9@byu.net>
82006
82007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82008
82009 2006-06-29  Eric Blake  <ebb9@byu.net>
82010
82011         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82012
82013 2006-06-29  Eric Blake  <ebb9@byu.net>
82014
82015         * lib/stat_.h: New file.
82016
82017 2006-06-29  Eric Blake  <ebb9@byu.net>
82018
82019         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82020         unused static function.
82021
82022 2006-06-29  Eric Blake  <ebb9@byu.net>
82023
82024         * doc/functions.texi (Function Portability): Document missing lstat
82025         on mingw.
82026
82027 2006-06-29  Eric Blake  <ebb9@byu.net>
82028
82029         * MODULES.html.sh: Add sys_stat.
82030         * modules/sys_stat: New module.
82031         * modules/mkstemp (Depends-on): Add sys_stat.
82032
82033 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82034
82035         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82036
82037 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82038
82039         * m4/c-bs-a.m4: Removed.
82040
82041 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82042
82043         * lib/strftime.c: Assume strftime() exists.
82044
82045 2006-06-29  Derek Price  <derek@ximbiot.com>
82046
82047         * modules/c-bs-a: Removed - \a is C89.
82048         * MODULES.html.sh: Remove c-bs-a.
82049
82050 2006-06-29  Bruno Haible  <bruno@clisp.org>
82051
82052         * modules/wcwidth (License): Change to LGPL.
82053
82054 2006-06-28  Simon Josefsson  <jas@extundo.com>
82055
82056         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82057         on _WIN32.
82058
82059         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82060         getnameinfo.
82061
82062 2006-06-28  Simon Josefsson  <jas@extundo.com>
82063
82064         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82065
82066 2006-06-28  Simon Josefsson  <jas@extundo.com>
82067
82068         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82069         functions there.  It will succeed on Windows XP, but on Windows
82070         2000 and (presumably) earlier, it will fail, and use the internal
82071         re-implementation.
82072         (use_win32_p): New function.
82073         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82074         Support AI_NUMERICSERV to disable getservbyname.
82075         (getnameinfo): New function, only supports
82076         NI_NUMERICHOST|NI_NUMERICSERV for now.
82077
82078         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82079         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82080         getnameinfo.
82081
82082 2006-06-28  Eric Blake  <ebb9@byu.net>
82083
82084         * modules/wcwidth: New file.
82085         * modules/mbchar (Depends-on): Add wcwidth.
82086         * modules/mbswidth (Depends-on): Add wcwidth.
82087         * MODULES.html.sh: Add wcwidth.
82088
82089 2006-06-28  Eric Blake  <ebb9@byu.net>
82090
82091         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82093
82094 2006-06-28  Eric Blake  <ebb9@byu.net>
82095
82096         * lib/xvasprintf.h: Fix comments.
82097
82098 2006-06-28  Eric Blake  <ebb9@byu.net>
82099
82100         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82101         * lib/mbswidth.c (wcwidth): Move from here...
82102         * lib/wcwidth.h: ...to this new file.
82103
82104 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82105
82106         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82107
82108         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82109         it's obsolete.
82110         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82111
82112 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82113
82114         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82115         Autoconf 2.60 says this stuff was obsolete.
82116
82117 2006-06-28  Bruno Haible  <bruno@clisp.org>
82118
82119         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82120
82121 2006-06-28  Bruno Haible  <bruno@clisp.org>
82122
82123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82124         gt_TYPE_WCHAR_T.
82125
82126 2006-06-28  Bruno Haible  <bruno@clisp.org>
82127
82128         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82129         declaration for wcwidth.
82130         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82131
82132 2006-06-28  Bruno Haible  <bruno@clisp.org>
82133
82134         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82135         (mkdir): Define using _mkdir.
82136
82137 2006-06-28  Bruno Haible  <bruno@clisp.org>
82138
82139         * lib/getaddrinfo.h: Fix POSIX URL.
82140         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82141         _WIN32.
82142         (use_win32_p): Make static.
82143         (getaddrinfo): Reject service name if it is empty or does not consist
82144         solely of decimal digits, or if its value is > 65535.
82145         (getnameinfo): Remove useless casts.
82146
82147 2006-06-27  Simon Josefsson  <jas@extundo.com>
82148
82149         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82150         Eggert and Martin Lambers.
82151
82152 2006-06-27  Simon Josefsson  <jas@extundo.com>
82153
82154         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82155         Eggert and Martin Lambers.
82156
82157 2006-06-27  Bruno Haible  <bruno@clisp.org>
82158
82159         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82160         result to 0, not to empty.
82161         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82162
82163 2006-06-27  Bruno Haible  <bruno@clisp.org>
82164
82165         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82166
82167 2006-06-26  Simon Josefsson  <jas@extundo.com>
82168
82169         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82170         present.
82171
82172 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82173
82174         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82175         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82176         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82177
82178 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82179
82180         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82181
82182 2006-06-26  Bruno Haible  <bruno@clisp.org>
82183
82184         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82185
82186 2006-06-26  Bruno Haible  <bruno@clisp.org>
82187
82188         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82189
82190 2006-06-26  Bruno Haible  <bruno@clisp.org>
82191
82192         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82193         SGI C compiler in pre-C99 mode.
82194         Suggested by Mark D. Baushke and Larry Jones.
82195
82196 2006-06-26  Bruno Haible  <bruno@clisp.org>
82197
82198         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82199         WCHAR_MAX.
82200         Reported by Mark D. Baushke and Larry Jones.
82201
82202 2006-06-26  Bruno Haible  <bruno@clisp.org>
82203
82204         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82205         in pre-C99 mode.
82206         Suggested by Mark D. Baushke and Larry Jones.
82207
82208 2006-06-23  Simon Josefsson  <jas@extundo.com>
82209             Bruno Haible  <bruno@clisp.org>
82210
82211         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82212         Emit mostlyclean-local rule.
82213         (func_emit_tests_Makefile_am): Likewise.
82214         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82215
82216 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82217
82218         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82219
82220 2006-06-23  Bruno Haible  <bruno@clisp.org>
82221
82222         * tests/test-stdint.c: Update to match ISO C 99 Technical
82223         Corrigendum 1.
82224
82225 2006-06-23  Bruno Haible  <bruno@clisp.org>
82226
82227         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82228
82229 2006-06-23  Bruno Haible  <bruno@clisp.org>
82230
82231         * lib/stdint_.h: Treat IRIX like OpenBSD.
82232
82233 2006-06-23  Bruno Haible  <bruno@clisp.org>
82234
82235         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82236         ISO C 99 Technical Corrigendum 1.
82237
82238 2006-06-22  Simon Josefsson  <jas@extundo.com>
82239
82240         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82241         MinGW.
82242
82243 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82244
82245         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82246         needed.  Some compiler complained about some of them.  Problem reported
82247         by Larry Jones in
82248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82249
82250 2006-06-21  Simon Josefsson  <jas@extundo.com>
82251
82252         * tests/test-getaddrinfo.c: New file.
82253
82254         * modules/getaddrinfo-tests: New file.
82255
82256         * MODULES.html.sh: Add inet_pton.
82257
82258         * modules/inet_pton: New file.
82259
82260 2006-06-21  Simon Josefsson  <jas@extundo.com>
82261
82262         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82263         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82264         of using the (limited) gnulib implementation on Windows XP.
82265
82266         * m4/inet_pton.m4: New file.
82267
82268 2006-06-21  Simon Josefsson  <jas@extundo.com>
82269
82270         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82271         variable.
82272
82273         * lib/socket_.h: Don't define WINVER.
82274
82275         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82276         slightly modified to work in gnulib.
82277
82278 2006-06-21  Simon Josefsson  <jas@extundo.com>
82279
82280         * doc/gnulib.texi (Windows sockets): Add.
82281
82282 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         * lib/read-file.c (fread_file): Start with buffer allocation of
82285         0 bytes rather than 1 byte; this simplifies the code.
82286         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82287         code to free buffer and save/restore errno.
82288         (internal_read_file): Remove unused local.
82289
82290 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82291
82292         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82293         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82294         Problem reported by Denis Excoffier in
82295         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82296
82297 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82298
82299         * modules/sys_socket, modules/socklen: Include sys/types since
82300         FreeBSD 4.x's sys/socket.h needs it.
82301
82302 2006-06-19  Simon Josefsson  <jas@extundo.com>
82303
82304         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82305
82306 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82307
82308         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82309
82310 2006-06-19  Bruno Haible  <bruno@clisp.org>
82311
82312         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82313         and FULL_PATH_INTTYPES_H in angle brackets.
82314         Reported by Mark D. Baushke <mdb@gnu.org>.
82315
82316 2006-06-17  Eric Blake  <ebb9@byu.net>
82317
82318         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82319         errno.
82320
82321 2006-06-17  Bruno Haible  <bruno@clisp.org>
82322
82323         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82324         <sys/inttypes.h>.
82325
82326 2006-06-17  Bruno Haible  <bruno@clisp.org>
82327
82328         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82329         whether errno is declared. Assume <errno.h> declares errno.
82330
82331 2006-06-17  Bruno Haible  <bruno@clisp.org>
82332
82333         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82334
82335 2006-06-17  Bruno Haible  <bruno@clisp.org>
82336
82337         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82338         problem on Solaris 2.5.1.
82339
82340 2006-06-16  Eric Blake  <ebb9@byu.net>
82341
82342         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82343         * lib/unicodeio.c [!defined errno]: Likewise.
82344         * lib/strtol.c [!defined errno]: Likewise.
82345         * lib/strtod.c [!defined errno]: Likewise.
82346
82347 2006-06-15  Eric Blake  <ebb9@byu.net>
82348
82349         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82350
82351 2006-06-15  Eric Blake  <ebb9@byu.net>
82352
82353         * config/srclist.txt (ssize_t.m4): Lose sync.
82354
82355 2006-06-15  Bruno Haible  <bruno@clisp.org>
82356
82357         * modules/stdint (Files): Include m4/full-header-path.m4,
82358         m4/size_max.m4, m4/wchar_t.m4.
82359         (Makefile.am): Many more substitutions.
82360         * modules/stdint-tests: New file.
82361         * tests/test-stdint.c: New file.
82362
82363 2006-06-15  Bruno Haible  <bruno@clisp.org>
82364
82365         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82366         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82367         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82368         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82369         gl_CHECK_TYPE_SAME): New macros.
82370
82371 2006-06-15  Bruno Haible  <bruno@clisp.org>
82372
82373         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82374
82375 2006-06-15  Bruno Haible  <bruno@clisp.org>
82376
82377         * lib/stdint_.h: Rewritten to be fully auto-configured.
82378         Fixes bug on HP-UX/IA64.
82379
82380 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82381
82382         * lib/getdate.y (__attribute__): Don't define if already defined.
82383         Problem reported by Larry Jones.
82384         * lib/utimens.c (__attribute__): Likewise.
82385
82386 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82387
82388         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82389         reported by Andreas Schwab.
82390
82391 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82392             Bruno Haible  <bruno@clisp.org>
82393
82394         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82395         check for the declaration of strnlen and a run test that exposes the
82396         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82397         rpl_strndup.
82398
82399 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82400             Bruno Haible  <bruno@clisp.org>
82401
82402         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82403
82404 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82405
82406         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82407         compile test, for Tru64 4.0D.
82408
82409 2006-05-28  Karl Berry  <karl@gnu.org>
82410
82411         * config/srclist.txt (printf-args.c): lose sync.
82412
82413 2006-05-26  Martin Lambers  <marlam@marlam.de>
82414
82415         * lib/getpass.c: Updates the test for the native W32 API, and adds
82416         missing includes, thus fixing compilation warnings.
82417
82418 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82419
82420         * lib/exclude.c (exclude_fnmatch): New function.
82421         (excluded_file_name): Call exclude_fnmatch.
82422         * lib/exclude.h (excluded_file_name): New prototype
82423
82424 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82425
82426         * lib/tempname.c (small_open, large_open): New macros.
82427         (__open, __open64) [!_LIBC]: Remove.
82428         (__gen_tempname): Use small_open and large_open instead of __open
82429         and __open64.  This fixes a portability bug on HP-UX 11.11i
82430         reported by Simon Wing-Tang in
82431         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82432
82433 2006-05-24  Bruno Haible  <bruno@clisp.org>
82434
82435         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82436         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82437         Reported by Thorsten Maerz <torte@netztorte.de> via
82438         Aaron Stone <aaron@serendipity.cx>.
82439
82440 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82441
82442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82443         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82444         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82445         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82446         not really conditional on the cache.
82447         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82448
82449 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82450
82451         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82452         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82453         (my_usleep): Don't mishandle maximum value.
82454
82455 2006-05-19  Jim Meyering  <jim@meyering.net>
82456
82457         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82458
82459 2006-05-17  Bruno Haible  <bruno@clisp.org>
82460
82461         Cygwin portability.
82462         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82463
82464 2006-05-17  Bruno Haible  <bruno@clisp.org>
82465
82466         * lib/stdint_.h: Fix recognition of Cygwin.
82467
82468 2006-05-15  Bruno Haible  <bruno@clisp.org>
82469
82470         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82471         on libtool patch by Ralf Wildenhues.
82472
82473 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82474
82475         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82476         test for C99 conformance; (bool) 0.5 is an integer constant
82477         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82478         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82479
82480 2006-05-11  Simon Josefsson  <jas@extundo.com>
82481
82482         * m4/xvasprintf.m4: Fix obvious typo.
82483
82484 2006-05-11  Jim Meyering  <jim@meyering.net>
82485
82486         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82487         James Lemley.
82488
82489 2006-05-10  Simon Josefsson  <jas@extundo.com>
82490
82491         * lib/md4.c: Typo fix, update copyright years.
82492         (K1, K2): Don't use L because it turn computations into 64-bit on
82493         64-bit platforms.
82494
82495 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82496
82497         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82498         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82499         unwanted sign propagation, e.g., on hosts with 64-bit int.
82500         There still are some problems with reeelly weird theoretical hosts
82501         (e.g., 33-bit int) but it's not worth worrying about now.
82502         * lib/sha1.c (rol): Likewise.
82503         (K1, K2, K3, K4): Remove unnecessary L suffix.
82504
82505 2006-05-10  Bruno Haible  <bruno@clisp.org>
82506
82507         * lib/des.c: Cast to avoid warnings.
82508
82509 2006-05-09  Bruno Haible  <bruno@clisp.org>
82510
82511         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82512         (Depends-on): Depend also on xsize, stdarg.
82513         (configure.ac): Add gl_XVASPRINTF.
82514
82515 2006-05-09  Bruno Haible  <bruno@clisp.org>
82516
82517         * m4/xvasprintf.m4: New file.
82518
82519 2006-05-09  Bruno Haible  <bruno@clisp.org>
82520
82521         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82522         (EOVERFLOW): Define fallback value.
82523         (xstrcat): New function.
82524         (xvasprintf): Recognize the special case of a string concatenation.
82525
82526 2006-05-08  Eric Blake  <ebb9@byu.net>
82527
82528         * gnulib-tool (func_version): Base copyright year on CVS date.
82529         (func_emit_copyright_notice): New function.
82530         (func_emit_lib_Makefile_am): Use it.
82531         (func_emit_tests_Makefile_am): Likewise.
82532         (func_import): Likewise.
82533
82534 2006-05-08  Bruno Haible  <bruno@clisp.org>
82535
82536         * modules/stdarg: New file.
82537         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82538
82539 2006-05-08  Bruno Haible  <bruno@clisp.org>
82540
82541         * m4/stdarg.m4: New file, from GNU gettext.
82542
82543 2006-05-08  Bruno Haible  <bruno@clisp.org>
82544
82545         * config/srclist.txt (build-aux/config.rpath): different from latest
82546         release.
82547
82548 2006-05-08  Bruno Haible  <bruno@clisp.org>
82549
82550         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82551
82552 2006-05-05  Jim Meyering  <jim@meyering.net>
82553
82554         * m4/warning.m4: New file, derived from bison's file by the same name.
82555
82556 2006-05-03  Bruno Haible  <bruno@clisp.org>
82557
82558         * lib/stdint_.h: Shorter URL.
82559         * lib/inttypes.h: Likewise.
82560
82561 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82562
82563         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82564
82565 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82566
82567         * lib/verify.h: Document the internals better.  Most of this change
82568         was written by Bruno Haible.
82569
82570 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82571
82572         * doc/verify.texi: New file, partly based on a proposal by
82573         Bruno Haible.
82574
82575 2006-05-02  Bruno Haible  <bruno@clisp.org>
82576
82577         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82578         test from here...
82579         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82580
82581 2006-04-29  Bruno Haible  <bruno@clisp.org>
82582
82583         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82584         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82585
82586 2006-04-29  Bruno Haible  <bruno@clisp.org>
82587
82588         * gnulib-tool: Make --update option actually work.
82589
82590 2006-04-29  Bruno Haible  <bruno@clisp.org>
82591
82592         * doc/gcd.texi: New file.
82593         * doc/gnulib.texi: Include it.
82594
82595 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82596
82597         * lib/getdate.y (get_date): When adding relative date, start with the
82598         initial time, not with the result of the first mktime call.
82599
82600 2006-04-25  Bruno Haible  <bruno@clisp.org>
82601
82602         * gnulib-tool (func_import): Output the include directives in three
82603         blocks, sorted separately.
82604         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82605
82606 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82607
82608         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82609         to define main with arguments, for C++.  Reported by Eric Blake.
82610         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82611         Prefer 'int main ()' to 'int main (void)', for C++.
82612         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82613         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82614         for 'main', for C99 and C++.
82615
82616 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82617
82618         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82619         Don't assume that exit status -1 is valid.
82620         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82621         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82622         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82623         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82624         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82625         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82626         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82627         functions can be used without declaring them, or that you can
82628         exit with status -1.
82629         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82630
82631 2006-04-24  Karl Berry  <karl@gnu.org>
82632
82633         * config/srclist.txt (longdouble.m4): sync lost.
82634
82635 2006-04-24  Eric Blake  <ebb9@byu.net>
82636
82637         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82638
82639 2006-04-24  Bruno Haible  <bruno@clisp.org>
82640
82641         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82642         poll() implementation in AIX.
82643         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82644
82645 2006-04-24  Bruno Haible  <bruno@clisp.org>
82646
82647         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82648         assigned exactly once.
82649
82650 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82651             Bruno Haible  <bruno@clisp.org>
82652
82653         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82654         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82655         for AM_CPPFLAGS.
82656
82657 2006-04-23  Bruno Haible  <bruno@clisp.org>
82658
82659         * modules/copy-file: Depend on unistd.
82660         * modules/execute: Likewise.
82661         * modules/fatal-signal: Likewise.
82662         * modules/findprog: Likewise.
82663         * modules/mkdtemp : Likewise.
82664         * modules/pipe: Likewise.
82665         * modules/wait-process: Likewise.
82666
82667 2006-04-23  Bruno Haible  <bruno@clisp.org>
82668
82669         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82670         condition was already detected.
82671         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82672
82673 2006-04-23  Bruno Haible  <bruno@clisp.org>
82674
82675         * lib/copy-file.c: Include <unistd.h> unconditionally.
82676         * lib/execute.c: Likewise.
82677         * lib/fatal-signal.c: Likewise.
82678         * lib/findprog.c: Likewise.
82679         * lib/mkdtemp.c: Likewise.
82680         * lib/pipe.h: Likewise.
82681         * lib/pipe.c: Likewise.
82682         * lib/wait-process.h: Likewise.
82683
82684 2006-04-23  Bruno Haible  <bruno@clisp.org>
82685
82686         * gnulib-tool (func_usage): Fix --import description. Document
82687         --update.
82688         (func_import): Create temporary file in a temporary directory, if
82689         --dry-run is specified. Silence errors from 'grep' when there are no
82690         m4 files in $m4dir.
82691         (func_create_testdir): Silence errors from 'grep' when there are no
82692         m4 files in $m4dir.
82693         Reported by Karl Berry <karl@freefriends.org>.
82694
82695 2006-04-20  Bruno Haible  <bruno@clisp.org>
82696
82697         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82698         one argument, so that the code will be portable to Autoconf 2.60.
82699         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82700         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82701         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82702
82703 2006-04-19  Derek Price  <derek@ximbiot.com>
82704             Eric Blake  <ebb9@byu.net>
82705
82706         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82707         rather than "/full/path.h".  Update comment to match.  Shorten &
82708         generalize m4_translit call via AS_TR_CPP.
82709
82710 2006-04-19  Derek Price  <derek@ximbiot.com>
82711             Eric Blake  <ebb9@byu.net>
82712
82713         * lib/inttypes.h: Correct grammar in comment.
82714
82715 2006-04-18  Derek Price  <derek@ximbiot.com>
82716             Paul Eggert  <eggert@cs.ucla.edu>
82717
82718         * modules/inttypes: New file.
82719         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82720
82721 2006-04-18  Derek Price  <derek@ximbiot.com>
82722             Paul Eggert  <eggert@cs.ucla.edu>
82723
82724         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82725         New files.
82726
82727 2006-04-18  Derek Price  <derek@ximbiot.com>
82728             Paul Eggert  <eggert@cs.ucla.edu>
82729
82730         * lib/inttypes.h: New file.
82731         * lib/strtoimax.c: Assume <inttypes.h>.
82732
82733 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82734
82735         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82736         isn't mounted.  Problem reported by Kir Kolyshkin.
82737
82738 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82739
82740         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82741         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82742         Derek R. Price.
82743         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82744         implementation.
82745
82746 2006-04-12  Eric Blake  <ebb9@byu.net>
82747
82748         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82749         is now done automatically by the corresponding Autoconf macro.
82750
82751 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82752
82753         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82754         time_r.h.
82755
82756 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82757
82758         Merge regex changes from libc, removing some of our
82759         POSIX-conformance changes that were rejected and redoing them in a
82760         less-intrusive way.
82761
82762         * lib/regcomp.c (re_compile_internal, init_dfa):
82763         Length arg is now size_t, not Idx.  All uses changed.
82764         (peek_token): Forward decl now says internal_function.
82765         (__re_error_msgid, __re_error_msgid_idx):
82766         Now static rather than extern with attribute_hidden.
82767         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82768         For some reason libc prefers K&R style defns for external functions.
82769         (regerror) [!defined _LIBC]: Likewise.
82770         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82771         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82772         (build_range_exp, build_collating_symbol):
82773         Use K&R-style defn.
82774         (re_compile_fastmap): Use '\0' to memset, not 0.
82775         (utf8_sb_map): Make the calculations more obvious.
82776         (init_dfa, parse_bracket_exp, build_charclass_op):
82777         Call calloc and cast result, as glibc does.
82778         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82779         (build_range_exp, build_collating_symbol):
82780         Now internal functions.
82781
82782         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82783
82784         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82785         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82786         Don't depend on VMS; depend on __VMS instead, for POSIX
82787         namespace cleanness.
82788         (regoff_t): Define to ssize_t, not long int.
82789
82790         Remove the REG_ macros named below.  Instead, make the old names
82791         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82792         __USE_GNU_REGEX.
82793         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82794         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82795         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
82796         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
82797         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
82798         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
82799         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
82800         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
82801         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
82802         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
82803         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
82804         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
82805         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
82806         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
82807         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
82808         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
82809         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
82810         (REG_NREGS):
82811         Remove.  All uses replaced by the old RE_* names.
82812         (RE_BACKSLASH_ESCAPE_IN_LISTS):
82813         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
82814         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
82815         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
82816         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
82817         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
82818         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
82819         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
82820         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
82821         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
82822         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
82823         Don't bother having these macros be independent of each others'
82824         values, since they no longer exist in the POSIX name space.
82825
82826         Rename the following member names back to their old names,
82827         unless !__USE_GNU_REGEX.  All uses changed back.
82828         (buffer): Renamed from re_buffer.
82829         (allocated): Renamed from re_allocated.
82830         (used): Renamed from re_used.
82831         (syntax): Renamed from re_syntax.
82832         (fastmap): Renamed from re_fastmap.
82833         (translate): Renamed from re_translate.
82834         (can_be_null): Renamed from re_can_be_null.
82835         (regs_allocated): Renamed from re_regs_allocated.
82836         (fastmap_accurate): Renamed from re_fastmap_accurate.
82837         (no_sub): Renamed from re_no_sub.
82838         (not_bol): Renamed from re_not_bol.
82839         (not_eol): Renamed from re_not_eol.
82840         (newline_anchor): Renamed from re_newline_anchor.
82841         (num_regs): Renamed from rm_num_regs.
82842         (start): Renamed from rm_start.
82843         (end): Renamed from rm_end.
82844
82845         (free_state): Move up a bit.
82846
82847         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82848         #define to be empty.
82849         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82850         when that is what is intended.
82851         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82852         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82853         (MAX): New macro.
82854         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82855         All uses changed back to re_malloc, etc.  It's now the caller's
82856         responsibility to check for overflow; all callers changed.
82857         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82858         (re_x2nrealloc): Remove.
82859         (free_state): Remove decl.
82860
82861         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82862         (re_set_registers, re_exec):
82863         Use K&R-style defn.
82864
82865         2006-01-31  Roland McGrath  <roland@redhat.com>
82866
82867         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82868         Reported by Mike Frysinger <vapier@gentoo.org>.
82869
82870         2006-01-15  Andreas Jaeger  <aj@suse.de>
82871
82872         [BZ #1950]
82873         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82874         build_wcs_upper_buffer change.
82875         (build_wcs_upper_buffer): Change return type.
82876
82877         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82878
82879         * lib/regex_internal.h: Include <stdint.h> if available.
82880
82881         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82882
82883         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82884
82885         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82886
82887         * lib/regcomp.c: Adjust for changed secondary hash function.
82888
82889         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82890
82891         * lib/regex.h: Pretty printing.
82892         Clean up namespace a bit.
82893
82894         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82895
82896         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82897         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82898
82899         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82900                     Ulrich Drepper  <drepper@redhat.com>
82901
82902         [BZ #1302]
82903         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82904         changed.
82905         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82906
82907         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82908
82909         [BZ #281]
82910         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82911         * lib/regcomp.c: Remove unnecessary uses of
82912         unsigned RE_TRANSLATE_TYPE.
82913         * lib/regex_internal.h: Likewise.
82914         * lib/regex_internal.c: Likewise.
82915         * lib/regexec.c: Likewise.
82916         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82917
82918         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82919
82920         * lib/regexec.c (find_recover_state): Remove unnecessary
82921         initialization.
82922         (transit_state_bkref): Make DFA a const pointer.
82923         (get_subexp): Likewise.
82924         (check_arrival): Likewise.
82925         (update_cur_sifted_state): Likewise.
82926         (re_search_internal): Likewise.
82927         (prune_impossible_nodes): Likewise.
82928         (acquire_init_state_context): Likewise.
82929         (proceed_next_node): Likewise.
82930         (set_regs): Likewise.
82931         (free_fail_stack_return): Likewise.
82932         (check_arrival_expand_ecl): Mark DFA parameter as const.
82933         (check_arrival_expand_ecl_sub): Likewise.
82934         (check_subexp_limits): Likewise.
82935         (sub_epsilon_src_nodes):  Likewise.
82936         (add_epsilon_src_nodes):  Likewise.
82937         (merge_state_array): Likewise.
82938         (update_regs): Likewise.
82939         (build_trtable): Likewise.
82940         (sift_states_backward): Mark MCTX parameter as const.
82941         (build_sifted_states): Likewise.
82942         (update_cur_sifted_state): Likewise.
82943         (sift_states_mkref): Likewise.
82944         (check_arrival_expand_ecl): Mark eclosure as const.
82945         (check_dst_limits_calc_pos_1): Likewise.
82946         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82947         pointer.
82948
82949         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82950
82951         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82952         (transit_state_sb): Likewise.
82953         (transit_state_mb): Likewise.
82954         (sift_states_iter_mb): Likewise.
82955         (check_arrival_add_next_nodes): Likewise.
82956         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82957         [_LIBC] (re_search_2_stub): Use mempcpy.
82958
82959         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82960         mbrtowc for very simple UTF-8 case.
82961
82962         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82963         a pointer-to-const.
82964         (re_acquire_state_context): Likewise.
82965         * lib/regex_internal.h: Adjust prototypes.
82966
82967         * lib/regex.c: Prevent using C++ compilers.
82968
82969         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82970         (re_acquire_state_context): Likewise.
82971
82972 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82973
82974         * modules/regex (Depends-on): Add ssize_t.
82975
82976 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82977
82978         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82979         translation table.
82980
82981 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82982
82983         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82984
82985 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82986             Bruno Haible  <bruno@clisp.org>
82987
82988         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82989         <sys/types.h> and <inttypes.h>.
82990
82991 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82992
82993         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82994         `__error_t_defined', so argp.h will not typedef the former.
82995
82996 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82997
82998         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82999         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83000         glibc names.  Even if glibc is changed to conform to POSIX, the
83001         traditional names will be available anyway, since regex depends on
83002         the extensions module.  Also, fix a longstanding typo in the
83003         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83004         reported by Emanuele Giaquinta.  Also, change sense of cached
83005         variable, so that the message makes sense.
83006
83007 2006-03-24  Simon Josefsson  <jas@extundo.com>
83008
83009         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83010         including some doc fixes.
83011         (base64_encode_alloc): Fix +1 bug on allocation failures.
83012
83013 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83014
83015         * lib/base64.c (base64_encode): Do not read past end of array with
83016         unsanitized input on systems with CHAR_BIT > 8.
83017
83018 2006-03-24  Eric Blake  <ebb9@byu.net>
83019
83020         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83021
83022 2006-03-22  Karl Berry  <karl@gnu.org>
83023
83024         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83025         * config/srclistvars.sh (COREUTILS): new var.
83026
83027 2006-03-17  Jim Meyering  <jim@meyering.net>
83028
83029         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83030         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83031
83032 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83033
83034         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83035         no longer needs it.  Instead, check that regoff_t is as least
83036         as wide as ptrdiff_t.
83037
83038         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83039         so that our regex.h stays compatible with the installed regex.
83040         This is helpful for installers who configure --without-included-regex.
83041         Problem reported by Emanuele Giaquinta.
83042
83043 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83044
83045         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83046         Typedef to long int, not to off_, as POSIX will likely change
83047         in that direction.
83048
83049 2006-03-15  Eric Blake  <ebb9@byu.net>
83050
83051         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83052
83053 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83054
83055         * lib/argp-help.c (validate_uparams): Fix typo
83056         * lib/argp-parse.c (argp_default_options): Consistently begin help
83057         messages with a lowercase letter.
83058
83059 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83060
83061         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83062         overrun buffers and shouldn't be used (much as gets shouldn't be
83063         used).
83064         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83065
83066 2006-03-08  Simon Josefsson  <jas@extundo.com>
83067
83068         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83069         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83070
83071 2006-03-08  Simon Josefsson  <jas@extundo.com>
83072
83073         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83074         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83075
83076 2006-03-08  Simon Josefsson  <jas@extundo.com>
83077
83078         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83079         signal that configure disabled the device.
83080
83081 2006-03-08  Simon Josefsson  <jas@extundo.com>
83082
83083         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83084         languages.
83085
83086 2006-03-07  Simon Josefsson  <jas@extundo.com>
83087
83088         * modules/getopt (Depends-on): Add unistd.
83089
83090         * modules/unistd: New file.
83091
83092 2006-03-07  Simon Josefsson  <jas@extundo.com>
83093
83094         * modules/gc-random: New file.
83095
83096 2006-03-07  Simon Josefsson  <jas@extundo.com>
83097
83098         * m4/unistd_h.m4: New file.
83099
83100 2006-03-07  Simon Josefsson  <jas@extundo.com>
83101
83102         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83103         test to be side-effect free by storing the result in the cache
83104         variable gl_cv_lib_readline, and moving the assignment of
83105         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83106         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83107
83108 2006-03-07  Simon Josefsson  <jas@extundo.com>
83109
83110         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83111         error on missing devices (the functions will return an error).
83112
83113         * m4/gc.m4: Move random stuff to gc-random.m4
83114
83115 2006-03-07  Simon Josefsson  <jas@extundo.com>
83116
83117         * lib/unistd_.h: New file.
83118
83119 2006-03-07  Simon Josefsson  <jas@extundo.com>
83120
83121         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83122
83123 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83124
83125         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83126         Problem reported by Juan Manuel Guerrero.
83127
83128 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83129
83130         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83131         the unistd module.
83132         * lib/getlogin_r.c: Likewise.
83133         * lib/getlogin_r.h: Likewise.
83134         * lib/glob.c: Likewise.
83135         * lib/pagealign_alloc.c: Likewise.
83136         * lib/unistd_.h: Remove; no longer needed.
83137
83138 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83139
83140         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83141         Add unistd.
83142         * modules/c-stack (Depends-on): Add unistd.
83143         * modules/getlogin_r: Likewise.
83144         * modules/glob: Likewise.
83145         * modules/pagealign_alloc: Likewise.
83146         * modules/unistd (Files): Remove lib/unistd_.h.
83147         (EXTRA_DIST): Remove.
83148         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83149         need unistd_.h.
83150         (MOSTLYCLEANFILES): Remove unistd.h-t.
83151
83152 2006-03-03  Simon Josefsson  <jas@extundo.com>
83153
83154         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83155
83156 2006-03-03  Simon Josefsson  <jas@extundo.com>
83157
83158         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83159         libidn and bison.
83160
83161 2006-03-03  Simon Josefsson  <jas@extundo.com>
83162
83163         * build-aux/maint.mk: Add indent target.
83164
83165 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83166
83167         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83168         our replacement poll.h in any case, to avoid a differing
83169         declaration from a system header.  Seen on AIX.
83170
83171 2006-03-01  Simon Josefsson  <jas@extundo.com>
83172
83173         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83174         <kasal@ucw.cz>.
83175
83176 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83177
83178         * modules/gettime (Depends-on): Add extensions module.
83179         * modules/nanosleep (Depends-on): Likewise.
83180         * modules/settime (Depends-on): Likewise.
83181
83182 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83183
83184         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83185         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83186         pedantically.
83187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83188         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83189
83190         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83191         not "==".  Reported by Ralf Wildenhues.
83192
83193 2006-03-01  Karl Berry  <karl@gnu.org>
83194
83195         * doc/Copyright/request-*: new files, synced from gnuorg.
83196
83197 2006-03-01  Karl Berry  <karl@gnu.org>
83198
83199         * config/srclist.txt (Copyright/*): new entries.
83200
83201 2006-02-28  Simon Josefsson  <jas@extundo.com>
83202
83203         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83204
83205 2006-02-27  Simon Josefsson  <jas@extundo.com>
83206
83207         * lib/base64.h: Indent #define's.  From Jim Meyering
83208         <jim@meyering.net>.
83209
83210 2006-02-27  Jim Meyering  <jim@meyering.net>
83211
83212         Revert the change of 2006-02-24, so these files can continue
83213         to be sync'd from gettext.
83214         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83215         of `config.h'.
83216
83217 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83218
83219         * modules/intprops: New file.
83220         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83221         Add intprops.
83222         * modules/getloadavg (Files): Remove lib/intprops.h.
83223         (Depends-on): Add intprops.
83224         * modules/human: Likewise.
83225         * modules/inttostr: Likewise.
83226         * modules/openat: Likewise.
83227         * modules/sig2str: Likewise.
83228         * modules/userspec: Likewise.
83229         * modules/utimecmp: Likewise.
83230         * modules/xnanosleep: Likewise.
83231         * modules/xstrtol: Likewise.
83232
83233 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83234
83235         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83236         * modules/lock-tests (TESTS): Use $(EXEEXT).
83237         * modules/tls-tests: Likewise.
83238         * modules/argp-tests: Likewise.
83239         (check_PROGRAMS): New var, replacing...
83240         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83241
83242 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83243
83244         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83245         `config.h'.
83246
83247 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83248
83249         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83250
83251 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83252
83253         Sync from coreutils.
83254         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83255         gl_CHDIR_SAFER.
83256
83257 2006-02-22  Jim Meyering  <jim@meyering.net>
83258
83259         Sync from coreutils.
83260         * m4/chdir-safer.m4: New file.
83261
83262 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83263
83264         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83265         AT_FDCWD exceeds INT_MAX.
83266         * lib/openat.h (AT_FDCWD): Likewise.
83267
83268 2006-02-17  Eric Blake  <address@hidden>
83269
83270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83271
83272 2006-02-16  Simon Josefsson  <jas@extundo.com>
83273
83274         * modules/getaddrinfo (Depends-on): Add sys_socket.
83275
83276 2006-02-15  Simon Josefsson  <jas@extundo.com>
83277
83278         * build-aux/maint.mk: Add dsyntax-check rule.
83279
83280 2006-02-15  Eric Blake  <ebb9@byu.net>
83281
83282         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83283         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83284         'present but cannot compile' warnings on cygwin.
83285         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83286         use ws2tcpip.h if sys/socket.h works.
83287         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83288         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83289
83290 2006-02-14  Simon Josefsson  <jas@extundo.com>
83291
83292         * modules/maintainer-makefile (Files): Rename.
83293
83294         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83295         and (the local) Makefile.cfg to maint-cfg.mk.
83296
83297         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83298         to the latter.
83299
83300         * modules/maintainer-makefile: New module.
83301
83302         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83303         severaly stripped to make it possible to build it up from scratch
83304         with reliable tests.
83305
83306         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83307         fixes to permit overriding the default actions when configure and
83308         makefile are not available.
83309
83310 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83311
83312         Sync from coreutils.
83313         * modules/lstat (Depends-on): Don't depend on xalloc.
83314         (License): Change from GPL to LGPL, since this is now simply a
83315         replacement for a libc function.
83316
83317 2006-02-14  Jim Meyering  <jim@meyering.net>
83318
83319         Sync from coreutils.
83320
83321         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83322         failure on deficient systems, and simplify gnulib lgpl dependencies.
83323         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83324         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83325
83326         * lib/xalloc-die.c: Remove unused definition of N_.
83327
83328 2006-02-14  Jim Meyering  <jim@meyering.net>
83329
83330         Sync from coreutils.
83331         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83332         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83333         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83334         double-quote uses of that variable, to accommodate the rare case in
83335         which getmntent is available in none of the libraries checked.  This
83336         happens at least on FreeBSD 5.0.
83337
83338 2006-02-13  Simon Josefsson  <jas@extundo.com>
83339
83340         * gnulib-tool (Usage): Fix --import, from
83341         karl@freefriends.org (Karl Berry).
83342
83343 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83344
83345         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83346
83347 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83348
83349         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83350         "autoupdate" on 2005-12-12.
83351
83352 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83353
83354         * modules/closeout (Depends-on): Remove atexit.
83355
83356 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83357
83358         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83359         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83360
83361 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83362
83363         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83364         __EXTENSIONS__ if this causes compilation to fail.  Problem
83365         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83366         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83367
83368 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83369
83370         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83371         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83372         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83373         All uses changed.
83374
83375 2006-01-26  Simon Josefsson  <jas@extundo.com>
83376
83377         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83378         prototype is visible on mingw32.
83379
83380         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83381         for mingw32.
83382
83383         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83384         mingw32).
83385
83386 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83387
83388         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83389         attempt to open for write; this always fails, at least on POSIX
83390         hosts.  This reinstates the 2006-01-09 change, which was
83391         inadvertently removed.
83392
83393 2006-01-26  Bruno Haible  <bruno@clisp.org>
83394
83395         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83396         Reported by Paul Eggert.
83397
83398 2006-01-26  Bruno Haible  <bruno@clisp.org>
83399             Paul Eggert  <eggert@cs.ucla.edu>
83400
83401         * lib/stdbool_.h (_Bool)
83402         [(! (defined __cplusplus || defined __BEOS__)
83403           && !defined __GNUC__
83404           && !(defined __HP_cc || defined __xlc__
83405                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83406                || defined __sgi))]:
83407         #define to signed char in these cases too; this simplifies
83408         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83409         etc., separately) and makes it more conservative.
83410
83411 2006-01-25  Simon Josefsson  <jas@extundo.com>
83412
83413         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83414         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83415         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83416
83417 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83418
83419         * lib/argp-namefrob.h: Bugfix. Remove stray #
83420
83421 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83422
83423         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83424         so that we test the test.
83425         Check for yet another HP-UX cc bug involving *bool |= bool.
83426
83427 2006-01-25  Karl Berry  <karl@gnu.org>
83428
83429         * config/srclist.txt (vasnprintf.c): sync lost.
83430
83431 2006-01-25  Jim Meyering  <jim@meyering.net>
83432
83433         Sync from the stable (b5) branch of coreutils:
83434
83435         * lib/fts.c (fts_children): Don't let close() clobber errno from
83436         failed fchdir().
83437
83438         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83439         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83440         a dangling symlink.  That can also happen at least for ELOOP.
83441         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83442         FYI, this bug predates the inclusion of fts.c in coreutils.
83443
83444         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83445         in their own block, so pre-c99 compilers don't object.
83446
83447         Avoid the double-free (first in fts_read, second in fts_close) that
83448         would occur when an `active' directory is made inaccessible (e.g.,
83449         via chmod a-x) during a traversal.
83450         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83451         before returning.  Reproduce this failure by
83452         mkdir -p a/b; cd a; chmod a-x . b
83453         Reported by Stavros Passas.
83454
83455 2006-01-25  Jim Meyering  <jim@meyering.net>
83456
83457         * lib/fileblocks.c: Remove more useless parentheses.
83458         * lib/readutmp.h: Likewise.
83459
83460 2006-01-25  Bruno Haible  <bruno@clisp.org>
83461
83462         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83463         warnings.
83464         Reported by Paul Eggert.
83465
83466 2006-01-25  Bruno Haible  <bruno@clisp.org>
83467
83468         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83469         rid of a trap command. For Solaris sh.
83470         Reported by Mark D. Baushke <mdb@gnu.org>.
83471
83472 2006-01-24  Simon Josefsson  <jas@extundo.com>
83473
83474         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83475         Bruno.
83476
83477 2006-01-24  Karl Berry  <karl@gnu.org>
83478
83479         * config/srclist.txt (argp-namefrob.h): sync lost.
83480
83481 2006-01-24  Jim Meyering  <jim@meyering.net>
83482
83483         * modules/openat (Files): Add lib/intprops.h.
83484         From Mark D. Baushke.
83485
83486 2006-01-24  Jim Meyering  <jim@meyering.net>
83487
83488         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83489         Reported by Mark D. Baushke.
83490
83491 2006-01-24  Jim Meyering  <jim@meyering.net>
83492
83493         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83494
83495 2006-01-24  Bruno Haible  <bruno@clisp.org>
83496
83497         * modules/strnlen (Maintainer): Change from glibc to all.
83498
83499 2006-01-24  Bruno Haible  <bruno@clisp.org>
83500
83501         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83502         Patch by Paul Eggert.
83503
83504 2006-01-24  Bruno Haible  <bruno@clisp.org>
83505
83506         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83507         already has it.
83508         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83509         2005-11-26.
83510
83511         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83512         'signed char' to avoid problems with the built-in _Bool type.
83513         Reported by Paul Eggert on 2005-11-26.
83514
83515 2006-01-24  Bruno Haible  <bruno@clisp.org>
83516
83517         * gnulib-tool (func_import): Avoid constructing complicated sed
83518         expressions inside backquote.
83519         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83520
83521 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83522
83523         These changes imported from libc.
83524         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83525         test and two separate function calls.
83526         * lib/strndup.c (__strndup): Add libc_hidden_def.
83527
83528 2006-01-23  Simon Josefsson  <jas@extundo.com>
83529
83530         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83531         Remove the test_*_SOURCES variable: automake infers it by default.
83532         * modules/tls-tests: Likewise.
83533
83534 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83535
83536         Work around porting bugs reported by Dieter in
83537         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83538         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83539         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83540         Include "getopt.h" first, to check interface.
83541         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83542         !HAVE_DECL_GETENV.
83543         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83544         (__strndup): Revert to K&R-style function dfns, the glibc style.
83545         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83546         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83547         Include strnlen.h first, to get prototype properly.
83548         (strnlen): Renamed from __strnlen.
83549         Remove weak alias.
83550
83551 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83552
83553         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83554
83555 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83556
83557         * config/srclist.txt: Adjust to reflect glibc reorganization.
83558         This affects only comments.
83559
83560 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83561
83562          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83563          Reported by Bruce Korb <bkorb@gnu.org>.
83564
83565 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83566
83567         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83568         to pacify gcc -Wswitch-default.
83569
83570 2006-01-22  Bruno Haible  <bruno@clisp.org>
83571
83572         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83573         temporary buffer for sprintf, take into account the precision also
83574         for 'd', 'i', 'u', 'o', 'x', 'X'.
83575
83576 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83577
83578         * modules/argp-tests: New module
83579         * tests/test-argp.c: New file
83580         * tests/test-argp-2.sh: New file
83581
83582 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83583
83584         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83585         (__argp_base_name): Removed
83586         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83587         typo.
83588         (__argp_base_name): Provide macro definition or extern declaration
83589         depending on the configuration
83590
83591 2006-01-20  Simon Josefsson  <jas@extundo.com>
83592
83593         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83594
83595 2006-01-20  Simon Josefsson  <jas@extundo.com>
83596
83597         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83598
83599 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83600
83601         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83602         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83603         Suggested by Bruno Haible.
83604
83605 2006-01-20  Karl Berry  <karl@gnu.org>
83606
83607         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83608         until changes propagate, I guess.
83609
83610 2006-01-19  Simon Josefsson  <jas@extundo.com>
83611
83612         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83613
83614 2006-01-19  Simon Josefsson  <jas@extundo.com>
83615
83616         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83617
83618 2006-01-19  Simon Josefsson  <jas@extundo.com>
83619
83620         * gnulib-tool: Set check_PROGRAMS.
83621
83622         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83623         modules/des-tests, modules/gc-arcfour-tests,
83624         modules/gc-arctwo-tests, modules/gc-des-tests,
83625         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83626         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83627         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83628         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83629         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83630         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83631         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83632         test_*_SOURCES.
83633
83634 2006-01-18  Simon Josefsson  <jas@extundo.com>
83635
83636         * modules/socklen (Depends-on): Depend on sys_socket.
83637
83638 2006-01-18  Simon Josefsson  <jas@extundo.com>
83639
83640         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83641         modules/des-tests, modules/gc-arcfour-tests,
83642         modules/gc-arctwo-tests, modules/gc-des-tests,
83643         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83644         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83645         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83646         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83647         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83648         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83649         $(EXEEXT) to automake TESTS variable, for mingw32.
83650
83651 2006-01-17  Simon Josefsson  <jas@extundo.com>
83652
83653         * modules/socklen (Include): Need sys/socket.h.
83654
83655 2006-01-17  Bruno Haible  <bruno@clisp.org>
83656
83657         * modules/ssize_t (Include): Add <sys/types.h>.
83658
83659 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83660
83661         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83662         it's not portable and it doesn't work with cross-compiles.
83663         Problem reported by Bruno Haible.  Fix missing-$ typo in
83664         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83665         -zignore from being used with Sun's C compiler.
83666
83667 2006-01-12  Simon Josefsson  <jas@extundo.com>
83668
83669         * lib/base64.c: Fix warning, reported by Bruno Haible
83670         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83671
83672 2006-01-12  Bruno Haible  <bruno@clisp.org>
83673
83674         * modules/ldd: New file.
83675         * build-aux/ldd.sh.in: New file.
83676         * MODULES.html.sh (Support for building libraries and executables): Add
83677         ldd.
83678
83679 2006-01-12  Bruno Haible  <bruno@clisp.org>
83680
83681         * m4/ldd.m4: New file.
83682
83683 2006-01-12  Bruno Haible  <bruno@clisp.org>
83684
83685         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83686         endless loop while replacing $auxdir with build-aux.
83687
83688 2006-01-11  Simon Josefsson  <jas@extundo.com>
83689
83690         * lib/stdint_.h (SIZE_MAX): Add missing (.
83691
83692 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83693
83694         Sync from coreutils.
83695         * lib/md5.c: Fix commentary typos.
83696         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83697         * lib/md5.h (__attribute__): Remove; unused.
83698         * lib/sha1.c: Fix commentary to match md5 better.
83699         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83700         so that we don't need to worry about alignment.  All uses changed.
83701         This merges the 2005-10-28 md5 change into sha1.
83702
83703 2006-01-11  Jim Meyering  <jim@meyering.net>
83704
83705         Sync from coreutils.
83706         * lib/md5.c (OP): Fix spacing.
83707
83708 2006-01-11  Bruno Haible  <bruno@clisp.org>
83709
83710         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83711         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83712         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83713
83714 2006-01-11  Bruno Haible  <bruno@clisp.org>
83715
83716         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83717         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83718         the "early" section as well.
83719
83720 2006-01-11  Bruno Haible  <bruno@clisp.org>
83721
83722         Avoid "ar: no archive members specified" error on MacOS X.
83723         * gnulib-tool (func_modules_add_dummy): New function.
83724         (func_import, func_create_testdir): Invoke it.
83725
83726 2006-01-11  Bruno Haible  <bruno@clisp.org>
83727
83728         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83729         with $auxdir in AC_CONFIG_FILES statements.
83730
83731 2006-01-11  Bruno Haible  <bruno@clisp.org>
83732
83733         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83734         Initialize also noinst_HEADERS to empty.
83735
83736 2006-01-11  Bruno Haible  <bruno@clisp.org>
83737
83738         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83739         variables.
83740         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83741         autoreconf.
83742
83743 2006-01-11  Bruno Haible  <bruno@clisp.org>
83744
83745         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83746         overridable by the user.
83747         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83748
83749 2006-01-10  Simon Josefsson  <jas@extundo.com>
83750
83751         * modules/sys_socket: New file.
83752
83753 2006-01-10  Simon Josefsson  <jas@extundo.com>
83754
83755         * m4/sys_socket_h.m4: New file.
83756
83757 2006-01-10  Simon Josefsson  <jas@extundo.com>
83758
83759         * lib/socket_.h: New file.
83760
83761 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83762
83763         * modules/readutmp (Maintainer): Add myself.
83764
83765 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83766
83767         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83768         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83769         People who are still concerned with buggy memcmp implementations
83770         can invoke gl_FUNC_MEMCMP themselves.
83771
83772 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83773
83774         * lib/regex_internal.h (BITSET_WORD_BITS):
83775         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83776         preprocessor mishandles large unsigned values as if they were signed.
83777         Problem reported by Claudio Fontana in
83778         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83779
83780 2006-01-10  Jim Meyering  <jim@meyering.net>
83781
83782         Avoid the double-free (first in fts_read, second in fts_close) that
83783         would occur when an `active' directory is made inaccessible (e.g.,
83784         via chmod a-x) during a traversal.
83785         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83786         before returning.  Reproduce this failure by
83787         mkdir -p a/b; cd a; chmod a-x . b
83788         Reported by Stavros Passas.
83789
83790         Sync from coreutils.
83791         * lib/sha1.c: Tweak grammar in a comment.
83792
83793 2006-01-10  Jim Meyering  <jim@meyering.net>
83794
83795         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
83796         Patch by Joerg Sonnenberger.
83797
83798 2006-01-10  Bruno Haible  <bruno@clisp.org>
83799
83800         * modules/readutmp: Depend on module free.
83801         * modules/strtok_r: Depend on module restrict.
83802
83803 2006-01-10  Bruno Haible  <bruno@clisp.org>
83804
83805         * modules/gettext (configure.ac): Add an invocation of
83806         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
83807
83808 2006-01-10  Bruno Haible  <bruno@clisp.org>
83809
83810         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
83811         Reported by Werner Lemberg <wl@gnu.org>.
83812
83813 2006-01-10  Bruno Haible  <bruno@clisp.org>
83814
83815         * lib/localcharset.c: Update from GNU gettext.
83816
83817 2006-01-10  Bruno Haible  <bruno@clisp.org>
83818
83819         * lib/argp.h (__const): Remove macro. Use const instead.
83820         * lib/argp-fmtstream.h (__const): Likewise.
83821         * lib/glob_.h (__const): Remove macro.
83822         * lib/glob-libc.h: Use const instead of __const.
83823
83824 2006-01-10  Bruno Haible  <bruno@clisp.org>
83825
83826         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
83827         variable.
83828         Needed to avoid an automake error regarding the 'gettext' module.
83829
83830 2006-01-09  Simon Josefsson  <jas@extundo.com>
83831
83832         * modules/inet_ntop (Depends-on): Add restrict.
83833
83834 2006-01-09  Simon Josefsson  <jas@extundo.com>
83835
83836         * modules/gc-rijndael-tests (License): Put under LGPL.
83837
83838         * modules/gc-des-tests (License): Likewise.
83839
83840         * modules/gc-arcfour-tests (License): Likewise.
83841
83842         * modules/gc-arctwo-tests (License): Likewise.
83843
83844         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83845
83846         * modules/gc-hmac-sha1-tests (Files): Likewise.
83847
83848         * modules/gc-hmac-md5-tests (License): Likewise.
83849
83850         * modules/gc-sha1-tests (License): Likewise.
83851
83852         * modules/gc-md5-tests (License): Likewise.
83853
83854         * modules/gc-md4-tests (License): Likewise.
83855
83856         * modules/gc-md2-tests (License): Likewise.
83857
83858         * modules/gc-tests (License): Likewise.
83859
83860         * modules/des-tests (License): Likewise.
83861
83862         * modules/md4-tests (License): Likewise.
83863
83864         * modules/md2-tests (License): Likewise.
83865
83866 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83867
83868         Sync from coreutils:
83869
83870         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83871         * modules/lib-ignore: New file.
83872         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83873         chdir-safer.m4, lchmod.m4.
83874         * modules/openat: Add mkdirat.c, openat-priv.h.
83875
83876 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83877
83878         Sync from coreutils.
83879         * m4/lib-ignore.m4: New file.
83880         * m4/lchmod.m4: New file.
83881
83882 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83883
83884         Sync from coreutils.
83885         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83886         for write access: POSIX says that must fail.
83887         * lib/fts.c (diropen): Likewise.
83888         * lib/save-cwd.c (save_cwd): Likewise.
83889         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83890         well, for minor improvements on hosts that lack O_DIRECTORY.
83891         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83892         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83893         Fall back on chown if open failed with EACCES.
83894
83895         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83896         Report an error at compile-time if only a 1-second nominal clock
83897         resolution is found.
83898
83899         * lib/lchmod.h: New file.
83900         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83901         (make_dir_parents): Use lchown rather than chown, and
83902         lchmod rather than chmod.
83903
83904         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83905         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83906         "proc" reported by n0dalus.
83907
83908         * lib/mountlist.c: Include <limits.h>.
83909         (dev_from_mount_options)
83910         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83911         New function.  It no longer assumes "dev=" has the System V meaning
83912         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83913         (read_file_system_list)
83914         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83915         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83916         dev= in that case.
83917
83918         * lib/posixtm.h (PDS_PRE_2000): New macro.
83919         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83920         allow_century.  All usages changed.  Reject dates outside the range
83921         1969-1999 if PDS_PRE_2000 is used.
83922
83923 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83924
83925         Sync from coreutils.
83926         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83927         (Time of day items): Mention the possibility of leap seconds.
83928         Problem reported by Dr. David Alan Gilbert.
83929
83930 2006-01-09  Jim Meyering  <jim@meyering.net>
83931
83932         Sync from coreutils.
83933
83934         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83935
83936         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83937
83938         * lib/modechange.c (mode_compile): Reject an invalid mode string
83939         that starts with an octal digit.  From Andreas Gruenbacher.
83940
83941         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83942         and dup to open_safer and dup_safer, respectively.
83943         (openat_permissive): Fix typo in comment.
83944
83945         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83946         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83947         (_): Remove; no longer needed.
83948         (openat): Renamed from rpl_openat; no need for rpl_openat
83949         since openat.h renames openat for us.
83950         Replace most of the body with a call to openat_permissive,
83951         to avoid duplicate code.
83952         Port to (probably hypothetical) environments were mode_t is
83953         wider than int.
83954         (openat_permissive): Require mode arg, so that we can check
83955         types better.  Put it just after flags.  Change cwd failure
83956         indicator from pointer-to-bool to pointer-to-errno-value.
83957         All callers changed.
83958         Invoke openat_save_fail and/or openat_restore_fail if
83959         cwd_errno is null, so that openat can call us.
83960         (openat_permissive, fdopendir, fstatat, unlinkat):
83961         Simplify errno handling to avoid some duplicate code,
83962         as it's OK to set errno on success.
83963         * lib/openat.h: Revamp code so that function macros depend on
83964         __OPENAT_PREFIX only, not also on AT_FDCWD.
83965         (openat_ro): Remove.  Caller changed to use openat_permissive.
83966         (openat_permissive): Now a macro, if not a function.
83967         (openat_restore_fail, openat_save_fail): Now always functions,
83968         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83969
83970         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83971         and openat.c.
83972         * lib/mkdirat.c: Include openat-priv.h.
83973         Remove definitions of macros defined therein.
83974         * lib/openat.c: Likewise.
83975
83976         * lib/mkdirat.c (mkdirat): New file and function.
83977         * lib/openat.h (mkdirat): Declare.
83978
83979         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83980
83981         * lib/openat.h (openat_permissive): Declare.
83982         (openat_ro): Define.
83983
83984         * lib/openat.c (EXPECTED_ERRNO): New macro.
83985         (openat_permissive): New function -- used in remove.c rewrite.
83986         (all functions): Set errno just before returning, only if there
83987         was an actual failure.
83988         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83989
83990         Emulate openat-family functions using Linux's procfs, if possible.
83991         Idea and some code based on Ulrich Drepper's glibc changes.
83992
83993         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83994         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83995         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83996         before falling back on save_cwd and restore_cwd.
83997         (fdopendir, fstatat, unlinkat): Likewise.
83998
83999         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84000         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84001
84002         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84003         as second argument to va_arg.  Otherwise, some versions of gcc
84004         warn that `if this code is reached, the program will abort'.
84005
84006 2006-01-09  Jim Meyering  <jim@meyering.net>
84007
84008         Sync from coreutils.
84009         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84010         Require openat-priv.h.
84011
84012 2006-01-09  Bruno Haible  <bruno@clisp.org>
84013
84014         * modules/strnlen (Include): Use strnlen.h.
84015
84016 2006-01-09  Bruno Haible  <bruno@clisp.org>
84017
84018         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84019
84020 2006-01-09  Bruno Haible  <bruno@clisp.org>
84021
84022         * lib/sysexit_.h (EX_OK): New macro.
84023         Suggested by Martin Lambers <marlam@marlam.de>.
84024
84025 2006-01-09  Bruno Haible  <bruno@clisp.org>
84026
84027         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84028         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84029
84030 2006-01-09  Bruno Haible  <bruno@clisp.org>
84031
84032         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84033         numbers.
84034
84035 2006-01-09  Bruno Haible  <bruno@clisp.org>
84036
84037         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84038         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84039         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84040         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84041
84042 2006-01-09  Bruno Haible  <bruno@clisp.org>
84043
84044         * build-aux/javacomp.sh.in: New file, moved from lib/.
84045         * modules/javacomp-script (Files): Update.
84046         (configure.ac): Add AC_CONFIG_FILES invocation.
84047         (EXTRA_DIST): Remove variable.
84048
84049         * build-aux/javaexec.sh.in: New file, moved from lib/.
84050         * modules/javaexec (Files): Update.
84051         (configure.ac): Add AC_CONFIG_FILES invocation.
84052         (EXTRA_DIST): Remove javaexec.sh.in.
84053
84054         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84055         * modules/csharpcomp-script (Files): Update.
84056         (configure.ac): Add AC_CONFIG_FILES invocation.
84057         (EXTRA_DIST): Remove variable.
84058
84059         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84060         * modules/csharpexec (Files): Update.
84061         (configure.ac): Add AC_CONFIG_FILES invocation.
84062         (EXTRA_DIST): Remove csharpexec.sh.in.
84063
84064 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84065
84066         Sync from coreutils.
84067
84068         Add POSIX ACL support
84069         * lib/acl.h (copy_acl, set_acl): Add declarations.
84070         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84071         systems other than Linux.
84072         (chmod_or_fchmod): New function: use fchmod when possible,
84073         and chmod otherwise.
84074         (file_has_acl): Add a POSIX ACL implementation, with a
84075         Linux-specific subcase.
84076         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84077         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84078         acls are unsupported.
84079         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84080         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84081         are unsupported.
84082
84083 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84084
84085         Sync from coreutils.
84086         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84087
84088 2006-01-07  Bruno Haible  <bruno@clisp.org>
84089
84090         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84091         gl_EARLY.
84092
84093 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84094
84095         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84096         Problem reported for Mingw by Mark Junker.
84097
84098 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84099
84100         * README: Gnulib normally doesn't generate a tarball.
84101
84102 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84103
84104         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84105         long int, not int, for nanosecond counts, so that people who are
84106         used to POSIX struct timespec won't be surprised.  Reported by Jim
84107         Meyering.
84108
84109 2005-12-28  Bruno Haible  <bruno@clisp.org>
84110
84111         * build-aux/config.rpath: Update from GNU gettext.
84112
84113 2005-12-16  Jim Meyering  <jim@meyering.net>
84114
84115         * modules/fprintftime: New module.
84116         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84117
84118 2005-12-16  Jim Meyering  <jim@meyering.net>
84119
84120         * m4/fprintftime.m4: New file.
84121
84122 2005-12-16  Jim Meyering  <jim@meyering.net>
84123
84124         * lib/fprintftime.c, lib/fprintftime.h: New files.
84125
84126 2005-12-15  Simon Josefsson  <jas@extundo.com>
84127
84128         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84129         new m4/socklen.m4.
84130
84131 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84132
84133         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84134         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84135
84136 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84137
84138         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84139         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84140         struct uparams is valid. Fall back to the default values if it is
84141         not.
84142
84143 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84144
84145         * modules/argp (Files): Add argp-pin.c
84146         (Depends-on): dirname
84147         (lib_SOURCES): Add argp-pin.c
84148
84149 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84150
84151         * m4/argp.m4:  Check if program_invocation_name and
84152         program_invocation_short_name are declared and define appropriate
84153         macros if they are not.
84154
84155 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84156
84157         * lib/argp-help.c (__argp_base_name): New function
84158         (__argp_short_program_name): Rewrite using __argp_base_name
84159         * lib/argp-namefrob.h: Define program_invocation_name and
84160         program_invocation_short_name if requested
84161         (__argp_base_name): Add prototype
84162         * lib/argp-parse.c (argp_def): Use gettext wrappers
84163         (argp_default_parser): Use __argp_base_name
84164         * lib/argp-pin.c: New file. Defines program_invocation_name and
84165         program_invocation_short_name on systems that lack them.
84166
84167 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84168
84169         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84170         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84171         porting problem reported by Georg Schwarz in
84172         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84173
84174 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84175
84176         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84177         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84178         porting problem reported by Georg Schwarz in
84179         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84180
84181 2005-12-05  Bruno Haible  <bruno@clisp.org>
84182
84183         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84184         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84185         Reported by Mark Junker <mjscod@gmx.de>.
84186
84187 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84188
84189         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84190         Use implementation from Albert Chin, with some
84191         comments/corrections by Stepan Kasal and myself.
84192
84193 2005-12-02  Bruno Haible  <bruno@clisp.org>
84194
84195         * gnulib-tool (func_import): Accept GPLed build tool modules when
84196         --lgpl is given.
84197         * modules/csharpcomp-script: New file.
84198         * modules/csharpcomp: Depend on it.
84199         * modules/javacomp-script: New file.
84200         * modules/javacomp: Depend on it.
84201         Suggested by Simon Josefsson.
84202
84203 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84204
84205         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84206         statement, to work around an HP-UX 10.20 compiler bug reported by
84207         Peter O'Gorman.
84208
84209 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84210
84211         * modules/savedir (Depends-on): Add openat.
84212
84213 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84214
84215         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84216         (uintmax_t) [defined uintmax_t]: Do not declare.
84217         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84218         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84219         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84220         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84221         sake of portability to weird hosts that C allows (though we don't
84222         know of any practical examples).
84223
84224         * lib/savedir.h (fdsavedir): New decl.
84225         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84226         contains most of the former guts of savedir.
84227         (savedir): Use savedirstream.
84228         Include "openat.h".
84229
84230 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84231
84232         * modules/obstack (Files): Add m4/ulonglong.m4.
84233         Problem reported by Davide Angelocola.
84234
84235 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84236
84237         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84238         coreutils no longer futzes with rounding modes.
84239
84240 2005-11-14  Jim Meyering  <jim@meyering.net>
84241
84242         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84243         replacement of mkstemp.
84244
84245 2005-11-10  Simon Josefsson  <jas@extundo.com>
84246
84247         * lib/readline.c: Remove EOL.
84248
84249 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84250
84251         * modules/gethrxtime (Depends-on): Add gettime.
84252
84253 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84254
84255         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84256         or gettimeofday; no longer needed.
84257
84258 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84259
84260         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84261         time business.
84262         (gethrxtime) [! (HAVE_NANOUPTIME
84263         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84264         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84265         our own approximation.
84266
84267 2005-11-08  Eric Blake  <ebb9@byu.net>
84268
84269         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84270
84271 2005-11-08  Eric Blake  <ebb9@byu.net>
84272
84273         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84274
84275 2005-11-04  Bruno Haible  <bruno@clisp.org>
84276
84277         * gnulib-tool: Implement --update mode.
84278
84279 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84280
84281         Fix porting problem reported by Theodoros V. Kalamatianos.
84282         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84283         Don't assume that futimes failing means we must fail.
84284
84285 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84286
84287         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84288         variables to suggest the intended function of the PATH_MAX check.
84289
84290 2005-10-30  Kean Johnston  <jkj@sco.com>
84291
84292         Trivial changes to support SCO systems.
84293         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84294         as PATH_MAX.
84295         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84296         where __ptr is null when no I/O is pending.
84297
84298 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84299
84300         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84301         leave errno alone.  Problem reported by Dmitry V. Levin.
84302
84303 2005-10-28  Simon Josefsson  <jas@extundo.com>
84304
84305         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84306         Test more.
84307
84308         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84309
84310         * modules/md2, modules/md2-tests: New files.
84311
84312 2005-10-28  Simon Josefsson  <jas@extundo.com>
84313
84314         * m4/inet_ntop.m4: More tests.
84315
84316         * m4/gc-md2.m4, md2.m4: New file.
84317
84318 2005-10-28  Simon Josefsson  <jas@extundo.com>
84319
84320         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84321         "restrict" keywords, as per POSIX.  Protect the function
84322         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84323         Don't use K&R prototypes.  Check the sprintf return values.
84324         Re-define EAFNOSUPPORT if not present.  Indent.
84325
84326         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84327         suggested by Bruno Haible <bruno@clisp.org>.
84328
84329         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84330
84331         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84332
84333         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84334         libgcrypt).
84335
84336         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84337
84338         * lib/md2.h, lib/md2.c: New files.
84339
84340 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84341
84342         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84343         errno alone.  Problem reported by Frederic Jolliton.
84344
84345 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84346
84347         * modules/verify (License): Change from GPL to LGPL.  This is a
84348         tiny module and there are apparently near-equivalents that are
84349         under the BSD license.
84350
84351 2005-10-24  Simon Josefsson  <jas@extundo.com>
84352
84353         * modules/sha1: Relicense to LGPL.
84354
84355 2005-10-24  Simon Josefsson  <jas@extundo.com>
84356
84357         * lib/md4.h: Shrink buffer size, now that we changed the type.
84358
84359 2005-10-23  Simon Josefsson  <jas@extundo.com>
84360
84361         * gnulib-tool (func_import): Fix --tests-base.
84362
84363 2005-10-22  Simon Josefsson  <jas@extundo.com>
84364
84365         * modules/arcfour (Depends-on): Need stdint.
84366
84367 2005-10-22  Simon Josefsson  <jas@extundo.com>
84368
84369         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84370         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84371
84372 2005-10-22  Simon Josefsson  <jas@extundo.com>
84373
84374         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84375         suggested by Bruno Haible <bruno@clisp.org>.
84376
84377 2005-10-22  Simon Josefsson  <jas@extundo.com>
84378
84379         * lib/crc.h: Include stddef.h, for size_t.
84380
84381 2005-10-22  Simon Josefsson  <jas@extundo.com>
84382
84383         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84384         arcfour_context struct (simplify test vector testing in GNU
84385         Shishi).
84386
84387 2005-10-21  Simon Josefsson  <jas@extundo.com>
84388
84389         * modules/des, modules/des-tests: New files.
84390
84391         * modules/gc-des, modules/gc-des-tests: New files.
84392
84393         * tests/test-des.c, tests/test-gc-des.c: New file.
84394
84395 2005-10-21  Simon Josefsson  <jas@extundo.com>
84396
84397         * modules/arctwo, modules/arctwo-tests: New files.
84398
84399         * tests/test-arctwo.c: New file.
84400
84401         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84402
84403         * tests/test-gc-arctwo.c: New file.
84404
84405 2005-10-21  Simon Josefsson  <jas@extundo.com>
84406
84407         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84408         Bruno Haible <bruno@clisp.org>.
84409
84410         * m4/gc-des.m4: New file.
84411
84412 2005-10-21  Simon Josefsson  <jas@extundo.com>
84413
84414         * m4/arctwo.m4: New file.
84415
84416         * m4/gc-arctwo.m4: New file.
84417
84418 2005-10-21  Simon Josefsson  <jas@extundo.com>
84419
84420         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84421         block.
84422
84423 2005-10-21  Simon Josefsson  <jas@extundo.com>
84424
84425         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84426         <bruno@clisp.org>.
84427
84428         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84429
84430         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84431         Bruno Haible <bruno@clisp.org>.
84432
84433         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84434         <bruno@clisp.org>.
84435
84436 2005-10-21  Simon Josefsson  <jas@extundo.com>
84437
84438         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84439
84440 2005-10-21  Simon Josefsson  <jas@extundo.com>
84441
84442         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84443
84444 2005-10-21  Simon Josefsson  <jas@extundo.com>
84445
84446         * lib/des.h, lib/des.c: New files.
84447
84448         * lib/gc-gnulib.c: Support DES.c
84449
84450 2005-10-21  Simon Josefsson  <jas@extundo.com>
84451
84452         * lib/arctwo.h, lib/arctwo.c: New files.
84453
84454         * lib/gc-gnulib.c: Support ARCTWO.
84455
84456 2005-10-21  Simon Josefsson  <jas@extundo.com>
84457
84458         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84459         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84460
84461 2005-10-21  Simon Josefsson  <jas@extundo.com>
84462
84463         * gnulib-tool (func_import, func_create_testdir): Define automake
84464         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84465         Makefile.am snippet),
84466         suggested by Bruno Haible <bruno@clisp.org>.
84467
84468         * modules/gc (Makefile.am): Use it.
84469
84470 2005-10-21  Bruno Haible  <bruno@clisp.org>
84471
84472         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84473         patch.
84474
84475 2005-10-19  Simon Josefsson  <jas@extundo.com>
84476
84477         * tests/test-gc-rijndael.c: New file.
84478
84479         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84480
84481 2005-10-19  Simon Josefsson  <jas@extundo.com>
84482
84483         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84484         interface too.
84485
84486 2005-10-19  Simon Josefsson  <jas@extundo.com>
84487
84488         * tests/test-gc-arcfour.c: New file.
84489
84490         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84491
84492 2005-10-19  Simon Josefsson  <jas@extundo.com>
84493
84494         * modules/gc-md4, modules/gc-md4-tests: New file.
84495
84496         * tests/test-gc-md4.c: New file.
84497
84498 2005-10-19  Simon Josefsson  <jas@extundo.com>
84499
84500         * m4/gc-md4.m4: New file.
84501
84502 2005-10-19  Simon Josefsson  <jas@extundo.com>
84503
84504         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84505         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84506         <kasal@ucw.cz>.
84507
84508 2005-10-19  Simon Josefsson  <jas@extundo.com>
84509
84510         * m4/gc-arcfour.m4: New file.
84511
84512         * m4/gc-rijndael.m4: New file.
84513
84514 2005-10-19  Simon Josefsson  <jas@extundo.com>
84515
84516         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84517
84518 2005-10-19  Simon Josefsson  <jas@extundo.com>
84519
84520         * lib/gc-gnulib.c: Support ARCFOUR.
84521
84522 2005-10-19  Simon Josefsson  <jas@extundo.com>
84523
84524         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84525         support.
84526
84527         * lib/gc.h: Add ECB enum type.
84528
84529         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84530
84531 2005-10-18  Simon Josefsson  <jas@extundo.com>
84532
84533         * tests/test-md5.c: New file.
84534
84535         * modules/md5-tests: New file.
84536
84537 2005-10-18  Simon Josefsson  <jas@extundo.com>
84538
84539         * tests/test-md4.c: New file.
84540
84541         * modules/md4, modules/md4-tests: New files.
84542
84543 2005-10-18  Simon Josefsson  <jas@extundo.com>
84544
84545         * m4/md4.m4: New file.
84546
84547 2005-10-18  Simon Josefsson  <jas@extundo.com>
84548
84549         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84550
84551 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84552
84553         * gnulib-tool (func_create_testdir): Omit the second check whether
84554         BUILT_SOURCES in nonempty.
84555
84556 2005-10-17  Simon Josefsson  <jas@extundo.com>
84557
84558         * tests/test-rijndael.c: New file.
84559
84560 2005-10-17  Simon Josefsson  <jas@extundo.com>
84561
84562         * modules/sha1: Depend on stdint instead of md5.
84563
84564         * modules/md5: Depend on stdint, remove uint32_t.
84565
84566 2005-10-17  Simon Josefsson  <jas@extundo.com>
84567
84568         * modules/gc-sha1-tests: New file.
84569
84570         * tests/test-gc-sha1.c: New file.
84571
84572 2005-10-17  Simon Josefsson  <jas@extundo.com>
84573
84574         * m4/md5.m4: Remove call to uint32_t.m4.
84575
84576 2005-10-17  Simon Josefsson  <jas@extundo.com>
84577
84578         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84579
84580         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84581         md5.h.
84582
84583         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84584
84585         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84586
84587 2005-10-17  Simon Josefsson  <jas@extundo.com>
84588
84589         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84590
84591 2005-10-17  Simon Josefsson  <jas@extundo.com>
84592
84593         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84594
84595 2005-10-17  Simon Josefsson  <jas@extundo.com>
84596
84597         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84598
84599         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84600
84601 2005-10-17  Bruno Haible  <bruno@clisp.org>
84602
84603         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84604         that it can also be used in a test.
84605
84606 2005-10-16  Bruno Haible  <bruno@clisp.org>
84607
84608         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84609         TESTS_ENVIRONMENT, so that individual tests can augment it.
84610
84611         * gnulib-tool (func_create_testdir): Use an intermediate target for
84612         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84613         macros, like $(ALLOCA_H), which cannot be passed through the command
84614         line.
84615
84616 2005-10-15  Simon Josefsson  <jas@extundo.com>
84617
84618         * modules/rijndael-tests: New file.
84619
84620         * modules/rijndael: New file.
84621
84622 2005-10-15  Simon Josefsson  <jas@extundo.com>
84623
84624         * m4/rijndael.m4: New file.
84625
84626 2005-10-15  Simon Josefsson  <jas@extundo.com>
84627
84628         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84629
84630         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84631
84632 2005-10-14  Simon Josefsson  <jas@extundo.com>
84633
84634         * tests/test-arcfour.c: New file.
84635
84636         * modules/arcfour, modules/arcfour-tests: New files.
84637
84638 2005-10-14  Simon Josefsson  <jas@extundo.com>
84639
84640         * m4/arcfour.m4: New file.
84641
84642 2005-10-14  Simon Josefsson  <jas@extundo.com>
84643
84644         * lib/arcfour.h, lib/arcfour.c: New files.
84645
84646 2005-10-14  Roland McGrath  <roland@redhat.com>
84647
84648         Import from libc.  [BZ #1331]
84649         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84650         macro argument.
84651         Reported by Matej Vela <vela@debian.org>.
84652
84653 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84654
84655         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84656         include <wchar.h>; no longer needed.
84657
84658 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84659
84660         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84661
84662 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84663         and  Ulrich Drepper  <drepper@redhat.com>
84664
84665         Import from libc.
84666         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84667         instead of inline stream orientation test and two separate
84668         function calls.  Pay no attention to USE_IN_LIBIO.
84669
84670 2005-10-13  Simon Josefsson  <jas@extundo.com>
84671
84672         * modules/gc-hmac-md5-tests: New file.
84673
84674         * tests/test-gc-hmac-sha1.c: New file.
84675
84676         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84677
84678         * modules/gc-hmac-md5-tests: New file.
84679
84680         * tests/test-gc-md5.c: New file.
84681
84682         * modules/gc-md5-tests: New file.
84683
84684 2005-10-13  Simon Josefsson  <jas@extundo.com>
84685
84686         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84687         Move memory allocation outside of loop.
84688
84689 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84690
84691         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84692         intermediate directory is in a read-only file system.  Problem
84693         reported by Eric Blake.
84694
84695 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84696
84697         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84698
84699 2005-10-12  Simon Josefsson  <jas@extundo.com>
84700
84701         * tests/test-hmac-sha1.c: New file.
84702
84703         * modules/hmac-sha1-tests: New file.
84704
84705         * modules/hmac-sha1: New file.
84706
84707 2005-10-12  Simon Josefsson  <jas@extundo.com>
84708
84709         * modules/gc-sha1: New file.
84710
84711 2005-10-12  Simon Josefsson  <jas@extundo.com>
84712
84713         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84714
84715         * tests/test-gc-pbkdf2-sha1.c: New file.
84716
84717 2005-10-12  Simon Josefsson  <jas@extundo.com>
84718
84719         * modules/gc-md5, modules/gc-hmac-md5: New files.
84720
84721         * modules/gc (Files): Remove md5, memxor and hmac files.
84722
84723 2005-10-12  Simon Josefsson  <jas@extundo.com>
84724
84725         * m4/gc-pbkdf2-sha1.m4: New file.
84726
84727         * m4/gc-hmac-sha1.m4: New file.
84728
84729         * m4/gc-sha1: New file.
84730
84731         * m4/hmac-sha1.m4: New file.
84732
84733 2005-10-12  Simon Josefsson  <jas@extundo.com>
84734
84735         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84736
84737         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84738
84739 2005-10-12  Simon Josefsson  <jas@extundo.com>
84740
84741         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84742         suggested by Bruno Haible <bruno@clisp.org>.
84743
84744 2005-10-12  Simon Josefsson  <jas@extundo.com>
84745
84746         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84747
84748 2005-10-12  Simon Josefsson  <jas@extundo.com>
84749
84750         * lib/gc-pbkdf2-sha1.c: New file.
84751
84752         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84753
84754 2005-10-12  Simon Josefsson  <jas@extundo.com>
84755
84756         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84757
84758         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84759
84760 2005-10-12  Simon Josefsson  <jas@extundo.com>
84761
84762         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84763         GC_USE_HMAC_MD5, respectively.
84764
84765         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84766         (gc_md5): Fix typo.
84767
84768         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84769
84770         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84771
84772         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84773
84774 2005-10-12  Bruno Haible  <bruno@clisp.org>
84775
84776         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84777         Reported by Stepan Kasal <kasal@ucw.cz>.
84778
84779 2005-10-11  Simon Josefsson  <jas@extundo.com>
84780
84781         * tests/test-crc.c: New file.
84782
84783         * modules/crc, modules/crc-tests: New files.
84784
84785 2005-10-11  Simon Josefsson  <jas@extundo.com>
84786
84787         * m4/crc.m4: New file.
84788
84789 2005-10-11  Simon Josefsson  <jas@extundo.com>
84790
84791         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84792
84793         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84794
84795         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
84796
84797 2005-10-11  Simon Josefsson  <jas@extundo.com>
84798
84799         * lib/crc.h, lib/crc.c: New files.
84800
84801         * lib/gc.h (gc_hash_buffer): Add doc.
84802
84803 2005-10-11  Bruno Haible  <bruno@clisp.org>
84804
84805         * modules/c-strcasestr: New file.
84806         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
84807
84808 2005-10-11  Bruno Haible  <bruno@clisp.org>
84809
84810         * modules/c-strcase: New file.
84811         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
84812
84813 2005-10-11  Bruno Haible  <bruno@clisp.org>
84814
84815         * lib/strcasecmp.c: Include limits.h.
84816         (strcasecmp): Avoid integer overflow on exotic platforms.
84817         * lib/strncasecmp.c: Include limits.h.
84818         (strncasecmp): Avoid integer overflow on exotic platforms.
84819         Reported by Paul Eggert.
84820
84821 2005-10-11  Bruno Haible  <bruno@clisp.org>
84822
84823         * lib/c-strcasestr.h: New file, from GNU gettext.
84824         * lib/c-strcasestr.c: New file, from GNU gettext.
84825
84826 2005-10-11  Bruno Haible  <bruno@clisp.org>
84827
84828         * lib/c-strcase.h: New file, from GNU gettext.
84829         * lib/c-strcasecmp.c: New file, from GNU gettext.
84830         * lib/c-strncasecmp.c: New file, from GNU gettext.
84831
84832 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84833
84834         * modules/mempcpy (License): GPL -> LGPL.
84835         * modules/strchrnul (License): Likewise.
84836         * modules/sysexits (License): Likewise.
84837
84838 2005-10-08  Simon Josefsson  <jas@extundo.com>
84839
84840         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
84841
84842 2005-10-07  Simon Josefsson  <jas@extundo.com>
84843
84844         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84845
84846 2005-10-06  Simon Josefsson  <jas@extundo.com>
84847
84848         * tests/test-hmac-md5.c: New file.
84849
84850         * modules/hmac-md5-tests: New file.
84851
84852         * modules/hmac-md5: New file.
84853
84854 2005-10-06  Simon Josefsson  <jas@extundo.com>
84855
84856         * m4/hmac-md5.m4: New file.
84857
84858         * m4/memxor.m4: Require gl_C_RESTRICT.
84859
84860 2005-10-06  Simon Josefsson  <jas@extundo.com>
84861
84862         * lib/memxor.c (memxor): Avoid casts and warnings.
84863
84864 2005-10-06  Simon Josefsson  <jas@extundo.com>
84865
84866         * lib/hmac-md5.c: New file.
84867
84868         * lib/hmac.h: New file.
84869
84870 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84871
84872         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84873         promotes to int, not unsigned int, to catch the AIX 5.3
84874         compiler bug.
84875
84876 2005-10-05  Simon Josefsson  <jas@extundo.com>
84877
84878         * modules/memxor: New file.
84879
84880         * modules/iconv (Files): Move config.rpath to havelib, it is used
84881         there.
84882
84883         * modules/havelib (Files): Add config.rpath.
84884
84885 2005-10-05  Simon Josefsson  <jas@extundo.com>
84886
84887         * m4/memxor.m4: New file.
84888
84889 2005-10-05  Simon Josefsson  <jas@extundo.com>
84890
84891         * lib/memxor.c (memxor): Fix compiler error.
84892
84893         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84894         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84895
84896         * lib/memxor.h, lib/memxor.c: New files.
84897
84898         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84899         we assume all systems have it, suggested by Jim Meyering
84900         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84901         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84902         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84903         same reasons.
84904
84905 2005-10-05  Simon Josefsson  <jas@extundo.com>
84906
84907         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84908
84909 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84910
84911         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84912         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84913         needed, since the source code now assumes these .h files.
84914
84915 2005-10-05  Derek Price  <derek@ximbiot.com>
84916
84917         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84918
84919 2005-10-05  Bruno Haible  <bruno@clisp.org>
84920
84921         * modules/stdint (License): Change to LGPL.
84922
84923 2005-10-04  Simon Josefsson  <jas@extundo.com>
84924
84925         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84926         D. Baushke" <mdb@gnu.org>.
84927
84928 2005-10-04  Bruno Haible  <bruno@clisp.org>
84929
84930         * lib/verify.h (verify_true): Provide alternative definition for C++.
84931
84932 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84933
84934         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84935         (SSIZE_MAX): New macro, if not already defined.
84936         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84937         than 2 GiB.
84938
84939 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84940
84941         Sync from coreutils.
84942         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84943         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84944         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84945         ULLONG_MAX doesn't work with 2.7.2.1.
84946
84947 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84948
84949         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84950         From Ben Pfaff.
84951
84952         * modules/exclude (Depends-on): Depend on verify.
84953         * modules/strtoimax (Depends-on): Likewise.
84954         * modules/utimecmp (Depends-on): Likewise.
84955
84956 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84957
84958         * lib/exclude.c: Include verify.h.
84959         (verify): Remove.  All callers changed to use verify.h's version.
84960         * lib/strtoimax.c: Likewise.
84961         * lib/utimecmp.c: Likewis.e
84962
84963         Sync from coreutils.
84964         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84965         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84966         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84967         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84968         bother returning ENOSYS if settimeofday or stime fails; just let
84969         them return whatever errno they want to return.
84970         * lib/utimens.c: Include unistd.h, for dup2.
84971         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84972         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84973
84974 2005-10-02  Jim Meyering  <jim@meyering.net>
84975
84976         Sync from coreutils.
84977         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84978         from glibc-2.2.5 that fails for read-only files.
84979
84980 2005-10-02  Jim Meyering  <jim@meyering.net>
84981
84982         Sync from coreutils.
84983         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84984         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84985         `#if HAVE_CONFIG_H'.
84986         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84987         Remove AT_FDCWD test.
84988         Do not consume the fd unless successful.
84989         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84990         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84991         block, so that we don't even try to compile it if settimeofday is
84992         available.  This works around a compilation failure on OSF1 V5.1,
84993         due to stime requiring a `long int*' while tv_sec is `int'.
84994
84995 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84996
84997         Sync from coreutils.
84998         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84999         against `yes', rather than just testing for nonempty.
85000
85001 2005-10-01  Simon Josefsson  <jas@extundo.com>
85002
85003         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85004         and Darwin.
85005
85006         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85007         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85008         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85009         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85010         Check if struct addrinfo is declared.
85011
85012 2005-10-01  Simon Josefsson  <jas@extundo.com>
85013
85014         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85015         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85016         AI_* and EAI_* definitions.  Protect function declarations.
85017
85018 2005-10-01  Jim Meyering  <jim@meyering.net>
85019
85020         Sync from coreutils.
85021
85022         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85023         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85024         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85025         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85026         in the inet and nsl libraries.  Required on Solaris 5.7.
85027
85028 2005-10-01  Jim Meyering  <jim@meyering.net>
85029
85030         Sync from coreutils.
85031         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85032         in the inet and nsl libraries.  Required on Solaris 5.7.
85033
85034 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85035
85036         * lib/getdelim.c (getdelim): Remove unused variables.
85037
85038 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85039
85040         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85041         so that the code works even with ancient cpp.  Portability problem
85042         with GCC 2.7.2.1 reported by Thomas M.Ott.
85043
85044 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85045
85046         * modules/regex (Depends-on): Add strcase.
85047
85048         * modules/gethostname (Licence): Change from GPL to LGPL, since
85049         gethostname.c is a trivial implementation of a standard library
85050         function.
85051         * modules/poll (License): Change from GPL to LGPL, since it's
85052         derived from LGPL code.
85053
85054 2005-09-27  Jim Meyering  <jim@meyering.net>
85055
85056         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85057         HAVE_CONFIG_H.
85058
85059         * lib/intprops.h (signed_type_or_expr__): Define.
85060         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85061         for unsigned types.
85062
85063 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85064
85065         * lib/verify.h (verify_expr): Remove, replacing with:
85066         (verify_true): New macro that returns true instead of void.
85067         (verify_type__): Remove.
85068         (verify): Use verify_true rather than verify_type__.
85069
85070 2005-09-26  Bruno Haible  <bruno@clisp.org>
85071
85072         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85073         is necessary.
85074         (lib_SOURCES): Remove mbchar.c.
85075         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85076         (Files): Add m4/mbrtowc.m4.
85077         * modules/mbiter: Likewise.
85078         * modules/mbuiter: Likewise.
85079
85080 2005-09-26  Bruno Haible  <bruno@clisp.org>
85081
85082         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85083         compile mbchar.c if they are not both present.
85084         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85085         * m4/mbiter.m4 (gl_MBITER): Likewise.
85086         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85087         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85088         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85089
85090 2005-09-25  Jim Meyering  <jim@meyering.net>
85091
85092         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85093         also uses socklen_t.
85094
85095 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85096
85097         * lib/utimens.c (ENOSYS): Define if not already defined.
85098         (futimens): Support having a null PATH if the file descriptor
85099         is nonnegative.
85100
85101         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85102         Remove.
85103         (__attribute): Define to empty unless GCC 3.1 or later.
85104         This works around a core dump on OpenBSD 3.4, which has GCC
85105         2.95.3, which dumps core when given __attribute__(()).  It also
85106         simplifies other tests, since we really don't want to bother with
85107         worrying about which ancient version of GCC supported what.
85108         Original problem reported by Yoann Vandoorselaere, with part of
85109         the fix suggested by Derek Price.
85110
85111 2005-09-24  Jim Meyering  <jim@meyering.net>
85112
85113         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85114         so we can once again use a positive bitfield width of 1 -- now we
85115         don't have to explain why we were using a bitfield width of 2.
85116
85117 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85118
85119         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85120         and similarly for the other external symbols.  Problem reported
85121         by James Gallager.
85122
85123         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85124         bug reported by Jim Meyering.
85125
85126         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85127         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85128         not needed, since socklen is a prerequisite module.
85129
85130 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85131
85132         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85133         Problem reported by Eric Blake.
85134         (getaddrinfo): Initialize se so that it's not garbage.
85135         Redo internal storage allocation so that it doesn't make unportable
85136         assumptions about alignment.
85137         Fix a memory leak.
85138
85139         * lib/utimens.c (futimens): Use futimesat if available.
85140         Prefer it to futimes since it doesn't have the futimes bug.
85141
85142         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85143         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85144         Instead, declare a function that returns a pointer to an array,
85145         and use verify_type__ to declare the size of the array.
85146         Problem and germ of a solution reported by Bruno Haible.
85147         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85148         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85149
85150 2005-09-23  Jim Meyering  <jim@meyering.net>
85151
85152         Sync from coreutils.
85153         Correct build failure (socklen_t not defined) on at least
85154         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85155         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85156
85157 2005-09-23  Jim Meyering  <jim@meyering.net>
85158
85159         * modules/getaddrinfo (Depends-on): Add socklen.
85160
85161 2005-09-23  Bruno Haible  <bruno@clisp.org>
85162
85163         * tests/test-verify.c: New file.
85164
85165 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85166
85167         Sync from coreutils.
85168
85169         * modules/argmatch (Depends-on): Add verify.
85170         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85171         unistd-safer.
85172         * modules/save-cwd (Depends-on): Likewise.
85173
85174         * modules/openat (Files): Add lib/openat-die.c.
85175         (Depends-on): Remove error, exitfail.
85176         Add dirname.
85177
85178         * modules/verify: New file.
85179         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85180         with "verify" module.
85181
85182 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85183
85184         Sync from coreutils.
85185
85186         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85187         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85188         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85189         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85190         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85191         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85192         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85193         Don't bother checking for string.h, stdlib.h, unistd.h.
85194         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85195         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85196         module's job.
85197         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85198         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85199
85200         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85201         (gl_GETDATE): Use it.
85202
85203         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85204
85205 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85206
85207         Sync from coreutils.
85208
85209         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85210         stat-time.h.
85211         * lib/argmatch.h: Include verify.h
85212         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85213         (ARGMATCH_ASSERT): Remove; unused.
85214         * lib/canonicalize.c: Assume STDC_HEADERS.
85215         * lib/exclude.c: Include "strcase.h".
85216         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85217         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85218         and stdio-safer.h.
85219         (getusershell): Call fopen, not fopen_safer.
85220         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85221         Do not include unistd-safer.h.
85222         (save_cwd): Don't call fd_safer; no longer needed
85223         now that we include fcntl--.h.
85224
85225         * lib/getdate.y (relative_time): New type.
85226         (RELATIVE_TIME_0): New constant.
85227         (parser_control): Use relative_time instead of doing it ourselves.
85228         (%union): Add new relative_time rel member.
85229         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85230         Now typeless.
85231         (relunit, relunit_snumber): Now of type rel.
85232         (zone, rel, relunit, get_date): Adjust to above changes.
85233
85234         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85235         Do not include unistd-safer.h.
85236         (getloadavg): Don't call fd_safer; no longer needed
85237         now that we include fcntl--.h.
85238
85239         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85240         (make_dir_parents): Treat ENOSYS like EEXIST.
85241
85242         Improve quality of diagnostics on restore_cwd failure.
85243         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85244         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85245         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85246         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85247         each time through the loop.  Do not diagnose restore_cwd failure;
85248         that is the caller's job (and perhaps the caller does not care).
85249
85250         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85251         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85252         If the file already exists but is not a directory, don't bother
85253         to try to make its parents.
85254         Close potential file descriptor leak if we can't chdir("/") (!).
85255         Don't always return true if chdir($PWD) fails; return true only
85256         if the requested action was done successfully (except for the
85257         chdir($PWD)).
85258         Don't log final directory unless we actually made it.
85259         Refactor to avoid duplicate code to fix up permissions.
85260         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85261
85262         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85263         to make it a bit faster and (I hope) clearer.
85264         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85265         Fix bug in formats like %2N.
85266
85267         * lib/verify.h: New file.
85268
85269 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85270
85271         Sync from coreutils.
85272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85273
85274 2005-09-22  Jim Meyering  <jim@meyering.net>
85275
85276         Sync from coreutils.
85277
85278         * m4/lstat.m4 (gl_FUNC_LSTAT):
85279         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85280         Remove obsolete comment.
85281         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85282         * m4/xstrtod.m4: Likewise.
85283
85284         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85285
85286 2005-09-22  Jim Meyering  <jim@meyering.net>
85287
85288         Sync from coreutils.
85289
85290         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85291
85292         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85293         the .tm_year member, since otherwise gcc-4.0 would now warn about
85294         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85295
85296         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85297         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85298
85299         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85300         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85301         when run in a time zone for which daylight savings time is in effect
85302         for the starting date.
85303
85304         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85305         stop us from restricting permissions of just-created absolute-named
85306         directories.
85307         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85308         to restore initial working directory.
85309         * lib/mkdir-p.c (make_dir_parents): New parameter:
85310         different_working_dir, to tell caller if/when we change the working
85311         directory and are unable to return to the initial one.
85312         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85313         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85314         `return false'.  This fixes a bug introduced on 2004-07-30.
85315
85316         * lib/openat.c (fdopendir): Be sure to close the supplied
85317         file descriptor before returning.  This makes our replacement
85318         implementation a little closer to Solaris's, where fdopendir
85319         ties the file descriptor to the returned DIR* pointer.
85320         * lib/openat.c (unlinkat): New function.
85321         * lib/openat.h (unlinkat): Add prototype.
85322         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85323         (openat_restore_fail): Rename from openat_restore_die.
85324         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85325
85326         Provide an alternative to exiting immediately upon save_cwd or
85327         restore_cwd failure.  Now, an application can arrange e.g.,
85328         to perform a longjump in that case.
85329         * lib/openat.c: Include dirname.h.
85330         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85331         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85332         and openat_restore_die rather than calling error directly.
85333         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85334
85335         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85336         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85337         define.
85338
85339         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85340         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85341                             int utc, int nanoseconds);
85342         Background:
85343         date should not have to allocate a megabyte of virtual memory to
85344         handle a format argument like +%1048575T.  When implemented with
85345         strftime, it must allocate such a buffer, use strftime to fill it
85346         in, print it, then free it.
85347         With fprintftime, it simply prints everything and exits.
85348         With no need for memory allocation, that's one fewer way to fail.
85349         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85350         optional field width, not before, so we accept %9:z, not %:9z.
85351         (my_strftime): Be sure to use L_('x') for literals.
85352
85353         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85354         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85355         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85356         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85357         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85358         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85359         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85360         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85361         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85362         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85363         * lib/xgethostname.c, lib/xreadlink.c:
85364         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85365
85366         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85367         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85368         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85369         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85370         and don't include <sys/file.h>).
85371
85372 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85373
85374         Sync from coreutils.
85375
85376         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85377         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85378         [!LDAV_DONE]: Avoid unused variable warning.
85379
85380 2005-09-21  Bruno Haible  <bruno@clisp.org>
85381
85382         * lib/unicodeio.h (unicode_to_mb): New declaration.
85383
85384 2005-09-20  Derek Price  <derek@ximbiot.com>
85385
85386         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85387         getaddrinfo.h.
85388
85389 2005-09-20  Bruno Haible  <bruno@clisp.org>
85390
85391         * gnulib-tool: Remove trailing slashes from the values specified for
85392         --source-base, --m4-base, --tests-base, --aux-dir.
85393         Suggested by Simon Josefsson <jas@extundo.com>.
85394
85395 2005-09-20  Bruno Haible  <bruno@clisp.org>
85396
85397         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85398         func_modules_to_filelist, func_import, func_create_testdir): Make all
85399         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85400         change when gnulib-tool is invoked in a different locale.
85401
85402 2005-09-19  Simon Josefsson  <jas@extundo.com>
85403
85404         * m4/socklen.m4: Fix typo.
85405
85406 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85407
85408         Use a consistent style for including <config.h>.
85409         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85410         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85411         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85412         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85413         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85414         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85415         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85416         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85417         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85418         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85419         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85420         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85421         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85422         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85423         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85424         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85425         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85426         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85427         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85428         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85429         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85430         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85431         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85432         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85433         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85434         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85435         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85436         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85437         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85438         lib/xstrtoumax.c, lib/yesno.c:
85439         Standardize inclusion of config.h.
85440         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85441         lib/inttostr.h:  Removed inclusion of config.h from header files.
85442         * lib/inttostr.c:  Adjusted in-tree users.
85443         * lib/timespec.h: Remove superfluous warning to include config.h.
85444         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85445         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85446         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85447         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85448         config.h with HAVE_CONFIG_H.
85449
85450 2005-09-19  Jim Meyering  <jim@meyering.net>
85451
85452         * modules/pathmax (License): Change to LGPL.
85453
85454 2005-09-19  Derek Price  <derek@ximbiot.com>
85455
85456         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85457
85458 2005-09-19  Bruno Haible  <bruno@clisp.org>
85459
85460         * gnulib-tool (import): Provide default for --tests-base.
85461
85462 2005-09-19  Bruno Haible  <bruno@clisp.org>
85463
85464         * doc/quote.texi: New file, extracted from gnulib.texi.
85465         * doc/ctime.texi: New file, extracted from gnulib.texi.
85466         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85467         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85468         * doc/gnulib.texi: Include them.
85469
85470 2005-09-18  Bruno Haible  <bruno@clisp.org>
85471
85472         Portability fix.
85473         * gnulib-tool (func_readlink): New function.
85474         (func_ln_if_changed): Use it.
85475
85476 2005-09-18  Bruno Haible  <bruno@clisp.org>
85477
85478         * gnulib-tool: Support --with-tests also with --import.
85479         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85480         (func_import): Use variables $testsbase and $inctests. Emit a
85481         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85482         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85483         SUBDIRS += $testsdir.
85484         (func_create_testdir): Update.
85485
85486 2005-09-18  Bruno Haible  <bruno@clisp.org>
85487
85488         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85489         instead of $dry_run.
85490         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85491         (func_ln_if_changed): Don't handle dry-run here.
85492         (func_import): In dry-run mode, detect more precisely which actions
85493         would be performed, and don't use "...ing" verbs.
85494
85495 2005-09-18  Bruno Haible  <bruno@clisp.org>
85496
85497         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85498         (func_import): Use join on two temporary files instead of three nested
85499         loops, in order to determine which files are new or old.
85500
85501 2005-09-18  Bruno Haible  <bruno@clisp.org>
85502
85503         * gnulib-tool (func_import): Comment out code that spits out the
85504         new files with --dry-run.
85505
85506 2005-09-18  Bruno Haible  <bruno@clisp.org>
85507
85508         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85509
85510 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85511
85512         * lib/stat-time.h: New file.
85513         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85514         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85515         in a different way.
85516         (timespec_cmp): New function.
85517         * lib/utimecmp.c: Include stat-time.h.
85518         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85519         members exist, not on the obsolescent ST_MTIM_NSEC.
85520         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85521
85522 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85523
85524         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85525
85526 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85527
85528         * MODULES.html.sh (File system functions): Add stat-time.
85529         * modules/stat-time: New file.
85530         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85531         is now done in a different way, by the stat-time module.
85532         * modules/utimecmp (Depends-on): Add stat-time.
85533
85534 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85535
85536         * m4/st_mtim.m4: Remove.  Superseded by...
85537         * m4/stat-time.m4: New file.
85538         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85539         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85540
85541 2005-09-15  Derek Price  <derek@ximbiot.com>
85542
85543         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85544
85545 2005-09-15  Derek Price  <derek@ximbiot.com>
85546
85547         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85548         * lib/regex_internal.c: Ditto, using this...
85549         (__GNUC_PREREQ): ...new macro.
85550         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85551         using...
85552         (__GNUC_PREREQ): ...this new macro.
85553
85554         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85555
85556 2005-09-15  Derek Price  <derek@ximbiot.com>
85557             Paul Eggert  <eggert@cs.ucla.edu>
85558
85559         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85560         changes, consolidating in...
85561         * lib/regex_internal.h: ...this file.
85562
85563 2005-09-13  Jim Meyering  <jim@meyering.net>
85564
85565         * lib/canon-host.c: Filter through gnu indent and reword comments
85566         slightly.
85567         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85568
85569 2005-09-13  Derek Price  <derek@ximbiot.com>
85570
85571         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85572         failure.
85573         Reported by Jim Meyering  <jim@meyering.net>.
85574
85575 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85576
85577         * lib/base64.c: Typo.
85578         (base64_encode): Put b64str in initialized data section.
85579
85580 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85581
85582         Merge glibc and coreutils changes into gnulib, plus a few
85583         extra fixes.
85584         * lib/md5.c: Use #error rather than a string.
85585         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85586         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85587         (__attribute__): Define to empty for non recent-GCC.
85588         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85589         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85590         Renamed from their non-__ counterparts, with new macros replacing
85591         them if not _LIBC.  Add __THROW attribute.
85592         (rol): Remove.
85593         (struct md5_ctx): Align buffer if using GCC.
85594         * lib/sha1.h (struct sha1_ctx): Likewise.
85595         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85596         The old name was backwards.
85597         (NOTSWAP): Remove; not used.
85598         (rol): New macro, moved here from md5.h.
85599         (sha1_process_block): Remove a FIXME that doesn't make sense.
85600
85601 2005-09-12  Derek Price  <derek@ximbiot.com>
85602
85603         Return usable errors from canon-host.
85604         * lib/canon-host.h: New file.
85605         * lib/canon-host.c (canon_host): Wrap...
85606         (canon_host_r): ...this new function, which now relies exclusively on
85607         getaddrinfo.
85608         (ch_strerror): New function.
85609         (last_cherror): New global.
85610         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85611         interface.
85612         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85613         void *.
85614         (freeaddrinfo): Free ai->ai_canonname when set.
85615
85616 2005-09-12  Derek Price  <derek@ximbiot.com>
85617
85618         Make canon-host require getaddrinfo.
85619         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85620         AC_LIBSOURCE canon-host.h.  Call...
85621         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85622         gl_GETADDRINFO.
85623         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85624
85625 2005-09-12  Derek Price  <derek@ximbiot.com>
85626
85627         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85628         LGPL.
85629         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85630
85631 2005-09-12  Derek Price  <derek@ximbiot.com>
85632
85633         * lib/gai_strerror.c: Include config.h when available.  Include
85634         getaddrinfo.h before other headers to test interface.
85635         Reported by Larry Jones <lawrence.jones@ugs.com>.
85636
85637 2005-09-12  Derek Price  <derek@ximbiot.com>
85638             Paul Eggert  <eggert@cs.ucla.edu>
85639
85640         * modules/glob (Files): Add glob-libc.h.
85641
85642 2005-09-12  Derek Price  <derek@ximbiot.com>
85643             Paul Eggert  <eggert@cs.ucla.edu>
85644
85645         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85646         glob_.h, glob-libc.h.
85647         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85648
85649 2005-09-12  Derek Price  <derek@ximbiot.com>
85650             Paul Eggert  <eggert@cs.ucla.edu>
85651
85652         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85653         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85654         protecting things that should be done only in gnulib contexts.
85655         * lib/glob_.h: New file, containing only the glob things needed for
85656         gnulib.
85657         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85658         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85659         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85660         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85661         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85662         and to respect the namespace rules better.
85663
85664 2005-09-08  Simon Josefsson  <jas@extundo.com>
85665
85666         * modules/socklen: New file.
85667
85668 2005-09-08  Simon Josefsson  <jas@extundo.com>
85669
85670         * m4/socklen.m4: New file.
85671
85672 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85673
85674         * modules/utimens (Files): Add m4/utimbuf.m4, since
85675         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85676         Reported by Sergey Poznyakoff.
85677
85678 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85679
85680         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85681         definitions, since that's the preferred style in glibc.
85682         Fix a minor spacing issue, and update copyright notice to match
85683         glibc's.
85684
85685 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85686
85687         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85688
85689 2005-09-06  Simon Josefsson  <jas@extundo.com>
85690
85691         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85692         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85693
85694 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85695
85696         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85697         warning.
85698
85699 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85700
85701         * config/srclist.txt: Add glibc bug 1302.
85702
85703 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85704
85705         Change bitset word type from unsigned int to unsigned long int,
85706         as this has better performance on typical 64-bit hosts.
85707         Port bitset code to hosts with unusual word sizes.
85708         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85709         (build_collating_symbol):
85710         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85711         argument is a bitset.  This is merely a style issue, but it makes
85712         it clearer that an entire array is expected.
85713         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85714         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85715         Port to the case where bitset_word is not the same as unsigned int.
85716         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85717         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85718         Likewise.
85719         * lib/regexec.c (check_dst_limits_calc_pos_1,
85720         check_subexp_matching_top):
85721         (build_trtable, group_nodes_into_DFAstates):
85722         Likewise.
85723         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85724         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85725         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85726         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85727         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85728         * lib/regcomp.c (optimize_subexps, lower_subexp):
85729         Work even if bitset_word has holes in its bitwise representation.
85730         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85731         * lib/regexec.c (check_dst_limits_calc_pos_1,
85732         check_subexp_matching_top):
85733         Likewise.
85734         * lib/regex_internal.c (re_string_reconstruct):
85735         Don't assume UCHAR_MAX == 255.
85736         * lib/regex_internal.h (bitset_set_all): Likewise.
85737         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85738         All uses changed.
85739         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85740         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85741         All uses changed.
85742         (BITSET_WORD_MAX): New macro.
85743         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85744         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85745         (bitset_empty, bitset_copy):
85746         Prefer sizeof (bitset) to multiplying it out ourselves.
85747         (bitset_not_merge): Remove; unused.
85748         (bitset_contain): Return bool, not unsigned int with one bit on.
85749         All callers changed.
85750         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85751         alignment than re_node_set; do this by defining a new internal
85752         type struct dests_alloc and using it to allocate memory.
85753
85754 2005-09-05  Bruno Haible  <bruno@clisp.org>
85755
85756         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85757         links.
85758
85759 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85760
85761         * modules/size_max (Makefile.am): Add size_max.h
85762
85763 2005-09-04  Derek Price  <derek@ximbiot.com>
85764
85765         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85766
85767 2005-09-03  Simon Josefsson  <jas@extundo.com>
85768
85769         * gnulib-tool: Fix typo.
85770
85771 2005-09-03  Simon Josefsson  <jas@extundo.com>
85772
85773         * config/srclist.txt: Add glibc bug 1293.
85774
85775 2005-09-03  Derek Price  <derek@ximbiot.com>
85776
85777         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85778         From Larry Jones <lawrence.jones@ugs.com>.
85779
85780 2005-09-02  Simon Josefsson  <jas@extundo.com>
85781
85782         * modules/socklen: New file.
85783
85784 2005-09-02  Simon Josefsson  <jas@extundo.com>
85785
85786         * modules/havelib: New module.
85787
85788         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85789         Use havelib.
85790
85791 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85792
85793         Check for arithmetic overflow when calculating sizes, to prevent
85794         some buffer-overflow issues.  These patches are conservative, in the
85795         sense that when I couldn't determine whether an overflow was possible,
85796         I inserted a run-time check.
85797         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
85798         macros.
85799         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
85800         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
85801         (re_xnrealloc, re_x2nrealloc): New inline functions.
85802         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
85803         parse_bracket_exp):
85804         (build_equiv_class, build_charclass): Check for arithmetic overflow
85805         in size expression calculations.
85806         * lib/regex_internal.c (re_string_realloc_buffers):
85807         (build_wcs_upper_buffer, re_node_set_add_intersect):
85808         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
85809         (re_dfa_add_node, register_state): Likewise.
85810         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
85811         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
85812         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
85813         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
85814
85815 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85816
85817         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85818         m4/ulonglong.m4.  Problem reported by Martin Lambers.
85819
85820 2005-09-02  Bruno Haible  <bruno@clisp.org>
85821
85822         Support for lib vs. lib64 distinction on biarch platforms.
85823         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
85824         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
85825         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
85826
85827 2005-09-02  Bruno Haible  <bruno@clisp.org>
85828
85829         * gnulib-tool (import): In the other first-use case, provide defaults
85830         as well.
85831
85832 2005-09-02  Bruno Haible  <bruno@clisp.org>
85833
85834         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
85835         patches not yet found in the latest gettext release.
85836
85837 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85838
85839         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
85840         to avoid a collision with bits/local_lim.h in glibc.
85841         All uses changed.  Problem reported by Dmitry V. Levin in
85842         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
85843
85844         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85845         bugs in int versus size_t comparisons.
85846         (re_string_context_at): Fix bug where the code assumed that
85847         Idx is signed.
85848
85849         Use bool where appropriate.
85850         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85851         All callers changed.
85852         (calc_eclosure_iter): Likewise, for ROOT arg.
85853         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85854         (build_charclass_op): Likewise, for NON_MATCH arg.
85855         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85856         (re_string_construct_common): Likewise, for ICASE arg.
85857         * lib/regexec.c (re_search_2_stub, re_search_stub):
85858         Likewise, for RET_LEN arg.
85859         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85860         (set_regs): Likewise, for FL_BACKTRACK arg.
85861         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85862         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85863         (calc_eclosure_iter, parse_bracket_exp):
85864         Use bool for internal variables that are booleans.
85865         * lib/regexec.c (re_search_internal, check_matching,
85866         proceed_next_node):
85867         (set_regs, build_sifted_states, sift_states_bkref):
85868         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85869         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85870         (find_collation_sequence_value):
85871         Likewise.
85872         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85873         (re_node_set_compare):
85874         Return bool, not int. All callers changed.
85875         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85876         (build_trtable, check_node_accept): Likewise.
85877         * lib/regex_internal.h: Include stdbool.h.
85878
85879         Fix bugs uncovered when converting to bool.
85880         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85881         failure instead of charging ahead blindly.
85882         * lib/regex_internal.c (register_state): Likewise.
85883         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85884         for freeing internal storage.
85885         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85886         bitset pieces used as boolean, to avoid undefined behavior
85887         on hosts that do int overflow checking.
85888
85889 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85890
85891         * config/srclist.txt: Add glibc bugs 1285-1287.
85892
85893 2005-09-01  Jim Meyering  <jim@meyering.net>
85894
85895         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85896         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85897         Require gl_STAT_MACROS, too.
85898
85899 2005-09-01  Bruno Haible  <bruno@clisp.org>
85900
85901         * gnulib-tool (import): In the first-use case, provide defaults.
85902
85903 2005-09-01  Bruno Haible  <bruno@clisp.org>
85904
85905         * gnulib-tool (func_import): Remove the .tmp files.
85906
85907 2005-09-01  Bruno Haible  <bruno@clisp.org>
85908
85909         * gnulib-tool (func_import): Fix handling of symbolic links.
85910
85911 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85912
85913         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85914         old glibc regex code mishandles strings longer than 2**31 bytes.
85915         This patch fixes this when the regex code is used in gnulib
85916         (i.e., outside glibc).
85917
85918         This patch should not affect the use of the regex code inside
85919         glibc.  No doubt this problem also needs to be handled for glibc
85920         as well, but the result will be an incompatible change to the
85921         glibc ABI, and the old ABI will have to be supported too.  That
85922         can be the the subject for another patch.
85923
85924         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85925         governing whether the rest of this patch is active.  By default,
85926         the macro is disabled and the patch has no effect.
85927         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85928         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85929         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85930         (re_match_2, re_set_registers): Use the new types.
85931         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85932         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85933         New macros.
85934         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85935         (re_string_context_at, bin_tree_t, re_dfastate_t):
85936         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85937         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85938         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85939         (re_string_char_size_at, re_string_wchar_at):
85940         (re_string_elem_size_at):
85941         Use the new types and macros to port to 64-bit hosts.
85942         Use unsigned types for internal values, so that the code
85943         mostly works even for arrays larger than SSIZE_MAX.
85944         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85945         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85946         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85947         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85948         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85949         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85950         (calc_inveclosure, parse_dup_op, build_range_exp):
85951         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85952         (fetch_number, create_token_tree, mark_opt_subexp):
85953         Likewise.
85954         * lib/regex_internal.c (re_string_construct_common,
85955         create_ci_newstate):
85956         (create_cd_newstate, re_string_allocate, re_string_construct):
85957         (re_string_realloc_buffers, build_wcs_upper_buffer):
85958         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85959         (re_string_reconstruct, re_string_peek_byte_case):
85960         (re_string_fetch_byte_case, re_string_context_at):
85961         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85962         (re_node_set_init_copy, re_node_set_add_intersect):
85963         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85964         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85965         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85966         (re_acquire_state, re_acquire_state_context, register_state):
85967         Likewise.
85968         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85969         search_cur_bkref_entry):
85970         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85971         (re_search_internal, re_search_2_stub, re_search_stub)
85972         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85973         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85974         (update_cur_sifted_state, check_dst_limits):
85975         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85976         (check_subexp_limits, sift_states_bkref, merge_state_array):
85977         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85978         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85979         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85980         (expand_bkref_cache, check_node_accept_bytes):
85981         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85982         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85983         (acquire_init_state_context, check_halt_node_context):
85984         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85985         (sift_states_backward, clean_state_log_if_needed):
85986         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85987         (find_recover_state, transit_state_sb, transit_state_mb):
85988         (transit_state_bkref, build_trtable, match_ctx_clean):
85989         Likewise.
85990         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85991         to work around an assumption that REG_MISSING is negative.
85992
85993         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85994         (seek_collating_symbol_entry) [defined _LIBC]:
85995         (lookup_collation_sequence_value) [defined _LIBC]:
85996         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85997         Use prototypes rather than old-style function definitions.
85998         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85999         (transit_state_sb) [0]:
86000         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86001
86002         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86003         rm_eo.
86004
86005         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86006         (optimize_subexps, lower_subexp):
86007         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86008         since the signed shift might overflow.  Use 1u<<31 instead.
86009         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86010         Likewise.
86011         * lib/regexec.c (check_dst_limits_calc_pos_1,
86012         check_subexp_matching_top): Likewise.
86013
86014         * lib/regcomp.c (optimize_subexps, lower_subexp):
86015         Use CHAR_BIT rather than 8, for clarity.
86016         * lib/regexec.c (check_dst_limits_calc_pos_1):
86017         (check_subexp_matching_top): Likewise.
86018         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86019         have to worry about portability issues when shifting it left.
86020         Remove no-longer-needed test for table_size > 0.
86021         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86022         in a word, as the resulting behavior is undefined.
86023         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86024         in one case, a <= should have been an <, and in another case the
86025         whole test was missing.
86026         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86027         the standard name CHAR_BIT.
86028         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86029         this is not true on one's complement and signed-magnitude hosts.
86030
86031         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86032         next_last_offset.
86033         (struct re_dfa_t): Remove unused member states_alloc.
86034         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86035
86036 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86037
86038         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86039         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86040         and large-file glibc and in 32-bit large-file Solaris.
86041
86042 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86043
86044         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86045         lengths fit in regoff_t; this isn't true if regoff_t is the same
86046         width as size_t.
86047         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86048         (= START + RANGE) instead of RANGE.  This avoids overflow
86049         problems when regoff_t is the same width as size_t.
86050         All callers changed.
86051         (re_search_2_stub): Check for overflow when adding the
86052         sizes of the two strings.
86053         (re_search_stub): Check for overflow when adding START
86054         to RANGE; if it occurs, substitute the extreme value.
86055
86056 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86057
86058         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86059
86060 2005-08-31  Jim Meyering  <jim@meyering.net>
86061
86062         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86063         a pointer-to-const.
86064         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86065         (register_state): Likewise.
86066         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86067         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86068         (group_nodes_into_DFAstates): Likewise.
86069
86070 2005-08-31  Jim Meyering  <jim@meyering.net>
86071
86072         * check-module: Add a FIXME comment.
86073
86074 2005-08-31  Eric Blake  <ebb9@byu.net>
86075
86076         * modules/unistd-safer (Files): Add unistd--.h.
86077         * modules/stdio-safer (Files): Add stdio--.h.
86078
86079 2005-08-31  Derek Price  <derek@ximbiot.com>
86080
86081         * lib/getdelim.c (getdelim): Return EOF on EOF.
86082         Reported by Larry Jones <lawrence.jones@ugs.com>.
86083
86084 2005-08-31  Bruno Haible  <bruno@clisp.org>
86085
86086         Avoid unnecessary diffs in the generated lib/Makefile.am.
86087         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86088         the generated files.
86089         (func_import): Don't set cmd.
86090
86091 2005-08-31  Bruno Haible  <bruno@clisp.org>
86092
86093         * lib/strstr.c: Include <stddef.h>, for NULL.
86094         * lib/strcasestr.c: Likewise.
86095         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86096
86097 2005-08-31  Bruno Haible  <bruno@clisp.org>
86098
86099         * gnulib-tool: New option --macro-prefix.
86100         (func_import): Use macro_prefix.
86101         (import): Handle option --macro-prefix.
86102
86103 2005-08-31  Bruno Haible  <bruno@clisp.org>
86104
86105         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86106         Also use new variables cached_lgpl, cached_libtool.
86107
86108 2005-08-31  Bruno Haible  <bruno@clisp.org>
86109
86110         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86111         always instantiating them.
86112
86113 2005-08-31  Bruno Haible  <bruno@clisp.org>
86114
86115         * gnulib-tool (func_import): Read the previous cached settings
86116         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86117         earlier added by gnulib but are now dropped. Warn when a gnulib file
86118         overwrites a non-gnulib file.
86119
86120 2005-08-31  Bruno Haible  <bruno@clisp.org>
86121
86122         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86123         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86124         projects that don't keep autogenerated files in CVS. Put into
86125         actioncmd only the specified modules, not the transitive closure.
86126
86127 2005-08-31  Bruno Haible  <bruno@clisp.org>
86128
86129         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86130         Create directories that shall be filled.
86131         (import): Don't look for gl_* macros in configure.ac. Recurse across
86132         all directories containing a gnulib-cache.m4 files, if meaningful.
86133
86134 2005-08-31  Bruno Haible  <bruno@clisp.org>
86135
86136         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86137         (import): Set seen_libtool when we see gl_LIBTOOL.
86138
86139 2005-08-31  Bruno Haible  <bruno@clisp.org>
86140
86141         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86142         declaration macro definitions from generated gnulib.m4.
86143
86144 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86145
86146         * lib/iconvme.h: Add prototype for iconv_alloc.
86147
86148 2005-08-29  Simon Josefsson  <jas@extundo.com>
86149
86150         * lib/iconvme.c: Fix errno.
86151
86152 2005-08-29  Bruno Haible  <bruno@clisp.org>
86153
86154         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86155         that it works when the directory contains spaces.
86156
86157 2005-08-29  Bruno Haible  <bruno@clisp.org>
86158
86159         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86160
86161 2005-08-29  Bruno Haible  <bruno@clisp.org>
86162
86163         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86164         Emit more advice.
86165
86166 2005-08-29  Bruno Haible  <bruno@clisp.org>
86167         and Stepan Kasal  <kasal@ucw.cz>
86168
86169         * check-module: If more parameters are given, check each of them
86170         separately; add more exceptions, as noted by Jim Meyering.
86171         (check_module): New procedure.
86172         (%exempt_header): Now contains all exceptions.
86173
86174 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86175
86176         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86177
86178 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86179
86180         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86181
86182 2005-08-28  Bruno Haible  <bruno@clisp.org>
86183
86184         * m4/gnulib-tool.m4: New file.
86185
86186 2005-08-27  Jim Meyering  <jim@meyering.net>
86187
86188         * modules/unistd-safer (Files): Add pipe-safer.c.
86189         * modules/fcntl-safer (Files): Add creat-safer.c.
86190
86191 2005-08-27  Jim Meyering  <jim@meyering.net>
86192
86193         * m4/stdlib-safer.m4: New file.  From coreutils.
86194         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86195         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86196         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86197         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86198         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86199
86200 2005-08-27  Jim Meyering  <jim@meyering.net>
86201
86202         * lib/fopen-safer.c: Merge minor changes from coreutils.
86203         * lib/dup-safer.c: Likewise.
86204         * lib/fd-safer.c: Likewise.
86205
86206         Merge from coreutils.
86207         * lib/stdio--.h: New file.
86208         * lib/stdlib--.h: New file.
86209         * lib/mkstemp-safer.c: New file.
86210
86211         GNU tar needs these.
86212         * lib/pipe-safer.c: New file.
86213         * lib/creat-safer.c: New file.
86214         * lib/fcntl--.h (creat): Define to creat_safer.
86215         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86216         * lib/unistd--.h (pipe): Define to pipe_safer.
86217         * lib/unistd-safer.h: Declare pipe_safer.
86218
86219 2005-08-26  Simon Josefsson  <jas@extundo.com>
86220
86221         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86222         Haible <bruno@clisp.org>.
86223
86224 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86225
86226         * lib/regex_internal.h: Remove all references to
86227         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86228         or better.
86229         (bitset_not, bitset_merge, bitset_not_merge):
86230         (bitset_mask, re_string_allocate, re_string_construct):
86231         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86232         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86233         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86234         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86235         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86236         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86237         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86238         (re_acquire_state_context):
86239         Remove unnecessary forward decls.
86240         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86241         Put __attribute at function definition,
86242         now that the function decl has been removed.
86243         * lib/regex_internal.c (re_string_peek_byte_case):
86244         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86245         Likewise.
86246
86247 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86248
86249         * m4/regex.m4: Add AC_PREREQ(2.50).
86250         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86251
86252 2005-08-25  Simon Josefsson  <jas@extundo.com>
86253
86254         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86255         __fsetlocking.
86256
86257 2005-08-25  Simon Josefsson  <jas@extundo.com>
86258
86259         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86260         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86261         GLIBC specific code.
86262
86263 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86264
86265         Make regex safe for g++.  This fixes one real bug (an "err"
86266         that should have been "*err").  g++ problem reported by
86267         Sam Steingold.
86268         * lib/regex_internal.h (re_calloc): New macro, consistent with
86269         re_malloc etc.  All callers of calloc changed to use re_calloc.
86270         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86271         not int.  All callers changed.
86272         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86273         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86274         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86275         (find_recover_state): Change "err" to "*err"; this fixes what
86276         appears to be a real bug.
86277         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86278         versus int.
86279
86280 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86281
86282         * modules/regex (Depends-on): Add malloc, since the code
86283         assumes that !malloc(0) means failure.
86284
86285 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86286
86287         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86288
86289         alloca modernization/simplification for regex.
86290         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86291         needs to be at the start of the file, and can be moved into
86292         regex_internal.h and simplified.
86293         * lib/regex_internal.h: Include <alloca.h>.
86294         (__libc_use_alloca) [!defined _LIBC]: New macro.
86295         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86296         now works outside glibc.
86297
86298 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86299
86300         * config/srclist.txt: Add glibc bugs 1241, 1245.
86301
86302 2005-08-25  Jim Meyering  <jim@meyering.net>
86303
86304         * lib/open-safer.c: Include <config.h>.
86305         Otherwise, we'd lose LARGEFILE support in any file using
86306         e.g. "fcntl--.h"
86307
86308 2005-08-25  Bruno Haible  <bruno@clisp.org>
86309
86310         * m4/minmax.m4: Require autoconf 2.52.
86311         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86312         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86313         alternatives of translit over the alphabet.
86314         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86315
86316 2005-08-24  Simon Josefsson  <jas@extundo.com>
86317
86318         * tests/test-getpass.c: New file.
86319
86320 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86321
86322         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86323         for GNU regex features.
86324
86325 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86326
86327         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86328         * lib/regex.h (regerror): Likewise.
86329
86330         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86331         requires this.  (The code never needed it.)
86332
86333         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86334         All uses of recently-renamed identifiers changed to use the new,
86335         POSIX-compliant names.  The code will build and run just fine
86336         without these changes, but it's better to eat our own dog food
86337         and use the standard-conforming names.
86338
86339         * lib/regex.h: Fix a multitude of POSIX name space violations.
86340         These changes have an effect only for programs that define
86341         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86342         do not change anything for programs compiled in the normal way.
86343         Also, there is no effect on the ABI.
86344
86345         (_REGEX_SOURCE): New macro.
86346         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86347         defined and _GNU_SOURCE is not; this fixes a name space violation.
86348
86349         Rename the following macros to obey POSIX requirements.
86350         The old names are still visible as macros if _REGEX_SOURCE is defined.
86351         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86352         RE_BACKSLASH_ESCAPE_IN_LISTS.
86353         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86354         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86355         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86356         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86357         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86358         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86359         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86360         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86361         (REG_INTERVALS): renamed from RE_INTERVALS.
86362         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86363         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86364         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86365         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86366         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86367         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86368         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86369         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86370         RE_UNMATCHED_RIGHT_PAREN_ORD.
86371         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86372         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86373         (REG_DEBUG): renamed from RE_DEBUG.
86374         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86375         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86376         unusual, since we can't clash with the POSIX REG_ICASE.
86377         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86378         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86379         (REG_NO_SUB): renamed from RE_NO_SUB.
86380         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86381         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86382         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86383         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86384         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86385         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86386         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86387         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86388         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86389         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86390         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86391         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86392         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86393         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86394         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86395         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86396         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86397         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86398         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86399         (REG_FIXED): Renamed from REGS_FIXED.
86400         (REG_NREGS): Renamed from RE_NREGS.
86401
86402         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86403         of other REG_* macros, since POSIX says the user is allowed to
86404         #undef these macros selectively.
86405
86406         (reg_errcode_t): Update comment stating what other tables need
86407         to be consistent.
86408
86409         Rename the following enum values to obey POSIX requirements.
86410         The old names are still visible as macros.
86411         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86412         is not defined, since GNU is supposed to be a superset of POSIX as
86413         much as possible, and since we want reg_errcode_t to be a signed
86414         type for implementation consistency.
86415         (_REG_NOERROR): Renamed from REG_NOERROR.
86416         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86417         (_REG_BADPAT): Renamed from REG_BADPAT.
86418         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86419         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86420         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86421         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86422         (_REG_EBRACK): Renamed from REG_EBRACK.
86423         (_REG_EPAREN): Renamed from REG_EPAREN.
86424         (_REG_EBRACE): Renamed from REG_EBRACE.
86425         (_REG_BADBR): Renamed from REG_BADBR.
86426         (_REG_ERANGE): Renamed from REG_ERANGE.
86427         (_REG_ESPACE): Renamed from REG_ESPACE.
86428         (_REG_BADRPT): Renamed from REG_BADRPT.
86429         (_REG_EEND): Renamed from REG_EEND.
86430         (_REG_ESIZE): Renamed from REG_ESIZE.
86431         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86432         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86433         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86434         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86435         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86436
86437         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86438         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86439         changed.  But support the old name if the new one is not defined
86440         and if _REGEX_SOURCE.
86441
86442         Change the following member names in struct re_pattern_buffer.
86443         The old names are still supported if !_REGEX_SOURCE.
86444         The new names are always supported, regardless of _REGEX_SOURCE.
86445         (re_buffer): Renamed from buffer.
86446         (re_allocated): Renamed from allocated.
86447         (re_used): Renamed from used.
86448         (re_syntax): Renamed from syntax.
86449         (re_fastmap): Renamed from fastmap.
86450         (re_translate): Renamed from translate.
86451         (re_can_be_null): Renamed from can_be_null.
86452         (re_regs_allocated): Renamed from regs_allocated.
86453         (re_fastmap_accurate): Renamed from fastmap_accurate.
86454         (re_no_sub): Renamed from no_sub.
86455         (re_not_bol): Renamed from not_bol.
86456         (re_not_eol): Renamed from not_eol.
86457         (re_newline_anchor): Renamed from newline_anchor.
86458
86459         Change the following member names in struct re_registers.
86460         The old names are still supported if !_REGEX_SOURCE.
86461         The new names are always supported, regardless of _REGEX_SOURCE.
86462         (rm_num_regs): Renamed from num_regs.
86463         (rm_start): Renamed from start.
86464         (rm_end): Renamed from end.
86465
86466         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86467         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86468         Prepend __ to parameter names.
86469
86470         Undo yesterday's changes.
86471
86472 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86473
86474         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86475         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86476         lib/regex.c.
86477
86478 2005-08-24  Jim Meyering  <jim@meyering.net>
86479
86480         Sync from coreutils.
86481         * m4/fcntl-safer.m4: New file.
86482
86483         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86484         and object files for this module.
86485
86486 2005-08-24  Jim Meyering  <jim@meyering.net>
86487
86488         Sync from coreutils.
86489         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86490
86491 2005-08-24  Jim Meyering  <jim@meyering.net>
86492
86493         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86494         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86495
86496 2005-08-24  Jim Meyering  <jim@meyering.net>
86497
86498         * modules/fcntl-safer: New module.
86499         * modules/fts (Depends-on): Add fcntl-safer.
86500         * MODULES.html.sh (File descriptor based Input/Output):
86501         Add fcntl-safer.
86502
86503 2005-08-24  Bruno Haible  <bruno@clisp.org>
86504
86505         Support for unit test modules.
86506         * modules/README: Mention tests modules.
86507         * modules/TEMPLATE-TESTS: New file.
86508         * gnulib-tool: New options --extract-tests-module, --with-tests and
86509         --tests-base (unused for the moment).
86510         (testsbase, inctests): New variables.
86511         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86512         (func_verify_module): Exclude TEMPLATE-TESTS.
86513         (func_verify_nontests_module, func_verify_tests_module): New functions.
86514         (func_get_dependencies): Add implicit dependency for tests modules.
86515         (func_get_tests_module): New function.
86516         (func_modules_transitive_closure): When --with-tests was specified,
86517         include the unit tests as well, unless explicitly avoided.
86518         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86519         (func_emit_tests_Makefile_am): New function.
86520         (func_create_testdir): When --with-tests was specified, emit a
86521         tests/ directory.
86522         * MODULES.html.sh (Future developments): Update.
86523
86524 2005-08-24  Bruno Haible  <bruno@clisp.org>
86525
86526         * modules/tls-tests: New file.
86527         * tests/test-tls.c: New file, from GNU gettext.
86528
86529 2005-08-24  Bruno Haible  <bruno@clisp.org>
86530
86531         * modules/lock-tests: New file.
86532         * tests/test-lock.c: New file, from GNU gettext.
86533
86534 2005-08-24  Bruno Haible  <bruno@clisp.org>
86535
86536         * lib/lock.h: Add multiple inclusion guard.
86537         * lib/tls.h: Add multiple inclusion guard.
86538
86539 2005-08-24  Bruno Haible  <bruno@clisp.org>
86540
86541         * gnulib-tool: Add support for the --aux-dir option to
86542         --create-testdir, --create-megatestdir, --test, --megatest.
86543         (func_create_testdir, func_create_megatestdir): Optionally emit a
86544         AC_CONFIG_AUX_DIR directive.
86545         (create-testdir, create-megatestdir, test, megatest): Provide a
86546         default value for $auxdir.
86547
86548 2005-08-24  Bruno Haible  <bruno@clisp.org>
86549
86550         * gnulib-tool (import): Use compound statement instead of subshell
86551         where possible.
86552
86553 2005-08-24  Bruno Haible  <bruno@clisp.org>
86554
86555         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86556
86557 2005-08-24  Bruno Haible  <bruno@clisp.org>
86558
86559         * gnulib-tool (func_version): Update.
86560
86561 2005-08-24  Bruno Haible  <bruno@clisp.org>
86562
86563         * gnulib-tool (func_import, func_create_testdir,
86564         func_create_megatestdir): Quote all autoconf macro arguments.
86565
86566 2005-08-24  Bruno Haible  <bruno@clisp.org>
86567
86568         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86569         option --force, because --force causes the aclocal.m4 of each
86570         subdirectory to be newer than the corresponding config.h.in.
86571
86572 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86573
86574         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86575         All contents moved to gl_REGEX.
86576         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86577         assume that it does.
86578
86579 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86580
86581         * lib/regex.h (REG_NOSYS)
86582         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86583         Define, since POSIX requires it as of 2001.
86584         (_REG_ENOSYS)
86585         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86586         New private symbol, used to keep the enum signed in all cases.
86587         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86588         Youngman in
86589         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86590
86591         * lib/regex_internal.c (re_string_skip_chars, register_state):
86592         (calc_state_hash):
86593         Remove forward decls; no longer needed now that we use prototypes.
86594         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86595         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86596         (clean_state_log_if_needed): Likewise.
86597
86598 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86599
86600         * config/srclist.txt: Add glibc bugs 1231-1233.
86601
86602 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86603
86604         Fix problems reported by Sam Steingold in
86605         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86606         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86607         assumed that reg_errcode_t is a signed type, which is not
86608         necessarily true if _XOPEN_SOURCE is not defined.
86609         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86610         since some compilers warn about it otherwise.
86611
86612 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86613
86614         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86615         (init_word_char, create_initial_state, duplicate_node_closure):
86616         (fetch_token, peek_token_bracket, build_range_exp):
86617         (build_collating_symbol): Remove forward decls; no longer needed
86618         now that we use prototypes.
86619
86620         * lib/regcomp.c:
86621         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86622         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86623         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86624         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86625         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86626         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86627         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86628         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86629         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86630         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86631         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86632         (build_charclass, build_charclass_op, fetch_number, create_tree):
86633         (create_token_tree, mark_opt_subexp, duplicate_tree):
86634         Use prototypes rather than old-style definitions.
86635
86636         * lib/regex_internal.c:
86637         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86638         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86639         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86640         (re_string_reconstruct, re_string_peek_byte_case):
86641         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86642         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86643         (re_node_set_init_copy, re_node_set_add_intersect):
86644         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86645         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86646         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86647         (re_acquire_state, re_acquire_state_context, register_state):
86648         (create_ci_newstate, create_cd_newstate, free_state):
86649         Likewise.
86650         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86651         re_search_2):
86652         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86653         (re_search_internal, prune_impossible_nodes):
86654         (acquire_init_state_context, check_matching, static):
86655         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86656         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86657         (update_regs, sift_states_backward, build_sifted_states):
86658         (clean_state_log_if_needed, merge_state_array):
86659         (update_cur_sifted_state, add_epsilon_src_nodes):
86660         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86661         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86662         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86663         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86664         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86665         (check_arrival, check_arrival_add_next_nodes):
86666         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86667         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86668         (check_node_accept_bytes, check_node_accept, extend_buffers):
86669         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86670         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86671         (sift_ctx_init):
86672         Likewise.
86673
86674         * lib/regex_internal.h:
86675         (re_string_allocate, re_string_construct, re_string_reconstruct):
86676         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86677         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86678         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86679         (re_string_context_at, re_string_peek_byte_case):
86680         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86681         is defined, since we now use prototypes always.
86682
86683         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86684         C89 or better.  All uses removed.
86685
86686 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86687
86688         * config/srclist.txt: Add glibc bugs 1220-1227.
86689
86690 2005-08-20  Jim Meyering  <jim@meyering.net>
86691
86692         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86693         of unused local, dfa.
86694
86695 2005-08-20  Bruno Haible  <bruno@clisp.org>
86696
86697         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86698
86699 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86700
86701         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86702         (re_node_set_insert_last, re_dfa_add_node):
86703         Rename local variables to avoid GCC shadowing warnings.
86704
86705 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86706
86707         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86708         [defined lint]: Suppress bogus uninitialized-variable warnings.
86709
86710         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86711         and let the caller return REG_ESPACE if out of space.  This
86712         removes an uninitialied-variable warning with GCC 4.0.1, and also
86713         avoids taking the address of a local variable.  All callers
86714         changed.
86715
86716 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86717
86718         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86719         $LIBCSRC/posix/regexec.c.
86720         Add glibc bug 1217 for regcomp.c.
86721
86722 2005-08-19  Jim Meyering  <jim@meyering.net>
86723
86724         * lib/regexec.c (proceed_next_node): Redo local variables to
86725         avoid GCC shadowing warnings.
86726
86727 2005-08-18  Bruno Haible  <bruno@clisp.org>
86728
86729         * lib/strstr.c (strstr): Fix return value in multibyte case.
86730         * lib/strcasestr.c (strcasestr): Likewise.
86731
86732 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86733
86734         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86735
86736 2005-08-17  Jim Meyering  <jim@meyering.net>
86737
86738         Make the %s format (seconds since the epoch) work for a negative
86739         number and when used with a zero-padded field width, e.g. %015s.
86740
86741         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86742         label so that it precedes the code to set `digits'.  Otherwise,
86743         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86744         print `00-22'.  Now, it prints `-0022', as it should.
86745
86746 2005-08-17  Bruno Haible  <bruno@clisp.org>
86747
86748         * modules/strstr (Files): Add m4/mbrtowc.m4.
86749         (Depends-on): Add mbuiter.
86750
86751 2005-08-17  Bruno Haible  <bruno@clisp.org>
86752
86753         * modules/strcasestr: New file.
86754         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86755         strcasestr.
86756
86757 2005-08-17  Bruno Haible  <bruno@clisp.org>
86758
86759         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86760
86761 2005-08-17  Bruno Haible  <bruno@clisp.org>
86762
86763         * modules/mbuiter: New file.
86764         * MODULES.html.sh (Extended multibyte and wide character utilities):
86765         Add mbuiter.
86766
86767 2005-08-17  Bruno Haible  <bruno@clisp.org>
86768
86769         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86770         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86771
86772 2005-08-17  Bruno Haible  <bruno@clisp.org>
86773
86774         * m4/strcasestr.m4: New file.
86775
86776 2005-08-17  Bruno Haible  <bruno@clisp.org>
86777
86778         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86779         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86780
86781 2005-08-17  Bruno Haible  <bruno@clisp.org>
86782
86783         * lib/strcasestr.h: New file.
86784         * lib/strcasestr.c: New file.
86785
86786 2005-08-17  Bruno Haible  <bruno@clisp.org>
86787
86788         * lib/strcasecmp.c: Use mbuiter.h.
86789
86790 2005-08-17  Bruno Haible  <bruno@clisp.org>
86791
86792         * lib/mbuiter.h: New file.
86793
86794 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86795
86796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
86797         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
86798         and gl_GETOPT are both invoked via different paths (as happens
86799         with GNU tar CVS because it uses both argp and getopt), the former
86800         wins.
86801
86802 2005-08-16  Bruno Haible  <bruno@clisp.org>
86803
86804         * modules/tls: New file.
86805         * MODULES.html.sh (Multithreading): Add tls.
86806
86807 2005-08-16  Bruno Haible  <bruno@clisp.org>
86808
86809         * modules/strnlen1: New file.
86810         * MODULES.html.sh (String handling): Add strnlen1.
86811
86812 2005-08-16  Bruno Haible  <bruno@clisp.org>
86813
86814         * modules/strcase (Files): Add m4/mbrtowc.m4.
86815         (Depends-on): Add strnlen1, mbchar.
86816
86817 2005-08-16  Bruno Haible  <bruno@clisp.org>
86818
86819         * modules/mbiter: New file.
86820         * MODULES.html.sh (Extended multibyte and wide character utilities):
86821         Add mbiter.
86822
86823 2005-08-16  Bruno Haible  <bruno@clisp.org>
86824
86825         * modules/mbfile: New file.
86826         * MODULES.html.sh (Extended multibyte and wide character utilities):
86827         Add mbfile.
86828
86829 2005-08-16  Bruno Haible  <bruno@clisp.org>
86830
86831         * modules/mbchar: New file.
86832         * MODULES.html.sh (Extended multibyte and wide character utilities):
86833         New section.
86834
86835 2005-08-16  Bruno Haible  <bruno@clisp.org>
86836
86837         * m4/tls.m4: New file, from GNU gettext.
86838
86839 2005-08-16  Bruno Haible  <bruno@clisp.org>
86840
86841         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
86842         always.
86843         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86844
86845 2005-08-16  Bruno Haible  <bruno@clisp.org>
86846
86847         * m4/mbiter.m4: New file.
86848
86849 2005-08-16  Bruno Haible  <bruno@clisp.org>
86850
86851         * m4/mbfile.m4: New file.
86852
86853 2005-08-16  Bruno Haible  <bruno@clisp.org>
86854
86855         * m4/mbchar.m4: New file.
86856
86857 2005-08-16  Bruno Haible  <bruno@clisp.org>
86858
86859         * lib/tls.h: New file, from GNU gettext.
86860         * lib/tls.c: New file, from GNU gettext.
86861
86862 2005-08-16  Bruno Haible  <bruno@clisp.org>
86863
86864         * lib/strnlen1.h: New file.
86865         * lib/strnlen1.c: New file.
86866
86867 2005-08-16  Bruno Haible  <bruno@clisp.org>
86868
86869         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86870         (mbi_init): Update.
86871         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86872         NUL byte, not after it.
86873
86874 2005-08-16  Bruno Haible  <bruno@clisp.org>
86875
86876         * lib/strcase.h (strcasecmp): Add note in comments.
86877         * lib/strncasecmp.c: Use code from strcasecmp.c.
86878         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86879         (strcasecmp): Work correctly in multibyte locales.
86880
86881 2005-08-16  Bruno Haible  <bruno@clisp.org>
86882
86883         * lib/mbiter.h: New file.
86884
86885 2005-08-16  Bruno Haible  <bruno@clisp.org>
86886
86887         * lib/mbfile.h: New file.
86888
86889 2005-08-16  Bruno Haible  <bruno@clisp.org>
86890
86891         * lib/mbchar.h: New file.
86892         * lib/mbchar.c: New file.
86893
86894 2005-08-16  Bruno Haible  <bruno@clisp.org>
86895
86896         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86897         the valid ones. Makes the comparison operations transitive:
86898         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86899         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86900
86901 2005-08-15  Simon Josefsson  <jas@extundo.com>
86902
86903         * modules/ssize_t (License): Change to 'unlimited'.
86904
86905         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86906
86907 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86908
86909         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86910         Add comments for each pending glibc patch.
86911
86912 2005-08-15  Bruno Haible  <bruno@clisp.org>
86913
86914         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86915         __cplusplus is defined.
86916
86917 2005-08-14  Jim Meyering  <jim@meyering.net>
86918
86919         Sync from coreutils.
86920
86921         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86922         Use the hash-table-based cycle-detection code not just when
86923         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86924         Reported by James Youngman in
86925         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86926         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86927         FTS_TIGHT_CYCLE_CHECK.
86928         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86929         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86930         once again.
86931         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86932         * lib/fts.c (fd_safer): Remove decl.
86933         Include fcntl--.h rather than unistd-safer.h
86934         (fts_safe_changedir): Don't call fd_safer; no longer needed
86935         now that we include fcntl--.h.
86936
86937 2005-08-12  Simon Josefsson  <jas@extundo.com>
86938
86939         * modules/getndelim2: Use ssize_t module.
86940         * modules/getnline: Likewise.
86941         * modules/safe-read: Likewise.
86942         * modules/xreadlink: Likewise.
86943
86944         * modules/ssize_t: New file.
86945
86946 2005-08-12  Simon Josefsson  <jas@extundo.com>
86947
86948         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86949
86950 2005-08-12  Simon Josefsson  <jas@extundo.com>
86951
86952         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86953         ssize_t.
86954
86955 2005-08-12  Simon Josefsson  <jas@extundo.com>
86956
86957         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86958         readline, getdelim and check_version.
86959         (Support for systems lacking ISO C 99: Sizes of integer types):
86960         Add size_max.
86961
86962 2005-08-12  Bruno Haible  <bruno@clisp.org>
86963
86964         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86965
86966 2005-08-11  Simon Josefsson  <jas@extundo.com>
86967
86968         * modules/readline: New file.
86969
86970         * modules/strnlen (Files): Add strnlen.h.
86971
86972 2005-08-11  Simon Josefsson  <jas@extundo.com>
86973
86974         * m4/readline.m4: New file.
86975
86976 2005-08-11  Simon Josefsson  <jas@extundo.com>
86977
86978         * lib/readline.h, readline.c: New file.
86979
86980 2005-08-11  Simon Josefsson  <jas@extundo.com>
86981
86982         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86983         gl_AVOID.
86984
86985 2005-08-11  Bruno Haible  <bruno@clisp.org>
86986
86987         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86988
86989 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86990
86991         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86992
86993 2005-08-10  Simon Josefsson  <jas@extundo.com>
86994
86995         * tests/test-iconvme.c: New file.
86996
86997 2005-08-10  Simon Josefsson  <jas@extundo.com>
86998
86999         * m4/strnlen.m4: New file.
87000
87001         * m4/strndup.m4: Don't check for strnlen declaration, done in
87002         strnlen.m4.
87003
87004 2005-08-10  Simon Josefsson  <jas@extundo.com>
87005
87006         * lib/strndup.c: Use strnlen.h.
87007
87008         * lib/strnlen.h: New file.
87009
87010 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87011
87012         * README: Typos.
87013
87014 2005-08-02  Simon Josefsson  <jas@extundo.com>
87015
87016         * modules/readline: New file.
87017
87018 2005-08-02  Simon Josefsson  <jas@extundo.com>
87019
87020         * modules/getdelim: New file.
87021
87022         * modules/getline: Rewrite, don't use getndelim2.
87023
87024 2005-08-02  Simon Josefsson  <jas@extundo.com>
87025
87026         * m4/getline.m4: Separate out getdelim stuff into separate module.
87027
87028         * m4/getdelim.m4: New file.
87029
87030 2005-08-02  Simon Josefsson  <jas@extundo.com>
87031
87032         * lib/getline.h, getline.c: Rewrite.
87033
87034         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87035
87036 2005-07-31  Bruno Haible  <bruno@clisp.org>
87037
87038         * lib/lock.h (gl_lock_initializer): New macro.
87039         (gl_lock_define_initialized): Use it.
87040         (gl_rwlock_initializer): New macro.
87041         (gl_rwlock_define_initialized): Use it.
87042         (gl_recursive_lock_initializer): New macro.
87043         (gl_recursive_lock_define_initialized): Use it.
87044
87045 2005-07-30  Karl Berry  <karl@gnu.org>
87046
87047         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87048         Report from Ben Pfaff, regarding getopt.
87049
87050 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87051
87052         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87053         normal way.
87054         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87055         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87056         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87057         (gl_GETOPT): Use the new macros.  Most of the implementation
87058         is moved to the new macros.  This is for programs like Emacs
87059         that don't want all the functionality of gl_GETOPT.
87060
87061 2005-07-26  Bruno Haible  <bruno@clisp.org>
87062
87063         * m4/lock.m4: Update from GNU gettext.
87064
87065 2005-07-26  Bruno Haible  <bruno@clisp.org>
87066
87067         * lib/lock.h: Update from GNU gettext.
87068         * lib/lock.c: Update from GNU gettext.
87069
87070 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87071
87072         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87073         obsolescent AC_TRY_RUN.  Include the default includes files, for
87074         'exit'.
87075
87076 2005-07-24  Bruno Haible  <bruno@clisp.org>
87077
87078         * modules/visibility: New file.
87079         * MODULES.html.sh (Misc): Add visibility.
87080
87081 2005-07-24  Bruno Haible  <bruno@clisp.org>
87082
87083         * m4/visibility.m4: New file.
87084
87085 2005-07-24  Bruno Haible  <bruno@clisp.org>
87086
87087         * doc/visibility.texi: New file.
87088
87089 2005-07-22  Bruno Haible  <bruno@clisp.org>
87090
87091         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87092         $(ALLOCA_H), redundant through BUILT_SOURCES.
87093         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87094         redundant through BUILT_SOURCES.
87095         * modules/byteswap (Makefile.am): Remove explicit dependency on
87096         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87097         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87098         $(FNMATCH_H), redundant through BUILT_SOURCES.
87099         * modules/getopt (Makefile.am): Remove explicit dependency on
87100         $(GETOPT_H), redundant through BUILT_SOURCES.
87101         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87102         redundant through BUILT_SOURCES.
87103         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87104         redundant through BUILT_SOURCES.
87105         * modules/stdbool (Makefile.am): Remove explicit dependency on
87106         $(STDBOOL_H), redundant through BUILT_SOURCES.
87107         * modules/stdint (Makefile.am): Remove explicit dependency on
87108         $(STDINT_H), redundant through BUILT_SOURCES.
87109         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87110         Remove explicit dependency on $(SYSEXITS_H).
87111         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87112
87113 2005-07-18  Simon Josefsson  <jas@extundo.com>
87114
87115         * lib/check-version.c (check_version): Accept identical versions too.
87116
87117 2005-07-18  Bruno Haible  <bruno@clisp.org>
87118
87119         * modules/lock: New file.
87120         * MODULES.html.sh (Multithreading): New section.
87121
87122 2005-07-18  Bruno Haible  <bruno@clisp.org>
87123
87124         * m4/lock.m4: New file, from GNU gettext.
87125
87126 2005-07-18  Bruno Haible  <bruno@clisp.org>
87127
87128         * lib/lock.h: New file, from GNU gettext.
87129         * lib/lock.c: New file, from GNU gettext.
87130
87131 2005-07-18  Bruno Haible  <bruno@clisp.org>
87132
87133         * lib/lock.h (gl_once_t): New type.
87134         (gl_once_define, gl_once): New macros.
87135         * lib/lock.c (fresh_once): New variable.
87136         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87137         functions.
87138
87139 2005-07-16  Simon Josefsson  <jas@extundo.com>
87140
87141         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87142         workaround, suggested by Bruno.
87143
87144 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87145
87146         * modules/xalloc (Depends-on): Add xalloc-die.
87147         * modules/xvasprintf (Depends-on): Add xalloc-die.
87148
87149 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87150
87151         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87152         with a minor change.
87153
87154 2005-07-15  Bruno Haible  <bruno@clisp.org>
87155
87156         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87157         When using lib/poll.c, define poll as rpl_poll.
87158
87159 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87160
87161         * modules/argp (Depends-on): Remove unlocked-io.
87162
87163 2005-07-14  Derek Price  <derek@ximbiot.com>
87164
87165         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87166         for glob symlink bug.
87167
87168 2005-07-14  Bruno Haible  <bruno@clisp.org>
87169
87170         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87171         Instead, test for *_unlocked function declarations directly.
87172
87173 2005-07-11  Simon Josefsson  <jas@extundo.com>
87174
87175         * modules/size_max: New file.
87176
87177         * modules/xsize: Depend on size_max module for size_max.m4.
87178
87179 2005-07-11  Simon Josefsson  <jas@extundo.com>
87180
87181         * lib/size_max.h: New file.
87182
87183 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87184
87185         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87186         copyright symbol and the year.
87187         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87188         (version_etc_va): Use parameterized copyright notice.
87189         Reword to conform to the current GNU coding standards.
87190
87191 2005-07-11  Karl Berry  <karl@gnu.org>
87192
87193         * doc/gnulib.texi (Quoting): new node.
87194         (Initial import): more info, from Patrice.
87195
87196 2005-07-11  Bruno Haible  <bruno@clisp.org>
87197
87198         * gnulib-tool (func_usage): Document option --avoid.
87199         (Command line options): Handle --avoid.
87200         (func_acceptable): New function.
87201         (func_modules_transitive_closure): Use it.
87202
87203 2005-07-11  Bruno Haible  <bruno@clisp.org>
87204
87205         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87206         Reported by Jim Meyering.
87207
87208 2005-07-10  Bruno Haible  <bruno@clisp.org>
87209
87210         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87211         Needed when size_t is smaller than 'unsigned int'.
87212         Reported by Paul Eggert.
87213
87214 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87215
87216         * modules/argp (Depends-on): Add unlocked-io
87217
87218 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87219
87220         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87221         block of defines.
87222
87223 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87224
87225         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87226         fix now.
87227
87228 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87229         and Paul Eggert  <eggert@cs.ucla.edu>
87230
87231         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87232         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87233
87234 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87235
87236         * modules/regex (Files): Add lib/regex_internal.c,
87237         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87238         (Depends-on): Add extensions.
87239         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87240
87241 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87242
87243         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87244         pathconf.
87245         * m4/same.m4 (gl_SAME): Likewise.
87246         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87247
87248         * m4/regex.m4: Adjust to new libc regex implementation.
87249         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87250         all the .c and .h parts of (the new) regex.
87251         Quote the m4 stuff better.
87252         Check for RE_ICASE bug of old gnulib.
87253         Check for REG_STARTEND of recent libc.
87254         Rename local variables from jm_* to gl_*.
87255         Quote operand of "test -f".
87256         Say "recent enough" version of libc, not "version 2".
87257         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87258         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87259         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87260         Remove check for btowc, isascii.
87261         Require AM_LANGINFO_CODESET.
87262
87263 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87264
87265         * lib/regex.c, regex.h: Sync from libc.
87266         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87267         * lib/regexec.c:
87268         New files, synced from libc, except that regex_internal.h
87269         currently has a small porting fix.
87270
87271 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87272
87273         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87274         regex_internal.c, regexec.c.
87275         Add regex_internal.h too, but as a comment, since the libc version
87276         is currently broken in gnulib mode.
87277
87278 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87279
87280         Support programs like Emacs that use gnulib but not gettext.
87281         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87282         * modules/gettext-h: New file.
87283         * modules/gettext (Files): Remove lib/gettext.h.
87284         (Depends-on): Add gettext-h.
87285         (Makefile.am): Remove lib_SOURCES.
87286         * modules/argmatch, modules/c-stack, modules/closeout:
87287         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87288         * modules/execute, modules/file-type, modules/getaddrinfo:
87289         * modules/getopt, modules/human, modules/javacomp:
87290         * modules/javaexec, modules/mkdir-p, modules/obstack:
87291         * modules/openat, modules/pagealign_alloc, modules/pipe:
87292         * modules/quotearg, modules/regex, modules/rpmatch:
87293         * modules/unicodeio, modules/userspec, modules/version-etc:
87294         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87295         * modules/xsetenv:
87296         Depend on gettext-h, not gettext.
87297
87298 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87299
87300         * gnulib-tool (func_import): Add support for 'public domain' license.
87301         * modules/alloca, modules/atexit, modules/memmove:
87302         Now public domain, not GPL.
87303         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87304         * modules/realloc, modules/strerror, modules/strtod:
87305         Now LGPL, not GPL.
87306
87307 2005-07-05  Bruno Haible  <bruno@clisp.org>
87308
87309         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87310         autoconf CVS. Needed for mingw.
87311
87312 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87313
87314         Remove the dependency of the strftime module on the tzset module.
87315         * modules/strftime (Depends-on): Remove dependency on tzset.
87316
87317 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87318
87319         Remove the dependency of the strftime module on the tzset module.
87320         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87321         gl_FUNC_TZSET_CLOBBER.
87322
87323 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87324
87325         Remove the dependency of the strftime module on the tzset module.
87326         * lib/strftime.c (my_strftime)
87327         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87328         Copy the input structure, to work around some of the bug with
87329         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87330         Solaris releases, you should also use the tzset module, but we won't
87331         require it as a dependency any more since we don't want LGPLed code
87332         to depend on GPLed code.
87333
87334 2005-07-02  Jim Meyering  <jim@meyering.net>
87335
87336         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87337         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87338         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87339         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87340
87341 2005-07-02  Jim Meyering  <jim@meyering.net>
87342
87343         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87344
87345 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87346
87347         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87348         declares only 'struct timespec;' (!).
87349
87350 2005-07-01  Jim Meyering  <jim@meyering.net>
87351
87352         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87353         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87354         * lib/save-cwd.c, tempname.c:
87355         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87356         and don't include <sys/file.h>).
87357
87358 2005-06-29  Jim Meyering  <jim@meyering.net>
87359
87360         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87361         type name.  Use the variable name instead.
87362         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87363         Likewise.
87364
87365 2005-06-28  Simon Josefsson  <jas@extundo.com>
87366
87367         * modules/check-version (Files): Add check-version.m4.
87368
87369 2005-06-28  Simon Josefsson  <jas@extundo.com>
87370
87371         * m4/check-version.m4: New file, suggested by Jim Meyering
87372         <jim@meyering.net>.
87373
87374 2005-06-28  Simon Josefsson  <jas@extundo.com>
87375
87376         * lib/check-version.h, lib/check-version.c: New files.
87377
87378 2005-06-28  Simon Josefsson  <jas@extundo.com>
87379
87380         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87381         collision with global variable.  Better indentation.  Don't
87382         increment buffer pointer beyond buffer end.  Based on comments
87383         from Paul Eggert <eggert@cs.ucla.edu>.
87384
87385         * lib/base64.h: Indent.
87386
87387 2005-06-28  Simon Josefsson  <jas@extundo.com>
87388
87389         * doc/gnulib.texi (Library version handling): New section.
87390
87391 2005-06-28  Jim Meyering  <jim@meyering.net>
87392
87393         * check-module (find_included_lib_files): Hard-code another
87394         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87395         but modules/fts-lgpl (correctly) does not list those files.
87396
87397         * modules/canonicalize (Files): Add lib/pathmax.h.
87398
87399 2005-06-25  Simon Josefsson  <jas@extundo.com>
87400
87401         * modules/check-version: New file.
87402
87403 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87404
87405         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87406         initializer of struct addrinfo, as an indication that we don't
87407         care how many members the structure has.
87408
87409 2005-06-24  Derek Price  <derek@ximbiot.com>
87410         and Bruno Haible  <bruno@clisp.org>
87411
87412         Remove stat module & update lstat.
87413         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87414         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87415         * m4/stat.m4: Remove this file.
87416
87417 2005-06-24  Derek Price  <derek@ximbiot.com>
87418         and Bruno Haible  <bruno@clisp.org>
87419
87420         Remove stat module & update lstat.
87421         * lib/stat.c: Remove this file...
87422         (slash_aware_lstat): ...moving this content and its support...
87423         * lib/lstat.c (rpl_lstat): ...into here.
87424         * lib/lstat.h: New file.
87425
87426 2005-06-24  Derek Price  <derek@ximbiot.com>
87427         and Bruno Haible  <bruno@clisp.org>
87428
87429         Remove stat module & update lstat.
87430         * config/srclist.txt (libc sources): Remove stat.
87431
87432 2005-06-24  Derek Price  <derek@ximbiot.com>
87433         and Bruno Haible  <bruno@clisp.org>
87434
87435         Remove stat module & update lstat.
87436         * MODULES.html.sh (stat): Remove.
87437         * MODULES.html: Regenerated.
87438         * modules/lstat (Description): Correct function name.
87439         (Files): Add "lstat.h".
87440         (Depends-on): Remove stat, add xalloc, stat-macros.
87441         * modules/stat: Remove this file.
87442         (Include): Add "lstat.h", remove <sys/stat.h>.
87443
87444 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87445
87446         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87447         (ranged_convert): Don't save conversion in a temporary struct.
87448         This causes a warning with GCC 4.0.0, and anyway in the typical
87449         case it's not worth the extra 100 bytes or so of code.
87450         (ranged_convert, __mktime_internal): When calling a function via a
87451         pointer P, use P () rather than (*P) (), as we now assume C89 or
87452         better.
87453
87454 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87455
87456         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87457         "who -r" failed to give output.  Problem reported by Tim Waugh.
87458
87459         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87460         (xcalloc): Use it to avoid needless tests.
87461         Problem reported by Jim Meyering.
87462
87463 2005-06-20  Derek Price  <derek@ximbiot.com>
87464
87465         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87466         unnecessary for Autoconfs > 2.59c.
87467
87468 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87469
87470         * lib/argp.h (__option_is_short): Check upper limit of
87471         __key. Isprint() requires its argument to have the value
87472         of an unsigned char or EOF.
87473
87474 2005-06-16  Jim Meyering  <jim@meyering.net>
87475
87476         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87477         when either N or S is zero.
87478
87479 2005-06-16  Derek Price  <derek@ximbiot.com>
87480
87481         * m4/bison.m4: Declare YACC & YFLAGS precious.
87482
87483 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87484
87485         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87486         multibyte string or pattern, fall back on unibyte matching.
87487         Problem reported by James Youngman.
87488
87489 2005-06-08  Bruno Haible  <bruno@clisp.org>
87490
87491         * modules/csharpcomp: New file.
87492         * MODULES.html.sh (C#): Add csharpcomp.
87493
87494 2005-06-08  Bruno Haible  <bruno@clisp.org>
87495
87496         * m4/csharpcomp.m4: New file, from GNU gettext.
87497
87498 2005-06-08  Bruno Haible  <bruno@clisp.org>
87499
87500         * lib/csharpcomp.h: New file, from GNU gettext.
87501         * lib/csharpcomp.c: New file, from GNU gettext.
87502         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87503
87504 2005-06-08  Bruno Haible  <bruno@clisp.org>
87505
87506         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87507         warning on mingw.
87508
87509 2005-06-07  Derek Price  <derek@ximbiot.com>
87510
87511         Sync from CVS.
87512         * lib/glob_.h: Indent nested #ifdef.
87513
87514 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87515
87516         Sync from coreutils.
87517         Use "file name" when talking about file names, instead of "filename"
87518         or "path", as per the GNU coding standards.
87519         * lib/mkdir-p.c: Renamed from makepath.c.
87520         (make_dir_parents): Renamed from make_path.  All callers changed.
87521         * lib/mkdir-p.h: Likewise.  All includers changed.
87522         * lib/filenamecat.c: Renamed from path-concat.c.
87523         (file_name_concat): Renamed from path_concat.  All callers changed.
87524         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87525         * lib/filenamecat.h: Likewise.  All includers changed.
87526         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87527         in comments or local variable names.
87528         * lib/basename.c: Likewise.
87529         * lib/canonicalize.c, canonicalize.h: Likewise.
87530         * lib/dirname.c, dirname.h: Likewise.
87531         * lib/euidaccess.c: Likewise.
87532         * lib/exclude.c: Likewise
87533         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87534         * lib/fsusage.c, fsuage.h: Likewise.
87535         * lib/fts.c, fts_.h: Likewise.
87536         * lib/getcwd.c: Likewise.
87537         * lib/getloadavg.c: Likewise.
87538         * lib/mkstemp.c: Likewise.
87539         * lib/mountlist.c, mountlist.h: Likewise.
87540         * lib/openat.c, openat.h: Likewise.
87541         * lib/readlink-stub.c: Likewise.
87542         * lib/readutmp.c, readutmp.h: Likewise.
87543         * lib/rename.c: Likewise.
87544         * lib/rmdir.c: Likewise.
87545         * lib/same.c: Likewise.
87546         * lib/savedir.c: Likewise.
87547         * lib/stripslash.c: Likewise.
87548         * lib/tempname.c: Likewise.
87549         * lib/xreadlink.c: Likewise.
87550         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87551         All uses changed.
87552         * lib/exclude.h: Likewise.
87553
87554         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87555         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87556         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87557         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87558         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87559         files have been getting away with it for years (MORE/BSD 4.3
87560         is extinct now).
87561         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87562         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87563
87564         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87565         Define to 256, not 255, as per modern POSIX.
87566
87567 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87568
87569         Sync from coreutils.
87570         Use "file name" when talking about file names, instead of "filename"
87571         or "path", as per the GNU coding standards.
87572         * MODULES.html.sh: mkdir-p renamed from makepath.
87573         filenamecat renamed from path-concat.
87574         * modules/filenamecat: Renamed from modules/path-concat.
87575         (Files): filenamecat.h and filenamecat.c renamed from
87576         path-concat.h and path-concat.c.
87577         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87578         (Include): filenamecat.h, not path-concat.h.
87579         * modules/mkdir-p: Renamed from modules/makepath.
87580         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87581         makepath.c.
87582         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87583         (Include): mkdir-p.h, not makepath.h.
87584
87585 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87586
87587         Sync from coreutils.
87588         * m4/mkdir-p.m4: Renamed from makepath.m4.
87589         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87590         Rename files from makepath.c to mkdir-p.c, and from
87591         makepath.h to mkdir-p.h.
87592         * m4/filenamecat.m4: Renamed from path-concat.m4.
87593         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87594         Rename files from path-concat.c to filenamecat.c,
87595         and from path-concat.h to filenamecat.h.
87596         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87597         "file name" in local variables or comments.
87598         * m4/rename.m4: Likewise.
87599
87600 2005-06-01  Bruno Haible  <bruno@clisp.org>
87601
87602         * modules/csharpexec: New file.
87603         * MODULES.html.sh (C#): New section.
87604
87605 2005-06-01  Bruno Haible  <bruno@clisp.org>
87606
87607         * m4/csharp.m4: New file, from GNU gettext.
87608         * m4/csharpexec.m4: New file, from GNU gettext.
87609
87610 2005-06-01  Bruno Haible  <bruno@clisp.org>
87611
87612         * lib/csharpexec.h: New file, from GNU gettext.
87613         * lib/csharpexec.c: New file, from GNU gettext.
87614         * lib/csharpexec.sh.in: New file, from GNU gettext.
87615
87616 2005-05-31  Derek Price  <derek@ximbiot.com>
87617             Paul Eggert  <eggert@cs.ucla.edu>
87618
87619         Sync from cvs.
87620         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87621
87622 2005-05-31  Derek Price  <derek@ximbiot.com>
87623             Paul Eggert  <eggert@cs.ucla.edu>
87624
87625         Sync from cvs.
87626         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87627
87628 2005-05-29  Derek Price  <derek@ximbiot.com>
87629
87630         * config/srclist.txt (glob_.h, glob.c): Add these files.
87631
87632 2005-05-29  Derek Price  <derek@ximbiot.com>
87633
87634         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87635         * modules/glob: New file.
87636         * modules/getlogin_r: Add link to POSIX spec in description.
87637
87638 2005-05-29  Derek Price  <derek@ximbiot.com>
87639             Paul Eggert  <eggert@cs.ucla.edu>
87640
87641         * m4/glob.m4: New file.
87642
87643 2005-05-29  Derek Price  <derek@ximbiot.com>
87644             Paul Eggert  <eggert@cs.ucla.edu>
87645
87646         * lib/glob_.h, lib/glob.c: New files.
87647
87648 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87649
87650         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87651         * modules/fts-lgpl (Depends-on): Remove gettext.
87652
87653 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87654
87655         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87656         and don't require gt_INTTYPES_PRI.
87657
87658 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87659
87660         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87661
87662         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87663         the configuration hassle isn't worth it.
87664         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87665         (LONGEST_MODIFIER, PRIuMAX): Remove.
87666
87667 2005-05-27  Bruno Haible  <bruno@clisp.org>
87668
87669         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87670
87671 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87672
87673         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87674         _POSIX_PTHREAD_SEMANTICS for Solaris.
87675
87676 2005-05-25  Derek Price  <derek@ximbiot.com>
87677
87678         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87679
87680 2005-05-25  Derek Price  <derek@ximbiot.com>
87681             Paul Eggert  <eggert@cs.ucla.edu>
87682
87683         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87684         * lib/getlogin_r.c, getlogin_r.h: New files.
87685
87686 2005-05-25  Bruno Haible  <bruno@clisp.org>
87687             Derek Price  <derek@ximbiot.com>
87688
87689         * lib/getlogin_r.h: Simplify API documentation.
87690
87691 2005-05-23  Derek Price  <derek@ximbiot.com>
87692
87693         * modules/minmax (Files): Add m4/minmax.m4.
87694         (configure.ac): Add gl_MINMAX.
87695
87696 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87697
87698         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87699         so that unistd-safer.h (GPL'ed code) need not be included.
87700
87701 2005-05-22  Bruno Haible  <bruno@clisp.org>
87702
87703         * m4/minmax.m4: New file.
87704         Based on a patch by Derek Price <derek@ximbiot.com>.
87705
87706 2005-05-22  Bruno Haible  <bruno@clisp.org>
87707
87708         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87709         (INT64_MIN): Fix definition.
87710         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87711
87712         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87713         NEED_SIGNED_INT_TYPES.
87714
87715         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87716         HAVE_SYSTEM_INTTYPES.
87717
87718 2005-05-22  Bruno Haible  <bruno@clisp.org>
87719
87720         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87721         Also include <sys/param.h> if it defines MIN, MAX.
87722         Based on a patch by Derek Price <derek@ximbiot.com>.
87723
87724 2005-05-21  Jim Meyering  <jim@meyering.net>
87725
87726         * modules/fts (Files): Add m4/inttypes-pri.m4.
87727         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87728
87729 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87730
87731         New fts module.
87732         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87733         (setup_dir, free_dir): New functions.
87734         (enter_dir, leave_dir): Define trivial
87735         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87736         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87737         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87738         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87739         Move to fts-cycle.c.
87740         (fts_open): Use setup_dir.
87741         (fts_close): Use free_dir.
87742         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87743         This adds a label and some gotos, but the alternatives were messier.
87744         Check for memory allocation failure when entering a dir.
87745         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87746         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87747         (FTS): New member fts_cycle, that is a union that contains the
87748         old active_dir_ht and cycle_state.  All uses changed to mention
87749         fts_cycle.ht and fts_cycle.state.
87750         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87751         fts.c, with the following changes:
87752         (setup_dir, free_dir): New functions.
87753         (enter_dir): Now returns bool.  Return true if successful, false
87754         if memory exhausted.  All callers changed.
87755         Do not bother partly cleaning up on
87756         memory allocation failure; that is free_dir's job.
87757         However, free ad if hash_insert fails, to avoid memory leak.
87758         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87759         fts->fts_options to see which union member to use.
87760
87761 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87762
87763         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87764         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87765
87766 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87767
87768         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87769
87770 2005-05-20  Jim Meyering  <jim@meyering.net>
87771
87772         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87773         Now a macro, to pacify GCC.
87774
87775 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87776
87777         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87778         of -1.
87779
87780 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87781
87782         * lib/chown.c (rpl_chown): Return -1 on failure.
87783
87784 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87785
87786         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87787         Don't check for stddef.h.
87788         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87789         don't use its results.
87790         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87791         since we include them unconditionally.  Don't require
87792         AM_STDBOOL_H, since stdbool is a prerequisite.
87793         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87794         since we assume C89 or better.
87795         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
87796         as we don't use their results.
87797         Don't check for fchdir, memmove, memset, strrchr, as we use
87798         them unconditionally.
87799         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
87800         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
87801
87802 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87803
87804         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
87805         Include <stddef.h> unconditionally, since we assume C89 now.
87806         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
87807         * lib/fts.c: Include fts_.h first, to check interface.
87808         Do not include intprops.h; no longer needed.
87809         Include cycle-check.h and hash.h, since fts_.h no longer does.
87810         Remove unnecessary casts of closedir to void.
87811         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
87812         decide whether to decrement nlinks.
87813         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
87814         (FTS): Use struct hash_table * instead of Hash_table, so that
87815         we no longer need to include hash.h here.
87816
87817 2005-05-18  Jim Meyering  <jim@meyering.net>
87818
87819         * modules/dirfd (License): Change to LGPL.  Most of the code
87820         is already in the public domain.
87821
87822 2005-05-18  Jim Meyering  <jim@meyering.net>
87823
87824         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
87825         Reported by Yoann Vandoorselaere.
87826
87827 2005-05-17  Jim Meyering  <jim@meyering.net>
87828
87829         * m4/fts.m4: New file, from coreutils.
87830
87831 2005-05-17  Jim Meyering  <jim@meyering.net>
87832
87833         * lib/fts.c, lib/fts_.h: New files, from coreutils.
87834
87835 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87836
87837         Sync from coreutils.
87838         * m4/unlinkdir.m4: New file.
87839
87840 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87841
87842         Sync from coreutils.
87843         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87844         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87845         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87846         White space changes only.
87847         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87848         special.
87849         * lib/yesno.c: Include getline.h, not ctype.h.
87850         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87851         Use getline to remove arbitrary restriction on response length.
87852
87853 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87854
87855         * config/srclist-update: Spell out "Street" in FSF postal
87856         mail address; this is the style the FSF seems to prefer.
87857
87858         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87859         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87860         this updates FSF postal mail address.
87861
87862         Sync from coreutils.
87863         * modules/unlinkdir: New file.
87864         * modules/yesno (Depends-on): Add getline.
87865         * MODULES.html.sh (File system functions): Add unlinkdir.
87866
87867 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87868
87869         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87870         lib/strsep.h:
87871         Change the initial comment to refer to GPL, not LGPL.
87872         gnulib-tool will change it to LGPL as needed.
87873
87874         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87875         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87876         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87877         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87878         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87879         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87880         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87881         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87882         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87883         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87884         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87885         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87886         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87887         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87888         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87889         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87890         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87891         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87892         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87893         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87894         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87895         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87896         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87897         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87898         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87899         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87900         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87901         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87902         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87903         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87904         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87905         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87906         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87907         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87908         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87909         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87910         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87911         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87912         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87913         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87914         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87915         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87916         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87917         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87918         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87919         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87920         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87921         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87922         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87923         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87924         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87925         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87926         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87927         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87928         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87929         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87930         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87931         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87932         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87933         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87934         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87935         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87936         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87937         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87938         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87939         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87940         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87941         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87942         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87943         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87944         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87945         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87946         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87947         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87948         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87949         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87950         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87951         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87952         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87953         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87954         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87955         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87956         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87957         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87958         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87959         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87960         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87961         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87962         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87963         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87964         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87965         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87966         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87967         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87968         lib/yesno.c, lib/yesno.h:
87969         Update FSF postal mail address.
87970
87971 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87972
87973         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87974         tests/test-memmem.c, tests/test-stpncpy.c:
87975         Update FSF postal mail address.
87976
87977 2005-05-13  Bruno Haible  <bruno@clisp.org>
87978
87979         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87980         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87981         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87982         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87983         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87984         Add support for 64-bit integers in the MSVC compiler.
87985
87986 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87987
87988         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87989
87990 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87991
87992         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87993
87994 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87995
87996         * doc/getdate.texi (General date syntax): Don't say that date
87997         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87998         Problem reported by Nic Ferrier.
87999
88000 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88001
88002         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88003         specified in ai_socktype. Fix invalid ai_protocol
88004         check. ai_protocol is usually set to 0 or depending on
88005         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88006         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88007         ai_socktype / ai_protocol in the returned addrinfo structure.
88008
88009 2005-05-10  Simon Josefsson  <jas@extundo.com>
88010
88011         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88012         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88013
88014 2005-05-10  Karl Berry  <karl@gnu.org>
88015
88016         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88017         (from http://www.gnu.org/licenses).
88018         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88019         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88020         fdl.texi suffices.
88021
88022 2005-05-10  Karl Berry  <karl@gnu.org>
88023
88024         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88025         (COPYING.DOC): remove.
88026
88027         * config/srclist-update: new FSF address.
88028
88029 2005-05-10  Derek Price  <derek@ximbiot.com>
88030
88031         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88032         possible.
88033
88034 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88035             Bruno Haible  <bruno@clisp.org>
88036
88037         * modules/inet_ntop: New file.
88038         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88039         inet_ntop.
88040
88041 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88042             Bruno Haible  <bruno@clisp.org>
88043
88044         * m4/inet_ntop.m4: New file.
88045
88046 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88047             Bruno Haible  <bruno@clisp.org>
88048
88049         * lib/inet_ntop.h: New file.
88050         * lib/inet_ntop.c: New file, from glibc with modifications.
88051
88052 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88053
88054         * modules/time_r (License): Change to LGPL.
88055         * modules/extensions (License): Change to LGPL.  Actually,
88056         the license is more permissive than that, but currently gnulib-tool
88057         doesn't know how to handle more-permissive licenses.
88058
88059         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88060         Problem reported by Dave Love.
88061
88062 2005-05-08  Jim Meyering  <jim@meyering.net>
88063
88064         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88065         blank.
88066
88067 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88068
88069         * modules/argmatch (Depends-on): Add stdbool.
88070         * modules/backupfile (Depends-on): Likewise.
88071         * modules/chdir-long (Depends-on): Likewise.
88072         * modules/closeout (Depends-on): Likewise.
88073         * modules/cycle-check (Depends-on): Likewise.
88074         * modules/dirname (Depends-on): Likewise.
88075         * modules/fnmatch (Depends-on): Likewise.
88076         * modules/fsusage (Depends-on): Likewise.
88077         * modules/fwriteerror (Depends-on): Likewise.
88078         * modules/getcwd (Depends-on): Likewise.
88079         * modules/getloadavg (Depends-on): Likewise.
88080         * modules/hard-locale (Depends-on): Likewise.
88081         * modules/makepath (Depends-on): Likewise.
88082         * modules/mountlist (Depends-on): Likewise.
88083         * modules/nanosleep (Depends-on): Likewise.
88084         * modules/posixtm (Depends-on): Likewise.
88085         * modules/quotearg (Depends-on): Likewise.
88086         * modules/readtokens (Depends-on): Likewise.
88087         * modules/readtokens0 (Depends-on): Likewise.
88088         * modules/readutmp (Depends-on): Likewise.
88089         * modules/save-cwd (Depends-on): Likewise.
88090         * modules/strftime (Depends-on): Likewise.
88091         * modules/userspec (Depends-on): Likewise.
88092         * modules/utimecmp (Depends-on): Likewise.
88093         * modules/xgetcwd (Depends-on): Likewise.
88094         * modules/xnanosleep (Depends-on): Likewise.
88095         * modules/xstrtod (Depends-on): Likewise.
88096         * modules/yesno (Depends-on): Likewise.
88097
88098 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88099
88100         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88101         needless checks.
88102
88103 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88104
88105         Merge from coreutils.  Among other things,
88106         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88107         * lib/fd-safer.c: New file.
88108         * lib/fcntl-safer.h, open-safer.c: Remove.
88109         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88110         * lib/dup-safer.c: Include unistd-safer.h first.
88111         Don't include errno.h.
88112         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88113         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88114         * lib/file-type.c: Rely on file-type.h change.
88115         * lib/getloadavg.c: Include unistd-safer.h.
88116         (getloadavg): Use safer open.
88117         * lib/getusershell.c: Include "stdio-safer.h".
88118         (getusershell): Use safer fopen.
88119         * lib/long-options.c (long_options): Use NULL rather than 0.
88120         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88121         'free'.
88122         * lib/modechange.c: Likewise.
88123         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88124         (MODE_DONE): New constant.
88125         (struct mode_change): Remove 'next' member.
88126         (make_node_op_equals): New function; like the old one of the
88127         same name, except it allocates an array.
88128         (mode_compile, mode_create_from_ref): Use it.
88129         (mode_compile): Allocate result as an array, not a linked list.
88130         Parse octal string ourself, so that we catch mistakes like "+0".
88131         (mode_adjust): Arg is an array, not a linked list.
88132         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88133         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88134         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88135         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88136         Remove.  This is now stat-macros.h's job.
88137         (talloc): Remove.  All callers replaced by xalloc, so that
88138         our invokers don't have to worry about reporting memory failures.
88139         (make_node_op_equals): Remove.
88140         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88141         New constants.
88142         (struct mode_change): Moved here from modechange.h.
88143         (mode_append_entry): Remove.
88144         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88145         apps to have incorrect behavior.  Use simpler algorithm for head
88146         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88147         Detect more invalid usages rather than having somewhat-random behavior.
88148         Don't insert an "a=" action, as that leads to incorrect behavior.
88149         (mode_compile, mode_create_from_ref): Return NULL on error instead
88150         of an enum, since now there's only one way to have an error.  All
88151         callers changed.
88152         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88153         at the correct time.  Simplify calculation of "+u" and its ilk.
88154         Don't mishandle "+X".
88155         (mode_free): Remove "register" and localize decls.
88156         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88157         (struct mode_change): Move to modechange.c; callers don't
88158         need to see this stuff.
88159         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88160         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88161         (mode_change, mode_adjust): Reflect the new signatures noted above.
88162         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88163         that might redefine system include files.
88164         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88165         (my_usleep): Use NULL rather than (void *) 0.
88166         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88167         Use siginterrupt to specify that system calls should be interrupted.
88168         (rpl_nanosleep): Move initialization of suspended closer to call of
88169         my_usleep.
88170         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88171         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88172         (desirable_utmp_entry): New function.
88173         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88174         using x2nrealloc, to simplify logic.
88175         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88176         size calculation.  Do not assume utmp file is a regular file.
88177         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88178         (READ_UTMP_CHECK_PIDS): New constant.
88179         * lib/save-cwd.c: Include unistd-safer.h.
88180         (save_cwd): Use fd_safer.
88181         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88182         [!_LIBC] Include "stat-macros.h" instead.
88183         * lib/unistd-safer.h (fd_safer): New decl.
88184
88185 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88186
88187         * modules/getloadavg (Depends-on): Add unistd-safer.
88188         * modules/getusershell (Depends-on): Add stdio-safer.
88189         * modules/lstat (Depends-on): Remove xalloc.
88190         * modules/mkstemp (Depends-on): Add stat-macros.
88191         * modules/modechange (Depends-on): Remove xstrtol.
88192         Add stat-macros, xalloc.
88193         * modules/save-cwd (Depends-on): Add unistd-safer.
88194         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88195         * modules/unistd-safer (Files): Add lib/fd-safer.c
88196         (Makefile.am): Remove lib_SOURCES.
88197
88198         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88199         Remove fcntl-safer; unistd-safer supersedes it.
88200
88201 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88202
88203         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88204         AC_HEADER_STAT.
88205         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88206         (gl_PREREQ_CHOWN): Remove.
88207         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88208         it.  Don't require AC_HEADER_STAT.
88209         (gl_PREREQ_LSTAT): Remove.
88210         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88211         Don't require AC_HEADER_STAT.
88212         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88213         (gl_PREREQ_RMDIR): Remove.
88214         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88215         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88216         the stat-macros module a prerequisite.
88217         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88218         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88219         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88220         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88221         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88222         variable names.
88223         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88224         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88225         variable prefixes.
88226         * m4/fcntl-safer.m4: Remove.
88227         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88228         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88229         Invoke gl_PREREQ_FD_SAFER.
88230         (gl_PREREQ_FD_SAFER): New macro.
88231         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88232         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88233         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88234         Remove duplicate call to AC_LIBOBJ(readutmp).
88235         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88236
88237         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88238         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88239
88240 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88241
88242         * MODULES.html.sh (Misc): Add byteswap.
88243
88244 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88245
88246         * modules/getcwd (Depends-on): Add extensions.
88247         * modules/openat (Depends-on): Likewise.
88248
88249 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88250
88251         * modules/byteswap: New file.
88252
88253 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88254
88255         * m4/byteswap.m4: New file.
88256
88257 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88258
88259         * lib/byteswap_.h: New file.
88260
88261 2005-04-25  Karl Berry  <karl@gnu.org>
88262
88263         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88264
88265 2005-04-25  Albert Chin  <china@thewrittenword.com>
88266
88267         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88268         Toolkit C bug.
88269
88270 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88271
88272         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88273         (func_ln_if_changed): Remove forcibly for no error message
88274         in case file does not exist.
88275
88276 2005-04-19  Simon Josefsson  <jas@extundo.com>
88277
88278         * gnulib-tool (Options): Make --symlink mean --symbolic.
88279
88280 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88281
88282         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88283
88284 2005-04-16  Simon Josefsson  <jas@extundo.com>
88285
88286         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88287
88288 2005-04-15  Simon Josefsson  <jas@extundo.com>
88289
88290         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88291
88292 2005-04-15  Simon Josefsson  <jas@extundo.com>
88293
88294         * gnulib-tool: Rename --symlink to --symbolic.
88295
88296 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88297
88298         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88299         symbolic links to files instead of copying/moving.  Add --aux-dir,
88300         specifying directory relative --dir where auxiliary build tools
88301         are placed.
88302
88303 2005-04-14  Bruno Haible  <bruno@clisp.org>
88304
88305         * modules/allocsa (License): Change to LGPL.
88306         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88307
88308 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88309
88310         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88311         that "UTC +1 second" continues to work.  Problem reported
88312         by Dmitry V. Levin.
88313         (relunit_snumber): New rule.
88314         (relunit): Use it.
88315
88316 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88317
88318         * lib/getdate.y (universal_time_zone_table): New constant.
88319         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88320         universal_time_zone_table.
88321         (lookup_zone): Prefer universal_time_zone_table to
88322         local_time_zone_table, so that "GMT" time stamps are allowed in
88323         London during the summer.  Problem reported by Ian Abbott.
88324
88325 2005-04-12  Jim Meyering  <jim@meyering.net>
88326
88327         * lib/human.c (humblock): Set *options even when returning due to
88328         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88329         warning from gcc-4.
88330
88331 2005-04-09  Jim Meyering  <jim@meyering.net>
88332
88333         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88334         -Wuninitialized: initialize tm0.tm_year.
88335
88336 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88337
88338         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88339         count, since there's no maximum.  All uses changed.
88340         Add member dsts_seen.
88341         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88342         not being INT_MAX.
88343         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88344         Use pc_rels_seen to decide whether a date is absolute.
88345
88346         * lib/getdate.y (number): Don't overwrite year.
88347         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88348         check.
88349
88350 2005-04-02  Simon Josefsson  <jas@extundo.com>
88351
88352         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88353         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88354
88355 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88356
88357         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88358         where no absolute path name can be longer than PATH_MAX.
88359
88360 2005-03-27  Jim Meyering  <jim@meyering.net>
88361
88362         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88363
88364 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88365
88366         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88367         "one's complement" -> "ones' complement" in comment, as per Knuth.
88368         "value of type" -> "type or expression" in comment.
88369         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88370
88371 2005-03-26  Jim Meyering  <jim@meyering.net>
88372
88373         Comment nits.
88374         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88375         Correct typos: s/or/of/.
88376
88377 2005-03-26  Jim Meyering  <jim@meyering.net>
88378
88379         * modules/check-include-files: Move to ../ and rename to...
88380         * check-module: ...this.
88381
88382 2005-03-25  Jim Meyering  <jim@meyering.net>
88383
88384         * modules/xvasprintf (Files): Add xalloc.h.
88385
88386 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88387
88388         * modules/gettext (Files): config/config.rpath ->
88389         build-aux/config.rpath
88390         * modules/iconv (Files): Likewise.
88391         Problem reported by Oskar Liljeblad.
88392
88393 2005-03-23  Jim Meyering  <jim@meyering.net>
88394
88395         * modules/check-include-files: New script to check for
88396         missing dependencies, multiple includes, etc.
88397
88398         * modules/c-strtold (Depends-on): Add xalloc.
88399         * modules/c-strtod (Depends-on): Add xalloc.
88400         * modules/hash (Depends-on): Add xalloc.
88401         (Files): Remove lib/xalloc.h.
88402
88403         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88404         * modules/userspec (Files): Add lib/inttostr.h.
88405
88406 2005-03-23  Jim Meyering  <jim@meyering.net>
88407
88408         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88409
88410 2005-03-22  Jim Meyering  <jim@meyering.net>
88411
88412         * modules/stat-macros: New module.
88413         * modules/canonicalize, modules/euidaccess, modules/file-type,
88414         * modules/filemode, modules/lchown, modules/makepath,
88415         * modules/rmdir, modules/stat: Depend on new stat-macros module
88416         rather than listing lib/stat-macros.h manually.
88417         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88418
88419 2005-03-22  Jim Meyering  <jim@meyering.net>
88420
88421         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88422
88423 2005-03-22  Bruno Haible  <bruno@clisp.org>
88424
88425         * config/srclist.txt: Replace target directory 'config' with
88426         'build-aux'.
88427         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88428         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88429         ../build-aux/.
88430
88431 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88432
88433         * modules/chdir-long (Depends-on): Add mempcpy.
88434
88435         * modules/acl, modules/backupfile, modules/c-strtod,
88436         modules/c-strtold, modules/canon-host, modules/canonicalize,
88437         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88438         modules/exclude, modules/exitfail, modules/file-type,
88439         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88440         modules/getdate, modules/getline, modules/getpagesize,
88441         modules/getpass, modules/getugroups, modules/group-member,
88442         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88443         modules/inttostr, modules/long-options, modules/makepath,
88444         modules/md5, modules/memcasecmp, modules/memcoll,
88445         modules/modechange, modules/mountlist, modules/path-concat,
88446         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88447         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88448         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88449         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88450         modules/strftime, modules/strndup, modules/strverscmp,
88451         modules/timespec, modules/unlocked-io, modules/userspec,
88452         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88453         modules/yesno:
88454         Remove lib_SOURCES line from Makefile.am section, as this is now
88455         done automatically by the corresponding Autoconf macro.
88456
88457 2005-03-21  Jim Meyering  <jim@meyering.net>
88458
88459         Changes imported from coreutils.
88460
88461         * lib/cycle-check.c: Don't include xalloc.h.
88462
88463         * lib/path-concat.c: Don't include assert.h.
88464         (path_concat): Remove assertion that would have triggered
88465         for ABASE starting with more than one slash.
88466         Reported by Andreas Schwab.
88467
88468         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88469         properly when ABASE is an absolute file name.
88470         Correct the description of this function.
88471         Include <assert.h>.
88472         Add an assertion and a test driver.
88473         This fixes a bug introduced on 2004-07-02.
88474         Andreas Schwab reported the resulting failure of cp --parents:
88475         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88476
88477 2005-03-21  Jim Meyering  <jim@meyering.net>
88478
88479         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88480         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88481
88482 2005-03-21  Jim Meyering  <jim@meyering.net>
88483         and  Paul Eggert  <eggert@cs.ucla.edu>
88484
88485         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88486         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88487         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88488         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88489         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88490         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88491         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88492         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88493         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88494         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88495         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88496         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88497         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88498         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88499         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88500         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88501         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88502         for these modules.
88503
88504 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88505
88506         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88507         (which shouldn't happen), generate nothing instead of returning 0
88508         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88509
88510 2005-03-16  Bruno Haible  <bruno@clisp.org>
88511
88512         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88513         HAVE_LONGLONG_64BIT.
88514
88515 2005-03-16  Bruno Haible  <bruno@clisp.org>
88516
88517         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88518         HAVE_LONGLONG_64BIT.
88519
88520 2005-03-16  Bruno Haible  <bruno@clisp.org>
88521
88522         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88523         HAVE_LONGLONG_64BIT.
88524
88525 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88526
88527         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88528         reliably distinguish strftime failure from empty output on POSIX
88529         hosts.
88530
88531 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88532
88533         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88534         (iconv_string): Don't guess a size-zero buffer, as that might cause
88535         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88536         result would be 'too large', where 'too large' is (heuristically)
88537         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88538         overflow concerns.  This will prevent some unwanted malloc failures
88539         when the inputs are very large.
88540
88541 2005-03-15  Karl Berry  <karl@gnu.org>
88542
88543         * config/srclist.txt (config.rpath): from gettext.
88544         * config/config.rpath: update.
88545
88546 2005-03-15  Bruno Haible  <bruno@clisp.org>
88547
88548         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88549         to 'negate'.
88550
88551         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88552         variable.
88553
88554         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88555         results.
88556
88557 2005-03-14  Simon Josefsson  <jas@extundo.com>
88558
88559         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88560         <fx@gnu.org>.
88561
88562 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88563
88564         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88565         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88566         intprops.h.
88567         * lib/strtol.c: Likewise.
88568
88569 2005-03-14  Jim Meyering  <jim@meyering.net>
88570
88571         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88572         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88573         to be nonzero so that we (and caller) can detect the difference
88574         between a valid zero-length expansion and an error return, even
88575         when the underlying strftime fails before writing anything into
88576         that location.
88577
88578 2005-03-14  Bruno Haible  <bruno@clisp.org>
88579
88580         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88581         Update from GNU gettext 0.14.3.
88582
88583 2005-03-10  Jim Meyering  <jim@meyering.net>
88584
88585         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88586
88587 2005-03-10  Jim Meyering  <jim@meyering.net>
88588
88589         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88590         so that this module works on systems without fchdir.
88591
88592 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88593
88594         Factor int-properties macros into a single file, except for
88595         glibc-related files.
88596         * lib/intprops.h: New file.
88597         * lib/getloadavg.c: Include it instead of limits.h.
88598         (INT_STRLEN_BOUND): Remove.
88599         * lib/human.c: Include intprops.h.
88600         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88601         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88602         302/1000.
88603         * lib/inttostr.h: Include intprops.h instead of limits.h.
88604         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88605         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88606         for consistency with intprops.h.
88607         (time_t_is_integer, twos_complement_arithmetic): Use them.
88608         * lib/sig2str.h: Include <signal.h>, intprops.h.
88609         (INT_STRLEN_BOUND): Remove.
88610         * lib/strftime.c (TYPE_SIGNED): Remove.
88611         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88612         * lib/strtol.c: Adjust comments to match intprops.h.
88613         * lib/userspec.c: Include intprops.h.
88614         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88615         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88616         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88617         instead of rolling our own expressions.
88618         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88619
88620         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88621         instead of int.
88622         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88623         the right thing even if adding 1900 would overflow.  Similarly
88624         for tm_mon + 1 and tm_yday + 1.
88625         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88626         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88627         (DO_SIGNED_NUMBER): New macro.
88628         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88629
88630 2005-03-07  Bruno Haible  <bruno@clisp.org>
88631
88632         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88633
88634 2005-03-07  Bruno Haible  <bruno@clisp.org>
88635
88636         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88637
88638 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88639
88640         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88641         (func_import): Only replace files via --import when they have actually
88642         changed.
88643
88644 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88645
88646         * m4/mmap-anon.m4: New file.
88647         * m4/pagealign_alloc.m4: New file.
88648
88649 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88650             Bruno Haible  <bruno@clisp.org>
88651
88652         * modules/pagealign_alloc: New file.
88653         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88654
88655 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88656             Bruno Haible  <bruno@clisp.org>
88657
88658         * lib/pagealign_alloc.h: New file.
88659         * lib/pagealign_alloc.c: New file.
88660
88661 2005-03-03  Bruno Haible  <bruno@clisp.org>
88662
88663         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88664         Use an all-permissive copyright notice, recommended by RMS.
88665
88666 2005-03-02  Bruno Haible  <bruno@clisp.org>
88667
88668         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88669         of AIX, the replacement has to be done only after <string.h> is
88670         included, therefore not in config.h. stpncpy.h does the replacement,
88671         and stpncpy.c uses it.
88672
88673 2005-03-02  Bruno Haible  <bruno@clisp.org>
88674
88675         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88676         stpncpy.c uses it.
88677
88678 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88679
88680         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88681         The workaround isn't strictly needed for POSIX conformance, and
88682         it's too much of a pain to configure and maintain.  We'll ask
88683         people to fix their kernels instead.
88684         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88685         (NANOSLEEP_BUG_WORKAROUND): Remove.
88686         (xnanosleep): Remove the workaround.
88687
88688 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88689
88690         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88691         Reported by Derek Price.
88692         (Include): Add "timespec.h".
88693
88694         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88695
88696 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88697
88698         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88699         to detect nanosleep bug.
88700
88701 2005-03-01  Bruno Haible  <bruno@clisp.org>
88702
88703         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88704
88705 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88706
88707         * modules/gethrxtime: New file.
88708         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88709         (Depends-on): Add gethrxtime.
88710         (configure.ac): Add gl_XNANOSLEEP.
88711         (Makefile.am): Remove lib_SOURCES line.
88712
88713 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88714
88715         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88716         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88717
88718 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88719
88720         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88721         * lib/timespec.h (gettime): Return void, since it always
88722         succeeds now.  All uses changed.
88723         * lib/gettime.c (gettime): Likewise.
88724         [HAVE_NANOTIME]: Prefer nanotime.
88725         Assume gettimeofday succeeds, as POSIX requires.
88726         Assime time () succeeds, since other code already does.
88727         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88728         (timespec_subtract): Remove.
88729         (NANOSLEEP_BUG_WORKAROUND): New constant.
88730         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88731         things considerably.  Use it only on GNU/Linux hosts, since the
88732         workaround shouldn't be needed elsewhere.
88733
88734 2005-02-24  Bruno Haible  <bruno@clisp.org>
88735
88736         * modules/gettext (Files): Add m4/glibc2.m4.
88737
88738 2005-02-24  Bruno Haible  <bruno@clisp.org>
88739
88740         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88741         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88742         * m4/progtest.m4:
88743         Update from GNU gettext 0.14.2.
88744         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88745
88746 2005-02-24  Bruno Haible  <bruno@clisp.org>
88747
88748         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88749         * lib/config.charset: Update from GNU gettext 0.14.2.
88750
88751 2005-02-24  Bruno Haible  <bruno@clisp.org>
88752
88753         * lib/gettext.h: Update from GNU gettext 0.14.2.
88754
88755 2005-02-23  Simon Josefsson  <jas@extundo.com>
88756
88757         * m4/iconvme.m4: New file.
88758
88759 2005-02-23  Jim Meyering  <jim@meyering.net>
88760
88761         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88762         change.
88763         Thanks to Bruno Haible for catching it.
88764
88765 2005-02-22  Simon Josefsson  <jas@extundo.com>
88766
88767         * modules/iconvme: New file.
88768
88769         * MODULES.html.sh: Add iconvme.
88770
88771 2005-02-22  Simon Josefsson  <jas@extundo.com>
88772
88773         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88774
88775 2005-02-22  Simon Josefsson  <jas@extundo.com>
88776
88777         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88778
88779 2005-02-22  Jim Meyering  <jim@meyering.net>
88780
88781         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88782         s/ifndef/ifdef/.
88783
88784 2005-02-20  Neil Conway  <neilc@samurai.com>
88785
88786         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88787         returned by OSX/Darwin if the specified buffer is not large
88788         enough for the hostname.
88789
88790 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88791
88792         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88793         pass it to _help, otherwise the latter coredumps trying to
88794         dereference state.root_argp.
88795
88796 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88797
88798         * modules/chdir-long (Depends-on): Add memrchr.
88799         * modules/memrchr (Files): Add lib/memrchr.h.
88800         (Include): "memrchr.h".
88801
88802 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88803
88804         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
88805
88806 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88807
88808         * lib/memrchr.h: New file.
88809         * lib/chdir-long.c: Include it.
88810         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
88811         Don't bother including stddef.h.
88812
88813 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88814
88815         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
88816         inclusion.
88817         Include <sys/types.h>, for dev_t.
88818         (ME_DUMMY, ME_REMOTE): Move from here....
88819         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
88820         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
88821         Dmitry V. Levin.
88822         Include mountlist.h first, to test the interface.
88823
88824 2005-01-29  Bruno Haible  <bruno@clisp.org>
88825
88826         * lib/progname.c (program_name): Initialize.
88827         Needed when linking statically on MacOS X.
88828
88829 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88830
88831         Sync from coreutils.
88832         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
88833         (Depends-on): Add c-strtod.
88834         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
88835
88836 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88837
88838         Sync from coreutils.
88839         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
88840
88841         Remove files that are specific to coreutils.
88842         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
88843
88844 2005-01-28  Bruno Haible  <bruno@clisp.org>
88845
88846         * modules/javacomp: New file.
88847         * MODULES.html.sh (Java): Add javacomp.
88848
88849 2005-01-28  Bruno Haible  <bruno@clisp.org>
88850
88851         * m4/javacomp.m4: New file, from GNU gettext.
88852
88853 2005-01-28  Bruno Haible  <bruno@clisp.org>
88854
88855         * lib/javacomp.sh.in: New file, from GNU gettext.
88856         * lib/javacomp.h: New file, from GNU gettext.
88857         * lib/javacomp.c: New file, from GNU gettext.
88858
88859 2005-01-26  Simon Josefsson  <jas@extundo.com>
88860
88861         * lib/gai_strerror.c: Use GPL in header.
88862
88863 2005-01-26  Bruno Haible  <bruno@clisp.org>
88864
88865         * modules/javaexec: New file.
88866         * MODULES.html.sh (Java): Add javaexec.
88867
88868 2005-01-26  Bruno Haible  <bruno@clisp.org>
88869
88870         * m4/javaexec.m4: New file, from GNU gettext.
88871
88872 2005-01-26  Bruno Haible  <bruno@clisp.org>
88873
88874         * lib/javaexec.sh.in: New file, from GNU gettext.
88875         * lib/javaexec.h: New file, from GNU gettext.
88876         * lib/javaexec.c: New file, from GNU gettext.
88877
88878 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88879
88880         * modules/lchown (Depends-on): Remove lchown.h
88881
88882 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88883
88884         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88885         must be defined if the header file was not found, in order
88886         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88887
88888 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88889
88890         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88891         initializers for struct pentry_state.
88892         (__argp_error): Check return value of __asprintf
88893         (__argp_failure): Translate error message
88894
88895         * lib/argp-parse.c: Removed braces around the expansion of N_()
88896
88897 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88898
88899         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88900         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88901         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88902         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88903         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88904         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88905         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88906         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88907         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88908         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88909         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88910         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88911         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88912         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88913         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88914         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88915         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88916         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88917         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88918         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88919         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88920         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88921         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88922         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88923         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88924         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88925         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88926         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88927         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88928         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88929         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88930         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88931         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88932         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88933         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88934         Use an all-permissive copyright notice, recommended by RMS.
88935
88936 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88937
88938         * modules/chdir-long (Depends-on): Remove mempcpy.
88939
88940 2005-01-21  Jim Meyering  <jim@meyering.net>
88941
88942         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88943         same value as for Solaris 9.
88944
88945         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88946         component length.  This included changing the parameter to be
88947         of type `char *' rather than `char const *'.
88948         * lib/chdir-long.h (chdir_long): Update prototype.
88949
88950         * lib/openat.c (fdopendir, fstatat): New functions.
88951         * lib/openat.h: Include headers required for use of DIR and struct
88952         stat.
88953         [AT_SYMLINK_NOFOLLOW]: Define.
88954         (fdopendir, fstatat): Add prototypes.
88955
88956 2005-01-21  Bruno Haible  <bruno@clisp.org>
88957
88958         * modules/classpath: New file.
88959         * MODULES.html.sh (Java): Add classpath.
88960
88961 2005-01-21  Bruno Haible  <bruno@clisp.org>
88962
88963         * lib/classpath.h: New file, from GNU gettext.
88964         * lib/classpath.c: New file, from GNU gettext.
88965
88966 2005-01-20  Simon Josefsson  <jas@extundo.com>
88967
88968         * modules/version-etc-fsf: New file.
88969
88970 2005-01-20  Simon Josefsson  <jas@extundo.com>
88971
88972         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88973         * lib/version-etc.c: Remove version_etc_copyright.
88974         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88975         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88976
88977 2005-01-20  Simon Josefsson  <jas@extundo.com>
88978
88979         * lib/base64.h (isbase64): Add.
88980
88981         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88982         using a unsigned prototype, don't inline.
88983         (base64_decode): Use it.
88984
88985 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88986
88987         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88988         it.
88989
88990 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88991
88992         * lib/save-cwd.c (save_cwd): Remove code to support the case
88993         where fchdir is missing or flaky.
88994
88995 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88996
88997         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88998
88999 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89000
89001         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89002         AC_LIBSOURCES now does this.
89003         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89004         with new ullong_max module.
89005
89006 2005-01-19  Bruno Haible  <bruno@clisp.org>
89007
89008         * modules/sh-quote: New file.
89009         * MODULES.html.sh (Executing programs): Add sh-quote.
89010
89011 2005-01-19  Bruno Haible  <bruno@clisp.org>
89012
89013         * lib/sh-quote.h: New file, from GNU gettext.
89014         * lib/sh-quote.c: New file, from GNU gettext.
89015
89016 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89017
89018         Merge from coreutils.
89019         * m4/ullong_max.m4: New file.
89020         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89021         (gl_MACROS): Assume localeconv exists.
89022
89023 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89024
89025         Merge changes from coreutils, as described below in several
89026         changelogs dated today.
89027
89028         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89029         (O_DIRECTORY): Remove; not needed here, since "." must be
89030         a directory.  All uses removed.
89031         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89032         universal on Suns, and we also need to test for IRIX.
89033         Revamp code to use 'if' rather than '#if'.
89034         Avoid unnecessary comparison of cwd->desc to 0.
89035
89036         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89037         for known valid error numbers rather than observed invalid ones.
89038
89039 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89040
89041         * modules/ullong_max: New file.
89042
89043         * modules/chdir-long, modules/openat: New files.
89044         * modules/save-cwd (Depends-on): Depend on chdir-long.
89045         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89046
89047 2005-01-18  Jim Meyering  <jim@meyering.net>
89048
89049         Merge from coreutils.
89050         * m4/chdir-long.m4, m4/openat.m4: New files.
89051         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89052         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89053         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89054         is sane and DOES follow symlinks.  Besides, testing 20 different
89055         systems found no broken chown implementations.
89056         Prompted by a change in rsync's copy of this macro.
89057         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89058
89059         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89060
89061         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89062         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89063         NULL-means-set-to-current-time semantics.
89064         Remove temporary file immediately, rather than waiting
89065         for configure's at-exit trap code to do it.
89066
89067 2005-01-18  Jim Meyering  <jim@meyering.net>
89068
89069         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89070
89071         * lib/utimens.c (futimens): Account for the fact that futimes
89072         can also fail with errno == ENOSYS or errno == ENOENT.
89073         Patch from Dmitry V. Levin.
89074
89075         Change the name of the robust chdir function from chdir to chdir_long.
89076         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89077         (restore_cwd): Use chdir_long, not chdir.
89078         * lib/chdir-long.c: Renamed from chdir.c.
89079         * lib/chdir-long.h: Renamed from chdir.h.
89080         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89081         Hurd.
89082
89083 2005-01-18  Bruno Haible  <bruno@clisp.org>
89084
89085         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89086         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89087         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89088         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89089         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89090         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89091         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89092         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89093         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89094         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89095         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89096         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89097         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89098         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89099         Use an all-permissive copyright notice, recommended by RMS.
89100
89101 2005-01-18  Bob Proulx  <bob@proulx.com>
89102
89103         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89104         simplify offsetof() macro construct to avoid compile failure with
89105         native HP-UX 11.0 ANSI C compiler.
89106
89107 2005-01-17  Bruno Haible  <bruno@clisp.org>
89108
89109         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89110         redundant because stpncpy.m4 takes care of it.
89111
89112 2005-01-17  Bruno Haible  <bruno@clisp.org>
89113
89114         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89115
89116 2005-01-17  Bruno Haible  <bruno@clisp.org>
89117
89118         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89119         used.
89120
89121 2005-01-17  Bruno Haible  <bruno@clisp.org>
89122
89123         * lib/fwriteerror.h (fwriteerror): Change specification to include
89124         fclose.
89125         * lib/fwriteerror.c: Include <stdbool.h>.
89126         (fwriteerror): At the end, close the file stream. Record whether
89127         stdout was already closed.
89128
89129 2005-01-17  Bruno Haible  <bruno@clisp.org>
89130
89131         * lib/execute.c (environ): Declare if needed.
89132         * lib/pipe.c (environ): Likewise.
89133         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89134
89135 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89136
89137         * modules/argp: Depend on vsnprintf
89138
89139 2005-01-10  Jim Meyering  <jim@meyering.net>
89140
89141         * modules/closeout (Depends-on): Add atexit.
89142
89143 2005-01-06  Bruno Haible  <bruno@clisp.org>
89144
89145         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89146
89147 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89148
89149         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89150         definitions to be after all include files, to avoid collisions.
89151         Problem reported by Bob Proulx.
89152
89153 2005-01-04  Jim Meyering  <jim@meyering.net>
89154
89155         Changes imported from coreutils.
89156         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89157         as the mkstemp template, use a temporary directory and an
89158         8.3-friendly template to avoid trouble on systems like DJGPP.
89159         Reported by Juan M. Guerrero via Stepan Kasal.
89160         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89161         close. Remove the temporary directory right away, rather than waiting
89162         for configure's at-exit trap code to do it.
89163         Suggestion from Stepan Kasal.
89164
89165 2005-01-01  Simon Josefsson  <jas@extundo.com>
89166
89167         * gnulib-tool: Print #include directives when --import'ing.
89168
89169 2004-12-28  Simon Josefsson  <jas@extundo.com>
89170
89171         * tests/test-base64.c: Include required header files.  Remove
89172         unused variables.
89173
89174 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89175
89176         * modules/error (Depends-on): Remove gettext.
89177
89178 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89179
89180         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89181         not needed.  This removes a dependency on the gettext module.
89182         [defined _LIBC]: Do not include <libintl.h>; not needed.
89183
89184 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89185
89186         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89187         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89188
89189 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89190
89191         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89192         HAVE_DECL_STRTOLD.
89193
89194 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89195
89196         * modules/getdate (Depends-on): Remove alloca-opt.
89197
89198 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89199
89200         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89201
89202 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89203
89204         * lib/argp-parse.c: Include <stddef.h>.
89205         (alignof, alignto): New macros.
89206         (parser_init): Don't assume that void * is aligned sufficiently
89207         for struct option.
89208
89209         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89210         need to extend the stack.
89211         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89212         large.
89213
89214 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89215
89216         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89217
89218 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89219
89220         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89221         (2004-10-24) change.  Apparently this was a false alarm.
89222
89223         * modules/getdate: Depend on alloca-opt, not alloca.
89224
89225 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89226
89227         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89228         Remove now-obsolete comment about AIX.
89229         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89230         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89231         (YYMAXDEPTH): New macro.
89232
89233 2004-12-18  Simon Josefsson  <jas@extundo.com>
89234
89235         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89236
89237 2004-12-18  Bruno Haible  <bruno@clisp.org>
89238
89239         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89240
89241 2004-12-18  Bruno Haible  <bruno@clisp.org>
89242
89243         * lib/fatal-signal.c (fatal_signals): Make non-const.
89244         (init_fatal_signals): New function.
89245         (uninstall_handlers, install_handlers): Ignore signals that were set to
89246         SIG_IGN.
89247         (at_fatal_signal): Call init_fatal_signals.
89248         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89249         SIG_IGN.
89250         Reported by Paul Eggert.
89251
89252 2004-12-18  Bruno Haible  <bruno@clisp.org>
89253
89254         * doc/alloca.texi: New file.
89255         * doc/alloca-opt.texi: New file.
89256
89257 2004-12-17  Jim Meyering  <jim@meyering.net>
89258
89259         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89260         Otherwise, install-sh could exit with improper exit status when
89261         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89262
89263 2004-12-16  Simon Josefsson  <jas@extundo.com>
89264
89265         * tests/test-base64.c: Add license.
89266
89267 2004-12-15  Stepan Kasal  <address@hidden>
89268
89269         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89270
89271 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89272
89273         * modules/getcwd (Files): Add m4/d-ino.m4.
89274         Suggested by Mark D. Baushke.
89275
89276 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89277
89278         * lib/getdate.y (textint): New member "negative".
89279         (time_zone_hhmm): New function.
89280         Expect 14 shift-reduce conflicts, not 13.
89281         (o_colon_minutes): New rule.
89282         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89283         (yylex): Set the "negative" member of signed numbers.
89284
89285 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89286
89287         * doc/getdate.texi (Time of day items, Time zone items):
89288         Describe new formats +00:00, UTC+00:00.
89289
89290 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89291
89292         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89293         spurious "-l"s.  Problem reported by Stepan Kasal.
89294
89295 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89296
89297         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89298         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89299
89300 2004-12-04  Simon Josefsson  <jas@extundo.com>
89301
89302         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89303         Vandoorselaere <yoann@prelude-ids.org>.
89304
89305 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89306
89307         Changes imported from coreutils.
89308         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89309         exist.
89310         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89311
89312 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89313
89314         Changes imported from coreutils.
89315         * lib/hard-locale.c: Assume <locale.h> exists.
89316         Include "strdup.h".
89317         (GLIBC_VERSION): New macro.
89318         (hard_locale): Assume setlocale exists.
89319         Rewrite to avoid #ifdef.
89320         Use strdup rather than malloc + strcpy.
89321         * lib/human.c: Assume <locale.h> exists.
89322         (human_readable): Assume localeconv exists.
89323
89324 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89325
89326         * modules/hard-locale (Depends-on): Add strdup.
89327
89328 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89329
89330         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89331         convert T2, not T.  (Imported from libc.)
89332
89333 2004-11-30  Simon Josefsson  <jas@extundo.com>
89334
89335         * modules/restrict (License): Change to LGPL.
89336
89337 2004-11-30  Simon Josefsson  <jas@extundo.com>
89338
89339         * m4/restrict.m4: Add copyright and copying conditions.
89340
89341 2004-11-30  Simon Josefsson  <jas@extundo.com>
89342
89343         * m4/base64.m4: New file.
89344
89345 2004-11-30  Simon Josefsson  <jas@extundo.com>
89346
89347         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89348         base64.
89349
89350         * tests/test-base64.c: New file.
89351
89352         * modules/base64: New file.
89353
89354 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89355
89356         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89357         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89358
89359         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89360
89361 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89362
89363         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89364         (__getcwd.c): Don't restore errno; glibc doesn't.
89365         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89366         first, falling back to our code only if its results look suspicious.
89367         Ensure that the resulting buffer is only as large as necessary.
89368
89369         * lib/readutmp.c: Include readutmp.h first.
89370         Include <errno.h>, since readutmp.h no longer does that.
89371         * lib/readutmp.h: Don't include <errno.h>,
89372         <sys/param.h>, <time.h>; not needed to establish interface.
89373         (errno): Remove decl.
89374         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89375         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89376         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89377
89378 2004-11-28  Simon Josefsson  <jas@extundo.com>
89379
89380         * lib/base64.h, base64.c: New file.
89381
89382 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89383
89384         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89385
89386 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89387
89388         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89389         (Depends-on): Remove pathmax, same.  Add mempcpy.
89390         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89391         (Makefile.am): Append getcwd.h to lib_SOURCES.
89392         (Include): Add getcwd.h.
89393         (Maintainer): Change from Jim Meyering to "all, glibc",
89394         since getdate now uses intended-for-glibc code.
89395         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89396         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89397
89398 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89399
89400         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89401         HP's ANSI C compiler.
89402         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89403         Declaring int functions causes warnings on some modern systems and
89404         shouldn't be needed to compile on ancient ones.
89405         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89406         defined.
89407
89408         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89409         with the following changes.
89410         (__set_errno): Parenthesize properly.
89411         Include <stdbool.h>.
89412         (MIN, MAX, MATCHING_INO): New macros.
89413         (__getcwd): Define with prototype, not K&R form.
89414         Use heuristics to allocate default buffer on stack if possible.
89415         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89416         behavior, and to avoid the PATH_MAX limit when computing
89417         ../../../../...
89418         Use MATCHING_INO to compare inode number to file.
89419         Check for arithmetic overflow in size calculations.
89420         Fix bug in reallocation of dot array that caused getcwd to fail
89421         on directories nested deeper than 75.
89422         Be more careful about saving errno on error.
89423         Do not use realloc; use only free+malloc, as this is a bit
89424         more flexible and avoids a needless copy operation.
89425         Do not inspect st_dev and st_ino for symbolic links; POSIX
89426         doesn't specify the latter.
89427         Check for closedir errors.
89428         Avoid needless casts.
89429         Use "#ifdef weak_alias" around weak_alias, to be like other
89430         glibc code.
89431         The following changes to getcwd.c have effect only when used in
89432         gnulib; they have no effect inside glibc proper.
89433         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89434         as alloca isn't used.
89435         (alloca, __alloca): Likewise.
89436         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89437         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89438         unconditionally, as gnulib assumes C89 or better.
89439         Do not include <sys/param.h>.
89440         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89441         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89442         better.
89443         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89444         Include <dirent.h> in a way that is compatible with modern Autoconf.
89445         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89446         New macros, if not already defined.
89447         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89448         Use "_LIBC", not "defined _LIBC", for consistency.
89449         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89450         a mempcpy module.
89451         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89452         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89453         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89454         credit only to Jim Meyering and adjust the copyright dates.
89455         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89456         <stdlib.h>, <unistd.h>, "pathmax.h".
89457         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89458         (INITIAL_BUFFER_SIZE): Remove.
89459         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89460
89461 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89462
89463         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89464         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89465         Use the _ONCE methods, for efficiency.
89466         Check for fcntl.h.  In test program, include <errno.h>
89467         and <fcntl.h> if available.  Remove old K&R cruft from
89468         test program.  Check for common errors in GNU/Linux,
89469         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89470         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89471         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89472         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89473         name accordingly.
89474         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89475         accommodate new getcwd.c.
89476         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89477         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89478         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89479         that's all we need now.
89480
89481 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89482
89483         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89484         argp-parse.c depends on getopt internals, that means we should
89485         always use our getopt, to be on the safe side.
89486         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89487         order not to spoil the result of an eventual previous invocation
89488         of gl_GETOPT_SUBSTITUTE.
89489
89490 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89491
89492         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89493         redefinition warnings. To avoid them, include the defines
89494         in `#if !defined __need_getopt ... #endif'. The only place
89495         where __getopt_argv_const is used is in definitions
89496         of getopt_long and getopt_long_only below, which are as well
89497         protected by `#ifndef __need_getopt'.
89498         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89499         __need_getopt after including <stdio.h> and <unistd.h> These
89500         headers might have defined it.
89501
89502 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89503
89504         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89505
89506 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89507
89508         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89509         (futimens): New function, which uses futimes if available.
89510         (futimens, utimens): Support timespec==NULL, with same semantics
89511         as utime and utimens.
89512         * lib/utimens.h (futimens): New decl.
89513
89514 2004-11-23  Jim Meyering  <jim@meyering.net>
89515
89516         * lib/getopt_.h: Remove trailing blanks.
89517
89518 2004-11-23  Jim Meyering  <jim@meyering.net>
89519
89520         * lib/__fpending.c: Add comment.
89521
89522 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89523
89524         * modules/canonicalize (Depends-on): Add xreadlink.
89525         Problem reported by James Youngman.
89526
89527 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89528
89529         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89530         New macros.
89531         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89532         optopt): Use them instead of invoking ## directly; otherwise, the
89533         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89534
89535 2004-11-19  Bruno Haible  <bruno@clisp.org>
89536
89537         * lib/strtok_r.c: Move comments from here...
89538         * lib/strtok_r.h: ... to here.
89539
89540 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89541
89542         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89543         implementations that mishandle size_t overflow.
89544
89545 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89546
89547         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89548         might fail.  Problem reported by Yoann Vandoorselaere.
89549         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89550         implementations that mishandle size_t overflow.
89551
89552 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89553
89554         * modules/canon-host (Depends-on): Add strdup.
89555
89556 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89557
89558         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89559
89560 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89561
89562         * lib/canon-host.c: Include "strdup.h".
89563         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89564         Use strdup instead of malloc/strcpy to duplicate strings.
89565
89566         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89567         (human_space_before_unit): New constant.
89568         * lib/human.c (human_readable): Support it.
89569
89570         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89571         (xgetcwd): Set errno correctly when failing.
89572         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89573         the failure is actually due to a PATH_MAX problem.
89574
89575         Further getopt changes to make it more likely that glibc will
89576         buy the changes back.
89577         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89578         (getopt): Use it, so to preserve glibc semantic
89579         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89580         when compiling for libc.
89581         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89582         (getopt_long, getopt_long_only): Use it.
89583
89584         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89585         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89586         (getopt): Argv is now char * const *, as per standard.
89587         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89588         not char *__getopt_argv_const *.
89589         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89590         _getopt_long_only_r): Likewise.
89591         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89592         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89593         _getopt_long_r, _getopt_long_only_r): Likewise.
89594         * lib/getopt_.h (__getopt_argv_const): Remove.
89595         (getopt): Argv is now char * const *, as per standard.
89596
89597         * lib/getdate.y (tORDINAL): New token.
89598         (day, relunit): Allow it for relative times.
89599         (relative_time_table): Use tORDINAL for ordinals.
89600
89601 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89602
89603         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89604         Document that "second" isn't allowed as an ordinal number.
89605
89606 2004-11-16  Jim Meyering  <jim@meyering.net>
89607
89608         * modules/closeout (Depends-on): Add fpending.
89609
89610 2004-11-15  Jim Meyering  <jim@meyering.net>
89611
89612         * lib/closeout.c: Include "__fpending.h" once again.
89613         Include <stdbool.h>.
89614         (close_stdout): Don't fail just because stdout was closed initially,
89615         since some programs don't write to stdout in the normal course of
89616         operation (other than --version and --help), and we don't want this
89617         function to make e.g. `touch file >&-' fail.
89618         But do fail if it was closed and someone has tried to write to it.
89619         E.g., `printf foo >&-' must fail.
89620
89621 2004-11-13  Jim Meyering  <jim@meyering.net>
89622
89623         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89624
89625 2004-11-12  Simon Josefsson  <jas@extundo.com>
89626
89627         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89628         small doc fix is still pending.
89629
89630 2004-11-11  Simon Josefsson  <jas@extundo.com>
89631
89632         * modules/strtok_r: New file.
89633
89634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89635         strtok_r.
89636
89637 2004-11-11  Simon Josefsson  <jas@extundo.com>
89638
89639         * m4/strtok_r.m4: New file.
89640
89641         * m4/getopt.m4: Replace opterr.
89642
89643 2004-11-11  Simon Josefsson  <jas@extundo.com>
89644
89645         * lib/strtok_r.h, strtok_r.c: New file.
89646
89647 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89648
89649         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89650         of replacing opterr, getopt, etc.  This should handle the
89651         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89652
89653 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89654
89655         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89656         we can stop lying to compilers about the constness of argv when we
89657         are compiled outside glibc.
89658         (getopt, getopt_long, getopt_long_only): Use it.
89659         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89660         _getopt_internal, getopt): Likewise.
89661         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89662         _getopt_long_only_r): Likewise.
89663         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89664         _getopt_long_r, _getopt_long_only_r): Likewise.
89665
89666         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89667         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89668         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89669         the other external symbols.
89670         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89671         declaration, since the above renaming now works around collisions.
89672
89673 2004-11-11  Jim Meyering  <jim@meyering.net>
89674
89675         * lib/linebreak.c: Remove trailing blanks.
89676         * lib/alloca_.h: Likewise.
89677         * lib/acosl.c: Likewise.
89678         * lib/euidaccess.c: Likewise.
89679         * lib/allocsa.h: Likewise.
89680
89681 2004-11-10  Simon Josefsson  <jas@extundo.com>
89682
89683         * m4/getaddrinfo.m4: New file.
89684
89685 2004-11-10  Simon Josefsson  <jas@extundo.com>
89686
89687         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89688
89689 2004-11-10  Simon Josefsson  <jas@extundo.com>
89690
89691         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89692         getaddrinfo.
89693
89694         * modules/getaddrinfo: New file.
89695
89696 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89697
89698         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89699
89700 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89701
89702         * lib/mktime.c (SHR): New macro, which is a portable
89703         substitute for >> that should work even on Crays.
89704         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89705         Problem reported by Mark D. Baushke in
89706         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89707         * lib/getdate.y (SHR): Likewise.
89708         (tm_diff): Use it.
89709         * lib/strftime.c (SHR): Likewise.
89710         (tm_diff): Use it.
89711         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89712         quote_these_too, so that right shifts are well defined.  All uses
89713         changed.
89714
89715 2004-11-10  Jim Meyering  <jim@meyering.net>
89716
89717         Ensure that no close failure goes unreported.
89718         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89719         return early when it seems there's nothing to flush.
89720         Don't include __fpending.h.
89721
89722 2004-11-10  Jim Meyering  <jim@meyering.net>
89723
89724         * modules/closeout (Depends-on): Remove fpending.
89725
89726 2004-11-10  Jim Meyering  <jim@meyering.net>
89727
89728         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89729
89730 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89731
89732         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89733         gl_FUNC_STRFTIME.
89734         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89735         and AC_REQUIRE when possible, to avoid duplicate checks.
89736         Check for <wchar.h>.
89737
89738 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89739
89740         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89741
89742 2004-11-09  Bruno Haible  <bruno@clisp.org>
89743
89744         * m4/sockpfaf.m4: New file.
89745
89746 2004-11-05  Bruno Haible  <bruno@clisp.org>
89747
89748         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89749         Reported by Mark D. Baushke <mdb@cvshome.org>.
89750
89751 2004-11-04  Bruno Haible  <bruno@clisp.org>
89752
89753         2004-09-11  Bruno Haible  <bruno@clisp.org>
89754                 * allocsa.valgrind: New file.
89755         2004-02-06  Bruno Haible  <bruno@clisp.org>
89756                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89757                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89758                 Reported by Christopher Seip <chris.seip@hp.com>.
89759
89760 2004-11-04  Bruno Haible  <bruno@clisp.org>
89761
89762         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89763         (Makefile.am): Distribute it.
89764
89765 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89766
89767         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89768         with errno == ERANGE if the buffer is too small.
89769         Problem reported by Mark D. Baushke.
89770
89771 2004-11-03  Albert Chin  <china@thewrittenword.com>
89772             Paul Eggert  <eggert@cs.ucla.edu>
89773
89774         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89775         equivalent, substitute $ac_type for equivalent type rather than
89776         blindly using uint32_t *always* which won't work if uint32_t is not
89777         available.  Define _UINT32_T to work around typedef of uint32_t if
89778         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89779         2.5.1.
89780
89781 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89782
89783         * m4/jm-macros.m4: Sync from coreutils.
89784         (gl_MACROS): Check for mbrlen, for pathchk.
89785         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89786
89787 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89788
89789         * lib/xreadlink.c (MAXSIZE): New macro.
89790         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89791         size does not exceed MAXSIZE.  Avoid cast.
89792         As suggested by Mark D. Baushke in
89793         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89794         if readlink fails with buffer size just under MAXSIZE, try again
89795         with MAXSIZE.
89796
89797 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89798
89799         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
89800
89801 2004-11-02  Derek R. Price  <derek@ximbiot.com>
89802         and  Paul Eggert  <eggert@cs.ucla.edu>
89803
89804         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
89805         (get_date): Overparenthesize to avoid GCC warning.
89806
89807 2004-11-02  Bruno Haible  <bruno@clisp.org>
89808
89809         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
89810         returns void.
89811
89812 2004-11-02  Bruno Haible  <bruno@clisp.org>
89813
89814         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
89815         function returns void.
89816
89817 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89818
89819         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
89820         fflush_unlocked, flockfile, funlockfile, funlockfile,
89821         fputs_unlocked, putc_unlocked.
89822
89823 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89824
89825         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89826         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
89827         already declared.
89828
89829 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89830
89831         * modules/getdate (Files): Add doc/getdate.texi.
89832         (Depends-on): Add setenv, xalloc.
89833
89834 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89835
89836         * lib/getdate.y: Add support for TZ="foo" within a date string.
89837         Fix some bugs near time_t boundaries.  Reject dates with
89838         out-of-range components, e.g., "Sept 31".
89839         Include <stdlib.h>, "setenv.h", "xalloc.h".
89840         (ISDIGIT_LOCALE): Remove; unused.
89841         Note that the TZ and time functions used here are not reentrant.
89842         (mktime_ok, get_tz): New functions.
89843         (TZBUFSIZE): New constant.
89844         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89845         This requires that we sometimes generate our own TZ="XXX..." setting.
89846
89847 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89848
89849         * doc/getdate.texi: New file, from coreutils with modifications for
89850         the new TZ parsing.
89851
89852 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89853
89854         * lib/mktime.c (not_equal_tm): Remove redundant check.
89855
89856 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89857
89858         * modules/regex (lib_SOURCES): Add regex.c.
89859         Reported by James Youngman in
89860         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89861
89862 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89863
89864         * lib/getdate.y: Use Bison 1.875 features, and some minor
89865         code cleanups.  This change does not affect semantics.
89866         Don't include <stdlib.h>; no longer needed.
89867         Don't include unlocked-io.h; only the "#if TEST" code uses
89868         stdio, and performance isn't crucial there.
89869         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89870         Bison 1.875 features as described below.
89871         All uses of "PC." replaced by "pc->".
89872         (YYSTYPE): Add a forward declaration.
89873         (yylex, yyerror): Use full prototypes in forward decls.
89874         Use "%pure-parser" rather than obsolescent "%pure_parser".
89875         Use %parse-param and %lex-param instead of obsolescent
89876         YYPARSE_PARAM and YYLEX_PARAM.
89877         (meridian_table, month_and_day_table, time_units_table,
89878         relative_time_table, time_zone_table, military_table,
89879         lookup_zone, lookup_word, get_date):
89880         Use NULL instead of 0 where appropriate.
89881         (to_hour): Avoid abort (), to avoid a dependency on
89882         stdlib.h.
89883         (yyerror, yylex): Now accepts parser_control * arg.
89884         (main) [TEST]: Use '\0' rather than 0 for char.
89885
89886 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89887
89888         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89889
89890 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89891
89892         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89893         It's now the caller's responsibility to handle the case where
89894         !HAVE_GETPAGESIZE && !defined getpagesize.
89895
89896         * lib/mktime.c (leapyear): Arg is long int, not int.
89897
89898 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89899
89900         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89901
89902 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89903
89904         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89905         missing.  Problem reported by James Youngman.
89906
89907 2004-10-16  Simon Josefsson  <jas@extundo.com>
89908
89909         * gnulib-tool: Fix comments.  Fix parse problem.
89910         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89911
89912 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89913
89914         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89915         implementation of getopt_long.  Problem reported by Alexander Taler in:
89916         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89917
89918 2004-10-15  Bruno Haible  <bruno@clisp.org>
89919
89920         * gnulib-tool: Untabify. Initialize supplied_libname.
89921         (func_usage): More homogenous output.
89922         (func_modules_transitive_closure, func_modules_to_filelist,
89923         func_emit_lib_Makefile_am): New functions.
89924         (func_import): New function, extracted from big case statement. Use
89925         func_get_license, func_modules_transitive_closure,
89926         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89927         opt_lgpl. Don't use test -a, as it's not portable.
89928         (func_create_testdir): Use func_modules_transitive_closure,
89929         func_modules_to_filelist, func_emit_lib_Makefile_am.
89930
89931 2004-10-15  Bruno Haible  <bruno@clisp.org>
89932
89933         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89934
89935 2004-10-15  Bruno Haible  <bruno@clisp.org>
89936
89937         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89938         the portions belonging to each module.
89939         Suggested by Derek Robert Price <derek@ximbiot.com>.
89940
89941 2004-10-12  Simon Josefsson  <jas@extundo.com>
89942
89943         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89944         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89945         to real functions.
89946
89947 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89948
89949         * modules/vsnprintf: New file.
89950
89951 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89952
89953         * m4/vsnprintf.m4: New file.
89954
89955 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89956
89957         * lib/vsnprintf.h: New file.
89958         * lib/vsnprintf.c: New file.
89959
89960 2004-10-11  Bruno Haible  <bruno@clisp.org>
89961
89962         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89963         vsnprintf.
89964
89965 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89966
89967         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89968
89969 2004-10-07  Bruno Haible  <bruno@clisp.org>
89970
89971         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89972         fits into the provided buffer.
89973
89974 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89975
89976         * lib/diacrit.c, diacrit.h: Add GPL notice.
89977
89978         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89979         notice.
89980         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89981         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89982         This avoids a potential constant-folding bug.
89983
89984 2004-10-05  Bruno Haible  <bruno@clisp.org>
89985
89986         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89987         for the declaration of strsep.
89988
89989 2004-10-05  Bruno Haible  <bruno@clisp.org>
89990
89991         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89992
89993 2004-10-04  Simon Josefsson  <jas@extundo.com>
89994
89995         * modules/memmem: New file.
89996         * tests/test-memmem.c: New file.
89997         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89998
89999 2004-10-04  Simon Josefsson  <jas@extundo.com>
90000
90001         * m4/memmem.m4: New file.
90002
90003 2004-10-04  Simon Josefsson  <jas@extundo.com>
90004
90005         * lib/memmem.h: New file.
90006         * lib/memmem.c: New file, taken from glibc.
90007
90008 2004-10-04  Simon Josefsson  <jas@extundo.com>
90009
90010         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90011         '#ifdef USE_UNLOCKED_IO'.
90012
90013 2004-10-04  Simon Josefsson  <jas@extundo.com>
90014
90015         * config/srclist.txt: Add memmem from glibc.
90016
90017 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90018
90019         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90020
90021         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90022         modules/exclude, modules/getdate, modules/getline,
90023         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90024         modules/getusershell, modules/linebuffer, modules/md5,
90025         modules/mountlist, modules/posixtm, modules/readtokens,
90026         modules/readutmp, modules/regex, modules/sha1,
90027         modules/version-etc, modules/yesno:
90028         Remove dependency on unlocked-io.
90029
90030 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90031
90032         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90033
90034         * m4/unlocked-io.m4: Add copyright notice.
90035         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90036
90037 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90038
90039         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90040         * lib/xmalloc.c (xmemdup): Likewise.
90041         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90042         XFREE): Remove these long-obsolescent macros.
90043         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90044         * lib/xstrdup.c: Remove.
90045
90046         * lib/regex.c (re_comp): Cast gettext return value to char *,
90047         Problem reported by Martin Neitzel via Mark D. Baushke.
90048
90049 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90050
90051         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90052         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90053         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90054         regex.c, sha1.c, version-etc.c, yesno.c:
90055         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90056         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90057         the includer's responsibility.
90058
90059         Sync from coreutils.
90060
90061         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90062         points to the start of a string, as the C Standard says the
90063         resulting behavior is undefined.
90064
90065         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90066         simple -> simple_backups, numbered_existing ->
90067         numbered_existing_backups, numbered -> numbered_backups
90068         to avoid shadowing problems.  All uses changed.
90069         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90070         * lib/backupfile.c (check_extension, numbered_backup):
90071         Rename locals to avoid shadowing 'basename'.
90072         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90073         once.
90074
90075         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90076         * lib/.cvsignore: Add getopt.h.
90077
90078 2004-10-04  Bruno Haible  <bruno@clisp.org>
90079
90080         * modules/README: New file.
90081         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90082         not a module.
90083
90084 2004-10-02  Jim Meyering  <jim@meyering.net>
90085
90086         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90087
90088 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90089
90090         * modules/strsep: New file.
90091
90092 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90093
90094         * m4/strsep.m4: New file.
90095
90096 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90097
90098         * lib/strsep.h: New file.
90099         * lib/strsep.c: New file.
90100
90101 2004-10-01  Simon Josefsson  <jas@extundo.com>
90102
90103         * lib/snprintf.c (snprintf): Handle size==0.
90104
90105 2004-10-01  Simon Josefsson  <jas@extundo.com>
90106             Bruno Haible  <bruno@clisp.org>
90107
90108         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90109         (snprintf): Declare 'args'.
90110
90111 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90112
90113         * lib/snprintf.c: Remove comments as to why each header is needed.
90114
90115 2004-10-01  Bruno Haible  <bruno@clisp.org>
90116
90117         * MODULES.html.sh: Add strsep.
90118
90119 2004-09-30  Simon Josefsson  <jas@extundo.com>
90120
90121         * modules/snprintf: New file.
90122
90123 2004-09-30  Simon Josefsson  <jas@extundo.com>
90124
90125         * m4/snprintf.m4: New file.
90126
90127 2004-09-30  Simon Josefsson  <jas@extundo.com>
90128
90129         * lib/snprintf.h, lib/snprintf.c: New files.
90130
90131 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90132
90133         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90134         (hol_entry_help): Never translate an empty string.
90135         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90136         * lib/argp.h (OPTION_NO_TRANS): New option.
90137
90138 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90139
90140         * modules/argp (Maintainer): Replace Simon Josefsson
90141         by Sergey Poznyakoff.
90142
90143 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90144
90145         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90146         changes merged back into glibc.
90147
90148 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90149
90150         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90151
90152 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90153
90154         * lib/xvasprintf.c: Include xalloc.h.
90155         (xvasprintf): Use xalloc_die, not xmalloc_die.
90156
90157 2004-09-29  Bruno Haible  <bruno@clisp.org>
90158
90159         * modules/alloca-opt: New file, derived from modules/alloca.
90160         * modules/allocsa: Depend on alloca-opt instead of alloca.
90161         * modules/setenv: Likewise.
90162         * modules/vasnprintf: Likewise.
90163         * MODULES.html.sh: Add alloca-opt.
90164
90165 2004-09-28  Simon Josefsson  <jas@extundo.com>
90166
90167         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90168         LGPL, and to replace license template from GPL to LGPL.
90169
90170 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90171
90172         * modules/dummy: Change license to LGPL.
90173
90174 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90175
90176         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90177
90178 2004-09-24  Simon Josefsson  <jas@extundo.com>
90179
90180         * modules/minmax (License): Change from GPL to LGPL.
90181
90182 2004-09-23  Simon Josefsson  <jas@extundo.com>
90183
90184         * gnulib-tool (--import): Typo.
90185
90186 2004-09-23  Simon Josefsson  <jas@extundo.com>
90187
90188         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90189
90190 2004-09-22  Bruno Haible  <bruno@clisp.org>
90191
90192         * modules/*: Add 'License' field.
90193         * gnulib-tool: Accept --extract-license option.
90194         (func_get_license): New function.
90195
90196 2004-09-21  Bruno Haible  <bruno@clisp.org>
90197
90198         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90199         Reported by Simon Josefsson.
90200
90201 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90202
90203         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90204         gl_AC_TYPE_LONG_LONG.
90205
90206 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90207
90208         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90209
90210 2004-09-18  Simon Josefsson  <jas@extundo.com>
90211         and  Paul Eggert  <eggert@cs.ucla.edu>
90212
90213         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90214         calls with autoreconf.  Define GL_LIB.
90215
90216 2004-09-14  Karl Berry  <karl@gnu.org>
90217
90218         * config/srclist.txt: unsync setenv.c, sigh.
90219
90220 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90221
90222         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90223         Problem reported by Bruno Haible in:
90224         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90225
90226 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90227
90228         * config/srclist.txt: Comment out argp-pvh.c.
90229
90230 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90231
90232         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90233         in case some system header has #define'd it.  Problem reported by
90234         Soeren D. Schulze in
90235         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90236
90237 2004-09-09  Karl Berry  <karl@gnu.org>
90238
90239         * regex.[ch]: delete from the root.  These were supposed to be
90240                 synced with emacs cvs, but this has not happened for about
90241                 a year, and anyway nothing else uses emacs regex.[ch].
90242                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90243                 lib/regex[.ch] is untouched.
90244
90245 2004-09-09  Bruno Haible  <bruno@clisp.org>
90246
90247         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90248
90249 2004-09-09  Bruno Haible  <bruno@clisp.org>
90250
90251         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90252         modifications.
90253         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90254
90255 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90256
90257         * modules/xvasprintf: New file.
90258         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90259
90260 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90261
90262         * lib/xvasprintf.h: New file.
90263         * lib/xvasprintf.c: New file.
90264         * lib/xasprintf.c: New file.
90265
90266 2004-09-08  Bruno Haible  <bruno@clisp.org>
90267
90268         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90269
90270 2004-09-08  Bruno Haible  <bruno@clisp.org>
90271
90272         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90273         length is > INT_MAX.
90274         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90275         more.
90276
90277 2004-09-08  Bruno Haible  <bruno@clisp.org>
90278
90279         * lib/stdint_.h: New file, taken from GNU clisp.
90280
90281 2004-09-08  Bruno Haible  <bruno@clisp.org>
90282             Oskar Liljeblad  <oskar@osk.mine.nu>
90283
90284         * modules/stdint: New file.
90285         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90286
90287 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90288
90289         Import from coreutils.
90290         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90291         strings on unbounded length.  alloca's performance benefits aren't
90292         that important here.
90293         (V_STRDUP): Remove.
90294         (parse_with_separator): New function, with most of the internals
90295         of the old parse_user_spec.  Allow user to omit both user and group,
90296         for compatibility with FreeBSD.
90297         Clone only the user name, not the entire spec.
90298         Do not set *uid, *gid unless entirely successful.
90299         Avoid memory leak in some failing cases.
90300         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90301         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90302         (parse_user_spec): Rewrite to use parse_with_separator.
90303
90304 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90305
90306         * modules/userspec: Don't depend on alloca.
90307
90308 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90309
90310         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90311
90312 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90313
90314         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90315         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90316         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90317
90318 2004-08-16  Simon Josefsson  <jas@extundo.com>
90319
90320         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90321         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90322         Add --dry-run for --import.
90323         Let user provided command line parameters override configure.ac
90324         settings.
90325
90326 2004-08-12  Simon Josefsson  <jas@extundo.com>
90327
90328         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90329         as discussed with Paul Eggert in threads rooted at
90330         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90331         and
90332         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90333         Before, the test was empty, and relied on ELIDE_CODE in source
90334         code.)
90335         (gl_PREREQ_GETOPT): New macro.
90336         (gl_GETOPT): Use them.
90337
90338 2004-08-12  Simon Josefsson  <jas@extundo.com>
90339
90340         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90341         * lib/getopt_.h: Renamed from getopt.h.
90342
90343 2004-08-12  Simon Josefsson  <jas@extundo.com>
90344
90345         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90346         Change default library name from libfoo to libgnu.
90347         Now, if you have a configure.ac that says:
90348                 gl_SOURCE_BASE(gl)
90349                 gl_M4_BASE(gl/m4)
90350                 gl_MODULES(error getopt etcetera)
90351                 gl_INIT
90352         you can import all you need by running:
90353                 ../gnulib/gnulib-tool --import
90354
90355         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90356         (Makefile.am): Rewrite, use logic from argz.
90357         (Include): Use <getopt.h> instead of "getopt.h".
90358
90359 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90360
90361         * modules/argp (Files): Add m4/unlocked-io.m4.
90362         (Depends-on): Add extensions.
90363
90364 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90365
90366         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90367         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90368         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90369         Check for program_invocation_name, program_invocation_short_name,
90370         flockfile, funlockfile, features.h, _getopt_long_only_r.
90371
90372 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90373
90374         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90375         its complicated substitute.
90376         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90377         and program_invocation_name.
90378         (__argp_basename) [!_LIBC]: Remove; the only use was
90379         replaced by its body.
90380         (__argp_short_program_name): Change condition from
90381         !defined __argp_short_program_name to
90382         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90383         to match argp-namefrob.h.
90384         (__argp_failure): Don't assume strerror_r returns char *.
90385         * lib/argp-parse.c (N_): Define unconditionally.
90386         (argp_default_options): Fill out initializers with 0 to avoid
90387         gcc warnings.
90388
90389 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90390
90391         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90392         getopt1.c.
90393
90394 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90395
90396         Merge from coreutils.
90397
90398         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90399
90400         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90401         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90402
90403 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90404
90405         Merge from coreutils.
90406
90407         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90408         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90409         for Reliant Unix 5.43.
90410
90411         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90412         (union fooround): Use uintmax_t, not long int.
90413         The rest is a merge from libc:
90414         [defined _LIBC]: Include <shlib-compat.h>.
90415         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90416
90417         * lib/settime.c (settime): Recode to avoid warning with
90418         Sun Forte C 6U2.
90419
90420         * lib/strverscmp.c: Convert to UTF-8.
90421
90422 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90423
90424         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90425         m4/uintmax_t.m4.
90426
90427 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90428
90429         * modules/xalloc-die: New file.
90430         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90431
90432         * modules/md5 (Files): Add m4/uint32_t.m4.
90433         * modules/sha1: Renamed from modules/sha.
90434         (Files):
90435         Rename lib/sha.h to lib/sha1.h.
90436         Rename lib/sha.c to lib/sha1.c.
90437         Rename m4/sha.m4 to m4/sha1.m4.
90438         (lib_SOURCES): Likewise.
90439         (configure.ac): Rename gl_SHA to gl_SHA1.
90440         (Include): sha.h -> sha1.h.
90441
90442 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90443
90444         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90445         * m4/sha1.m4: Renamed from sha.m4.
90446         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90447
90448 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90449
90450         * lib/obstack.h (obstack_empty_p):
90451         Don't assume that chunk->contents is suitably aligned.
90452         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90453         Likewise. Problem reported by Benno in
90454         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90455
90456         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90457         readable.  This could be improved further but it'd take some work.
90458
90459 2004-08-08  Simon Josefsson  <jas@extundo.com>
90460
90461         * modules/xgethostname (Depends-on): Remove exit and error (not
90462         used).
90463
90464         * modules/getpass-gnu: Add getpass.h.
90465         (Depends-on): Add stdbool.
90466         * modules/getpass: Add getpass.h.
90467
90468 2004-08-08  Simon Josefsson  <jas@extundo.com>
90469
90470         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90471         Check getpass declaration.
90472
90473 2004-08-08  Simon Josefsson  <jas@extundo.com>
90474
90475         * lib/xgethostname.c: Don't include error.h (not used).
90476
90477         * lib/getpass.h: Add.
90478         * lib/getpass.c: Include getpass.h first.
90479
90480 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90481
90482         * lib/xalloc-die.c: New file.
90483         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90484         All uses removed.
90485         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90486         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90487         xalloc-die.c.
90488         (_, N_, xalloc_die): Move to xalloc-die.c.
90489         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90490         so that we needn't mess with xalloc_msg_memory_exhausted.
90491
90492         * lib/sha1.h: Renamed from sha.h.
90493         (SHA1_H): Renamed from _SHA_H.
90494         (sha1_ctx): Renamed from sha_ctx.
90495         (sha1_init_ctx): Renamed from sha_init_ctx.
90496         (sha1_process_block): Renamed from sha_process_block.
90497         (sha1_process_bytes): Renamed from sha_process_bytes.
90498         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90499         (sha1_read_ctx): Renamed from sha_read_ctx.
90500         (sha1_stream): Renamed from sha_stream.
90501         (sha1_buffer): Renamed from sha_buffer.
90502         * lib/sha1.c: Likewise; renamed from sha.c.
90503         Do not include <sys/types.h>.
90504         Include <stddef.h> rather than <stdlib.h>.
90505
90506 2004-08-08  Bruno Haible  <bruno@clisp.org>
90507
90508         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90509         FILESYSTEM_PREFIX_LEN.
90510         * lib/progreloc.c: Likewise.
90511         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90512
90513 2004-08-06  Simon Josefsson  <jas@extundo.com>
90514
90515         * modules/progname (Depends-on): Don't depend on stdbool.
90516
90517 2004-08-06  Simon Josefsson  <jas@extundo.com>
90518
90519         * modules/getsubopt: New file.
90520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90521         getsubopt.
90522
90523 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90524
90525         More merge from coreutils.
90526
90527         * m4/utimens.m4, m4/utimecmp.m4: New files.
90528         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90529         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90530         prereq.m4, sha.m4: Import changes from coreutils.
90531
90532 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90533
90534         More merge from coreutils.
90535         * modules/raise, modules/readtokens0, modules/utimens:
90536         * modules/utimecmp, module/xnanosleep: New files.
90537         * modules/strftime: Add lib/strftime.h.
90538         Change include from <time.h> to "strftime.h".
90539         * modules/yesno: Add lib/yesno.h.
90540         * modules/backupfile: Remove lib/addext.c.
90541         * modules/euidaccess: Add stat-macros.h.
90542         * modules/canonicalize, modules/euidaccess,
90543         modules/filemode, modules/lchown, modules/makepath,
90544         modules/rmdir, modules/stat: Likewise.
90545
90546 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90547
90548         Merge from tar.
90549         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90550         SIZE_MAX is a valid preprocessor constant.
90551         (__argp_basename): Change from "#ifndef _LIBC"
90552         to "#ifndef __argp_short_program_name", so that
90553         we don't compile these functions for tar.
90554
90555         More merges from coreutils.
90556         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90557         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90558         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90559         * lib/addext.c: Remove; no longer needed.
90560         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90561         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90562         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90563         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90564         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90565         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90566         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90567         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90568         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90569         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90570         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90571         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90572         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90573         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90574         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90575         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90576         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90577         Import changes from coreutils.
90578
90579 2004-08-05  Simon Josefsson  <jas@extundo.com>
90580
90581         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90582
90583 2004-08-05  Simon Josefsson  <jas@extundo.com>
90584
90585         * m4/getsubopt.m4: New file.
90586
90587 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90588
90589         Merge from coreutils.
90590
90591         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90592         * m4/getcwd-path-max.m4: New files.
90593
90594         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90595         FILESYSTEM_PREFIX_LEN ->
90596         FILE_SYSTEM_PREFIX_LEN.
90597         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90598         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90599         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90600         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90601
90602         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90603         prerequisite modules now handle the DOS stuff.
90604         Don't check for unistd.h.
90605
90606 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90607
90608         Merge from coreutils.
90609
90610         * lib/.gdb-history: Remove; this doesn't belong here.
90611
90612         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90613         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90614         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90615         * lib/getcwd.c: New files.
90616
90617         * lib/dirname.h: Include <stdbool.h>.
90618         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90619         for consistency with POSIX terminology.  All uses changed.
90620         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90621         (strip_trailing_slashes): Use bool for booleans.
90622         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90623
90624         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90625         sometimes returns a positive errno value even when it succeeds.
90626         (print_errno_message) [!LIBC]: Fall back on strerror if
90627         __strerror_r fails.
90628
90629         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90630         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90631         (longest_relative_suffix): New function.
90632         (path_concat): Use it.  Assume first argument is not NULL.
90633         Port to DOS.  Omit redundant separators.
90634         Report an error instead of returning NULL.
90635         Use mempcpy instead of memcpy.
90636         (xpath_concat): Remove: not declared or used.
90637
90638         * lib/same.h: Include <stdbool.h>
90639         (same_name): Return bool, not int.
90640         * lib/same.c (same_name): Likewise.
90641         (errno): Don't declare; we assume C89 or better now.
90642
90643         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90644         if not already defined.
90645
90646         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90647         * lib/dup-safer.c (errno): Likewise.
90648
90649 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90650
90651         Merge from coreutils.
90652         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90653         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90654         * modules/path-concat: Don't depend on strdup.
90655
90656 2004-08-03  Simon Josefsson  <jas@extundo.com>
90657
90658         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90659         * lib/progname.h: Don't include stdbool.h.
90660
90661 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90662
90663         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90664         * MODULES.html.sh (func_all_modules): Remove fatal.
90665
90666 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90667
90668         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90669
90670 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90671
90672         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90673         working.
90674
90675 2004-08-02  Simon Josefsson  <jas@extundo.com>
90676
90677         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90678         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90679         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90680
90681 2004-08-01  Simon Josefsson  <jas@extundo.com>
90682
90683         * lib/xgetdomainname.c: Include stdlib.h, for free().
90684
90685 2004-07-19  Bruno Haible  <bruno@clisp.org>
90686
90687         * MODULES.html.sh (func_all_modules): Add dummy.
90688
90689 2004-07-16  Simon Josefsson  <jas@extundo.com>
90690
90691         * modules/dummy: New file.
90692
90693 2004-07-16  Simon Josefsson  <jas@extundo.com>
90694
90695         * lib/dummy.c: New file.
90696
90697 2004-07-16  Bruno Haible  <bruno@clisp.org>
90698
90699         * lib/backupfile.h: Add extern "C" for C++.
90700         * lib/closeout.h: Likewise.
90701         * lib/copy-file.h: Likewise.
90702         * lib/findprog.h: Likewise.
90703         * lib/full-write.h: Likewise.
90704         * lib/pathname.h: Likewise.
90705         * lib/progname.h: Likewise.
90706         * lib/stpcpy.h: Likewise.
90707         * lib/stpncpy.h: Likewise.
90708         * lib/strcase.h: Likewise.
90709         * lib/strstr.h: Likewise.
90710         * lib/xalloc.h: Likewise.
90711
90712         * lib/mbswidth.h: Add extern "C" for C++.
90713         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90714
90715 2004-07-13  Robert Millan  <robertmh@gnu.org>
90716
90717         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90718
90719 2004-07-09  Simon Josefsson  <jas@extundo.com>
90720
90721         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90722         failed without this.)
90723
90724 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90725
90726         * modules/chown (Files): Add lib/fchown-stub.c, since
90727         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90728
90729 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90730
90731         * lib/fchown-stub.c: New file.
90732
90733 2004-06-24  Jim Meyering  <jim@meyering.net>
90734
90735         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90736
90737 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90738
90739         * modules/argz: Omit "#include".
90740
90741         * MODULES.html.sh (func_all_modules): Add calloc, to match
90742         2004-06-01 addition of calloc module.
90743
90744 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90745
90746         * m4/argz.m4: New file, which is autoupdated from libtool.
90747
90748 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90749
90750         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90751         libtool.
90752
90753 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90754
90755         * config/srclist-update: Don't insist on "USA." before the
90756         close-comment, as libtool omits the period and puts the */ on a
90757         separate line.
90758         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90759         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90760
90761 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90762
90763         * modules/argz: New file.
90764         * MODULES.html.sh (func_all_modules): Add argz.
90765
90766 2004-06-12  Jim Meyering  <jim@meyering.net>
90767         and  Paul Eggert  <eggert@cs.ucla.edu>
90768
90769         * modules/hash (Files): Add lib/xalloc.h.
90770         * modules/pipe (Depends-on): Add wait-process.
90771         * modules/stat (Depends-on): Add xalloc.
90772         * modules/userspec (Files): Add lib/userspec.h.
90773         * modules/xstrto
90774
90775         Upgrade from gettext-0.13.
90776         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90777         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90778         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90779
90780 2004-06-10  Jim Meyering  <jim@meyering.net>
90781
90782         * lib/calloc.c: New file.
90783
90784 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90785
90786         * lib/getdate.y (yylex): Allow space between sign and number.
90787         Problem reported by Dan Jacobson.
90788
90789 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90790
90791         Merge from coreutils CVS.
90792
90793         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90794         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90795         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
90796         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
90797         xstrtol.m4: Fix copyright date and/or serial number.
90798
90799         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
90800         See if we need an fchown replacement.
90801         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
90802         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
90803         and use the replacement function if we detect either defect.
90804
90805         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
90806         gl_UTIMECMP.
90807
90808 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90809         and  Jim Meyering  <jim@meyering.net>
90810
90811         Merge from coreutils CVS.
90812
90813         * lib/stat-macros.h: New file, with contents from file-type.h
90814         and coreutils' system.h.
90815         * lib/file-type.c: Include "stat-macros.h".
90816         * lib/file-type.h (file_type): Move all macro definitions to new file,
90817         stat-macros.h.
90818
90819         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
90820         Wrap old code with this conditional.
90821         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
90822         function that does not dereference symlinks.
90823         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
90824
90825         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
90826         dependency problems.
90827         (xreadlink): Accept new arg SIZE, for efficiency.
90828         All decls and uses changed.
90829         * lib/xreadlink.h: Include <stddef.h>, for size_t.
90830
90831         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
90832         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
90833
90834         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
90835         sysexits.h.
90836
90837 2004-06-01  Jim Meyering  <jim@meyering.net>
90838
90839         * m4/calloc.m4: New file.
90840
90841 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
90842
90843         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90844         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90845         Also, fix a typo in a diagnostic.
90846
90847 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90848
90849         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90850         or AC_FUNC_REALLOC.
90851
90852 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90853
90854         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90855         macros to be defined.
90856         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90857         the allocator returns NULL because the requested size is zero.
90858
90859 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90860
90861         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90862         var.  Add comment explaining why libc still defines it.  This
90863         merges the following patch from glibc:
90864         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90865
90866 2004-05-20  Andreas Schwab  <schwab@suse.de>
90867
90868         * m4/free.m4: Replace free if it not known to work, not the other
90869         way round.
90870
90871 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90872
90873         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90874         present in glibc since revision 1.1 of this file.
90875         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90876         obstack_alignment_mask, obstack_alloc, obstack_base,
90877         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90878         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90879         obstack_grow0, obstack_init, obstack_int_grow,
90880         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90881         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90882         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90883         nonexistent functions.
90884
90885 2004-05-18  Karl Berry  <karl@gnu.org>
90886
90887         * config/srclist.txt: break link for vasnprintf.c.
90888
90889 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90890
90891         Port obstack to the AS/400, where pointers are 16 bytes wide and
90892         you cannot cast an integer to a valid pointer.  This patch is
90893         currently waiting to be integrated into glibc; see
90894         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90895
90896         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90897         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90898         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90899         (struct obstack): temp member is now a union of a pointer and
90900         an integer, instead of an integer.  All integer uses changed.
90901         This does not affect the physical layout of struct obstack,
90902         except on hosts (like the AS/400) where the size or alignment of
90903         void * is greater than that of ptrdiff_t.
90904         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90905         __STDC__)]: Store temporary in pointer member of union, not
90906         integer member.
90907         * lib/obstack.c: Include <stddef.h>, for offsetof.
90908         (struct fooalign): Remove; it doesn't need a name.
90909         (union fooround): Change double to long double, and add void *.
90910         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90911         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90912         not a macro.  Hence the values are always int; so remove all
90913         casts-to-int in uses.
90914
90915 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90916
90917         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90918         we can get this patch merged into glibc.
90919
90920 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90921             Paul Eggert  <eggert@cs.ucla.edu>
90922
90923         * m4/argp: Depend on alloca.
90924
90925 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90926             Paul Eggert  <eggert@cs.ucla.edu>
90927
90928         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90929         freecoding.
90930
90931 2004-05-17  Bruno Haible  <bruno@clisp.org>
90932
90933         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90934         precision that consists of a '.' followed by an empty digit string.
90935         Patch by Tor Lillqvist <tml@iki.fi>.
90936
90937 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90938
90939         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90940         for backward compatibility with older code.  We need our own
90941         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90942         it under some other name, and our alloca.h will define it.
90943
90944 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90945             Derek Price  <derek@ximbiot.com>
90946
90947         * lib/alloca.c: Include <alloca.h>, to get our interface.
90948         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90949         include <alloca.h> first.  Use C89 prototype for alloca; this
90950         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90951         Use #elif for simplicity, since we can assume C89 now.
90952         Don't try to source the system alloca.h since it will not be found
90953         and to prevent recursively including its replacement.
90954         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90955         * lib/regex.c: Likewise.
90956
90957 2004-05-16  Derek Price  <derek@ximbiot.com>
90958             Paul Eggert  <eggert@cs.ucla.edu>
90959
90960         getline cleanup.  This changes the getndelim2 API: both order of
90961         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90962         no delimiter).
90963
90964         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90965         interface does that.
90966         (getline): Always use getdelim, so that we don't have two
90967         copies of this code.
90968         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90969         if available.
90970         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90971         (GETNDELIM2_MAXIMUM): New macro.
90972         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90973         instead of the old practice of delim2==0.  All callers changed.
90974         Return -1 on overflow, instead of returning junk.
90975         Do not set *linesize unless allocation succeeds.
90976         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90977         that we include sys/types.h.
90978         * lib/getnline.h: Likewise.
90979         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90980         (getndelim2): Reorder arguments.
90981         * lib/getnline.c (getnline, getndelim):
90982         Don't discard the NMAX argument.
90983         (getnline): Invoke getndelim, to avoid code duplication.
90984         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90985         of (size_t) -1 by callers of the getnline family.
90986
90987 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90988
90989         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90990         Check for gettimeofday.
90991         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90992         Check for settimeofday, stime.
90993
90994 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90995
90996         * lib/nanosleep.c (suspended): Change its type from int to
90997         sig_atomic_t volatile.
90998         (first_call): Make it private to rpl_nanosleep, and have it
90999         be zero initially as that's a bit faster.
91000         (my_usleep): Round up fractional times instead of truncating them,
91001         as this is the usual meaning for 'sleep'.
91002
91003         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91004         doesn't work.
91005         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91006         (ENOSYS): Define if not defined.
91007         (settime): Fall back on stime if it exists and settimeofday fails.
91008         But don't bother with fallbacks if a method fails with errno == EPERM.
91009
91010 2004-05-11  Jim Meyering  <jim@meyering.net>
91011
91012         Prior to this change, the save_cwd caller required read access to the
91013         current directory on most systems (ones with the fchdir function).
91014
91015         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91016         fails, try write-only, and finally, resort to using xgetcwd.
91017
91018 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91019
91020         * lib/obstack.c, obstack.h: Import changes from libc.
91021
91022 2004-04-28  Bruno Haible  <bruno@clisp.org>
91023
91024         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91025         also implicitly appends .exe to executables.
91026         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91027         accepts Windows pathnames.
91028         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91029         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91030         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91031         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91032         Reported by Derek Robert Price <derek@ximbiot.com>.
91033
91034 2004-04-21  Karl Berry  <karl@gnu.org>
91035
91036         * config/srclist.txt (localcharset.c): break sync.
91037
91038 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91039
91040         * m4/host-os.m4: Add a copyright notice.
91041
91042 2004-04-20  Jim Meyering  <jim@meyering.net>
91043
91044         Change UTILS_ to gl_ in AC_DEFINE'd names.
91045         Change utils_- and jm_-prefixed variables, too.
91046         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91047         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91048         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91049
91050         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91051         Don't emit trailing blanks.
91052         Also rename jm_-prefixed variables to have gl_ prefix.
91053
91054         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91055         Also rename jm_-prefixed variables to have gl_ prefix.
91056
91057         * m4/jm-macros.m4: Reflect the renamings.
91058         * m4/prereq.m4: Likewise.
91059
91060 2004-04-20  Jim Meyering  <jim@meyering.net>
91061
91062         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91063         memory.
91064
91065 2004-04-20  Jim Meyering  <jim@meyering.net>
91066             Bruno Haible  <bruno@clisp.org>
91067
91068         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91069         memory when realloc fails.
91070
91071 2004-04-19  Jim Meyering  <jim@meyering.net>
91072
91073         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91074         now that readutmp.c may call `free (0)'.
91075
91076 2004-04-19  Bruno Haible  <bruno@clisp.org>
91077
91078         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91079         * m4/inttypes_h.m4: Likewise.
91080         * m4/stdint_h.m4: Likewise.
91081         * m4/intmax_t.m4: Likewise.
91082         * m4/uintmax_t.m4: Likewise.
91083
91084 2004-04-18  Jim Meyering  <jim@meyering.net>
91085
91086         * m4/prereq.m4: Don't forbid jm_ prefix.
91087
91088         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91089         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91090         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91091         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91092         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91093         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91094         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91095         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91096         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91097         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91098         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91099         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91100         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91101         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91102         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91103         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91104         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91105         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91106         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91107
91108 2004-04-18  Jim Meyering  <jim@meyering.net>
91109
91110         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91111         failure, don't leak memory and do call END_UTMP_ENT.
91112
91113 2004-04-16  Jim Meyering  <jim@meyering.net>
91114
91115         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91116         coreutils' stat program.
91117         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91118
91119 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91120
91121         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91122         C89.
91123         (CHAR_BIT): Remove, since we assume C89.
91124         Include <stdint.h> if available, as per current Autoconf CVS advice.
91125
91126 2004-03-31  Jim Meyering  <jim@meyering.net>
91127
91128         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91129         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91130         * m4/xalloc.m4: Likewise.
91131
91132 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91133
91134         Merge from coreutils.
91135
91136         * m4/inttostr.m4: New file.
91137         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91138         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91139         Require gl_CLOCK_TIME.
91140         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91141
91142 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91143
91144         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91145         not bool, to be more consistent with Unix conventions.
91146         Suggested by Bruno Haible.
91147
91148         Merge from coreutils.
91149
91150         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91151         * lib/umaxtostr.c: New files.
91152
91153         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91154         the usual <time.h> dance.
91155         (get_date): Change signature to support fractional time stamps.
91156         All callers changed.
91157         * lib/getdate.y: Include "getdate.h" first, as we can now
91158         assume C89 and don't need to worry about 'const'.
91159         Similarly, include "unlocked-io.h" near start, not in middle.
91160         Include <limits.h>.
91161         (textint.value): Use long int rather than int.
91162         (textint.digits): Use size_t rather than int.
91163         (BILLION, LOG10_BILLION): New constants.
91164         (parser_control): New member rel_ns.  Members day_ordinal,
91165         time_zone, month, day, hour, minutes, rel_year, rel_month,
91166         rel_day, rel_hour, rel_minutes, rel_seconds
91167         are now long int, not int.  Member seconds is now struct timespec,
91168         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91169         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91170         not int.
91171         (%union.intval): Now long int, not int.
91172         New member timespec.
91173         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91174         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91175         (spec): Now is a timespec or an item list.
91176         (timespec, items): New nonterminals.
91177         (time, rel, relunit, number, get_date):
91178         Add support for fractional seconds.
91179         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91180         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91181         (to_hour): First arg is now long int, not int.
91182         (to_year): Returns long int, not int.
91183         Don't treat year -70 like 70.
91184         (tm_diff): Returns long int, not int.
91185         (lookup_word): Use bool instead of int when appropriate.
91186         (yylex): Use size_t for count, not int.
91187         Detect overflow when parsing large integer constants.
91188         Add support for fractions.
91189         (get_date): Make pointers 'const' if possible.
91190         Use more-portable code to detect integer overflow.
91191         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91192         Don't use ctime; it's not reliable if the year has >4 digits.
91193
91194         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91195         This is for compatibility with BSD.
91196
91197         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91198         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91199         From coreutils' system.h.
91200
91201         * lib/userspec.c: Don't include "posixver.h".
91202         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91203         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91204         compatible extension.  Simplify code by removing a boolean int
91205         that was always nonzero if a string was nonnull.
91206
91207 2004-03-30  Jim Meyering  <jim@meyering.net>
91208
91209         Merge from coreutils.
91210
91211         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91212         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91213         on some systems one must include <grp.h> before it.
91214         Reported by Christian Krackowizer.
91215
91216 2004-03-30  Jim Meyering  <jim@meyering.net>
91217
91218         Merge from coreutils.
91219
91220         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91221
91222         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91223         an empty input stream.
91224
91225         * lib/readtokens.c: Include <stdbool.h>.
91226         (readtoken): Use `size_t' rather than int/long.
91227         All callers adjusted.
91228         Use `bool' rather than `int' where appropriate.
91229         Use memset rather than an explicit loop.
91230         Use x2nrealloc rather than xrealloc.
91231         Allow the use of `\0' as a delimiter.
91232         (readtokens): Likewise.
91233         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91234
91235 2004-03-30  Jim Meyering  <jim@meyering.net>
91236
91237         * m4/realloc.m4: Remove file, since now it does no more than
91238         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91239         the `configure.ac' section of module/realloc.
91240         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91241
91242 2004-03-30  Bruno Haible  <bruno@clisp.org>
91243
91244         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91245         nonnull.
91246
91247 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91248
91249         Merge changes to getloadavg.c from coreutils and Emacs.
91250
91251         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91252         Define to an expression, not to the empty string.
91253         Include cloexec.h and xalloc.h.
91254         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91255         Use set_cloexec_flag rather than rolling our own.
91256         * lib/cloexec.c, lib/cloexec.h: New files.
91257
91258 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91259
91260         * m4/cloexec.m4: New file.
91261
91262 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91263
91264         * lib/getopt.h: Sync with libc CVS.
91265
91266 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91267             Bruno Haible  <bruno@clisp.org>
91268
91269         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91270         mbswidth.
91271
91272 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91273             Bruno Haible  <bruno@clisp.org>
91274
91275         * lib/mbswidth.h: Include <wchar.h> only if
91276         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91277         <wchar.h>.
91278         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91279
91280 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91281
91282         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91283         Sync with libc CVS.
91284         * lib/getopt_int.h: New file, also synced from libc.
91285
91286 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91287
91288         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91289         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91290         Bring back getopt.c, getopt.h, getopt1.c.
91291
91292 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91293
91294         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91295         All uses changed.  Check for sa_sigaction member; this fixes
91296         a bug first reported by Jason Andrade in
91297         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91298
91299 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91300
91301         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91302         '#if' expressions.  Unlike the code it replaces, it does not
91303         depend on (defined _SC_PAGESIZE).  However, it does depend on
91304         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91305         first reported by Jason Andrade in
91306         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91307
91308 2004-02-25  Simon Josefsson  <jas@extundo.com>
91309
91310         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91311
91312 2004-02-25  Simon Josefsson  <jas@extundo.com>
91313
91314         * lib/strdup.h: New file.
91315         * lib/strdup.c: Include it.
91316         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91317         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91318
91319 2004-02-23  Karl Berry  <karl@gnu.org>
91320
91321         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91322         (from fencepost.gnu.org:/gd/gnuorg).
91323
91324 2004-02-23  Karl Berry  <karl@gnu.org>
91325
91326         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91327         * config/srclist.txt: add maintain/standards documents.
91328
91329 2004-02-18  Bruno Haible  <bruno@clisp.org>
91330
91331         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91332         Reported by Derek Robert Price <derek@ximbiot.com>.
91333
91334 2004-02-16  Karl Berry  <karl@gnu.org>
91335
91336         * config/mkinstalldirs, install-sh: update from automake.
91337
91338 2004-02-06  Karl Berry  <karl@gnu.org>
91339
91340         * m4/po.m4: update from gettext 0.14.1.
91341
91342 2004-02-06  Karl Berry  <karl@gnu.org>
91343
91344         * lib/config.charset: update from gettext 0.14.1.
91345
91346 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91347
91348         Add comments and code, prompted by suggestions from Bruno Haible
91349         for sh-quote.
91350         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91351         describing the enum quoting_style values.
91352         * lib/quotearg.c (quotearg_alloc): New function.
91353         (quotearg_buffer_restyled): Treat lone { and } as special.
91354         Treat = as special.  Work around bug with older shells
91355         that "see" a '\' that is really the 2nd byte of a multibyte char.
91356         Quote empty string with shell_quoting_style.
91357
91358 2004-02-03  Bruno Haible  <bruno@clisp.org>
91359
91360         * m4/pipe.m4: New file, from GNU gettext.
91361
91362 2004-02-03  Bruno Haible  <bruno@clisp.org>
91363
91364         * lib/pipe.h: New file, from GNU gettext.
91365         * lib/pipe.c: New file, from GNU gettext.
91366
91367 2004-01-27  Bruno Haible  <bruno@clisp.org>
91368
91369         * m4/execute.m4: New file, from GNU gettext.
91370
91371 2004-01-27  Bruno Haible  <bruno@clisp.org>
91372
91373         * lib/execute.h: New file, from GNU gettext.
91374         * lib/execute.c: New file, from GNU gettext.
91375         * lib/w32spawn.h: New file, from GNU gettext.
91376
91377 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91378
91379         Merge from diffutils.
91380
91381         * lib/file-type.c (file_type): Add typed memory objects.
91382         * lib/file-type.h (S_TYPEISTMO): New macro.
91383
91384         * lib/c-stack.h (c_stack_action): Remove argv argument.
91385         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91386         (die): Don't calculate message unless segv_action returns.
91387         (get_stack_location, min_address_from_argv, max_address_from_argv,
91388         volatile stack_base, volatile_stack_size): Remove.
91389         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91390         that every segmentation violation is a stack overflow.  (Ouch!)
91391         See Debian bug 136249 (still outstanding) for more info about why
91392         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91393
91394 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91395
91396         Exit-status fix from coreutils.
91397
91398         Use exit_failure consistently in place of EXIT_FAILURE,
91399         so that program exit statuses are consistent on failure.
91400
91401         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91402         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91403         * lib/argmatch.h: Comment fix to match the above.
91404         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91405         Now a macro referring to exit_failure, instead of a separate
91406         variable.  Include "exitfail.h" to get it.
91407         * lib/xstrtol.h: Include "exitfail.h".
91408         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91409
91410         * lib/long-options.c (parse_long_options): Use prototype
91411         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91412         for clarity.
91413
91414 2004-01-21  Jim Meyering  <jim@meyering.net>
91415
91416         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91417         so as not to conflict with a different-sized __mktime_internal
91418         function in GNU libc.
91419         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91420         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91421
91422 2004-01-20  Karl Berry  <karl@gnu.org>
91423
91424         * config/config.guess: update from config.
91425
91426         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91427
91428 2004-01-20  Bruno Haible  <bruno@clisp.org>
91429
91430         Safer stack allocation.
91431         * lib/setenv.c: Include allocsa.h.
91432         (alloca): Remove fallback definition.
91433         (freea): Remove macro.
91434         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91435         instead of freea.
91436
91437 2004-01-20  Bruno Haible  <bruno@clisp.org>
91438
91439         * m4/eealloc.m4: New file, from GNU gettext.
91440
91441 2004-01-20  Bruno Haible  <bruno@clisp.org>
91442
91443         * m4/allocsa.m4: New file, from GNU gettext.
91444
91445 2004-01-20  Bruno Haible  <bruno@clisp.org>
91446
91447         * lib/xallocsa.h: New file, from GNU gettext.
91448         * lib/xallocsa.c: New file, from GNU gettext.
91449
91450 2004-01-20  Bruno Haible  <bruno@clisp.org>
91451
91452         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91453
91454 2004-01-20  Bruno Haible  <bruno@clisp.org>
91455
91456         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91457         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91458         specially.
91459
91460 2004-01-20  Bruno Haible  <bruno@clisp.org>
91461
91462         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91463         patch.
91464
91465 2004-01-20  Bruno Haible  <bruno@clisp.org>
91466
91467         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91468
91469 2004-01-20  Bruno Haible  <bruno@clisp.org>
91470
91471         * lib/eealloc.h: New file.
91472
91473 2004-01-20  Bruno Haible  <bruno@clisp.org>
91474
91475         * lib/binary-io.h: Avoid warnings on Cygwin.
91476
91477 2004-01-20  Bruno Haible  <bruno@clisp.org>
91478
91479         * lib/allocsa.h: New file, from GNU gettext.
91480         * lib/allocsa.c: New file, from GNU gettext.
91481
91482 2004-01-18  Karl Berry  <karl@gnu.org>
91483
91484         * doc/gpl.texi, doc/lgpl.texi: new files.
91485
91486 2004-01-18  Karl Berry  <karl@gnu.org>
91487
91488         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91489         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91490
91491 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91492
91493         Merge from coreutils.
91494
91495         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91496         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91497         (gl_DEFAULT_POSIX2_VERSION): Move
91498         the documentation from 'configure' into 'config.hin',
91499         so that 'configure --help' isn't burdened by it and
91500         we don't have to worry about its formatting there.
91501         Reword the documentation so that it's more succinct
91502         and can be run together into a single paragraph.
91503         * m4/same.m4 (gl_SAME): Check for pathconf.
91504
91505 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91506
91507         Merge from coreutils.
91508
91509         * lib/posixver.c: Include posixver.h.
91510
91511         * lib/same.c: Include <stdbool.h>, <limits.h>.
91512         (_POSIX_NAME_MAX): Define if not defined.
91513         (MIN): New macro.
91514         (same_name): If file names are silently truncated, report
91515         that the file names are the same if they are the same after
91516         the silent truncation.
91517
91518         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91519         conversion function.
91520         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91521         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91522         longer needed.
91523
91524 2004-01-15  Jim Meyering  <jim@meyering.net>
91525
91526         Merge from coreutils.
91527
91528         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91529         if no library is required.
91530         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91531         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91532         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91533         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91534         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91535         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91536         value, $ac_cv_search_crypt, if it's "none required".
91537         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91538         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91539         not gl_FUNC_GETLOADAVG.
91540         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91541         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91542
91543 2004-01-15  Jim Meyering  <jim@meyering.net>
91544
91545         Merge from coreutils.
91546
91547         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91548         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91549         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91550
91551         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91552         optional configure-time default.
91553
91554         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91555
91556         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91557
91558 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91559
91560         Merge from coreutils.
91561
91562         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91563         value, $ac_cv_search_nanosleep, if it's "none required".
91564
91565 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91566
91567         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91568         with like-named macro in fnmatch.c.
91569         (EXT): Use an internal constant instead.
91570
91571         Merge fnmatch patches from glibc.
91572         * lib/fnmatch.c (mbsinit): Remove define.
91573         Add libc_hidden_ver (__fnmatch, fnmatch).
91574         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91575         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91576
91577 2004-01-14  Karl Berry  <karl@gnu.org>
91578
91579         * config/install-sh: update from automake.
91580
91581 2004-01-13  Karl Berry  <karl@gnu.org>
91582
91583         * config/install-sh: update from automake.
91584
91585 2004-01-09  Karl Berry  <karl@gnu.org>
91586
91587         * config/install-sh: update from automake.
91588
91589 2004-01-05  Karl Berry  <karl@gnu.org>
91590
91591         * config/config.{sub,guess}: update from config.
91592
91593 2003-12-31  Karl Berry  <karl@gnu.org>
91594
91595         * config/depcomp: update from automake.
91596
91597 2003-12-14  Karl Berry  <karl@gnu.org>
91598
91599         * lib/config.charset: update from gettext-runtime.
91600
91601 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91602
91603         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91604         Bug reported by Alfred M. Szmidt.
91605
91606 2003-12-03  Bruno Haible  <bruno@clisp.org>
91607
91608         * m4/gettext.m4: Upgrade from gettext-0.13.
91609         * m4/po.m4: Upgrade from gettext-0.13.
91610         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91611         * m4/intmax.m4: New file, from gettext-0.13.
91612         * m4/printf-posix.m4: New file, from gettext-0.13.
91613
91614 2003-11-29  Karl Berry  <karl@gnu.org>
91615
91616         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91617
91618 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91619             Bruno Haible  <bruno@clisp.org>
91620
91621         * lib/printf-parse.h: Don't include sys/types.h.
91622         (ARG_NONE): New macro.
91623         (char_directive): Change type of *arg_index fields to size_t.
91624         * lib/printf-parse.c: Don't include sys/types.h.
91625         (SSIZE_MAX): Remove macro.
91626         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91627         Remove unnecessary overflow check.
91628         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91629         fields.
91630
91631 2003-11-25  Bruno Haible  <bruno@clisp.org>
91632
91633         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91634
91635 2003-11-25  Bruno Haible  <bruno@clisp.org>
91636
91637         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91638         gt_TYPE_SSIZE_T.
91639
91640 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91641
91642         * modules/alloca: Remove dependency on xalloc.
91643
91644 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91645
91646         * lib/alloca.c: Remove dependency on xalloc module.
91647         (xalloc_die): Remove.
91648         (memory_full) [!defined emacs]: New macro.
91649         [!defined emacs]: Don't include xalloc.h.
91650         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91651         address arithmetic overflows.  Change datatypes a bit to avoid
91652         unnecessary casts.
91653
91654 2003-11-22  Jim Meyering  <jim@meyering.net>
91655
91656         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91657         s/size/size_t/.
91658
91659 2003-11-21  Karl Berry  <karl@gnu.org>
91660
91661         * config/config.{sub,guess}: update from config.
91662
91663 2003-11-18  Karl Berry  <karl@gnu.org>
91664
91665         * config/config.{sub,guess}: update from config.
91666
91667         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91668
91669 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91670
91671         * README: Mention that S+T cannot overflow if S is the size of
91672         an existing object and T is sufficiently small.
91673
91674 2003-11-17  Jim Meyering  <jim@meyering.net>
91675
91676         On systems without utime and without a utimes function capable of
91677         dealing with a NULL struct utimbuf* argument, this utime replacement
91678         could -- in unusual circumstances -- leak a file descriptor.
91679         * lib/utime.c: Include <unistd.h> and <errno.h>.
91680         (utime_null): Be sure to close `fd' and to preserve errno.
91681         Reported by Geoff Collyer via Arnold Robbins.
91682
91683 2003-11-17  Bruno Haible  <bruno@clisp.org>
91684
91685         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91686         (Depends-on): Add xsize.
91687
91688 2003-11-17  Bruno Haible  <bruno@clisp.org>
91689
91690         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91691
91692 2003-11-17  Bruno Haible  <bruno@clisp.org>
91693
91694         * lib/vasnprintf.c (alloca): Remove fallback definition.
91695         (freea): Remove definition.
91696         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91697         Reported by Paul Eggert.
91698
91699 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91700             Bruno Haible  <bruno@clisp.org>
91701
91702         Protect against address arithmetic overflow.
91703         * lib/printf-args.h: Include stddef.h.
91704         (arguments): Change type of field 'count' to size_t.
91705         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91706         'unsigned int' where appropriate.
91707         * lib/printf-parse.h: Include sys/types.h.
91708         (char_directive): Change type of *arg_index fields to ssize_t.
91709         (char_directives): Change type of fields 'count', max_*_length to
91710         size_t.
91711         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91712         (SSIZE_MAX): Define fallback value.
91713         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91714         instead of 'int' where appropriate. Check a_allocated, d_allocated
91715         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91716         * lib/vasnprintf.c: Include xsize.h.
91717         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91718         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91719         overflow. Avoid wraparound when converting a width or precision from
91720         decimal to binary.
91721
91722 2003-11-16  Bruno Haible  <bruno@clisp.org>
91723
91724         Update from GNU gettext.
91725         * lib/printf-parse.c: Generalize to it can be compiled for wide
91726         strings.
91727         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91728         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91729         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91730         SNPRINTF): New macros.
91731         Don't include <alloca.h> if the file is used inside libintl.
91732         (local_wcslen): New function, for Solaris 2.5.1.
91733         (VASNPRINTF): Use it instead of wcslen.
91734
91735 2003-11-16  Bruno Haible  <bruno@clisp.org>
91736
91737         * lib/xsize.h (xmax): New function.
91738         (xsum, xsum3, xsum4): Declare as "pure" functions.
91739
91740 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91741
91742         * modules/xalloc (Files): Undo latest change, since xalloc.h
91743         no longer needs SIZE_MAX or PTRDIFF_MAX.
91744
91745 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91746
91747         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91748         gl_PTRDIFF_MAX.
91749
91750 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91751
91752         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91753         "return", to pacify some unknown compiler.  Problem reported
91754         by Joerg Schilling.
91755
91756 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91757
91758         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91759         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91760         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91761         heuristic is just as accurate as far as we know, and it removes a
91762         dependency on size_max.m4 and ptrdiff_max.m4.
91763
91764 2003-11-11  Bruno Haible  <bruno@clisp.org>
91765
91766         * modules/xsize (Files): Add m4/size_max.m4.
91767         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91768
91769 2003-11-11  Bruno Haible  <bruno@clisp.org>
91770
91771         * m4/size_max.m4: New file.
91772         * m4/ptrdiff_max.m4: New file.
91773         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91774         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91775         (gl_XALLOC): Invoke it.
91776
91777 2003-11-11  Bruno Haible  <bruno@clisp.org>
91778
91779         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91780         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91781         defined.
91782
91783 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91784
91785         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91786         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91787         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91788         From Bruno Haible.
91789         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91790         not (size_t) -1, since it's defined here.
91791
91792 2003-11-09  Karl Berry  <karl@gnu.org>
91793
91794         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91795
91796 2003-11-06  Paul Eggert  <eggert@twinsun.com>
91797
91798         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
91799         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
91800         Reject sizes of exactly SIZE_MAX bytes.
91801         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
91802         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
91803
91804 2003-11-05  Bruno Haible  <bruno@clisp.org>
91805
91806         * lib/xsize.h: Include limits.h, to avoid a possible collision with
91807         SIZE_MAX defined in <limits.h> on Solaris.
91808
91809 2003-11-04  Jim Meyering  <jim@meyering.net>
91810
91811         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
91812         variable names, rather than @VAR@.
91813         * modules/poll: Likewise.
91814
91815 2003-11-04  Bruno Haible  <bruno@clisp.org>
91816
91817         * modules/xsize: New file.
91818         * modules/linebreak: Depend on xsize.
91819         * MODULES.html.sh (func_all_modules): Add xsize.
91820
91821 2003-11-04  Bruno Haible  <bruno@clisp.org>
91822
91823         * m4/xsize.m4: New file.
91824
91825 2003-11-04  Bruno Haible  <bruno@clisp.org>
91826
91827         * lib/xsize.h: New file.
91828         * lib/linebreak.c: Include xsize.h.
91829         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
91830         argument for overflow.
91831         Suggested by Paul Eggert.
91832
91833 2003-11-03  Karl Berry  <karl@gnu.org>
91834
91835         * config/config.{guess,sub}: update from config.
91836
91837 2003-11-03  Jim Meyering  <jim@meyering.net>
91838
91839         * modules/userspec (lib_SOURCES): Add userspec.h.
91840         (Include): Add "userspec.h".
91841         Improve description.
91842
91843 2003-11-03  Jim Meyering  <jim@meyering.net>
91844
91845         * lib/userspec.c: Include "userspec.h".
91846         * lib/userspec.h: New file.
91847
91848 2003-11-03  Bruno Haible  <bruno@clisp.org>
91849
91850         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91851
91852 2003-11-03  Bruno Haible  <bruno@clisp.org>
91853
91854         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91855         available, to avoid (extremely rare) race condition.
91856         Suggested by Paul Eggert.
91857
91858 2003-11-02  Karl Berry  <karl@gnu.org>
91859
91860         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91861
91862 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91863
91864         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91865         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91866         (read_filesystem_list): Set and use me_type_malloced.
91867         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91868         whatever the type happens to be), for brevity and consistency.
91869         Check for size calculation overflow on Alphas running OSF/1.
91870
91871 2003-10-31  Jim Meyering  <jim@meyering.net>
91872
91873         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91874
91875         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91876
91877 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91878             Bruno Haible  <bruno@clisp.org>
91879
91880         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91881         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91882
91883 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91884
91885         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91886         netbsd*-gnu*.  Suggested by Robert Millan.
91887
91888 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91889
91890         * modules/group-member: Depend on stdbool.
91891
91892 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91893
91894         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91895
91896 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91897
91898         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91899         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91900         after the 'gnu' in these cases.  This fixes some bugs in the
91901         previous change, and is based on suggestions by Robert Millan.
91902
91903 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91904
91905         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91906         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91907         no longer needed.
91908         * lib/quotearg.c (quotearg_n_options): Use it.
91909         * lib/group-member.c: Include <stdbool.h>.
91910         (free_group_info): Arg is now const *; don't free arg.
91911         (get_group_info): Now returns bool and accepts struct group_info *,
91912         rather than returning a malloc'ed struct group_info *.
91913         All uses changed.  Check for overflow in internal size calculation.
91914
91915         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91916         rather than xmalloc/xrealloc.
91917         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91918         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91919         conformance bug: the old code used a pointer after freeing the
91920         storage that it addressed.
91921         * lib/hash.c (hash_initialize): Simplify the code by using
91922         xalloc_oversized rather than doing it by hand.
91923         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91924         the buffer preserved.  Use free and xmalloc instead.
91925         * lib/quotearg.c (quotearg_n_options): Likewise.
91926         Use a simpler test for size overflow.  Don't use xalloc_oversized
91927         because unsigned int might be wider than size_t (!); this suggests
91928         that we should switch from unsigned int to size_t for slot numbers.
91929
91930 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91931
91932         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91933         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91934         NetBSD kernels.  Requested by Richard Stallman.
91935
91936 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91937
91938         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91939         to allocate the returned structure.  Do not allocate a subarray,
91940         as x2nrealloc will do that.
91941         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91942         instead of xnrealloc.
91943         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91944
91945 2003-10-27  Bruno Haible  <bruno@clisp.org>
91946
91947         * lib/stdbool_.h: Better support for BeOS.
91948
91949 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91950
91951         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91952         now uses inline.
91953
91954 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91955
91956         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91957         callers that want to do their own size-overflow checking.  Include
91958         <stdbool.h>, since xalloc_oversized returns bool.
91959         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91960         to use xalloc_oversized.
91961
91962         Add two functions x2realloc, x2nrealloc, for programs that grow
91963         arrays dynamically by doubling their sizes.
91964         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91965         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91966         New functions.
91967
91968         Port to C99 semantics for 'inline' of external functions.
91969         Bug reported by Bruno Haible.
91970         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91971         with the old contents of xnmalloc.
91972         (xnmalloc, xmalloc): Use it.
91973         (xnrealloc_inline): New static inline function,
91974         with the old contents of xnrealloc.
91975         (xnrealloc, xrealloc): Use it.
91976
91977         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91978         that.
91979
91980 2003-10-26  Karl Berry  <karl@gnu.org>
91981
91982         * config/srclist.txt (COPYING.DOC): no longer available from
91983         /gd/gnuorg; don't know where the ultimate source is.
91984
91985 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91986
91987         Fix several address-calculation bugs in the hash modules,
91988         plus some minor code cleanup.
91989
91990         * lib/hash.h: Include <stdbool.h>, for bool.
91991         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91992         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91993         hash_get_n_entries, hash_get_max_bucket_length,
91994         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91995         hash_rehash): Use size_t rather than unsigned.
91996         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91997         hash_get_n_buckets_used, hash_get_n_entries,
91998         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91999         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92000         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92001         Likewise.
92002         (SIZE_MAX): Define if not defined.
92003         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92004         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92005         hash_print):
92006         Use const * when possible.
92007         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92008         (check_tuning): Fix bug: if tuning parameters were very close to
92009         0 or 1, rounding errors could have caused subscript violations.
92010         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92011         (hash_initialize): Add 'fail:' label
92012         to free table and return NULL, and use it to simplify code.
92013         Use calloc rather than clearing the storage ourself.
92014         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92015         buffer size calculations.
92016         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92017         Include <stddef.h>, for size_t.
92018         * lib/hash-pjw.c (hash_pjw): Likewise.
92019         Switch to method described by Bruno Haible.
92020         Include <limits.h>, for CHAR_BIT.
92021         (SIZE_BITS): New macro.
92022
92023 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92024
92025         * m4/getline.m4 (AM_FUNC_GETLINE):
92026         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92027         hosts.  Problem reported by Derek Robert Price in
92028         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92029         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92030         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92031
92032 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92033
92034         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92035         ceiling the allocation at NMAX bytes rather than silently
92036         discarding input bytes before NMAX is reached.  This makes
92037         a difference only if NMAX exceeds SIZE_MAX / 2.
92038
92039         * lib/obstack.c: Merge from glibc.
92040         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92041         Add libc_hidden_def (_obstack_newchunk).
92042         (_obstack_free) [! defined _LIBC]: Remove.
92043         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92044         a clone of the function body.
92045         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92046         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92047
92048         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92049         glibc.
92050         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92051         arg to memcpy.
92052
92053         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92054         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92055         Don't use lvalue casts, as GCC plans to remove support for them
92056         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92057         was also present in the non-GCC version, indicating that this
92058         code had always been buggy and had never been widely used.
92059         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92060         Use the fast variant of each macro, rather than copying the
92061         definiens of the fast variant; that way, we'll be more likely to
92062         catch future bugs in the fast variants.
92063
92064 2003-10-20  Bruno Haible  <bruno@clisp.org>
92065
92066         * modules/wait-process: New file.
92067         * MODULES.html.sh (func_all_modules): Add wait-process.
92068
92069 2003-10-20  Bruno Haible  <bruno@clisp.org>
92070
92071         * m4/wait-process.m4: New file.
92072
92073 2003-10-20  Bruno Haible  <bruno@clisp.org>
92074
92075         * lib/wait-process.h: New file, from GNU gettext.
92076         * lib/wait-process.c: New file, from GNU gettext.
92077
92078 2003-10-19  Jim Meyering  <jim@meyering.net>
92079
92080         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92081         HPUX 10.20.
92082
92083 2003-10-18  Karl Berry  <karl@gnu.org>
92084
92085         * config/config.guess: update from config.
92086
92087 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92088
92089         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92090         (getgroups): First arg is int, not size_t.
92091         Don't let 'free' mangle errno.
92092
92093 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92094
92095         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92096
92097 2003-10-16  Karl Berry  <karl@gnu.org>
92098
92099         * config/config.{guess,sub}: update from config.
92100
92101 2003-10-16  Jim Meyering  <jim@meyering.net>
92102
92103         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92104         memcpy.
92105
92106 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92107
92108         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92109         (SIZE_MAX): Remove.
92110         (new_exclude, add_exclude_file): Initial size no longer needs to
92111         be a power of 2.
92112         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92113         our own address arithmetic overflow checking.
92114
92115         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92116         (fnmatch): Do not alloca more than 2000 wide characters;
92117         instead, use malloc for large buffers.
92118         Check for address arithmetic overflow, and return -1
92119         with errno set to ENOMEM in that case.
92120         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92121         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92122         instead, return -1.  Check for address arithmetic overflow.
92123
92124 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92125
92126         Handle invalid suffixes and overflow independently, so that
92127         callers can treat them independently as needed.  Fix some bugs in
92128         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92129         suffix for a human-readable blocksize.  The major caller-visible
92130         change is the addition of a new
92131         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92132         that both overflow and suffix chars were found.
92133
92134         * lib/human.c (humblock): Don't check separately for invalid suffix
92135         char; that is xstrtoumax's job (now that its bug is fixed).
92136         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92137         INTMAX_MAX]: New macros.
92138         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92139         TYPE_MAXIMUM): New macros.
92140         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92141         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92142         if overflow occurs, as it's what __strtol does and it's more useful
92143         in practice.
92144         (__xstrtol): If __strtol reports some error other than ERANGE,
92145         reflect it to the caller as LONGINT_INVALID.  If it reports
92146         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92147         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92148         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92149         value.
92150         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92151         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92152         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92153         [defined UINTMAX_MAX]: New macros.
92154
92155 2003-10-14  Bruno Haible  <bruno@clisp.org>
92156
92157         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92158
92159 2003-10-14  Bruno Haible  <bruno@clisp.org>
92160
92161         * m4/sig_atomic_t: New file, from GNU gettext.
92162         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92163
92164 2003-10-14  Bruno Haible  <bruno@clisp.org>
92165
92166         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92167         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92168         Also use volatile where needed.
92169
92170 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92171
92172         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92173         Change maintainer from Bruno Haible to 'all'.
92174
92175 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92176
92177         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92178
92179 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92180
92181         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92182         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92183         and define in terms of the other primitives.
92184         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92185         (SIZE_MAX): Define if not already defined.
92186         (array_size_overflow): New function.
92187         (xalloc_die): Abort instead of exiting if 'error' returns.
92188         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92189         (xmalloc, xrealloc): Use them.
92190         (xcalloc): Check for address arithmetic overflow.
92191         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92192         a bit faster than strcpy.
92193
92194 2003-10-10  Simon Josefsson  <jas@extundo.com>
92195
92196         * modules/argp (Depends-on): Add restrict and strcase.
92197
92198 2003-10-10  Simon Josefsson  <jas@extundo.com>
92199
92200         * m4/argp.m4: Add AC_C_INLINE.
92201
92202 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92203
92204         Merge getpass from libc, plus a few fixes.
92205
92206         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92207         Include <stdbool.h>.
92208         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92209         __fsetlocking to empty.
92210         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92211         do include <bits/libc-lock.h>.
92212         Do not include <fcntl.h>; not needed.
92213         [_LIBC]: Include <wchar.h>.
92214         (NOTCANCEL_MODE): New macro.
92215         (flockfile, funlockfile) [_LIBC]: New macros.
92216         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92217         [!_LIBC]: New macros.
92218         (call_fclose): New function.
92219         (getpass): Use it.  Save tty stream separately; this simplifies the
92220         code and makes it more reliable if stdin happens to equal stdout.
92221         Invoke __fsetlocking on tty.
92222         Handle thread cancellation if needed.
92223         Namespace cleanup (use __tcgetattr, __getline).
92224         Use bool for Booleans.
92225         [USE_IN_LIBIO]: Handle wide streams.
92226         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92227         stream might go where.
92228
92229         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92230         doesn't have to include <stdio.h> before us.
92231         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92232         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92233         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92234         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92235         if not declared, so that we can use getpass.c code from libc without
92236         rewriting it.
92237         (flockfile, ftrylockfile, funlockfile): New macros.
92238
92239 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92240
92241         * modules/getpass: Depend on stdbool.
92242
92243 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92244
92245         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92246
92247 2003-10-07  Karl Berry  <karl@gnu.org>
92248
92249         * config/config.{guess,sub}: update from config.
92250
92251 2003-10-06  Jim Meyering  <jim@meyering.net>
92252             Bruno Haible  <bruno@clisp.org>
92253
92254         This lets translators provide better translations for the
92255         "Written by ..." part of --version output.
92256         * lib/version-etc.h: Include stdarg.h.
92257         (version_etc_copyright): Declare as readonly.
92258         (version_etc): Make this function variadic with a NULL-terminated list
92259         of author name strings.
92260         (version_etc_va): New declaration.
92261         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92262         (version_etc_copyright): Declare as readonly.
92263         (version_etc_va): New function. Provide a different translatable string
92264         for each possible number of authors < 10. Abbreviate when there are 10
92265         authors or more.
92266         (version_etc): Make this function variadic. Call version_etc_va.
92267         Suggestion from Gary V. Vaughan.
92268
92269         * lib/long-options.h (parse_long_options): Change prototype: the
92270         authors string is moved to the end and becomes variadic.
92271         * lib/long-options.c: Include stdarg.h.
92272         (parse_long_options): Make this function variadic, too.
92273         Call version_etc_va, not version_etc.
92274
92275 2003-10-06  Bruno Haible  <bruno@clisp.org>
92276
92277         * modules/version-etc-2: Remove file.
92278         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92279
92280 2003-10-06  Bruno Haible  <bruno@clisp.org>
92281
92282         * modules/fatal-signal: New file.
92283         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92284
92285 2003-10-06  Bruno Haible  <bruno@clisp.org>
92286
92287         * m4/fatal-signal.m4: New file.
92288         * m4/signalblocking.m4: New file, from GNU gettext.
92289
92290 2003-10-06  Bruno Haible  <bruno@clisp.org>
92291
92292         * lib/version-etc-2.h: Remove file.
92293         * lib/version-etc-2.c: Remove file.
92294
92295 2003-10-06  Bruno Haible  <bruno@clisp.org>
92296
92297         * lib/fatal-signal.h: New file, from GNU gettext.
92298         * lib/fatal-signal.c: New file, from GNU gettext.
92299
92300 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92301
92302         * README: Rework advice for preventing empty .o files.
92303         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92304         not <sys/types.h>.
92305
92306 2003-10-04  Karl Berry  <karl@gnu.org>
92307
92308         * lib/argp*: update from libc.
92309
92310 2003-10-04  Karl Berry  <karl@gnu.org>
92311
92312         * config/config.{guess,sub}: update from config.
92313
92314 2003-10-02  Bruno Haible  <bruno@clisp.org>
92315
92316         * modules/lchown (Include): Add lchown.h.
92317         * modules/time_r (Include): Use "..." syntax.
92318         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92319
92320 2003-10-01  Simon Josefsson  <jas@extundo.com>
92321
92322         * MODULES.html.sh (func_all_modules): Move gethostname from section
92323         'based on' to section 'lacking' POSIX:2001.
92324
92325 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92326
92327         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92328         to output mode on the same stream.
92329
92330 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92331
92332         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92333         Fix arg typo in previous patch.
92334
92335 2003-09-28  Jim Meyering  <jim@meyering.net>
92336
92337         * lib/error.c: Correct cpp indentation.
92338
92339 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92340
92341         * modules/free: New file.
92342
92343 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92344
92345         * m4/free.m4: New file.
92346
92347 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92348
92349         * lib/minmax.h (MIN, MAX)
92350         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92351         Omit the special code that used __typeof__, since we worry that
92352         it could be more trouble than it's worth.  See:
92353         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92354         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92355
92356         * lib/free.c: New file.
92357
92358 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92359
92360         Trivial fixes to Makefile.am parts of module listings.
92361         * modules/strstr: Append strstr.h to lib_SOURCES.
92362         * modules/strcase: Likewise, for strcase.h.
92363
92364 2003-09-27  Karl Berry  <karl@gnu.org>
92365
92366         * config/mkinstalldirs: update from automake.
92367
92368 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92369
92370         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92371         (error_tail): Do not loop, reallocating temporary buffer, since
92372         the output cannot contain more wide characters than the input
92373         contains bytes, the size must be big enough already.  This avoids
92374         one potential size overflow calculation.  Check for size overflow
92375         when calculating temporary buffer size.  Free temporary buffer
92376         when done, if it was allocated with malloc; this plugs a memory
92377         leak.  Remove casts from void * to pointers, that are no longer
92378         needed now that we're assuming C89 or better.
92379
92380         Merge error changes from glibc.
92381
92382         * lib/error.c, error.h: Update copyright notice header to match glibc.
92383         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92384         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92385         Disable cancellation while printing error.
92386         * lib/error.h: Prepend __ to parameter names.
92387
92388 2003-09-26  Jim Meyering  <jim@meyering.net>
92389
92390         * lib/error.c (error_tail): Move some declarations
92391         into inner scope where the local variables are used.
92392
92393 2003-09-26  Bruno Haible  <bruno@clisp.org>
92394
92395         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92396         stpncpy().
92397         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92398
92399 2003-09-26  Bruno Haible  <bruno@clisp.org>
92400
92401         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92402         (stpncpy): Define as alias for gnu_stpncpy.
92403         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92404
92405 2003-09-25  Simon Josefsson  <jas@extundo.com>
92406
92407         * lib/xgetdomainname.h: New file.
92408         * lib/xgetdomainname.c: New file.
92409
92410 2003-09-25  Simon Josefsson  <jas@extundo.com>
92411             Bruno Haible  <bruno@clisp.org>
92412
92413         * modules/getdomainname: New file.
92414         * modules/xgetdomainname: New file.
92415         * MODULES.html.sh (func_all_modules): Add getdomainname,
92416         xgetdomainname.
92417
92418 2003-09-25  Simon Josefsson  <jas@extundo.com>
92419             Bruno Haible  <bruno@clisp.org>
92420
92421         * m4/getdomainname.m4: New file.
92422
92423 2003-09-25  Simon Josefsson  <jas@extundo.com>
92424             Bruno Haible  <bruno@clisp.org>
92425
92426         * lib/getdomainname.h: New file.
92427         * lib/getdomainname.c: New file.
92428
92429 2003-09-25  Karl Berry  <karl@gnu.org>
92430
92431         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92432
92433 2003-09-25  Karl Berry  <karl@gnu.org>
92434
92435         * config/install-sh: update from automake.
92436
92437 2003-09-25  Bruno Haible  <bruno@clisp.org>
92438
92439         * modules/version-etc-2: New file, from modules/version-etc with
92440         modifications.
92441         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92442
92443 2003-09-25  Bruno Haible  <bruno@clisp.org>
92444
92445         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92446         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92447
92448 2003-09-24  Simon Josefsson  <jas@extundo.com>
92449
92450         * modules/xgethostname: Add xgethostname.h.
92451
92452 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92453
92454         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92455         the buffer associated with the argument.  Bug reported by
92456         Simon Josefsson.
92457
92458 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92459
92460         * README: Document assumptions that 'int' is at least 32 bits
92461         wide, that integer arithmetic is 2's complement without overflow,
92462         that there are no holes in integer values, that adding sizes of
92463         two nonoverlapping objects can't overflow, and that all-bits-zero
92464         yields scalar zero.  Fix spelling and capitalization typos.
92465
92466 2003-09-19  Karl Berry  <karl@gnu.org>
92467
92468         * lib/argp.h: update from libc.
92469
92470 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92471
92472         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92473         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92474         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92475
92476 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92477
92478         * gnulib-tool: Use "test -h", not "test -L", for portability
92479         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92480         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92481         (sed_extract_prog): Issue s commands one-by-one, rather than
92482         using \| in one s command.
92483
92484 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92485
92486         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92487         input error, instead of returning NULL the next time we are called
92488         (and therefore losing track of errno).
92489
92490 2003-09-16  Bruno Haible  <bruno@clisp.org>
92491
92492         * gnulib-tool (func_create_testdir): Warn about duplicated
92493         dependencies.
92494
92495 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92496
92497         * modules/argmatch, modules/fatal, modules/obstack,
92498         modules/xalloc, modules/xgethostname: Sort dependencies by
92499         importance, not alphabetically.
92500
92501 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92502
92503         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92504         fails, so that the caller gets the proper errno.
92505
92506         * lib/readutmp.c (read_utmp): Likewise.
92507         Check for fstat error.  Close stream and free storage
92508         when failing.
92509
92510 2003-09-14  Karl Berry  <karl@gnu.org>
92511
92512         * config/srclist.txt (strdup.c): disable for c89 changes.
92513
92514 2003-09-14  Jim Meyering  <jim@meyering.net>
92515
92516         * lib/getloadavg.c: Correct cpp indentation.
92517         * lib/strdup.c: Likewise.
92518         * lib/vasnprintf.c: Likewise.
92519
92520 2003-09-14  Bruno Haible  <bruno@clisp.org>
92521
92522         * modules/fwriteerror: New file.
92523         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92524
92525 2003-09-14  Bruno Haible  <bruno@clisp.org>
92526
92527         * lib/fwriteerror.h: New file.
92528         * lib/fwriteerror.c: New file.
92529
92530 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92531
92532         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92533         modules/xgethostname, modules/xalloc: Depend on exit.
92534
92535 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92536
92537         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92538
92539         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92540         and AC_MINIX, too, so that their extensions are available.
92541
92542         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92543         This macro has been superseded by gl_BACKUPFILE.
92544
92545         More patches to assume C89 or better.
92546
92547         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92548
92549         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92550         unconditionally.
92551         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92552         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92553         Include <string.h>, <stdlib.h> unconditionally.
92554         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92555         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92556         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92557         headers or for string.h.
92558         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92559         or strtoul.
92560
92561         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92562         headers.
92563         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92564         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92565         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92566         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92567         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92568         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92569         memcpy, memset.
92570         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92571         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92572         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92573         strtol.
92574         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92575         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92576         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92577         strtoul.
92578
92579 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92580
92581         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92582         * lib/obstack.c [!defined _LIBC]: Likewise.
92583         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92584         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92585         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92586
92587         More changes to assume C89 or better.
92588
92589         * lib/error.c (error_tail): Assume vprintf.
92590
92591         * lib/argmatch.c (getenv): Remove decl.
92592         * lib/progreloc.c (get_full_program_name): Define via prototype.
92593         * lib/setenv.c (clearenv): Likewise.
92594         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92595         needed.
92596         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92597         (malloc, memcpy): Remove decls.
92598         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92599         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92600         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92601         (memcpy): Remove macro.
92602         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92603         (__P): Remove.  All uses removed.
92604         (PTR): Remove.  All uses changed to void *.
92605         (CHAR_BIT, NULL): Remove.
92606         (spaces, zeros, memset_space, memset_zero)
92607         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92608         Remove.
92609         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92610         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92611         Define with prototype.
92612         Remove now-unnecessary prototype decl.
92613         (extra_args_spec): Assume ANSI C.  All uses changed.
92614         (extra_args_spec_iso): Remove.
92615         (my_strftime, emacs_strftimeu): Define via prototype.
92616         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92617         unconditionally.
92618         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92619         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92620         (strtoul, strtol): Remove decls.
92621         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92622         LONG_MAX): Remove.
92623         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92624         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92625         (LOCALE_PARAM_PROTO): New macro.
92626         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92627         (INTERNAL (strtol), strtol): Define with a prototype.
92628         (PARAMS): Remove.  All uses removed.
92629         * lib/tempname.c: Include <string.h> unconditionally.
92630         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92631         * lib/xgethostname.c (main): Define with a prototype.
92632         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92633         Include <stdlib.h> unconditionally.
92634         (calloc, malloc, realloc, free): Remove decls.
92635         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92636         Include <stdlib.h> unconditionally.  Sort include file names.
92637         (strtod): Remove.
92638         (xstrtod): Define with a prototype.
92639         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92640         (strtol, strtoul): Remove decls.
92641
92642 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92643
92644         More patches to assume C89 or better.
92645         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92646         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92647         string.h, memchr, STDC_HEADERS.
92648
92649 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92650
92651         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92652         Include <stdlib.h>, <string.h> unconditionally.
92653         Remove now-unnecessary cast to char *.
92654         * lib/strnlen.c: Include <string.h> unconditionally.
92655         * lib/yesno.c (yesno): Define with a prototype.
92656
92657 2003-09-11  Bruno Haible  <bruno@clisp.org>
92658
92659         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92660
92661 2003-09-10  Jim Meyering  <jim@meyering.net>
92662
92663         * lib/error.c: Correct indentation of cpp directives.
92664
92665 2003-09-10  Bruno Haible  <bruno@clisp.org>
92666
92667         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92668         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92669         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92670         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92671         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92672         <stdlib.h> and <string.h> checks.
92673         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92674         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92675
92676 2003-09-10  Bruno Haible  <bruno@clisp.org>
92677
92678         * lib/strcspn.c: Include <string.h> unconditionally.
92679         * lib/strpbrk.c: Include <string.h> unconditionally.
92680         * lib/strstr.c: Include <string.h> unconditionally.
92681         * lib/unicodeio.c: Include <string.h> unconditionally.
92682         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92683         * lib/unsetenv.c: Likewise.
92684         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92685         * lib/yesno.c: Include <stdlib.h> unconditionally.
92686         (rpmatch): Add prototype.
92687
92688 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92689
92690         More patches to assume C89 or better.
92691         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92692         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92693         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92694         or for string.h.
92695         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92696         stdlib.h.
92697         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92698         C headers.
92699         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92700         string.h.
92701         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92702         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92703         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92704         or for string.h.
92705         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92706         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92707         C headers.
92708         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92709         memcpy.
92710         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92711         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92712         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92713         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92714         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92715         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92716         string.h, free.
92717         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92718         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92719         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92720         C headers, or for string.h.
92721         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92722         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92723         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92724         headers, memory.h, stdlib.h, string.h, strings.h.
92725         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92726         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92727         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92728         strchr.
92729         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92730         headers, memory.h, string.h.
92731         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92732         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92733         free.
92734         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92735         headers.
92736         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92737         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92738         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92739         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92740         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92741
92742 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92743
92744         More K&R removal.
92745
92746         * lib/acosl.c (main): Use a prototype.
92747         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92748         tanl.c: Likewise.
92749
92750         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92751
92752         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92753         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92754         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92755         with a prototype.
92756         * lib/getopt.c (const): Remove macro.
92757         Include <string.h> unconditionally.
92758         (my_index): Remove; all uses changed to strchr.
92759         (strlen): Remove decl.
92760         (exchange): Remove forward decl; no longer needed.
92761         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92762         Define with prototype.
92763         * lib/getopt1.c (const): Remove macro.
92764         (getopt_long, getopt_long_only, main): Define with prototype.
92765
92766         * lib/getugroups.c: Include <string.h> unconditionally.
92767
92768         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92769         (getusershell, setusershell, endusershell, readname, main):
92770         Define with prototypes.
92771
92772         * lib/group-member.c: Include group-member.h first.
92773         Include <stdlib.h> unconditionally.
92774
92775         * lib/hard-locale.c: Include hard-locale.h first.
92776         Include <stdlib.h>, <string.h> unconditionally.
92777
92778         * lib/hash.c (free, malloc): Remove decls.
92779         Include <stdlib.h> unconditionally.
92780
92781         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92782         (getenv): Do not declare.
92783
92784         * lib/idcache.c: Include <string.h> unconditionally.
92785
92786         * lib/long-options.c: Include long-options.h first, to test interface.
92787         Include <stdlib.h> unconditionally.
92788
92789         * lib/makepath.c: Include makepath.h first, to test interface.
92790         Include <stdlib.h> and <string.h> unconditionally.
92791
92792         * lib/linebuffer.c: Include <stdlib.h>.
92793         (free): Remove decl.
92794
92795         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
92796         stddef.h. rpl_malloc returns void *, not char *.
92797         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
92798         prototype.
92799
92800         * lib/md5.h: Include <limits.h> unconditionally.
92801         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
92802         (__P): Remove; all uses removed.
92803         * lib/md5.c: Include "md5.h" first.
92804         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
92805         md5_buffer, md5_process_bytes, md5_process_block):
92806         Define with prototypes.
92807         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
92808         * lib/sha.c: Include "sha.h" first.
92809         Include <stdlib.h>, <string.h> unconditionally.
92810
92811         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
92812         * lib/memcmp.c (__ptr_t): Likewise.
92813         * lib/memrchr.c (__ptr_t): Likewise.
92814         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
92815         Include <string.h> unconditionally.
92816         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
92817         * lib/memchr.c: Include <stdlib.h> unconditionally.
92818         * lib/memchr.c (LONG_MAX): Remove.
92819         * lib/memrchr.c (LONG_MAX): Likewise.
92820         * lib/memchr.c (__memchr): Define via a prototype.
92821         * lib/memrchr.c (__memrchr): Likewise.
92822         * lib/memcmp.c (__P): Remove, and remove all uses.
92823         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
92824         Remove forward decls; no longer needed.
92825         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
92826         Use types required by C89 in prototype.
92827
92828         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
92829         * lib/savedir.c: Likewise.
92830         * lib/mkdir.c (free): Remove decl.
92831         * lib/rmdir.c (rmdir): Define with a prototype.
92832         * lib/savedir.c: Include savedir.h first, to test interface.
92833
92834         * lib/mktime.c (STDC_HEADERS): Remove.
92835         Include <stdlib.h>, <string.h> unconditionally.
92836
92837         * lib/modechange.c: Include <stdlib.h> unconditionally.
92838         (malloc): Remove decl.
92839
92840         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
92841         (free): Remove decl.
92842
92843         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92844         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92845         (This type really should be intptr_t, but that's a C99ism.)
92846         (_obstack_memcpy): Remove: all uses changed to memcpy.
92847         Include <string.h> unconditionally.
92848         (struct obstack): Assume __STDC__ for types of members
92849         chunkfun, freefun, extra_arg.
92850         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92851         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92852         obstack_begin, obstack_specify_allocation,
92853         obstack_specify_allocation_with_arg, obstack_chunkfun,
92854         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92855         Remove unprototyped decls and the macros that use them.
92856         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92857         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92858         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92859         (defined __STDC__ && __STDC__)]:
92860         Remove nonprototyped code.
92861         Include <stdlib.h> unconditionally.
92862         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92863         _obstack_allocated_p, _obstack_free, obstack_free,
92864         _obstack_memory_used, print_and_abort):
92865         Define using prototypes.
92866         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92867         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92868         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92869         obstack_next_free, obstack_object_size, obstack_room) [0]:
92870         Remove unused, unprototyped code.
92871
92872         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92873
92874         * lib/physmem.c (physmem_total, physmem_available, main): Define
92875         with prototypes.
92876
92877         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92878         (main): Define with a prototype.
92879
92880         * lib/posixver.c (getenv): Remove decl.
92881
92882         * lib/putenv.c (malloc): Returns void *, not char *.
92883         Include <string.h> unconditionally.
92884         (strchr, memcpy, NULL): Do not define.
92885
92886         * lib/readtokens.c: Include readtokens.h first, to test interface.
92887         Include <stdlib.h>, <string.h> unconditionally.
92888         (init_tokenbuffer): Define with a prototype.
92889
92890         * lib/regex.c (PARAMS): Remove.  All uses removed.
92891         All uses of _RE_ARGS removed, too.
92892         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92893         unconditionally.
92894         (bzero): Assume memset exists.
92895         (memcmp, memcpy, NULL): Remove.
92896         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92897         char, or assignments to local vars of type signed char.
92898         (init_syntax_once, PREFIX(extract_number_and_incr),
92899         PREFIX(print_partial_compiled_pattern),
92900         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92901         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92902         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92903         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92904         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92905         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92906         wcs_compile_range, byte_compile_range, truncate_wchar,
92907         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92908         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92909         count_mbs_length, wcs_re_match_2_internal,
92910         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92911         PREFIX(alt_match_null_string_p),
92912         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92913         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92914         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92915         now-unnecessary declaration, if any.
92916         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92917         regcomp, regexec):
92918         Remove now-unnecessary casts among pointer types.
92919         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92920
92921         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92922         (free): Remove decl.
92923
92924         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92925
92926         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92927         (free): Remove decl.
92928
92929         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92930         * lib/xgetcwd.c: Likewise.
92931
92932         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92933         (free): Remove decl.
92934
92935         * lib/strchrnul.c (strchrnul): Define with a prototype.
92936         Fix bug: c_in was not converted to char before searching.
92937
92938         The following changes are not K&R related:
92939
92940         * lib/group-member.h: Include <sys/types.h>, so that this file is
92941         self-contained.
92942         * lib/makepath.h: Likewise.
92943
92944         * lib/getusershell.c (readname, default_index, line_size, readname):
92945         Use size_t, not int, for sizes.
92946         (readname): If the size overflows, report an error instead of
92947         looping forever.
92948
92949 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92950
92951         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92952         libc.
92953
92954 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92955
92956         * README: New section: portability guidelines.
92957
92958 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92959
92960         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92961         C89 spec.
92962
92963 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92964
92965         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92966
92967 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92968
92969         Assume C89 or better; remove K&R cruft.
92970         A few of these changes were first proposed by Derek Robert Price
92971         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92972
92973         * lib/addext.c: Include <string.h> unconditionally.
92974         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92975         Don't declare getenv or malloc.
92976
92977         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92978         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92979         (NULL): Remove.
92980         (find_stack_direction, alloca): Use prototypes.
92981
92982         * lib/atexit.c (atexit): Define using a prototype.
92983
92984         * lib/basename.c, dirname.c, stripslash.c:
92985         Include <string.h> unconditionally.
92986
92987         * lib/bcopy.c: Include <stddef.h>.
92988         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92989
92990         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92991
92992         * lib/error.h (error, error_at_line, error_print_progname)
92993         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92994         * lib/error.c: Include error.h first, to check interface.
92995         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92996         (VA_START): Remove; all uses changeed to va_start.
92997         (exit, strerror): Remove decls.
92998         (error_print_progname): Prototype uncondionally.
92999         Don't include <errno.h>; no longer needed.
93000         (private_strerror): Remove.
93001         (error_tail): Always define.
93002         (error, error_at_line): Assume C89 or better; always use prototypes.
93003         * lib/fatal.c: Include "fatal.h" first, to test interface.
93004         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93005         (VA_START): Remove; all uses changed to va_start.
93006         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93007         this case.
93008         (exit): Remove decl.
93009         (fatal): Prototype unconditionally.  Assume va_start works.
93010         Abort at end, to pacify gcc.
93011
93012         * lib/euidaccess.c (main): Define with a prototype.
93013
93014         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93015
93016         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93017
93018         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93019         prototypes.
93020         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93021         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93022         (getenv): Remove decl.
93023         (fnmatch): Define using a prototype.
93024         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93025         (FCT): Define using a prototype.
93026
93027         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93028
93029         * lib/gethostname.c: Include <stddef.h>.
93030         (gethostname): Define with prototype.  Length is size_t, not int.
93031
93032 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93033
93034         Assume C89 or better; remove K&R cruft.
93035         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93036         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93037         string.h, getenv, malloc.
93038         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93039         headers.
93040         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93041         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93042         do not check for strerror.
93043         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93044         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93045         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93046         do not check for doprnt or vprintf.
93047         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93048         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93049
93050 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93051
93052         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93053         getversion.c should have been removed then, but was accidentally
93054         preserved.
93055
93056         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93057         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93058
93059 2003-09-08  Karl Berry  <karl@gnu.org>
93060
93061         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93062                 config, forget about prep.
93063
93064         * config/depcomp, missing: update from automake.
93065
93066 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93067
93068         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93069         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93070
93071 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93072
93073         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93074         copy_tm_result.  Bug reported by Simon Josefsson in
93075         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93076
93077 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93078
93079         * m4/time_r.m4: New file.
93080         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93081         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93082         is. Check for timegm declaration.
93083         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93084         Do not check for gmtime_r.
93085         Replace mktime if __mktime_internal does not exist and if mktime
93086         hasn't been replaced already.
93087
93088 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93089
93090         * lib/time_r.c, lib/time_r.h: New files.
93091
93092         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93093         __localtime_r.
93094         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93095         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93096
93097         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93098         __gmtime_r.
93099         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93100         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93101         Include <time_r.h>.
93102
93103         * lib/timegm.c: Switch to glibc implementation, with the following
93104         changes:
93105         [defined HAVE_CONFIG_H]: Include <config.h>.
93106         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93107         (__mktime_internal) [!defined _LIBC]: New decl.
93108         (__gmtime_r) [!defined _LIBC]: New macro and function.
93109         (timegm): Use a prototype, since gnulib assumes C89.
93110         Do not bother declaring tmp to be const, as it's not really usefu.
93111         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93112         (timegm): Declare only if HAVE_DECL_TIMEGM.
93113
93114 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93115
93116         * MODULES.html.sh (func_all_modules): Add time_r.
93117         * modules/time_r: New file.
93118         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93119         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93120
93121 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93122
93123         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93124         Bug reported by Lute Kamstra in
93125         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93126
93127         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93128         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93129         course with correspondingly smaller numbers for tomorrow and
93130         yesterday.  From Tadayoshi Funaba.  Originally installed into
93131         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93132         coreutils merge?).
93133
93134 2003-08-31  Simon Josefsson  <jas@extundo.com>
93135
93136         * modules/timegm: New file.
93137         * MODULES.html.sh (func_all_modules): Add timegm.
93138
93139 2003-08-31  Simon Josefsson  <jas@extundo.com>
93140
93141         * m4/timegm.m4: New file.
93142
93143 2003-08-31  Simon Josefsson  <jas@extundo.com>
93144
93145         * lib/timegm.h: New file.
93146         * lib/timegm.c: New file.  Based on
93147         wget-1.8.2/src/http.c:mktime_from_utc.
93148
93149 2003-08-31  Karl Berry  <karl@gnu.org>
93150
93151         * lib/argp.h: update from libc.
93152
93153 2003-08-28  Bruno Haible  <bruno@clisp.org>
93154
93155         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93156         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93157         followed by '#define fnmatch fnmatch_posix' gives an error.
93158
93159 2003-08-28  Bruno Haible  <bruno@clisp.org>
93160
93161         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93162         warning on QNX, which defines O_BINARY to 000000.
93163
93164 2003-08-27  Jim Meyering  <jim@meyering.net>
93165
93166         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93167         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93168         would fail after 32.  Reported by Danny Levinson.  Details here:
93169         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93170
93171 2003-08-24  Bruno Haible  <bruno@clisp.org>
93172
93173         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93174         MSVC7 <stdio.h> is included later.
93175
93176 2003-08-22  Simon Josefsson  <jas@extundo.com>
93177
93178         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93179
93180 2003-08-20  Karl Berry  <karl@gnu.org>
93181
93182         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93183
93184 2003-08-20  Bruno Haible  <bruno@clisp.org>
93185
93186         * modules/progname: New file.
93187         * MODULES.html.sh (func_all_modules): Add progname.
93188
93189 2003-08-20  Bruno Haible  <bruno@clisp.org>
93190
93191         * lib/progname.h: New file, from GNU gettext.
93192         * lib/progname.c: New file, from GNU gettext.
93193         * lib/progreloc.c: New file, from GNU gettext.
93194
93195 2003-08-19  Jim Meyering  <jim@meyering.net>
93196
93197         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93198         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93199
93200 2003-08-19  Bruno Haible  <bruno@clisp.org>
93201
93202         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93203         more.
93204
93205 2003-08-19  Bruno Haible  <bruno@clisp.org>
93206
93207         * lib/xstrdup.c: Assume <string.h> exists.
93208
93209 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93210
93211         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93212         in makefile rules.
93213
93214 2003-08-18  Jim Meyering  <jim@meyering.net>
93215
93216         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93217         * m4/lib-ld.m4: Likewise.
93218
93219 2003-08-18  Jim Meyering  <jim@meyering.net>
93220
93221         * lib/setenv.h: Indent nested cpp directive.
93222         * lib/vasnprintf.c: Remove trailing blanks.
93223
93224 2003-08-17  Simon Josefsson  <jas@extundo.com>
93225
93226         * modules/xstrndup: New file.
93227         * MODULES.html.sh (func_all_modules): Add xstrndup.
93228
93229 2003-08-17  Simon Josefsson  <jas@extundo.com>
93230
93231         * modules/argp: Fix autoconf macro name. Add more dependencies.
93232
93233 2003-08-17  Simon Josefsson  <jas@extundo.com>
93234
93235         * m4/xstrndup.m4: New file.
93236
93237 2003-08-17  Simon Josefsson  <jas@extundo.com>
93238
93239         * m4/argp.m4: New file.
93240
93241 2003-08-17  Simon Josefsson  <jas@extundo.com>
93242             Bruno Haible  <bruno@clisp.org>
93243
93244         * lib/xstrndup.h: New file.
93245         * lib/xstrndup.c: New file.
93246
93247 2003-08-17  Bruno Haible  <bruno@clisp.org>
93248
93249         * modules/strndup (Files, Include): Add lib/strndup.h.
93250
93251 2003-08-17  Bruno Haible  <bruno@clisp.org>
93252
93253         * modules/euidaccess (Files): Add lib/euidaccess.h.
93254
93255 2003-08-17  Bruno Haible  <bruno@clisp.org>
93256
93257         * lib/strndup.h: New file.
93258
93259 2003-08-17  Bruno Haible  <bruno@clisp.org>
93260
93261         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93262         like AC_GNU_SOURCE.
93263         * modules/extensions (configure.ac): Comment out the invocation of
93264         gl_USE_SYSTEM_EXTENSIONS.
93265
93266 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93267
93268         Merges from coreutils, etc.
93269         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93270         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93271         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93272         fixing a typo.
93273         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93274         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93275
93276 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93277
93278         Document merge from coreutils.
93279         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93280         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93281         * modules/utime: Add m4/utimes-null.m4.
93282
93283 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93284
93285         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93286         space, undoing this 2003-08-12 change:
93287         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93288
93289 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93290
93291         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93292         strtoul.c from libc, undoing this 2003-08-12 change:
93293         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93294
93295 2003-08-16  Jim Meyering  <jim@meyering.net>
93296
93297         Merges from coreutils.
93298         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93299         prefix.  Adjust cache variables similarly.  Create 500 rather than
93300         just 300 files, to exercise bug on Darwin6.5, too.
93301         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93302         $missing_dir.
93303         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93304         AM_SYS_POSIX_TERMIOS.
93305         Reported by mkc@mathdogs.com.
93306         Also change use of $am_cv_sys_posix_termios
93307         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93308         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93309         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93310         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93311         in /proc/mounts until it finds one with matching device number.  This
93312         is unnecessary when the FILE argument *is* a mount point.  No stat call
93313         is necessary in that case.  So, disable the statvfs-testing code on
93314         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93315         as RedHat bug# 84846.
93316         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93317         to 1MB, so as not to render systems with no stack size limit (e.g.,
93318         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93319         Include <unistd.h>.  On some systems,
93320         it is required for the definition of _SC_PAGESIZE.
93321
93322 2003-08-16  Jim Meyering  <jim@meyering.net>
93323
93324         Merge from coreutils.
93325         * lib/xstrtoimax.c: #else #if -> #elif.
93326         * lib/xstrtoumax.c: Likewise.
93327
93328 2003-08-16  Jim Meyering  <jim@meyering.net>
93329
93330         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93331         * m4/utimes.m4: Removed.
93332         * m4/utimes-null.m4: Renamed from utimes.m4.
93333
93334         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93335         to 1MB, so as not to render systems with no stack size limit (e.g.,
93336         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93337         Include <unistd.h>.  On some systems,
93338         it is required for the definition of _SC_PAGESIZE.
93339
93340 2003-08-16  Jim Meyering  <jim@meyering.net>
93341         and Paul Eggert  <eggert@cs.ucla.edu>
93342
93343         Merges from coreutils, etc.
93344
93345         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93346         using the latest version from cvs.  This avoids problems with #line
93347         directives using a vendor (Sun) compiler.
93348         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93349         Don't set GETGROUPS_LIB here; now it's
93350         done via getgroups.m4's wrapper function.
93351         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93352         rather than just in sh-util/configure.in, so that the
93353         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93354         same.
93355         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93356         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93357         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93358         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93359         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93360         Remove code that is now done by the newly-required macros.
93361         Append $(EXEEXT) to DF_PROG.
93362         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93363         Do not invoke or require the following here,
93364         since prereq.m4 or some gnulib .m4 now does this for us:
93365         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93366         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93367         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93368         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93369         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93370         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93371         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93372         AC_FUNC_OBSTACK.
93373         Do not replace the following functions, as this is now the job
93374         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93375         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93376         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93377         atexit getpass, strdup, getpagesize.
93378         Replace 'raise'.
93379         Do not check for the following functions, as this is now the job
93380         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93381         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93382         setregid.
93383         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93384         Check for sys/sysctl.h.
93385         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93386         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93387         of checking for ssize_t ourselves.
93388
93389         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93390         Require every macro that gnulib/modules/* suggests for us.
93391         (jm_PREREQ_ADDEXT): New macro.
93392         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93393         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93394
93395         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93396         (gl_PHYSMEM): Use it.
93397         Also check for `table' function.
93398         Check for new headers and functions.
93399         Add check for sys/sysmp.h.
93400         With suggestions from Kaveh Ghazi.
93401         Ignore headers that are present but cannot be compiled.  This
93402         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93403         C 5.4.
93404
93405 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93406
93407         Document merge from coreutils.
93408         * modules/userspec: Depend on posixver.
93409         * modules/strftime: Depend on tzset.
93410
93411 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93412
93413         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93414         rather than tab, after '#' in shell-script copyright notices.
93415         Suggested by Bruno Haible.
93416
93417 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93418
93419         * config/srclist-update: Use three spaces, rather than tab, after '#'
93420         in shell-script copyright notices.  Suggested by Bruno Haible.
93421         Remove unnecessary parenthesization in regular expression.
93422
93423 2003-08-15  Jim Meyering  <jim@meyering.net>
93424
93425         Merge from coreutils.
93426         * lib/xgethostname.c: Include <stdlib.h>.
93427         (xghostname): Don't exit for anything other than memory-related
93428         failure; just return NULL.
93429         * lib/userspec.c: Include "posixver.h".
93430         (parse_user_spec): Accept `.' as a separator only
93431         in pre-POSIX-200112 mode.
93432         * lib/strtoimax.c: Use #elif rather than #else #if.
93433         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93434         Remove function, now that we can rely on a working tzset function.
93435         [!_LIBC]: Ensure that the required autoconf test has been run.
93436         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93437         Use underlying_strftime for %r.
93438         * lib/sha.c: Merge in some clean-up and optimization changes from
93439         glibc.
93440         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93441         Ensure that it is a multiple of 64.
93442         Rearrange loop exit tests so as to avoid performing an
93443         additional fread after encountering an error or EOF.
93444         * lib/realloc.c: Update copyright date.
93445
93446 2003-08-15  Jim Meyering  <jim@meyering.net>
93447         and Paul Eggert  <eggert@twinsun.com>
93448
93449         Merge from coreutils.
93450         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93451         member but strut utmpx does not.  Needed for AIX 4.3.3.
93452         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93453
93454 2003-08-15  Jim Meyering  <jim@meyering.net>
93455         and Paul Eggert  <eggert@cs.ucla.edu>
93456
93457         Merges from coreutils, etc.
93458         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93459         Require gl_FUNC_TZSET_CLOBBER.
93460         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93461         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93462         members.
93463
93464 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93465
93466         Help the merge from coreutils.
93467         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93468         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93469         * m4/tzset.m4: Use it too.
93470
93471 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93472
93473         * modules/tzset: New file.
93474
93475 2003-08-14  Jim Meyering  <jim@meyering.net>
93476
93477         Merges from coreutils.
93478         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93479         variable names, rather than @FNMATCH_H@.
93480         * modules/alloca: Likewise for $(ALLOCA_H).
93481
93482         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93483         the three copies of the literal target, `fnmatch.h'.
93484         * modules/alloca (alloca.h): Likewise.
93485
93486 2003-08-14  Jim Meyering  <jim@meyering.net>
93487
93488         Merge from coreutils.
93489         * m4/tzset.m4: New file.
93490         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93491         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93492         otherwise, AIX 5.1 systems would end up using the latter.
93493         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93494         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93495         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93496         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93497
93498 2003-08-14  Jim Meyering  <jim@meyering.net>
93499
93500         Merge from coreutils.
93501         * lib/obstack.h: Whitespace changes.
93502         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93503         and xcalloc return values.
93504         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93505         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93506         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93507         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93508         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93509         error from mntctl.
93510         Use mntctl's return value to drive the entry-processing loop, since
93511         we can't rely on the value of the vmt_length member in the last
93512         entry.  On some systems doing so could result in exhausting
93513         virtual memory.  Based in part on a patch from Mike Jetzer.
93514
93515 2003-08-14  Jim Meyering  <jim@meyering.net>
93516         and Paul Eggert  <eggert@twinsun.com>
93517
93518         Merges from coreutils, plus other fixes.
93519         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93520         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93521         for credits and details.  Thanks to Kaveh Ghazi for helping
93522         to keep these files in sync.
93523         (ARRAY_SIZE): Define it.
93524         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93525         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93526         (memcasecmp): Don't assume size_t fits in unsigned int.
93527         Remove casts and duplicate code.
93528         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93529         (memcpy): Remove definition.
93530         Merge in some clean-up and optimization changes from glibc.
93531         [BLOCKSIZE]: Move definition to top of file.
93532         Ensure that it is a multiple of 64.
93533         Rearrange loop exit tests so as to avoid performing an
93534         additional fread after encountering an error or EOF.
93535         * lib/md5.h (md5_uintptr): Define.
93536         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93537         return to the initial working directory.  Preserve errno
93538         for caller.
93539         * lib/idcache.c: Include "xalloc.h".
93540         (xmalloc, xrealloc): Remove decls.
93541         (getuser): Remove casts no longer required in C89.
93542         * lib/human.c: Include stdio.h, for sprintf.
93543         * lib/group-member.c: Include "xalloc.h".
93544         (xmalloc, xrealloc): Remove decls.
93545         (get_group_info): Remove casts no longer required in C89.
93546         * lib/getusershell.c (readname): Remove casts no longer required in
93547         C89.
93548         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93549         * lib/getline.c: Whitespace fix, from coreutils.
93550
93551 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93552
93553         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93554         Check for isascii.
93555
93556         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93557         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93558         Undo previous (whitespace-only) change.
93559
93560 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93561
93562         * lib/exclude.c: Include <ctype.h>
93563         (IN_CTYPE_DOMAIN): New macro.
93564         (is_space): New fn.
93565         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93566         and empty lines.
93567
93568         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93569         Undo previous (whitespace-only) change.
93570
93571 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93572
93573         * config/srclist-update: Change update back to the old behavior,
93574         leaving whitespace alone.  Use one 'sed' command rather than a
93575         pipeline.
93576         (fixlicense): Now a variable, not a function.
93577         (remove_trailing_blanks): Remove.
93578         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93579         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93580         Undo previous (whitespace-only) change.
93581
93582 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93583
93584         Merge from coreutils.
93585         * modules/euidaccess: Add lib_SOURCES, include for new
93586         file euidaccess.h
93587
93588 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93589
93590         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93591         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93592         Normalize leading white space and remove trailing white space.
93593
93594         Merge from coreutils
93595         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93596
93597         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93598         0.12.1.  These files are now being upgraded automatically by
93599         ../config/srclist-update.
93600
93601 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93602
93603         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93604         Normalize leading white space and remove trailing white space.
93605         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93606         notice, as per ../config/srclist-update.
93607
93608         Merge from coreutils.
93609         * lib/euidaccess.h: New file.
93610         * lib/euidaccess.c: Include it.
93611         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93612         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93613         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93614
93615 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93616
93617         * config/srclist-update: Add copyright notice.
93618         (remove_id_lines, remove_trailing_blanks): New constants.
93619         (fixfile): Use them to normalize spacing a bit in copied files.
93620         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93621         Normalize leading white space and remove trailing white space.
93622
93623         * config/texinfo.tex: Sync with texinfo.
93624
93625         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93626         strtoul.c from libc, to merge coreutils whitespace changes.
93627
93628         * config/srclist.txt: Get the following m4 files from gettext:
93629         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93630         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93631         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93632         wint_t.m4.
93633
93634 2003-08-12  Karl Berry  <karl@gnu.org>
93635
93636         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93637         been made.
93638
93639 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93640
93641         * modules/gnu-source, m4/gnu-source.m4:
93642         Remove; we're assuming Autoconf 2.54 or later now.
93643         Suggested by Bruno Haible.
93644         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93645
93646 2003-08-11  Bruno Haible  <bruno@clisp.org>
93647
93648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93649
93650 2003-08-11  Bruno Haible  <bruno@clisp.org>
93651
93652         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93653         (vasnprintf): Use it instead of wcslen.
93654
93655 2003-08-11  Bruno Haible  <bruno@clisp.org>
93656
93657         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93658         value to ensure that _Bool promotes to int. Use #define for _Bool when
93659         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93660
93661 2003-08-10  Karl Berry  <karl@gnu.org>
93662
93663         * lib/regex.h: update from libc (whitespace fix).
93664
93665 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93666
93667         Merge some files from coreutils.  These changes were
93668         originally made by Jim Meyering.
93669         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93670         many older Unixes require this.
93671         * lib/alloca.c (alloca): Remove cast to argument of free;
93672         no longer needed in C89.
93673         * lib/alloca_.h, regex.h: Fix white space to match
93674         what GNU indent does.
93675
93676 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93677
93678         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93679         apparently Emacs's Unicode mode got confused before my 2003-08-05
93680         checkin.
93681
93682 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93683
93684         * m4/extensions.m4: New file.
93685         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93686         Require gl_USE_SYSTEM_EXTENSIONS.
93687         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93688         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93689
93690 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93691
93692         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93693         * modules/extensions, modules/gnu-source: New files.
93694         * modules/timespec, modules/unlocked-io: Depend on extensions.
93695
93696 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93697
93698         * modules/restrict: New file.
93699         * MODULES.html.sh (func_all_modules): Add restrict.
93700         * modules/regex: Depend on restrict.
93701
93702 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93703
93704         * m4/restrict.m4: New file.
93705         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93706
93707 2003-08-07  Bruno Haible  <bruno@clisp.org>
93708
93709         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93710         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93711
93712 2003-08-07  Bruno Haible  <bruno@clisp.org>
93713
93714         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93715         makes the module 'getndelim2' compatible with the module 'getline'.
93716
93717 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93718
93719         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93720         byte with "\201" to avoid glitches when editing that source file
93721         with multi-gnome-terminal.
93722
93723 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93724
93725         * lib/bumpalloc.h: Remove.
93726
93727 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93728
93729         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93730         * modules/bumpalloc: Remove.
93731
93732 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93733
93734         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93735         GNU coding style.
93736
93737         Merge from coreutils.
93738         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93739         1. From glibc.
93740         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93741         from Karl Berry, implemented by Jim Meyering.
93742         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93743         from Dmitry V. Levin.
93744         Remove anachronistic cast of xrealloc.
93745         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93746         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93747         type. Otherwise, it wouldn't compile with at least /bin/cc on
93748         ymp-cray-unicos9.0.2.X.
93749         Combine two mostly-identical uses of alloca into one.
93750         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93751
93752 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93753
93754         [From Emacs.]
93755
93756         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93757         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93758         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93759         obsolete NLIST_NAME_UNION.
93760         [__GNU__]: Undef BSD and FSCALE.
93761         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93762
93763 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93764
93765         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93766         an enum type, so that it's guaranteed to promote to int.  See:
93767         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93768
93769 2003-08-03  Karl Berry  <karl@gnu.org>
93770
93771         * config/depcomp: update from automake.
93772
93773 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93774
93775         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93776         (strerror): Don't assume that a printable int fits in 14 bytes.
93777
93778 2003-07-31  Bruno Haible  <bruno@clisp.org>
93779
93780         * modules/getpass-gnu: New file.
93781         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93782
93783 2003-07-31  Bruno Haible  <bruno@clisp.org>
93784
93785         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93786
93787 2003-07-24  Karl Berry  <karl@gnu.org>
93788
93789         * config/missing: update from automake.
93790
93791 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93792             Bruno Haible  <bruno@clisp.org>
93793
93794         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93795         * lib/getline.c (getline, getdelim): Likewise.
93796         Remove _GNU_SOURCE define; now it's defined in config.h through
93797         m4/getline.m4.
93798
93799 2003-07-23  Karl Berry  <karl@gnu.org>
93800
93801         * config/config.sub: update from prep.
93802
93803 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93804
93805         * modules/xalloc (Depends-on): Add exitfail.
93806         * modules/xmemcoll: Likewise.
93807
93808 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93809
93810         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
93811         over-parenthesization in macros.
93812
93813         Sync with coreutils.
93814
93815         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
93816         required by C99.
93817
93818         Use `exit_failure' for xalloc and xmemcoll instead of their own
93819         private exit-failure variables.
93820         * lib/xalloc.h (xalloc_exit_failure): Remove.
93821         * lib/xmalloc.c: Likewise.  Include exitfail.h.
93822         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
93823         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
93824         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
93825         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
93826
93827 2003-07-20  Jim Meyering  <jim@meyering.net>
93828
93829         * modules/closeout (Depends-on): Add exitfail.
93830         Suggestion from Bruno Haible.
93831
93832 2003-07-19  Karl Berry  <karl@gnu.org>
93833
93834         * config/config.sub: update from prep.
93835
93836 2003-07-18  Paul Eggert  <eggert@twinsun.com>
93837
93838         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
93839         Remove.
93840         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
93841         to test that it can stand by itself.  Include "exitfail.h".
93842         Clients should set exit_failure instead.
93843         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93844
93845 2003-07-18  Bruno Haible  <bruno@clisp.org>
93846
93847         * modules/getndelim2: New file.
93848         * modules/getline: Share files with module getndelim2.
93849         * modules/getnline: Depend on getndelim2 instead of sharing files with
93850         it. Add getnline.c to lib_SOURCES.
93851         * MODULES.html.sh (func_all_modules): Add getndelim2.
93852
93853 2003-07-18  Bruno Haible  <bruno@clisp.org>
93854
93855         * m4/getndelim2.m4: New file.
93856         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93857         invoke gl_PREREQ_GETNDELIM2.
93858         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93859         gl_PREREQ_GETNDELIM2.
93860         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93861         gl_GETNDELIM2.
93862
93863 2003-07-18  Bruno Haible  <bruno@clisp.org>
93864
93865         * lib/getndelim2.h: New file.
93866         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93867         getndelim2.h.
93868         (getndelim2): Make non-static. Change return type to ssize_t.
93869         * lib/getline.h: Change argument names.
93870         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93871         * lib/getnline.c: Include getndelim2.h.
93872
93873 2003-07-18  Andreas Schwab  <schwab@suse.de>
93874
93875         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93876
93877 2003-07-17  Karl Berry  <karl@gnu.org>
93878
93879         * config/config.sub: update from prep.
93880
93881 2003-07-17  Bruno Haible  <bruno@clisp.org>
93882
93883         * modules/getnline: New file.
93884         * modules/getline: Add lib/getndelim2.c to source file list.
93885         * MODULES.html.sh (func_all_modules): Add getnline.
93886
93887 2003-07-17  Bruno Haible  <bruno@clisp.org>
93888
93889         * m4/getnline.m4: New file.
93890
93891 2003-07-17  Bruno Haible  <bruno@clisp.org>
93892
93893         * m4/Makefile.am.in: Remove file.
93894         * m4/Makefile.am: Remove file.
93895         * m4/Makefile.in: Remove file.
93896
93897 2003-07-17  Bruno Haible  <bruno@clisp.org>
93898
93899         * lib/getnline.h: New file.
93900         * lib/getnline.c: New file.
93901         * lib/getndelim2.c: New file, extracted from getline.c.
93902         (getndelim2): Renamed from getdelim2, with added nmax argument.
93903         * lib/getline.c: Include getndelim2.c.
93904         (getdelim2): Moved out to getndelim2.c.
93905         (getline, getdelim): Update.
93906
93907 2003-07-17  Bruno Haible  <bruno@clisp.org>
93908
93909         * lib/Makefile.am: Remove file.
93910         * lib/Makefile.in: Remove file.
93911
93912 2003-07-17  Bruno Haible  <bruno@clisp.org>
93913
93914         * configure.in: Remove file.
93915         * Makefile.in: Remove file.
93916
93917 2003-07-17  Bruno Haible  <bruno@clisp.org>
93918
93919         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93920
93921 2003-07-16  Karl Berry  <karl@gnu.org>
93922
93923         * config/srclist-update: was running fixlicense twice, which caused
93924                 texinfo.tex to be nullified for some reason.  Simplify,
93925                 $gplsrc is no longer needed as far as I can see?
93926
93927 2003-07-16  Jim Meyering  <jim@meyering.net>
93928
93929         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93930
93931 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93932
93933         * config/srclist.txt: Get the following files from gettext-runtime/intl
93934         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93935         ref-del.sin.  From Bruno Haible.
93936         * config/srclist-update (fixfile): Change grep pattern again, since the
93937         previous fix didn't work (there was another trailing $).  Use
93938         '[$]' to escape the $s.
93939
93940 2003-07-15  Karl Berry  <karl@gnu.org>
93941
93942         * lib/vasnprintf.c: update from gettext.
93943
93944 2003-07-15  Karl Berry  <karl@gnu.org>
93945
93946         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93947         gets expanded when surrounded by '$'.
93948
93949 2003-07-15  Jim Meyering  <jim@meyering.net>
93950
93951         * modules/save-cwd: Don't depend on error.  From Derek Price.
93952
93953 2003-07-15  Jim Meyering  <jim@meyering.net>
93954
93955         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93956
93957 2003-07-14  Simon Josefsson  <jas@extundo.com>
93958
93959         * modules/mempcpy: New file.
93960         * MODULES.html.sh (func_all_modules): Add mempcpy.
93961
93962 2003-07-14  Simon Josefsson  <jas@extundo.com>
93963
93964         * m4/mempcpy.m4: New file.
93965
93966 2003-07-14  Simon Josefsson  <jas@extundo.com>
93967
93968         * lib/mempcpy.h: New file.
93969         * lib/mempcpy.c: New file.
93970
93971 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93972
93973         * modules/getdate, modules/posixtm: Depend on mktime.
93974
93975 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93976
93977         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93978         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93979         unicodeio.c, unicodeio.h, unlocked-io.h:
93980         Switch from LGPL to GPL.
93981
93982 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93983
93984         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93985         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93986         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93987         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93988         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93989         updated automatically by ../config/srclist-update.  This changes
93990         their license from LPGL to GPL.
93991
93992 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93993
93994         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93995         assumed to refer to the root of the most recent stable gettext version.
93996         * config/srclistvars.sh: Add defaults for eggert.
93997         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93998         Match "This program" as well as "The program".  This is needed
93999         for gettext.
94000
94001 2003-07-14  Jim Meyering  <jim@meyering.net>
94002
94003         Don't emit diagnostics.  Let callers do that.
94004         * lib/save-cwd.c: Don't include "error.h".
94005         (save_cwd): Don't call error.  Ensure that errno is valid
94006         when returning nonzero.
94007
94008         * lib/save-cwd.h (restore_cwd): Update prototype.
94009         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94010         Simplify.  Don't call error upon failure.  Let callers do that.
94011         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94012         when auditing is enabled.  But don't bother updating the #if.
94013
94014 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94015
94016         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94017         it breaks C++ compilation.
94018         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94019
94020 2003-07-10  Simon Josefsson  <jas@extundo.com>
94021
94022         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94023
94024 2003-07-10  Jim Meyering  <jim@meyering.net>
94025
94026         * m4/clock_time.m4: Remove trailing blank.
94027         * m4/intmax_t.m4: Likewise.
94028
94029 2003-07-10  Jim Meyering  <jim@meyering.net>
94030
94031         * lib/vasnprintf.c: Remove trailing blanks.
94032         Make cpp indentation consistent.
94033
94034 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94035
94036         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94037         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94038         Switch from LGPL to GPL.
94039
94040 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94041
94042         * config/srclist.txt: Sort sublists.  Add
94043         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94044         that differ from gnulib for one reason or another; we'd like this list
94045         to be smaller but for now let's document what we have.
94046
94047 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94048
94049         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94050         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94051         and sweeter "eval x=$x".
94052         * config/srclist.txt: Get lib/argp* from glibc.
94053
94054 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94055
94056         * lib/mktime.c: Fix some boundary cases and remove need for floating
94057         point.
94058
94059         Issue a compile-time diagnostic if time_t is floating point, or if
94060         two's complement arithmetic is not in effect, or if arithmetic
94061         right shift does not propagate the sign.  These assumptions were
94062         all in the original code but they weren't checked.
94063
94064         (TIME_T_MIDPOINT, verify): New macros.
94065         (__isleap): Remove; it has integer overflow problems.
94066         (leapyear): New function, without those problems.
94067         (ydhms_tm_diff): Remove; splitting into two parts.
94068         (ydhms_diff): New function, containing the arithmetic part of
94069         the old ydhms_tm_diff function.  Issue a compile-time
94070         diagnostic if we are not using C99 integer division.
94071         Avoid casts when possible.
94072         (guess_time_tm): New function, containing the checking part of
94073         the old ydhms_tm_diff function.  Return the new value, rather than
94074         the difference between it and the old.  Accept a new argument T
94075         so that *T specifies the old value.  Check for overflow in the result.
94076
94077         (__mktime_internal): Use a time_t offset, not a long int offset.
94078         This undoes the 2003-06-04 change, which is no longer needed now
94079         that we have better overflow checking.
94080         (localtime_offset): Likewise.
94081
94082         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94083         and long are 64-bit but int is only 32-bit.
94084         (ydhms_diff): Use long int to store year1 and yday1.
94085         Issue a compile-time diagnostic if long int is not wide enough.
94086
94087         (__mktime_internal): Use long int to store adjusted year and yday.
94088         Use plain C rather than preprocessor commands, if that doesn't
94089         affect efficiency.
94090         Check for overflow (and try to repair) after each probe
94091         rather than checking only at the very end.  This avoids some bugs
94092         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94093         does not equal GMT offset at maximum time).
94094         Use integer to check for overflow rather than floating point; this
94095         is more portable to non-IEEE hosts, and is a tad faster.
94096         When we detect that we are oscillating between two values,
94097         don't check whether tm_isdst has the requested value, since
94098         we already know the answer.  When tm_isdst has the wrong value,
94099         use a different heuristic to find the right one, based on the
94100         extreme values actually observed in practice in tz2003a,
94101         rather than the (overly optimistic) "previous 3 calendar quarters".
94102
94103         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94104         "T const" to accommodate glibc style.
94105         (check_result): Use less-confusing report format.  "long" -> "long int.
94106         (main): Likewise.
94107         Don't loop if the iteration overflows time_t.
94108         Allow a negative step in the iteration.
94109
94110 2003-07-06  Karl Berry  <karl@gnu.org>
94111
94112         * config/depcomp: update from automake.
94113         * config/config.sub: update from prep.
94114
94115 2003-07-03  Karl Berry  <karl@gnu.org>
94116
94117         * config/config.guess: update from prep.
94118
94119 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94120
94121         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94122         xreadlink.c now includes it unconditionally.
94123
94124 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94125
94126         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94127         having it depend on HAVE_SYS_TYPES_H.
94128
94129 2003-07-01  Bruno Haible  <bruno@clisp.org>
94130
94131         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94132         <sys/types.h> should be sufficient.
94133         Reported by Paul Eggert.
94134
94135 2003-06-26  Karl Berry  <karl@gnu.org>
94136
94137         * config/depcomp: update from automake.
94138
94139 2003-06-26  Bruno Haible  <bruno@clisp.org>
94140
94141         * modules/human: Depend on module stdbool.
94142
94143 2003-06-25  Bruno Haible  <bruno@clisp.org>
94144
94145         * modules/readlink: New file.
94146         * modules/xreadlink: Depend on it.
94147         * MODULES.html.sh (func_all_modules): Add readlink.
94148
94149 2003-06-25  Bruno Haible  <bruno@clisp.org>
94150
94151         * m4/readlink.m4: New file.
94152
94153 2003-06-25  Bruno Haible  <bruno@clisp.org>
94154
94155         * lib/readlink.c: New file.
94156
94157 2003-06-22  Karl Berry  <karl@gnu.org>
94158
94159         * config/srclist.txt: update mkinstalldirs from automake.
94160         * config/mkinstalldirs: update.
94161
94162 2003-06-22  Bruno Haible  <bruno@clisp.org>
94163
94164         Portability to mingw32.
94165         * m4/ssize_t.m4: New file, from GNU gettext.
94166         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94167         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94168
94169 2003-06-22  Bruno Haible  <bruno@clisp.org>
94170
94171         * modules/safe-read: Add m4/ssize_t.m4.
94172         * modules/xreadlink: Add m4/ssize_t.m4.
94173
94174 2003-06-20  Bruno Haible  <bruno@clisp.org>
94175
94176         Assume C89, so PARAMS isn't needed.
94177         * lib/unicodeio.h (PARAMS): Remove.
94178         * lib/unicodeio.c: Don't use PARAMS.
94179
94180 2003-06-18  Karl Berry  <karl@gnu.org>
94181
94182         * config/config.{guess,sub}: update from prep.
94183
94184 2003-06-18  Jim Meyering  <jim@meyering.net>
94185
94186         Merge changes from coreutils.
94187         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94188         Remove explicit declarations of xmalloc and realloc.
94189         Include xalloc.h.
94190         (read_utmp): Remove anachronistic cast of xmalloc.
94191
94192 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94193
94194         Assume C89, so PARAMS isn't needed.
94195         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94196         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94197         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94198         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94199         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94200         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94201         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94202         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94203         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94204         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94205         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94206         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94207         no longer needed. Anyway, config.h should always be included before any
94208         other file.
94209
94210 2003-06-11  Simon Josefsson  <jas@extundo.com>
94211
94212         * modules/sysexits: New file.
94213         * MODULES.html.sh (func_all_modules): Add sysexits.
94214
94215 2003-06-11  Simon Josefsson  <jas@extundo.com>
94216
94217         * lib/sysexit_.h: New file.
94218
94219 2003-06-11  Derek Price  <derek@ximbiot.com>
94220
94221         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94222         necessary.
94223
94224 2003-06-11  Bruno Haible  <bruno@clisp.org>
94225
94226         * m4/sysexits.m4: New file.
94227
94228 2003-06-10  Simon Josefsson  <jas@extundo.com>
94229
94230         * lib/argp.h: New file, from glibc.
94231         * lib/argp-ba.c: New file, from glibc.
94232         * lib/argp-eexst.c: New file, from glibc.
94233         * lib/argp-fmtstream.c: New file, from glibc.
94234         * lib/argp-fmtstream.h: New file, from glibc.
94235         * lib/argp-fs-xinl.c: New file, from glibc.
94236         * lib/argp-help.c: New file, from glibc.
94237         * lib/argp-namefrob.h: New file, from glibc.
94238         * lib/argp-parse.c: New file, from glibc.
94239         * lib/argp-pv.c: New file, from glibc.
94240         * lib/argp-pvh.c: New file, from glibc.
94241         * lib/argp-xinl.c: New file, from glibc.
94242
94243 2003-06-10  Simon Josefsson  <jas@extundo.com>
94244
94245         * modules/strchrnul: New file.
94246
94247 2003-06-10  Simon Josefsson  <jas@extundo.com>
94248
94249         * modules/argp: New file.
94250
94251 2003-06-10  Simon Josefsson  <jas@extundo.com>
94252
94253         * m4/strchrnul.m4: New file.
94254
94255 2003-06-10  Simon Josefsson  <jas@extundo.com>
94256
94257         * lib/strchrnul.h: New file.
94258         * lib/strchrnul.c: New file.
94259
94260 2003-06-10  Bruno Haible  <bruno@clisp.org>
94261
94262         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94263
94264 2003-06-07  Karl Berry  <karl@gnu.org>
94265
94266         * config/config.{guess,sub}: update from prep.
94267
94268 2003-06-07  Jim Meyering  <jim@meyering.net>
94269
94270         * modules/strtod: Use $(...) notation, not @...@ for
94271         AC_REPLACE'd variables.
94272         * modules/localcharset: Likewise.
94273
94274 2003-06-07  Jim Meyering  <jim@meyering.net>
94275
94276         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94277         in place of my name in the copyright comment.
94278         Remove definition and uses of __P.
94279
94280         From coreutils.
94281         * lib/stat.c: Don't declare xmalloc explicitly.
94282         Instead, include "xalloc.h".
94283         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94284         xrealloc, and xcalloc return values.
94285         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94286         Improve comment.
94287         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94288
94289 2003-06-07  Bruno Haible  <bruno@clisp.org>
94290
94291         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94292         avoid AC_CONFIG_LINKS.
94293         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94294         fnmatch.h, to avoid AC_CONFIG_LINKS.
94295         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94296
94297 2003-06-07  Bruno Haible  <bruno@clisp.org>
94298
94299         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94300         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94301         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94302         directory.
94303         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94304         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94305         directory.
94306
94307 2003-06-06  Jim Meyering  <jim@meyering.net>
94308
94309         Merge from coreutils.
94310         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94311         Consolidate declarations and initializations of *_base* locals.
94312
94313         Merge from coreutils.
94314         This avoids a core dump on systems without GNU putenv,
94315         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94316         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94317         (unsetenv): New static function, from GNU libc.
94318         (rpl_putenv): Use it.
94319
94320         * lib/modechange.c: Remove trailing blanks.
94321
94322         Merge from coreutils.
94323         * lib/fsusage.c: Remove declaration of statfs.
94324         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94325
94326         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94327
94328 2003-06-06  Jim Meyering  <jim@meyering.net>
94329
94330         * lib/stdbool_.h: Renamed from stdbool.h.in.
94331
94332 2003-06-06  Jim Meyering  <jim@meyering.net>
94333             Bruno Haible  <bruno@clisp.org>
94334
94335         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94336         Adjust Makefile.am snippet not to redirect directly to target.
94337         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94338
94339 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94340
94341         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94342         mismatch, look in future quarters as well as past.  This fixes a
94343         bug when processing fall-backwards gaps immediately after a long
94344         period of daylight-saving time.
94345
94346         * lib/mktime.c: Assume freestanding C89 or better.
94347         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94348         (__P): Remove; not used.
94349         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94350         (mktime, not_equal_tm, print_tm, check_result,
94351         main): Use prototypes.  Use const * where appropriate.
94352         (main): Fix typo in testing code that uncovered by above changes.
94353         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94354
94355 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94356
94357         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94358         locale.h, localeconv.  This merges changes from coreutils.
94359
94360         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94361         It can be removed after the next Autoconf is released.
94362         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94363         needed.
94364
94365 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94366
94367         * lib/mktime.c: Fix Debian bug 177940
94368         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94369         (localtime_offset): Now long int, not time_t, because we want it
94370         to be guaranteed to be signed.  All uses changed.
94371         (__mktime_internal): If overflow would occur when adding offset,
94372         don't add it.
94373
94374         Merge 'human' changes from coreutils.  Rewrite to support
94375         locale-specific notations like thousands separators.
94376         * lib/human.c: Simplify authorship notice.
94377         Include human.h immediately after config.h.
94378         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94379         <limits.h>: Do not include, since human.h does.
94380         (SIZE_MAX, UINTMAX_MAX): New macros.
94381         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94382         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94383         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94384         (power_letter): Renamed from suffixes.
94385         (generate_suffix_backwards): Remove.
94386         (adjust_value): Now takes int style (because of human.h changes)
94387         and long double value (for greater precision on some platforms).
94388         (group_number): New function.
94389         (human_readable): Use it.  Use integer options, not enum.
94390         Put the options before the sizes in the arg list.
94391         Support all the new options.
94392         The old human_readable function has been removed;
94393         use inttostr.h instead.
94394         (human_readable, default_block_size, humblock):
94395         Use uintmax_t, not int, for block sizes.
94396         (human_readable_inexact, block_size_types): Remove.
94397         (block_size_opts): New constant.
94398         (human_options): Renamed from human_block_size, with new signature
94399         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94400         * lib/human.h: Add copyright and authorship notice.
94401         Include <limits.h> and <stdbool.h> unconditionally.
94402         (PARAMS): Remove.  All uses removed.
94403         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94404         (enum human_inexact_style): Remove tag; now a nameless enum.
94405         (human_floor, human_ceiling, human_round_to_even): Now have
94406         values 2, 0, 1 rather than -1, 1, 0.
94407         (human_group_digits, human_suppress_point_zero, human_autoscale,
94408         human_base_1024, human_SI, human_B): New constants.
94409         (human_readable_inexact, human_block_size): Remove.
94410         (human_readable): Size args are now uintmax_t, not int.
94411         (human_options): New decl.
94412
94413         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94414         unnecessary now that we assume C89 or better.  This change
94415         imported from coreutils.
94416
94417         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94418         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94419         in the 2003-05-30 sync from glibc.
94420
94421         .h files should stand alone, but we shouldn't include <sys/types.h>
94422         if we can get away with just <stddef.h>.
94423
94424         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94425         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94426         rather than <sys/types.h>, as we merely need size_t.
94427         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94428         to get size_t.
94429         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94430         Include <stdio.h>, to get FILE.
94431         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94432         memcasecmp.h has included <stddef.h> and all we need is size_t.
94433         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94434         our interface, instead of including <sys/types.h>
94435
94436 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94437
94438         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94439         now, as glibc mktime is buggy on non-glibc systems.
94440
94441 2003-06-03  Karl Berry  <karl@gnu.org>
94442
94443         * config/config.sub: update from prep.
94444
94445 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94446
94447         [from coreutils]
94448         Fix some minor time-related bugs with POSIX time arguments.
94449         Some valid time stamps were being rejected (notably -1, and
94450         time stamps before 1900 on 64-bit hosts).  And some invalid
94451         time stamps were being accepted, e.g. September 31.
94452
94453         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94454         that we can return (time_t) -1 successfully.
94455         * lib/posixtm.c: Likewise.
94456         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94457         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94458         (t): Remove static var.
94459         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94460         of static var.  All uses changed.
94461         (year): Do not reject years before 1900; they can occur with
94462         64-bit time_t.
94463         (posix_time_parse): Do not check for out-of-range components;
94464         that is now the caller's responsibility, since our checks were
94465         only approximations.
94466         (posixtime): Use mktime to check for out-of-range components,
94467         since it knows them exactly.
94468         If mktime returns (time_t) -1, check whether an error actually occurred
94469         by invoking localtime on -1.
94470         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94471         posixtime failures better.
94472         Improve the test data (in comments only).
94473
94474 2003-06-02  Karl Berry  <karl@gnu.org>
94475
94476         * config/mkinstalldirs (version): new variable.
94477         (--version): new option.
94478         (usage): improve message.
94479
94480 2003-05-30  Karl Berry  <karl@gnu.org>
94481
94482         * lib/mktime.c: update from libc.
94483
94484 2003-05-30  Bruno Haible  <bruno@clisp.org>
94485
94486         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94487         * config/config.rpath: Upgrade to gettext-0.12.1.
94488
94489 2003-05-30  Bruno Haible  <bruno@clisp.org>
94490
94491         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94492         * m4/nls.m4: New file, from gettext-0.12.1.
94493         * m4/po.m4: New file, from gettext-0.12.1.
94494         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94495
94496 2003-05-30  Bruno Haible  <bruno@clisp.org>
94497
94498         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94499         * lib/localcharset.h: Likewise.
94500         * lib/localcharset.c: Likewise.
94501
94502 2003-05-29  Karl Berry  <karl@gnu.org>
94503
94504         * config/config.rpath: update from gettext.
94505
94506 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94507
94508         Assume the headers required for C89 freestanding compilers.
94509         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94510         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94511         * m4/human.m4 (gl_HUMAN): Likewise.
94512         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94513         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94514         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94515         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94516         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94517         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94518
94519 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94520
94521         Assume the headers required for C89 freestanding compilers.
94522         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94523         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94524         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94525         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94526         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94527         define, since <limits.h> is guaranteed to do that.
94528         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94529         * lib/exclude.c: Include <stdbool.h> unconditionally.
94530         * lib/tempname.c: Include <stddef.h> unconditionally.
94531         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94532         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94533         <stddef.h> does that.
94534         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94535         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94536         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94537         needed.
94538         * lib/xstrtol.c: Likewise.
94539         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94540         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94541
94542         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94543         warnings on some platforms.
94544
94545         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94546         arbitrarily.
94547
94548 2003-05-26  Jim Meyering  <jim@meyering.net>
94549
94550         Merge in a change from coreutils:
94551         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94552         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94553         that condition, rather than `-1' which is slightly misleading.
94554         Change the name of the cache variable to have the gl_ prefix.
94555         Prompted by a patch from Richard Dawe for DJGPP.
94556
94557 2003-05-24  Karl Berry  <karl@gnu.org>
94558
94559         * config/config.guess: update from prep.
94560
94561 2003-05-22  Karl Berry  <karl@gnu.org>
94562
94563         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94564
94565 2003-05-20  Karl Berry  <karl@gnu.org>
94566
94567         * config/config.guess: update from prep.
94568
94569 2003-05-18  Karl Berry  <karl@gnu.org>
94570
94571         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94572         might actually be set by the user.
94573
94574         * config/depcomp, install-sh, mdate-sh: update from automake.
94575
94576 2003-05-17  Bruno Haible  <bruno@clisp.org>
94577
94578         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94579         invalid expansion for AC_EGREP_CPP.
94580         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94581         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94582         Suggested by Akim Demaille <akim@epita.fr> in
94583         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94584
94585 2003-05-12  Jim Meyering  <jim@meyering.net>
94586
94587         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94588         the space-padded-by-default conversion specifiers, %e, %k, %l.
94589
94590 2003-05-12  Bruno Haible  <bruno@clisp.org>
94591
94592         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94593         the string is longer than 4 KB.
94594
94595 2003-05-11  Karl Berry  <karl@gnu.org>
94596
94597         * config/config.{guess,sub}: update from prep.
94598
94599 2003-05-09  Bruno Haible  <bruno@clisp.org>
94600
94601         * modules/error: Add m4/strerror_r.m4 to file list.
94602
94603 2003-05-03  Bruno Haible  <bruno@clisp.org>
94604
94605         Upgrade to Unicode-4.0.
94606         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94607         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94608         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94609         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94610         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94611         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94612         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94613         Change width of U+E0100..U+E01EF from 1 to 0.
94614
94615 2003-04-25  Jim Meyering  <jim@meyering.net>
94616
94617         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94618         of type size_t, not int.
94619
94620 2003-04-25  Bruno Haible  <bruno@clisp.org>
94621
94622         * lib/copy-file.c: Include <stddef.h>, for size_t.
94623
94624 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94625
94626         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94627         code which expansion is under static control.  Patch imported from
94628         Akim Demaille's patch to Bison; see
94629         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94630
94631 2003-04-14  Bruno Haible  <bruno@clisp.org>
94632
94633         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94634
94635 2003-04-11  Jim Meyering  <jim@meyering.net>
94636
94637         Merge changes from Coreutils.
94638
94639         2003-03-22  Jim Meyering  <jim@meyering.net>
94640
94641         * lib/strftime.c (widen): Cast alloca return value to proper type.
94642
94643         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94644
94645         From GNU libc.
94646         * lib/strftime.c (my_strftime): Handle very large width
94647         specifications for numeric values correctly.  Improve checks for
94648         overflow.
94649
94650         2003-01-19  Jim Meyering  <jim@meyering.net>
94651
94652         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94653         definitions.
94654         (nl_get_alt_digit) [! defined my_strftime]: Define.
94655         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94656         _nl_get_alt_digit and _nl_get_walt_digit.
94657
94658         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94659         libc. These changes have no effect outside of _LIBC.
94660
94661 2003-04-10  Bruno Haible  <bruno@clisp.org>
94662
94663         * modules/findprog: New file.
94664         * MODULES.html.sh (func_all_modules): Add it.
94665
94666 2003-04-10  Bruno Haible  <bruno@clisp.org>
94667
94668         * m4/findprog.m4: New file.
94669         * m4/eaccess.m4: New file.
94670
94671 2003-04-10  Bruno Haible  <bruno@clisp.org>
94672
94673         * lib/findprog.h: New file, from GNU gettext.
94674         * lib/findprog.c: New file, from GNU gettext.
94675
94676 2003-04-05  Jim Meyering  <jim@meyering.net>
94677
94678         Merge changes from Coreutils.
94679
94680         * lib/exclude.h (PARAMS): Remove definition and uses.
94681         * lib/exclude.c: Remove uses of `PARAMS'.
94682
94683         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94684         Add test-cases for DOS filenames. Declare program_name.
94685         (main): Set up program_name.  Patch by Rich Dawe.
94686
94687         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94688         error from mntctl.
94689         Use mntctl's return value to drive the entry-processing loop, since
94690         we can't rely on the value of the vmt_length member in the last
94691         entry.  On some systems doing so could result in exhausting
94692         virtual memory.  Based in part on a patch from Mike Jetzer.
94693
94694 2003-04-04  Bruno Haible  <bruno@clisp.org>
94695
94696         * modules/linebreak: New file.
94697         * MODULES.html.sh (func_all_modules): Add it.
94698
94699 2003-04-04  Bruno Haible  <bruno@clisp.org>
94700
94701         * m4/linebreak.m4: New file.
94702
94703 2003-04-04  Bruno Haible  <bruno@clisp.org>
94704
94705         * lib/linebreak.h: New file, from GNU gettext.
94706         * lib/linebreak.c: New file, from GNU gettext with slight
94707         modifications.
94708         * lib/lbrkprop.h: New file, from GNU gettext.
94709
94710 2003-04-03  Bruno Haible  <bruno@clisp.org>
94711
94712         * modules/utf8-ucs4: New file.
94713         * modules/utf16-ucs4: New file.
94714         * modules/ucs4-utf8: New file.
94715         * modules/ucs4-utf16: New file.
94716         * MODULES.html.sh (func_all_modules): Add them.
94717
94718 2003-04-03  Bruno Haible  <bruno@clisp.org>
94719
94720         * m4/utf-ucs4.m4: New file.
94721         * m4/ucs4-utf.m4: New file.
94722
94723 2003-04-03  Bruno Haible  <bruno@clisp.org>
94724
94725         * lib/utf8-ucs4.h: New file, from GNU gettext.
94726         * lib/utf16-ucs4.h: New file, from GNU gettext.
94727         * lib/ucs4-utf8.h: New file, from GNU gettext.
94728         * lib/ucs4-utf16.h: New file, from GNU gettext.
94729
94730 2003-04-02  Bruno Haible  <bruno@clisp.org>
94731
94732         * modules/binary-io: New file.
94733         * MODULES.html.sh (func_all_modules): Add it.
94734
94735 2003-04-02  Bruno Haible  <bruno@clisp.org>
94736
94737         * lib/binary-io.h: New file, from GNU gettext.
94738
94739 2003-04-01  Bruno Haible  <bruno@clisp.org>
94740
94741         * modules/pathname: New file.
94742         * MODULES.html.sh (func_all_modules): Add it.
94743
94744 2003-04-01  Bruno Haible  <bruno@clisp.org>
94745
94746         * lib/pathname.h: New file, from GNU gettext.
94747         * lib/concatpath.c: New file, from GNU gettext.
94748
94749 2003-03-30  Bruno Haible  <bruno@clisp.org>
94750
94751         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94752
94753 2003-03-30  Bruno Haible  <bruno@clisp.org>
94754
94755         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94756         function chown() doesn't exist.
94757
94758 2003-03-28  Bruno Haible  <bruno@clisp.org>
94759
94760         * modules/copy-file: New file.
94761         * MODULES.html.sh (func_all_modules): Add it.
94762
94763 2003-03-28  Bruno Haible  <bruno@clisp.org>
94764
94765         * m4/copy-file.m4: New file.
94766
94767 2003-03-28  Bruno Haible  <bruno@clisp.org>
94768
94769         * lib/copy-file.h: New file, from GNU gettext.
94770         * lib/copy-file.c: New file, from GNU gettext.
94771
94772 2003-03-18  Jim Meyering  <jim@meyering.net>
94773
94774         * lib/quote.c (quote_n): Fix typo in comment.
94775
94776 2003-03-18  Bruno Haible  <bruno@clisp.org>
94777
94778         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94779         checking.
94780         * m4/onceonly_2_57.m4: Likewise.
94781
94782 2003-03-17  Bruno Haible  <bruno@clisp.org>
94783
94784         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94785         (m4_quote): Remove macro.
94786         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94787
94788 2003-03-14  Jim Meyering  <jim@meyering.net>
94789
94790         Merge changes from Coreutils.
94791         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94792         to be const, in order to avoid warnings.
94793         (obstack_room): Likewise.
94794         (obstack_empty_p): Likewise.
94795
94796 2003-03-14  Bruno Haible  <bruno@clisp.org>
94797
94798         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
94799         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
94800
94801 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94802
94803         Merge changes from Bison.
94804         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
94805         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
94806         when compiling Bison 1.875's `bitset bset = obstack_alloc
94807         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
94808         * lib/hash.c: Include <stdbool.h> unconditionally.
94809
94810 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94811
94812         * m4/onceonly.m4 (m4_quote): New macro.
94813         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
94814         Quote AC_FOREACH variable-expansions properly.
94815
94816 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94817
94818         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
94819
94820 2003-03-09  Paul Eggert  <eggert@twinsun.com>
94821
94822         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
94823         Reported by Bruce Becker; see:
94824         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
94825
94826 2003-03-03  Paul Eggert  <eggert@twinsun.com>
94827             Bruno Haible  <bruno@clisp.org>
94828
94829         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
94830         Reported by John Hughes, see
94831         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
94832
94833 2003-02-20  Bruno Haible  <bruno@clisp.org>
94834
94835         * MODULES.html.sh (func_all_modules): Add poll.
94836
94837 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94838
94839         * modules/poll: New file.
94840
94841 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94842
94843         * lib/poll_.h: New file.
94844         * lib/poll.c: New file.
94845
94846 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94847
94848         * m4/poll.m4: New file.
94849
94850 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94851
94852         * modules/mathl: New file.
94853
94854 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94855
94856         * lib/mathl.h: New file.
94857         * lib/acosl.c: New file.
94858         * lib/asinl.c: New file.
94859         * lib/atanl.c: New file.
94860         * lib/ceill.c: New file.
94861         * lib/cosl.c: New file.
94862         * lib/expl.c: New file.
94863         * lib/floorl.c: New file.
94864         * lib/frexpl.c: New file.
94865         * lib/ldexpl.c: New file.
94866         * lib/logl.c: New file.
94867         * lib/sincosl.c: New file.
94868         * lib/sinl.c: New file.
94869         * lib/sqrtl.c: New file.
94870         * lib/tanl.c: New file.
94871         * lib/trigl.c: New file.
94872         * lib/trigl.h: New file.
94873
94874 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94875
94876         * m4/mathl.m4: New file.
94877
94878 2003-02-18  Bruno Haible  <bruno@clisp.org>
94879
94880         * MODULES.html.sh (func_all_modules): Add mathl.
94881
94882 2003-02-17  Bruno Haible  <bruno@clisp.org>
94883
94884         * modules/mkdtemp: New module.
94885         * MODULES.html.sh (func_all_modules): Add it.
94886
94887 2003-02-17  Bruno Haible  <bruno@clisp.org>
94888
94889         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94890
94891 2003-02-17  Bruno Haible  <bruno@clisp.org>
94892
94893         * lib/mkdtemp.h: New file, from GNU gettext.
94894         * lib/mkdtemp.c: New file, from GNU gettext.
94895
94896 2003-02-02  Jim Meyering  <jim@meyering.net>
94897
94898         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94899         e.g. glibc-2.2.93.
94900
94901 2003-01-31  Bruno Haible  <bruno@clisp.org>
94902
94903         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94904         'rpl_rename'.
94905         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94906         'rpl_strnlen'.
94907         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94908         'rpl_strtod'.
94909         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94910         'rpl_utime'.
94911
94912 2003-01-31  Bruno Haible  <bruno@clisp.org>
94913
94914         * lib/rename.c: #undef rename before defining rpl_rename.
94915         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94916
94917 2003-01-30  Bruno Haible  <bruno@clisp.org>
94918
94919         * modules/vasnprintf, modules/vasprintf: New modules.
94920         * MODULES.html.sh (func_all_modules): Add them.
94921
94922 2003-01-30  Bruno Haible  <bruno@clisp.org>
94923
94924         * m4/signed.m4: New file, from GNU gettext.
94925         * m4/longdouble.m4: New file, from GNU gettext.
94926         * m4/wchar_t.m4: New file, from GNU gettext.
94927         * m4/wint_t.m4: New file, from GNU gettext.
94928         * m4/vasnprintf.m4: New file.
94929         * m4/vasprintf.m4: New file.
94930
94931 2003-01-30  Bruno Haible  <bruno@clisp.org>
94932
94933         * lib/printf-args.h: New file, from GNU gettext.
94934         * lib/printf-args.c: New file, from GNU gettext.
94935         * lib/printf-parse.h: New file, from GNU gettext.
94936         * lib/printf-parse.c: New file, from GNU gettext.
94937         * lib/vasnprintf.h: New file, from GNU gettext.
94938         * lib/vasnprintf.c: New file, from GNU gettext.
94939         * lib/asnprintf.c: New file, from GNU gettext.
94940         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94941         * lib/vasprintf.c: New file, from GNU gettext.
94942         * lib/asprintf.c: New file, from GNU gettext.
94943
94944 2003-01-29  Bruno Haible  <bruno@clisp.org>
94945
94946         * modules/stpncpy: New module.
94947         * MODULES.html.sh (func_all_modules): Add it.
94948
94949 2003-01-29  Bruno Haible  <bruno@clisp.org>
94950
94951         * m4/stpncpy.m4: New file.
94952
94953 2003-01-29  Bruno Haible  <bruno@clisp.org>
94954
94955         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94956         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94957
94958 2003-01-28  Bruno Haible  <bruno@clisp.org>
94959
94960         * modules/c-ctype: New module.
94961         * MODULES.html.sh (func_all_modules): Add it.
94962
94963 2003-01-28  Bruno Haible  <bruno@clisp.org>
94964
94965         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94966         Paul Eggert.
94967         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94968         Paul Eggert.
94969
94970 2003-01-27  Bruno Haible  <bruno@clisp.org>
94971
94972         * modules/xsetenv: New module.
94973         * MODULES.html.sh (func_all_modules): Add it.
94974
94975 2003-01-27  Bruno Haible  <bruno@clisp.org>
94976
94977         * lib/xsetenv.h: New file, from GNU gettext.
94978         * lib/xsetenv.c: New file, from GNU gettext.
94979
94980 2003-01-23  Jim Meyering  <jim@meyering.net>
94981
94982         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94983         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94984
94985 2003-01-23  Bruno Haible  <bruno@clisp.org>
94986
94987         * modules/minmax: New module.
94988         * MODULES.html.sh (func_all_modules): Add it.
94989
94990 2003-01-23  Bruno Haible  <bruno@clisp.org>
94991
94992         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94993         Eggert.
94994
94995 2003-01-22  Bruno Haible  <bruno@clisp.org>
94996
94997         * modules/exit: New module.
94998         * MODULES.html.sh (func_all_modules): Add it.
94999
95000 2003-01-22  Bruno Haible  <bruno@clisp.org>
95001
95002         * lib/exit.h: New file, from GNU gettext.
95003
95004 2003-01-19  Bruno Haible  <bruno@clisp.org>
95005
95006         * gnulib-tool: Recognize option --extract-maintainer.
95007         (func_get_maintainer): New function.
95008         * modules/*: Add Maintainer entry.
95009
95010 2003-01-16  Jim Meyering  <jim@meyering.net>
95011
95012         * m4/regex.m4: The `regex' struct is both input and output.
95013         Initialize it before each use.  Patch by Tim Waugh.
95014
95015 2003-01-16  Bruno Haible  <bruno@clisp.org>
95016
95017         * MODULES.html.sh: Add a table of contents. Add the module name as
95018         leftmost column. Add hyperlinks.
95019
95020 2003-01-15  Bruno Haible  <bruno@clisp.org>
95021
95022         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95023
95024 2003-01-15  Bruno Haible  <bruno@clisp.org>
95025
95026         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95027         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95028         suffix.
95029
95030 2003-01-15  Bruno Haible  <bruno@clisp.org>
95031
95032         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95033
95034 2003-01-15  Bruno Haible  <bruno@clisp.org>
95035
95036         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95037         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95038
95039 2003-01-14  Jim Meyering  <jim@meyering.net>
95040
95041         * lib/same.c (same_name): Tweak a comment.
95042
95043 2003-01-14  Bruno Haible  <bruno@clisp.org>
95044
95045         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95046         when a string comparison is sufficient.
95047
95048 2003-01-14  Bruno Haible  <bruno@clisp.org>
95049
95050         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95051         'unsigned int'.
95052
95053 2003-01-14  Bruno Haible  <bruno@clisp.org>
95054
95055         * lib/hash-pjw.c: Add comment about low quality of this function.
95056
95057 2003-01-13  Bruno Haible  <bruno@clisp.org>
95058
95059         * modules/stpcpy: Distribute lib/stpcpy.h.
95060         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95061
95062 2003-01-13  Bruno Haible  <bruno@clisp.org>
95063
95064         * modules/*: Add a description.
95065         * modules/strpbrk: Fix Makefile.am snippet.
95066         * modules/strtoimax: Fix dependencies.
95067         * modules/strtoumax: Likewise.
95068
95069 2003-01-13  Bruno Haible  <bruno@clisp.org>
95070
95071         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95072         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95073         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95074
95075 2003-01-13  Bruno Haible  <bruno@clisp.org>
95076
95077         * gnulib-tool (func_create_testdir): Store config/* files in the main
95078         directory.
95079         * config.rpath: Move to ...
95080         * config/config.rpath: ... here.
95081         * modules/gettext: Contains config/config.rpath, not config.rpath.
95082         * modules/iconv: Likewise.
95083
95084 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95085
95086         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95087         to avoid collisions with libcurses and libreadline.
95088
95089         * m4/getstr.m4: Remove.
95090         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95091
95092 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95093
95094         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95095         to avoid collisions with libcurses and libreadline.
95096
95097         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95098         * lib/getstr.h, getstr.c: Remove.
95099         * lib/getline.c: Include "getline.h", to check interface.
95100         Move body of old getstr.c here: this defines MIN_CHUNK and
95101         declares getdelim2, which is renamed from getstr.
95102         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95103
95104         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95105         All uses changed.
95106         * lib/linebuffer.h: Likewise.
95107         (readline): Remove backward-compatibility macro.
95108
95109 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95110
95111         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95112         to avoid collisions with libcurses and libreadline.
95113         * getstr: Remove.
95114         * MODULES.html.sh: Remove getstr.
95115         * modules/getline: Depend on unlocked-io, not getstr.
95116
95117 2003-01-12  Jim Meyering  <jim@meyering.net>
95118
95119         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95120
95121 2003-01-10  Bruno Haible  <bruno@clisp.org>
95122
95123         * modules/alloca: Change Makefile.am requirements. Simplify Include
95124         requirements. Add lib/alloca_.h to file list.
95125
95126 2003-01-10  Bruno Haible  <bruno@clisp.org>
95127
95128         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95129
95130 2003-01-10  Bruno Haible  <bruno@clisp.org>
95131
95132         * lib/alloca_.h: New file.
95133         * lib/getdate.y: Unconditionally include alloca.h.
95134         * lib/makepath.c: Likewise.
95135         * lib/setenv.c: Likewise.
95136         * lib/userspec.c: Likewise.
95137
95138 2003-01-09  Karl Berry  <karl@gnu.org>
95139
95140         * MODULES.html.sh: include `dirname $0` in PATH, to find
95141         gnulib-tool.
95142
95143 2003-01-09  Bruno Haible  <bruno@clisp.org>
95144
95145         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95146         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95147
95148 2003-01-09  Bruno Haible  <bruno@clisp.org>
95149
95150         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95151
95152 2003-01-09  Bruno Haible  <bruno@clisp.org>
95153
95154         * lib/stdbool.h.in: New file.
95155
95156 2003-01-09  Bruno Haible  <bruno@clisp.org>
95157
95158         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95159         * MODULES.html.sh: Likewise.
95160
95161 2003-01-08  Jim Meyering  <jim@meyering.net>
95162
95163         * lib/full-write.c: Undefine and define-away `const' after inclusion
95164         of errno.h, not before.  Suggestion from Bruno Haible.
95165
95166 2003-01-08  Bruno Haible  <bruno@clisp.org>
95167
95168         * modules/full-read: Depend on full-write.
95169
95170 2003-01-08  Bruno Haible  <bruno@clisp.org>
95171
95172         * lib/safe-read.c: Include specification header first, to ensure its
95173         selfcontainedness.
95174         * lib/full-write.c: Likewise.
95175
95176 2003-01-07  Jim Meyering  <jim@meyering.net>
95177
95178         * lib/full-write.c: Rework so that it may serve to define full_read,
95179         too.
95180         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95181
95182 2003-01-07  Bruno Haible  <bruno@clisp.org>
95183
95184         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95185         <inttypes.h>.
95186         * lib/xstrtol.h: Likewise.
95187         * lib/xstrtoimax.c: Likewise.
95188         * lib/xstrtoumax.c: Likewise.
95189         * lib/human.h: Likewise.
95190
95191         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95192         on systems that have <inttypes.h> but not <stdint.h>.
95193
95194 2003-01-07  Bruno Haible  <bruno@clisp.org>
95195
95196         * MODULES.html.sh: Add copyright notice.
95197         (missed_files): Omit CVS directory entries.
95198         (func_module): Make it work with sed-3.02.
95199         * MODULES.txt: Remove file.
95200
95201 2003-01-06  Jim Meyering  <jim@meyering.net>
95202
95203         * lib/version-etc.c: Update year in translatable copyright string.
95204
95205 2003-01-03  Karl Berry  <karl@gnu.org>
95206
95207         * config/config.{guess,sub}: update from prep.
95208
95209 2003-01-02  Karl Berry  <karl@gnu.org>
95210
95211         * doc/COPYING.DOC: belatedly updated to 1.2.
95212
95213 2003-01-01  Karl Berry  <karl@gnu.org>
95214
95215         * gnulib-tool (func_verify_module): report module name $module in
95216         error message, not $1.
95217         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95218         be created, only if it doesn't exist.
95219         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95220
95221 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95222
95223         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95224
95225 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95226
95227         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95228         memcmp if strcoll doesn't work.
95229
95230 2002-12-31  Bruno Haible  <bruno@clisp.org>
95231
95232         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95233         nonempty.
95234
95235 2002-12-31  Bruno Haible  <bruno@clisp.org>
95236
95237         * lib/memcoll.c (STRCOLL): New macro.
95238         (memcoll): Use it.
95239
95240 2002-12-31  Bruno Haible  <bruno@clisp.org>
95241
95242         * lib/localcharset.h: New file.
95243         * lib/localcharset.c: Include it.
95244         * lib/unicodeio.c: Likewise.
95245
95246 2002-12-31  Bruno Haible  <bruno@clisp.org>
95247
95248         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95249         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95250
95251 2002-12-31  Bruno Haible  <bruno@clisp.org>
95252
95253         * lib/getline.h: Include <stddef.h>, for size_t.
95254
95255         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95256         * lib/unicodeio.c: Don't include <stddef.h>.
95257
95258 2002-12-31  Bruno Haible  <bruno@clisp.org>
95259
95260         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95261         HAVE_TM_ZONE.
95262
95263 2002-12-24  Karl Berry  <karl@gnu.org>
95264
95265         * config/config.guess: update from prep.
95266
95267 2002-12-24  Bruno Haible  <bruno@clisp.org>
95268
95269         General infrasructure.
95270         * m4/README: Rewritten.
95271         * m4/onceonly.m4: New file.
95272         * m4/onceonly_2_57.m4: New file.
95273
95274         Module atexit.
95275         * m4/atexit.m4: New file.
95276
95277         Module strtod.
95278         * m4/strtod.m4: New file.
95279
95280         Module strtol.
95281         * m4/strtol.m4: New file.
95282
95283         Module strtoul.
95284         * m4/strtoul.m4: New file.
95285
95286         Module memchr.
95287         * m4/memchr.m4: New file.
95288
95289         Module memcmp.
95290         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95291         (jm_FUNC_MEMCMP): Invoke it.
95292
95293         Module memcpy.
95294         * m4/memcpy.m4: New file.
95295
95296         Module memmove.
95297         * m4/memmove.m4: New file.
95298
95299         Module memset.
95300         * m4/memset.m4: New file.
95301
95302         Module strcspn.
95303         * m4/strcspn.m4: New file.
95304
95305         Module strpbrk.
95306         * m4/strpbrk.m4: New file.
95307
95308         Module strstr.
95309         * m4/strstr.m4: New file.
95310
95311         Module strerror.
95312         * m4/strerror.m4: New file.
95313
95314         Module mktime.
95315         * m4/mktime.m4: Renamed from jm-mktime.m4.
95316         (gl_PREREQ_MKTIME): New macro.
95317         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95318
95319         Module malloc.
95320         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95321         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95322         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95323
95324         Module realloc.
95325         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95326         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95327         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95328
95329         Module strftime.
95330         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95331         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95332         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95333         gl_TM_GMTOFF.
95334         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95335
95336         Module xalloc.
95337         * m4/xalloc.m4: New file.
95338
95339         Module alloca.
95340         * m4/alloca.m4: New file.
95341
95342         Module putenv.
95343         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95344         (jm_FUNC_PUTENV): Invoke it.
95345
95346         Module setenv.
95347         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95348         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95349         when invoked twice.
95350         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95351         gt_FUNC_SETENV.
95352
95353         Module memrchr.
95354         * m4/memrchr.m4: New file.
95355
95356         Module stpcpy.
95357         * m4/stpcpy.m4: New file.
95358
95359         Module strcase.
95360         * m4/strcase.m4: New file.
95361
95362         Module strdup.
95363         * m4/strdup.m4: New file.
95364
95365         Module strnlen.
95366         * m4/strnlen.m4: New file.
95367
95368         Module strndup.
95369         * m4/strndup.m4: New file.
95370
95371         Module xstrtod.
95372         * m4/xstrtod.m4: New file.
95373
95374         Module xstrtol.
95375         * m4/xstrtol.m4: New file.
95376
95377         Module getdate.
95378         * m4/getdate.m4: New file.
95379
95380         Module unlocked-io.
95381         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95382         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95383         * m4/jm-glibc-io.m4n: Remove file.
95384
95385         Module long-options.
95386         * m4/long-options.m4: New file.
95387
95388         Module md5.
95389         * m4/md5.m4: New file.
95390
95391         Module sha.
95392         * m4/sha.m4: New file.
95393
95394         Module getstr.
95395         * m4/getstr.m4: New file.
95396
95397         Module getline.
95398         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95399         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95400         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95401         simply getline. Infoke gl_PREREQ_GETLINE.
95402
95403         Module obstack.
95404         * m4/obstack.m4: New file.
95405
95406         Module hash.
95407         * m4/hash.m4: New file.
95408
95409         Module readtokens.
95410         * m4/readtokens.m4: New file.
95411
95412         Module strverscmp.
95413         * m4/strverscmp.m4: New file.
95414
95415         Module stdbool.
95416         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95417         OSF/1.
95418
95419         Module strtoll.
95420         * m4/strtoll.m4: New file.
95421
95422         Module strtoull.
95423         * m4/strtoull.m4: New file.
95424
95425         Module strtoimax.
95426         * m4/strtoimax.m4: New file.
95427
95428         Module strtoumax.
95429         * m4/strtoumax.m4: New file.
95430
95431         Module xstrtoimax.
95432         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95433         jm_AC_PREREQ_XSTRTOIMAX.
95434         Moved the strtol prerequisites to strtol.m4.
95435         Moved the strtoll prerequisites to strtoll.m4.
95436         Moved the strtoimax prerequisites to strtoimax.m4.
95437
95438         Module xstrtoumax.
95439         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95440         jm_AC_PREREQ_XSTRTOUMAX.
95441         Moved the strtoul prerequisites to strtoul.m4.
95442         Moved the strtoull prerequisites to strtoull.m4.
95443         Moved the strtoumax prerequisites to strtoumax.m4.
95444
95445         Module chown.
95446         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95447         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95448
95449         Module dup2.
95450         * m4/dup2.m4: New file.
95451
95452         Module ftruncate.
95453         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95454         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95455
95456         Module getgroups.
95457         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95458         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95459
95460         Module gettimeofday.
95461         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95462         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95463         gl_PREREQ_GETTIMEOFDAY.
95464
95465         Module mkdir.
95466         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95467         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95468
95469         Module mkstemp.
95470         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95471         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95472         jm_AC_TYPE_UINTMAX_T.
95473         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95474
95475         Module stat.
95476         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95477         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95478
95479         Module lstat.
95480         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95481         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95482
95483         Module timespec.
95484         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95485         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95486         * m4/st_mtim.m4: Indentation.
95487
95488         Module nanosleep.
95489         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95490         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95491         gl_PREREQ_NANOSLEEP.
95492
95493         Module regex.
95494         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95495         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95496         (gl_REGEX): New macro.
95497
95498         Module rename.
95499         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95500         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95501
95502         Module rmdir.
95503         * m4/rmdir.m4: New file.
95504
95505         Module utime.
95506         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95507         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95508         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95509
95510         Module dirname.
95511         * m4/dirname.m4: New file.
95512
95513         Module getopt.
95514         * m4/getopt.m4: New file.
95515
95516         Module unistd-safer.
95517         * m4/unistd-safer.m4: New file.
95518
95519         Module fnmatch.
95520         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95521         declaration.
95522         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95523         (gl_FUNC_FNMATCH_POSIX): New macro.
95524         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95525         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95526         simply fnmatch.
95527
95528         Module exclude.
95529         * m4/exclude.m4: New file.
95530
95531         Module human.
95532         * m4/human.m4: New file.
95533
95534         Module acl.
95535         * m4/acl.m4: Nop.
95536
95537         Module backupfile.
95538         * m4/backupfile.m4: New file.
95539         * m4/d-ino.m4: Indentation.
95540
95541         Module fsusage.
95542         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95543         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95544         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95545
95546         Module dirfd.
95547         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95548         requirements.
95549
95550         Module euidaccess.
95551         * m4/euidaccess.m4: New file.
95552
95553         Module file-type.
95554         * m4/file-type.m4: New file.
95555
95556         Module fileblocks.
95557         * m4/fileblocks.m4: New file.
95558
95559         Module filemode.
95560         * m4/filemode.m4: New file.
95561
95562         Module isdir.
95563         * m4/isdir.m4: New file.
95564
95565         Module lchown.
95566         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95567         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95568
95569         Module makepath.
95570         * m4/makepath.m4: New file.
95571
95572         Module modechange.
95573         * m4/modechange.m4: New file.
95574
95575         Module mountlist.
95576         * m4/mountlist.m4: New file.
95577         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95578         Indentation.
95579
95580         Module path-concat.
95581         * m4/path-concat.m4: New file.
95582
95583         Module pathmax.
95584         * m4/pathmax.m4: New file.
95585
95586         Module same.
95587         * m4/same.m4: New file.
95588
95589         Module save-cwd.
95590         * m4/save-cwd.m4: New file.
95591
95592         Module savedir.
95593         * m4/savedir.m4: New file.
95594
95595         Module xgetcwd.
95596         * m4/xgetcwd.m4: New file.
95597         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95598
95599         Module xreadlink.
95600         * m4/xreadlink.m4: New file.
95601
95602         Module safe-read.
95603         * m4/safe-read.m4: New file.
95604
95605         Module safe-write.
95606         * m4/safe-write.m4: New file.
95607
95608         Module closeout.
95609         * m4/closeout.m4: New file.
95610
95611         Module stdio-safer.
95612         * m4/stdio-safer.m4: New file.
95613
95614         Module getpass.
95615         * m4/getpass.m4: New file.
95616
95617         Module getugroups.
95618         * m4/getugroups.m4: New file.
95619
95620         Module group-member.
95621         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95622         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95623
95624         Module idcache.
95625         * m4/idcache.m4: New file.
95626
95627         Module userspec.
95628         * m4/userspec.m4: New file.
95629
95630         Module gettime.
95631         * m4/clock_time.m4: New file.
95632         * m4/gettime.m4: New file.
95633
95634         Module settime.
95635         * m4/settime.m4: New file.
95636
95637         Module posixtm.
95638         * m4/posixtm.m4: New file.
95639
95640         Module gethostname.
95641         * m4/gethostname.m4: New file.
95642
95643         Module canon-host.
95644         * m4/canon-host.m4: New file.
95645
95646         Module gettext.
95647         * m4/codeset.m4: New file, from gettext-0.11.5.
95648         * m4/gettext.m4: New file, from gettext-0.11.5.
95649         * m4/glibc21.m4: New file, from gettext-0.11.5.
95650         * m4/iconv.m4: New file, from gettext-0.11.5.
95651         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95652         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95653         * m4/inttypes.m4: New file, from gettext-0.11.5.
95654         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95655         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95656         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95657         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95658         * m4/lib-link.m4: New file, from gettext-0.11.5.
95659         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95660         * m4/progtest.m4: New file, from gettext-0.11.5.
95661         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95662         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95663         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95664
95665         Module localcharset.
95666         * m4/localcharset.m4: New file.
95667
95668         Module hard-locale.
95669         * m4/hard-locale.m4: New file.
95670
95671         Module mbswidth.
95672         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95673         onceonly macros.
95674         * m4/mbrtowc.m4: Add comment.
95675
95676         Module memcasecmp.
95677         * m4/memcasecmp.m4: New file.
95678
95679         Module memcoll.
95680         * m4/memcoll.m4: New file.
95681
95682         Module unicodeio.
95683         * m4/unicodeio.m4: New file.
95684
95685         Module rpmatch.
95686         * m4/rpmatch.m4: New file.
95687
95688         Module yesno.
95689         * m4/yesno.m4: New file.
95690
95691         Module exitfail.
95692         * m4/exitfail.m4: New file.
95693
95694         Module c-stack.
95695         * m4/c-stack.m4 (gl_C_STACK): New macro.
95696         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95697
95698         Module error.
95699         * m4/error.m4 (gl_ERROR): New macro.
95700         (jm_PREREQ_ERROR): Use onceonly macros.
95701
95702         Module fatal.
95703         * m4/fatal.m4: New file.
95704
95705         Module getloadavg.
95706         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95707         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95708
95709         Module getpagesize.
95710         * m4/getpagesize.m4: New file.
95711
95712         Module getusershell.
95713         * m4/getusershell.m4: New file.
95714
95715         Module physmem.
95716         * m4/physmem.m4: New file.
95717
95718         Module posixver.
95719         * m4/posixver.m4: New file.
95720
95721         Module quotearg.
95722         * m4/quotearg.m4: New file.
95723
95724         Module quote.
95725         * m4/quote.m4: New file.
95726
95727         Module readutmp.
95728         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95729
95730         Module sig2str.
95731         * m4/sig2str.m4: New file.
95732
95733         Other.
95734         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95735         ulonglong.m4.
95736         * m4/intmax_t.m4: New file.
95737         * m4/d-type.m4: Indentation.
95738         * m4/jm-macros.m4: Update.
95739         * m4/prereq.m4 (jm_PREREQ): Update.
95740         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95741         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95742         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95743         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95744         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95745         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95746         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95747         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95748         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95749         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95750         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95751         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95752         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95753         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95754         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95755         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95756         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95757         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95758         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95759
95760 2002-12-24  Bruno Haible  <bruno@clisp.org>
95761
95762         * MODULES.txt: Update according to m4/ changes.
95763
95764         Module gettext.
95765         * config.rpath: New file, from gettext-0.11.5.
95766
95767         * modules/*: New module descriptions.
95768         * gnulib-tool: New file.
95769         * MODULES.html.sh: New file.
95770
95771 2002-12-21  Karl Berry  <karl@gnu.org>
95772
95773         * doc/fdl.texi: update to version 1.2.
95774
95775 2002-12-19  Karl Berry  <karl@gnu.org>
95776
95777         * config/config.guess: update from prep.
95778
95779 2002-12-18  Bruno Haible  <bruno@clisp.org>
95780
95781         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95782         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95783
95784 2002-12-17  Bruno Haible  <bruno@clisp.org>
95785
95786         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95787         stdlib.h, string.h.
95788
95789 2002-12-17  Bruno Haible  <bruno@clisp.org>
95790
95791         * lib/canon-host.c (strdup): Remove unused declaration.
95792
95793         * lib/fsusage.c: Include full_read.h.
95794         (get_fs_usage): Use full_read instead of safe_read.
95795
95796         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
95797
95798 2002-12-12  Karl Berry  <karl@gnu.org>
95799
95800         * config/config.guess: update from prep.
95801
95802 2002-12-11  Bruno Haible  <bruno@clisp.org>
95803
95804         * m4/setenv.m4: New file, from gettext-0.11.5.
95805
95806 2002-12-11  Bruno Haible  <bruno@clisp.org>
95807
95808         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
95809         not unsetenv().
95810         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
95811         modifications:
95812
95813         2002-12-11  Bruno Haible  <bruno@clisp.org>
95814
95815                 * setenv.c (alloca): Fall back to malloc.
95816                 (freea): New macro.
95817                 (setenv): Use freea() to free memory allocated with alloca().
95818
95819         2002-11-13  Bruno Haible  <bruno@clisp.org>
95820
95821                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
95822                 function declarations.
95823                 * unsetenv.c (unsetenv): Likewise.
95824
95825         2002-03-04  Bruno Haible  <bruno@clisp.org>
95826
95827                 Portability to AIX 4.3.3.
95828                 * unsetenv.c: New file, extracted from setenv.c.
95829                 * setenv.c: Move the unsetenv() function to unsetenv.c.
95830
95831         2001-12-20  Bruno Haible  <bruno@clisp.org>
95832
95833                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
95834                 use malloc instead. For SunOS 4.
95835
95836         2001-12-11  Bruno Haible  <bruno@clisp.org>
95837
95838                 * setenv.c: Declare alloca.
95839                 (compar_fn_t): New typedef.
95840                 (KNOWN_VALUE, STORE_VALUE): Use it.
95841
95842         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
95843         setenv.h.
95844
95845 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95846
95847         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95848         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95849         Choose values that are less likely to collide with system fnmatch
95850         options.
95851         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95852         defined (e.g., a pure POSIX system).
95853         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95854         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95855
95856 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95857
95858         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95859         a pain in practice to deal with generated m4 files.  This change
95860         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95861
95862         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95863         and jm-glibc-io.m4, as they are no longer a special case.
95864         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95865         kludge and the auto-generation stuff.  Check only whether the
95866         functions are declared, not whether they exist, since older hosts
95867         that don't declare the functions can't use the optimization anyway.
95868
95869 2002-12-06  Jim Meyering  <jim@meyering.net>
95870
95871         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95872
95873         Merge in changes from libc's misc/error.c, in preparation
95874         for the merge of gnulib's changes back into libc.
95875
95876         * lib/error.c (_): Define only if not already defined.
95877         Move definition to follow all #include directives.
95878         Include unlocked-io.h only if !_LIBC.
95879         [_LIBC]: Include <libio/libioP.h>.
95880         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95881         (fflush): Tweak definition to use INTUSE.
95882         (putc): Define.
95883
95884 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95885
95886         * lib/alloca.c [defined emacs]: Include "lisp.h".
95887         (xalloc_die) [defined emacs]: New macro.
95888         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95889         [! defined emacs]: Include <xalloc.h>.
95890         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95891         (pointer): Typedef to POINTER_TYPE *.
95892         (malloc): Remove decl; we now always use xmalloc.
95893         (alloca): Use old-style definition, since Emacs needs this.
95894         Check for arithmetic overflow when computing combined size.
95895
95896 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95897
95898         Do not generate unlocked-io.h automatically, since it's easier to
95899         maintain it by hand.
95900
95901         * lib/unlocked-io.h: New file, from GNU diffutils,
95902         but with proper copyright notice and attribution.
95903         * lib/gen-uio: Remove.
95904         * lib/Makefile.am: Add copyright notice.
95905         (libfetish_a_SOURCES): Add unlocked-io.h.
95906         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95907         (DISTCLEANFILES, io_functions): Remove macros.
95908         (EXTRA_DIST): Remove gen_uio.
95909         (unlocked-io.h): Remove rule.
95910
95911 2002-12-04  Jim Meyering  <jim@meyering.net>
95912
95913         Reflect the fact that stat.c and lstat.c are no longer generated.
95914         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95915         (DISTCLEANFILES): Likewise.
95916         (EXTRA_DIST): Likewise.
95917         (all_local): Don't depend on stat.c or lstat.c.
95918         (stat.c, lstat.c): Remove rules.
95919         (EXTRA_DIST): Remove xstat.in.
95920
95921         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95922         * lib/stat.c: New file.  Contents mostly from xstat.in.
95923         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95924         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95925
95926         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95927         too.
95928         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95929
95930 2002-12-03  Jim Meyering  <jim@meyering.net>
95931
95932         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95933         but not semantics, to minimize the differences between these two files.
95934         (safe_read): Change comment to mention SAFE_READ_ERROR.
95935
95936         * lib/safe-read.c (IS_EINTR): Define.
95937         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95938
95939 2002-12-02  Jim Meyering  <jim@meyering.net>
95940
95941         * lib/safe-read.c (EINTR): Define.
95942         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95943         (INT_MAX): Provide fallback.
95944         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95945
95946         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95947
95948 2002-12-02  Bruno Haible  <bruno@clisp.org>
95949
95950         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95951         Define, taken from safe-read.c.
95952         (INT_MAX): Provide fallback.
95953         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95954         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95955
95956         * lib/safe-read.c (EINTR): Remove definition.
95957         (safe_read): Don't use EINTR if it is absent.
95958
95959 2002-12-01  Jim Meyering  <jim@meyering.net>
95960
95961         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95962         zero.
95963         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95964
95965 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95966
95967         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95968         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95969         with `if (! (value < limit)) abort ();', for readability.
95970
95971 2002-11-26  Karl Berry  <karl@gnu.org>
95972
95973         * lib/strdup.c: copy from libc again, with jim's ok.
95974         * lib/.cppi-disable: re-add strdup.c
95975
95976 2002-11-25  Karl Berry  <karl@gnu.org>
95977
95978         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95979         instead of "strtol.c".
95980
95981 2002-11-25  Karl Berry  <karl@gnu.org>
95982
95983         * config/install-sh: update from automake for variable quoting, $0 in
95984         error msgs, etc.
95985
95986         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95987         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95988         entry.
95989
95990 2002-11-25  Jim Meyering  <jim@meyering.net>
95991
95992         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95993
95994 2002-11-24  Karl Berry  <karl@gnu.org>
95995
95996         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95997         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95998
95999 2002-11-24  Jim Meyering  <jim@meyering.net>
96000
96001         Update from coreutils:
96002
96003         * lib/mktime.c: Merge in changes from libc.
96004
96005         Avoid a link-time failure on some Linux systems.
96006         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96007         (otherwise).
96008         (__mon_yday): Declare with the STATIC attribute.
96009         (__mktime_internal): Likewise.
96010         Based on a report from Greg Schafer.
96011
96012 2002-11-23  Jim Meyering  <jim@meyering.net>
96013
96014         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96015         Use `unsigned', not `int', as type of index.
96016
96017         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96018
96019         * lib/fsusage.c: Remove unneeded parentheses around operands of
96020         `defined'.
96021
96022 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96023
96024         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96025         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96026         so that we can be included first.
96027         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96028         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96029         No need to include stddef.h or sys/types.h any more.
96030         Surround local include files with "", not "<>".
96031         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96032         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96033         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96034         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96035         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96036         (ISPRINT): Remove; no longer needed now that we assume C89.
96037
96038         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96039         Preserve errno.
96040
96041         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96042         quotearg_char): Use SIZE_MAX rather than
96043         (size_t) -1 when we are talking about "infinity".
96044
96045         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96046
96047 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96048
96049         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96050         hint that one should use `if (! x) abort ();' rather than `assert
96051         (x);', and anyway it's one less thing to worry about configuring.
96052         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96053         hash_rehash, hash_insert): Use abort rather than assert.
96054
96055 2002-11-22  Bruno Haible  <bruno@clisp.org>
96056
96057         * lib/safe-read.h: Assume C89. Add comments.
96058         (safe_read): Change return type to size_t.
96059         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96060         byte counts > SSIZE_MAX correctly.
96061         * lib/safe-write.h: New file.
96062         * lib/safe-write.c: New file.
96063         * lib/full-read.h: New file.
96064         * lib/full-read.c: New file.
96065         * lib/full-write.h: Assume C89. Add comments.
96066         * lib/full-write.c: Include safe-write.h.
96067         (full_write): Rewritten to use safe_write.
96068         Suggested by Jim Meyering and Paul Eggert.
96069
96070 2002-11-21  Jim Meyering  <jim@meyering.net>
96071
96072         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96073
96074         Merge in changes from the coreutils.
96075
96076         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96077         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96078         <stdint.h>.
96079         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96080         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96081         int.  Work more efficiently if X is the same width as uintmax_t.
96082         Do not compare X to -1, to avoid bogus compiler warning.
96083         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96084         Don't assume that f_frsize and f_bsize are the same type.
96085
96086         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96087         warning on FreeBSD.
96088
96089         * lib/makepath.c (make_path): Restore umask *before* creating the final
96090         component.
96091         (make_path): Minor reformatting.
96092
96093         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96094         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96095         HAVE_MALLOC/HAVE_REALLOC.
96096
96097         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96098         dummy ones.  At least on GNU/Linux systems, `auto' means something
96099         else.
96100         From Michael Stone.
96101
96102 2002-11-21  Bruno Haible  <bruno@clisp.org>
96103
96104         Remove case insensitive option matching.
96105         * lib/argmatch.h (argcasematch): Remove declaration.
96106         (ARGCASEMATCH): Remove macro.
96107         (__xargmatch_internal): Remove case_sensitive argument.
96108         (XARGMATCH): Update.
96109         (XARGCASEMATCH): Remove macro.
96110         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96111         case_sensitive argument.
96112         (argcasematch): Remove function.
96113         (__xargmatch_internal): Remove case_sensitive argument.
96114         (main): Use XARGMATCH instead of XARGCASEMATCH.
96115
96116         * lib/xmalloc.c: Change compile-time error message. Add comment about
96117         required autoconf version.
96118
96119 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96120
96121         Merge argmatch cleanups from Bison.  Assume C89.
96122
96123         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96124         Include stdlib.h, for EXIT_FAILURE.
96125         Always include <string.h>, since we assume C89.
96126         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96127         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96128         Include <stddef.h> instead, since it's all we need for size_t.
96129         (PARAMS): Remove.  All uses removed.
96130         (ARRAY_CARDINALITY): Do not bother to #undef.
96131         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96132         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96133         Remove unnecessary parentheses.
96134         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96135         Insert necessary parentheses.
96136         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96137         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96138
96139 2002-11-19  Bruno Haible  <bruno@clisp.org>
96140
96141         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96142         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96143
96144         * lib/mbswidth.h (PARAMS): Remove macro.
96145         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96146         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96147
96148         * lib/gcd.h (PARAMS): Remove macro.
96149         (gcd): Use ANSI C function declarations.
96150         * lib/gcd.c (gcd): Likewise.
96151
96152 2002-11-15  Bruno Haible  <bruno@clisp.org>
96153
96154         * lib/strcspn.c: Include <stddef.h>.
96155         (strcspn): Use ANSI C function declaration. Change return type to
96156         size_t. Use NULL.
96157         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96158         (strpbrk): Use NULL.
96159         * lib/strpbrk.h (PARAMS): Remove macro.
96160         (strpbrk): Use ANSI C function declaration.
96161         * lib/strstr.c: Don't include <sys/types.h>.
96162         * lib/strstr.h (PARAMS): Remove macro.
96163         (strstr): Use ANSI C function declarations.
96164
96165 2002-11-14  Karl Berry  <karl@gnu.org>
96166
96167         * config/mkinstalldirs: `do' on separate line, instead of
96168         `for var; do'.
96169
96170 2002-11-06  Bruno Haible  <bruno@clisp.org>
96171
96172         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96173         * lib/gcd.c (gcd): Likewise.
96174
96175 2002-11-05  Bruno Haible  <bruno@clisp.org>
96176
96177         * lib/gcd.h: New file, from gettext-0.11.5.
96178         * lib/gcd.c: New file, from gettext-0.11.5.
96179
96180 2002-11-05  Bruno Haible  <bruno@clisp.org>
96181
96182         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96183         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96184         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96185         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96186
96187         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96188         <libintl.h>.
96189         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96190         <libintl.h>.
96191
96192         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96193         * lib/human.c: Include gettext.h instead of <libintl.h>.
96194         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96195         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96196         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96197         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96198         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96199         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96200         (textdomain): Remove definition.
96201         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96202
96203         * lib/long-options.c: Remove include of <libintl.h> and definition of
96204         _.
96205         * lib/same.c: Remove include of <libintl.h> and definition of _.
96206
96207 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96208
96209         * lib/config.charset: A few additions for Solaris.
96210
96211 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96212
96213         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96214         * lib/localcharset.c (locale_charset): Declare as extern "C".
96215
96216 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96217
96218         * lib/config.charset: msdos in uk_UA uses CP1125.
96219
96220 2002-11-04  Bruno Haible  <bruno@clisp.org>
96221
96222         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96223         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96224         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96225         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96226         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96227
96228 2002-11-04  Bruno Haible  <bruno@clisp.org>
96229
96230         * lib/localcharset.c (locale_charset): Don't return an empty string.
96231
96232 2002-11-04  Bruno Haible  <bruno@clisp.org>
96233
96234         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96235         aliases.
96236
96237 2002-11-04  Bruno Haible  <bruno@clisp.org>
96238
96239         * lib/config.charset: Update for newest glibc. Add canonical names
96240         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96241
96242 2002-11-04  Bruno Haible  <bruno@clisp.org>
96243
96244         * lib/config.charset: Add support for NetBSD.
96245
96246 2002-11-04  Bruno Haible  <bruno@clisp.org>
96247
96248         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96249
96250 2002-11-01  Bruno Haible  <bruno@clisp.org>
96251
96252         * configure.in: Add AC_CONFIG_AUX_DIR call.
96253         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96254         test/Makefile.
96255         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96256
96257 2002-09-28  Karl Berry  <karl@gnu.org>
96258
96259         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96260         installed automake until the next release, since changes have been
96261         made.
96262
96263 2002-09-25  Karl Berry  <karl@gnu.org>
96264
96265         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96266         * lib/getopt*: copy from libc/posix.
96267         * lib/gettext.h: copy from gettext.
96268         * lib/.cppi-disable: add strdup.c, gettext.h.
96269
96270 2002-09-25  Karl Berry  <karl@gnu.org>
96271
96272         * config/srclist.txt: enable gettext.h check.
96273         * config/config.{guess,sub}: update from prep.
96274         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96275                 from automake 1.6.3.
96276         See srclist*.
96277
96278 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96279
96280         * regex.c (PATFETCH): Remove the translating fetch.
96281         (PATFETCH_RAW): Rename to PATFETCH.
96282         (set_image_of_range): New fun.
96283         (SET_RANGE_TABLE_WORK_AREA): Use it.
96284         (regex_compile): Don't translate the pattern chars so eagerly.
96285         Only do it when inserting an `exactn' bytecode or when handling
96286         a char-range.
96287         (mutually_exclusive_p): Avoid empty statement.
96288
96289 2002-07-06  Jim Meyering  <meyering@lucent.com>
96290
96291         * m4/README: Don't mention Makefile.am.in.
96292         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96293
96294 2002-07-01  Jim Meyering  <meyering@lucent.com>
96295
96296         * lib/c-stack.c: Include sys/time.h.
96297         From Volker Borchert.
96298
96299 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96300
96301         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96302
96303 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96304
96305         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96306         New macro.  Use it uniformly instead of
96307         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96308         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96309         reported by Vin Shelton.
96310
96311 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96312
96313         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96314         Do not assume SA_SIGINFO behavior.
96315         Bug reported by Jim Meyering on NetBSD 1.5.2.
96316
96317 2002-06-22  Jim Meyering  <meyering@lucent.com>
96318
96319         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96320         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96321
96322         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96323         now that configure.ac uses AC_GNU_SOURCE.
96324         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96325         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96326
96327         Update to latest tools.  Suggestions from Paul Eggert.
96328         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96329         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96330         * m4/fnmatch.m4: Likewise.
96331         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96332         to AC_HEADER_STDBOOL
96333
96334 2002-06-22  Jim Meyering  <meyering@lucent.com>
96335
96336         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96337         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96338
96339 2002-06-22  Jim Meyering  <meyering@lucent.com>
96340
96341         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96342
96343         * lib/exitfail.c, exitfail.h: Likewise.
96344         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96345
96346         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96347         of fnmatch.h.
96348         (EXTRA_DIST): Add fnmatch_loop.c.
96349         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96350
96351         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96352         * lib/fnmatch.c: Update from diffutils-2.8.2.
96353         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96354         * lib/fnmatch.h: Remove file.
96355
96356 2002-06-21  Jim Meyering  <meyering@lucent.com>
96357
96358         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96359         * m4/mbrtowc.m4: Likewise.
96360
96361         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96362         * m4/mbswidth.m4: Reflect name change:
96363         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96364         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96365
96366         * m4/lib-link.m4: Update from gettext-0.11.2.
96367         * m4/gettext.m4: Likewise.
96368
96369         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96370         From Alfred M. Szmidt.
96371
96372 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96373
96374         * lib/file-type.h: Report an error if neither S_ISREG nor
96375         S_IFREG is defined, instead of using a test specific to glibc
96376         2.2.  This should be safe, since POSIX requires S_ISREG and
96377         Unix Version 7 had S_IFREG.  We don't need to check for
96378         <sys/types.h> since we don't use any symbols that it defines.
96379
96380 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96381
96382         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96383         $@-t, so that each temporary file name is unique and valid in the first
96384         8 characters, for operation under DOS.
96385
96386 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96387
96388         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96389
96390 2002-06-15  Jim Meyering  <meyering@lucent.com>
96391
96392         Work even with DJGPP 2.03, which lacks support for symlinks.
96393         From Richard Dawe.
96394         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96395         is defined.
96396         * lib/lchown.c (S_ISLNK): Likewise.
96397
96398 2002-06-15  Jim Meyering  <meyering@lucent.com>
96399
96400         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96401         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96402         have been included before this file.
96403
96404 2002-06-14  Jim Meyering  <meyering@lucent.com>
96405
96406         * lib/file-type.h: Use the version from diffutils-2.8.2.
96407         * lib/file-type.c: Likewise.
96408
96409 2002-06-07  Jim Meyering  <meyering@lucent.com>
96410
96411         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96412         They're needed at least for NetBSD 1.5.2.
96413         ($statxfs_includes): Include those same headers.
96414         ($statxfs_includes): Include sys/vfs.h if available.
96415         ($statxfs_includes): Likewise for sys/statvfs.h.
96416         Check for the following members in both structs statfs and statvfs:
96417         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96418
96419 2002-06-01  Jim Meyering  <meyering@lucent.com>
96420
96421         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96422         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96423
96424 2002-05-28  Jim Meyering  <meyering@lucent.com>
96425
96426         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96427         Reported by Volker Borchert.
96428
96429 2002-05-27  Jim Meyering  <meyering@lucent.com>
96430
96431         Fix a problem seen only on nonconforming systems whereby ls.c's
96432         use of localtime, and then of gettimeofday would cause trouble:
96433         the localtime call used to initialize rpl_gettimeofday's save
96434         mechanism would clobber ls's current local time information so
96435         that in any long listing the first file would always be listed
96436         with date 1970-01-01.  Analysis by Volker Borchert.
96437
96438         * lib/gettimeofday.c (localtime): Undefine.
96439         (rpl_localtime): New function.
96440
96441 2002-05-27  Jim Meyering  <meyering@lucent.com>
96442
96443         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96444         localtime.
96445
96446         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96447         use the replacement function; it wouldn't resolve at link time.
96448         Reported by Volker Borchert.
96449
96450 2002-05-22  Jim Meyering  <meyering@lucent.com>
96451
96452         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96453         file-type.h.
96454         * lib/file-type.h: New file.
96455         * lib/file-type.c (file_type): New file/function.  Extracted from
96456         diffutils.
96457
96458 2002-04-30  Jim Meyering  <meyering@lucent.com>
96459
96460         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96461
96462 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96463
96464         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96465
96466 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96467
96468         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96469         Do not check for alloca.h (no longer used) or stdbool.h (was never
96470         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96471
96472 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96473
96474         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96475
96476 2002-04-29  Jim Meyering  <meyering@lucent.com>
96477
96478         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96479         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96480         Use AC_FUNC_STRNLEN here instead.
96481
96482         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96483         With autoconf-2.53a, it's part of AC_PROG_CC.
96484
96485 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96486
96487         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96488         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96489
96490 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96491
96492         * lib/sig2str.h, lib/sig2str.c: New files.
96493         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96494
96495 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96496
96497         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96498         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96499         of 127, since 64 is the largest conceivable number for ancient
96500         nonstandard hosts.
96501         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96502
96503 2002-04-28  Jim Meyering  <meyering@lucent.com>
96504
96505         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96506
96507 2002-04-24  Jim Meyering  <meyering@lucent.com>
96508
96509         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96510         (jm_PREREQ): Use it.
96511
96512         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96513         mach/mach.h fcntl.h.
96514         Check for this function: setlocale.
96515
96516 2002-04-24  Jim Meyering  <meyering@lucent.com>
96517
96518         * lib/gettext.h: New file, from Gettext.
96519         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96520         (libfetish_a_SOURCES): Add gettext.h.
96521
96522 2002-04-16  Jim Meyering  <meyering@lucent.com>
96523
96524         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96525         ut_pid, ut_id, ut_exit.
96526
96527 2002-04-16  Jim Meyering  <meyering@lucent.com>
96528
96529         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96530         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96531         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96532
96533 2002-04-12  Jim Meyering  <meyering@lucent.com>
96534
96535         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96536         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96537         existence of the getmntinfo function.  Needed for Darwin 5.3.
96538
96539         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96540         This is necessary at least on Darwin 5.3.
96541
96542         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96543         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96544         strnlen.o in the library, and that makes some versions of ranlib
96545         object.
96546
96547 2002-04-12  Jim Meyering  <meyering@lucent.com>
96548
96549         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96550
96551 2002-04-09  Jim Meyering  <meyering@lucent.com>
96552
96553         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96554         to be more precise.  Rather than saying we're checking whether the
96555         function `works', say what we're testing.
96556         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96557         Reported by Bruno Haible.
96558
96559 2002-03-10  Jim Meyering  <meyering@lucent.com>
96560
96561         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96562         Suggestion from Santiago Vila.
96563
96564 2002-03-08  Jim Meyering  <meyering@lucent.com>
96565
96566         * lib/rename.c: Mention that this wrapper is needed also on
96567         mips-dec-ultrix4.4 systems.
96568
96569 2002-03-02  Jim Meyering  <meyering@lucent.com>
96570
96571         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96572         not HAVE_CLOCK_SETTIME.
96573
96574 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96575
96576         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96577         Check for clock_settime.
96578
96579 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96580
96581         * lib/nanosleep.h: Rename to....
96582         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96583
96584         * lib/gettime.c: New file.
96585         * lib/settime.c: New file.
96586         * lib/stime.c: Remove.
96587
96588         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96589         timespec.h.  Remove nanosleep.h.
96590
96591 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96592
96593         * m4/acl.m4: New file.
96594         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96595         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96596
96597 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96598
96599         * lib/acl.c, lib/acl.h: New files.
96600         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96601
96602 2002-02-24  Jim Meyering  <meyering@lucent.com>
96603
96604         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96605         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96606         cause trouble.  Reported by Nelson Beebe.
96607
96608 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96609
96610         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96611         compilers that don't know that xalloc_die never returns.
96612
96613 2002-02-20  Jim Meyering  <meyering@lucent.com>
96614
96615         * lib/getdate.c: Regenerate using bison-1.33.
96616
96617 2002-02-17  Jim Meyering  <meyering@lucent.com>
96618
96619         * config/config.guess (main): Don't use `head -1'; it's no longer
96620         portable. Use `sed 1q' instead.
96621
96622 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96623
96624         * m4/codeset.m4: Upgrade to gettext-0.11.
96625         * m4/gettext.m4: Upgrade to gettext-0.11.
96626         * m4/glibc21.m4: Upgrade to gettext-0.11.
96627         * m4/iconv.m4: Upgrade to gettext-0.11.
96628         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96629         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96630         * m4/lib-ld.m4: New file, from gettext-0.11.
96631         * m4/lib-link.m4: New file, from gettext-0.11.
96632         * m4/lib-prefix.m4: New file, from gettext-0.11.
96633         * m4/progtest.m4: Upgrade to gettext-0.11.
96634
96635 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96636
96637         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96638         (jm_PREREQ): Use it.
96639
96640 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96641
96642         * lib/posixver.c, lib/posixver.h: New files.
96643         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96644
96645 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96646             Bruno Haible  <bruno@clisp.org>
96647
96648         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96649         (fwrite_success_callback): New declaration.
96650         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96651         print_unicode_char. Call failure callback instead of error.
96652         (fwrite_success_callback): New function.
96653         (exit_failure_callback): New function.
96654         (fallback_failure_callback): New function.
96655         (print_unicode_char): Call unicode_to_mb.
96656
96657 2002-01-26  Jim Meyering  <meyering@lucent.com>
96658
96659         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96660         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96661
96662 2002-01-26  Jim Meyering  <meyering@lucent.com>
96663
96664         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96665
96666 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96667
96668         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96669
96670 2002-01-22  Jim Meyering  <meyering@lucent.com>
96671
96672         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96673         Otherwise, some versions of automake would omit the rule that makes
96674         Makefile from Makefile.in.
96675
96676 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96677
96678         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96679         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96680         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96681         (memcoll): Set errno to zero if there is no error.
96682
96683         * lib/quotearg.c (quotearg_buffer_restyled):
96684         Fix bug with quoting buffers containing NUL when backslashing escapes.
96685         This bug was exposed by the other changes in this patch.
96686         (quotearg_n_options): New arg ARGSIZE.
96687         All callers changed.
96688         (quoting_options_from_style): New function.
96689         (quotearg_n_style): Use it.
96690         (quotearg_n_style_mem): New function.
96691
96692         * lib/quotearg.h (quotearg_n_style_mem): New function.
96693
96694 2002-01-19  Jim Meyering  <meyering@lucent.com>
96695
96696         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96697         Remove useless quotes: DF_PROG="df".
96698         * m4/strnlen.m4: New file.
96699
96700 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96701
96702         * lib/backupfile.c (ISDIGIT): Comment fix.
96703         * lib/getdate.y (ISDIGIT): Likewise.
96704         * lib/posixtm.c (ISDIGIT, year): Likewise.
96705         * lib/strverscmp.c (ISDIGIT): Likewise.
96706         * lib/userspec.c (ISDIGIT): Likewise.
96707
96708 2002-01-16  Jim Meyering  <meyering@lucent.com>
96709
96710         * lib/getdate.y: Add three semicolons, each just before a closing
96711         brace. Bison (as of version 1.31) no longer papers over that mistake.
96712
96713 2002-01-05  Jim Meyering  <meyering@lucent.com>
96714
96715         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96716
96717 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96718
96719         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96720         not silently exit merely because the output buffer happens to
96721         have nothing pending.
96722
96723 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96724
96725         See the big note in ../ChangeLog.
96726         * lib/human.c (suffixes): Prefer K to k for 1024.
96727         (generate_suffix_backwards): New function.
96728         (human_readable_inexact): Use it.
96729         * lib/xstrtol.c (__xstrtol): If there is no number but there
96730         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96731         Accept 'K' as well as 'k'.
96732
96733 2001-12-15  Jim Meyering  <meyering@lucent.com>
96734
96735         * lib/regex.h (__restrict_arr): Update from libc.
96736
96737         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96738         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96739         (STREQ): Define.
96740
96741 2001-12-14  Jim Meyering  <meyering@lucent.com>
96742
96743         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96744         Suggestion from Bruno Haible.
96745
96746 2001-12-10  Jim Meyering  <meyering@lucent.com>
96747
96748         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96749         xrealloc, Instead, include "xalloc.h".
96750         (initbuffer): Don't cast xmalloc return value to char*.
96751         (readline): Reword comment.
96752         Don't cast xrealloc return value to char*
96753         Return NULL, not 0.
96754
96755 2001-12-09  Jim Meyering  <meyering@lucent.com>
96756
96757         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96758         about `signed and unsigned type in conditional expression'.
96759         * lib/posixtm.c (posix_time_parse): Likewise.
96760
96761         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96762
96763         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96764         to avoid a pedantic warning.
96765
96766         * lib/getstr.c: Don't include assert.h.
96767         (getstr): Remove warning-evoking assertions.
96768         Return -1 if offset parameter is out of bounds.
96769         Change the type of a local from int to size_t.
96770
96771         * lib/strftime.c (my_strftime_localtime_r): Include this function
96772         definition in the `#if ! HAVE_TM_GMTOFF' block.
96773
96774         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96775         Include xalloc.h instead.
96776
96777 2001-12-02  Jim Meyering  <meyering@lucent.com>
96778
96779         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96780         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96781         included.
96782
96783         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96784         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96785
96786 2001-11-30  Akim Demaille  <akim@epita.fr>
96787
96788         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96789         before being defined.
96790
96791 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96792
96793         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96794         First arg is int, not unsigned.
96795         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
96796         (SIZE_MAX, UINT_MAX): New macros.
96797         (quotearg_n_options): Abort if N is negative.
96798         Avoid overflow check on hosts where size_t is 64 bits and int
96799         is 32 bits, as overflow is impossible there.
96800         Fix off-by-one typo that caused unnecessary reallocation.
96801
96802 2001-11-27  Jim Meyering  <meyering@lucent.com>
96803
96804         * lib/tempname.c: Merge with version from libc.
96805         * lib/regex.c: Likewise.
96806
96807         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
96808         systems for which STDC_HEADERS is 0, it was not included, resulting in
96809         a warning about an integer-to-pointer conversion problem with getenv.
96810         Reported by Volker Borchert.
96811
96812 2001-11-26  Jim Meyering  <meyering@lucent.com>
96813
96814         * lib/gtod.h: Remove file.
96815         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
96816         * lib/gettimeofday.c: Don't include gtod.h.
96817         (GTOD_init): Remove function.
96818         (rpl_gettimeofday): Do its job here instead, rather than aborting.
96819         Suggestion from Volker Borchert.
96820
96821 2001-11-23  Jim Meyering  <meyering@lucent.com>
96822
96823         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
96824         it.
96825         * lib/hash.c (struct hash_table): Define it here instead.
96826
96827 2001-11-22  Jim Meyering  <meyering@lucent.com>
96828
96829         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
96830
96831 2001-11-20  Jim Meyering  <meyering@lucent.com>
96832
96833         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
96834         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
96835
96836 2001-11-19  Jim Meyering  <meyering@lucent.com>
96837
96838         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
96839         directory.  Use "conftestXXXXXX" as the template.
96840         Suggestion from Paul Eggert.
96841
96842         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
96843         immediately, so the test doesn't mistakenly hit the max-open-files
96844         limit.
96845
96846 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96847
96848         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96849         (TEMPORARIES): New macro.
96850         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96851         removes an artificial limitation (e.g. HP-UX 10.20, where
96852         TMP_MAX is 17576).
96853
96854 2001-11-18  Jim Meyering  <meyering@lucent.com>
96855
96856         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96857
96858 2001-11-18  Jim Meyering  <meyering@lucent.com>
96859
96860         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96861         on SunOS 4.
96862
96863         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96864         files will be created before anything else.
96865
96866 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96867
96868         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96869         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96870
96871 2001-11-17  Jim Meyering  <meyering@lucent.com>
96872
96873         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96874         Prompted by a report from Bob Proulx.
96875
96876         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96877         Instead, require UTILS_FUNC_MKSTEMP.
96878
96879 2001-11-17  Jim Meyering  <meyering@lucent.com>
96880
96881         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96882         Now, that's done as part of AC_FUNC_STRTOD.
96883
96884 2001-11-17  Jim Meyering  <meyering@lucent.com>
96885
96886         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96887         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96888         rather than group writable.  Patch by Juan F. Codagnone.
96889
96890         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96891         xrealloc, Instead, include "xalloc.h".
96892
96893         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96894         Remove explicit declarations of xmalloc, xrealloc,
96895         and xstrdup.  Instead, include "xalloc.h".
96896
96897         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96898         unlocked-io.h.
96899         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96900         Likewise.
96901         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96902
96903         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96904         Reported by Padraig Brady.
96905
96906         * lib/mkstemp.c: #undef mkstemp.
96907         Include config.h.
96908         (rpl_mkstemp): Rename from mkstemp.
96909         Protoize.
96910
96911 2001-11-16  Jim Meyering  <meyering@lucent.com>
96912
96913         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96914         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96915         determine the amount of total physical memory, use pstat_getstatic.
96916         HPUX-11 doesn't define _SC_PHYS_PAGES.
96917         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96918         If sysconf couldn't be used to determine the amount of available
96919         physical memory, use both pstat_getstatic and pstat_getdynamic.
96920         Based on a patch from Bob Proulx.
96921
96922 2001-11-10  Jim Meyering  <meyering@lucent.com>
96923
96924         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96925         (jm_PREREQ): Use it.
96926
96927 2001-11-09  Jim Meyering  <meyering@lucent.com>
96928
96929         * m4/jm-macros.m4: Require autoconf-2.52f.
96930         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96931         Use these AC_-prefixed names, not the AM_-prefixed ones.
96932
96933         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96934
96935 2001-11-05  Jim Meyering  <meyering@lucent.com>
96936
96937         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96938
96939 2001-11-04  Jim Meyering  <meyering@lucent.com>
96940
96941         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96942         $DEFS.
96943
96944 2001-11-03  Jim Meyering  <meyering@lucent.com>
96945
96946         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96947         of AC_DEFUN.
96948
96949         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96950         know the name of the variable in the macro definition.
96951
96952 2001-11-03  Jim Meyering  <meyering@lucent.com>
96953
96954         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96955         in argmatch_to_argument call.
96956
96957         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96958         argument.
96959
96960         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96961         e.g., a fault due to an attempt to free a NULL pointer.
96962
96963 2001-11-01  Jim Meyering  <meyering@lucent.com>
96964
96965         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96966         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96967
96968 2001-11-01  Jim Meyering  <meyering@lucent.com>
96969
96970         * lib/dirfd.c, lib/dirfd.h: New files.
96971         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96972
96973         * lib/hash.c (hash_print) [TESTING]: Clean up.
96974
96975 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96976
96977         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96978         to avoid a warning if -Wall.
96979
96980 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96981
96982         * README: New file
96983         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96984         (per RMS's instructions, this is now the canonical source)
96985         * lgpl/, gpl/: New directories.
96986
96987 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96988
96989         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96990
96991 2001-10-21  Jim Meyering  <meyering@lucent.com>
96992
96993         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96994         this code would end up calling gettext even in packages built
96995         with --disable-nls.
96996         * lib/getopt.c (_): Likewise.
96997         * lib/regex.c (_): Likewise.
96998
96999 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97000
97001         * m4/error.m4 (jm_PREREQ_ERROR):
97002         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97003         AC_FUNC_STRERROR_R does that.
97004         Check for strerror declaration.
97005
97006         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97007         are supposed to have them these days.
97008         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97009         Merge changes from latest Autoconf CVS.
97010         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97011         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97012         POSIX decided to standardize on the int flavor of strerror_r.
97013
97014 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97015
97016         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97017         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97018         Use strerror_r that is only a macro, even if it is not a function.
97019         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97020         (private_strerror): Use prototypes, not old-style function definition.
97021         (print_errno_message): New function.
97022         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97023         char*-flavored one.
97024         (error_tail, error, error_at_line): Use it.
97025
97026 2001-10-11  Jim Meyering  <meyering@lucent.com>
97027
97028         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97029         and quote_n (1, ... to avoid clobbering a buffer.
97030
97031 2001-10-05  Jim Meyering  <meyering@lucent.com>
97032
97033         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97034         hash-pjw.h.
97035         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97036         * lib/hash-pjw.h: New file.
97037
97038 2001-09-30  Jim Meyering  <meyering@lucent.com>
97039
97040         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97041         `struct fsstat' has the `f_fstypename' member.
97042         Use that to define FS_TYPE, which is now used to make
97043         the getfsstat link test tighter.
97044
97045 2001-09-30  Jim Meyering  <meyering@lucent.com>
97046
97047         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97048         Include <sys/ucred.h>, for Apple Darwin.
97049         Include sys/mount.h and sys/fs_types.h only if available.
97050         (FS_TYPE): Define.
97051         (read_filesystem_list): Use FS_TYPE.
97052
97053 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97054
97055         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97056         a boolean context.
97057
97058 2001-09-29  Jim Meyering  <meyering@lucent.com>
97059
97060         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97061         [one-argument getmntent function]): Include stdio.h before mntent.h.
97062         SunOS 4.1.x needs it for the declaration of `FILE'.
97063         Patch by Volker Borchert.
97064
97065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97066         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97067         sys/fs_types.h, and make the link-test for getfsstat guard #include
97068         directives with appropriate #if HAVE_*_H tests so that we can
97069         detect getfsstat on Apple Darwin1.3.7 systems.
97070         Reported by Nelson Beebe.
97071         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97072
97073 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97074
97075         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97076         #defines strtoimax.  Also treat the other strto* functions
97077         like strtoimax.
97078
97079         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97080         Check for strtoul and strtoumax,
97081         as those declarations are made even in the signed case.
97082         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97083         Likewise, for strtol and strtoimax.
97084
97085 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97086
97087         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97088         #defines strtoimax.  Also treat the other strto* functions
97089         like strtoimax.
97090
97091         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97092         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97093         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97094
97095 2001-09-26  Jim Meyering  <meyering@lucent.com>
97096
97097         Most macros in unlocked-io.h had the wrong number of arguments.
97098         * lib/gen-uio: New script.
97099         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97100         * lib/unlocked-io.hin: Remove file.
97101         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97102         rather than trying to embed it here.
97103         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97104         Reported by Padraig Brady.
97105
97106 2001-09-25  Volker Borchert  <bt@teknon.de>
97107
97108         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97109         `result'.
97110
97111 2001-09-24  Jim Meyering  <meyering@lucent.com>
97112
97113         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97114
97115 2001-09-23  Jim Meyering  <meyering@lucent.com>
97116
97117         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97118         instead of the mere test for existence of mntent.h.  The latter
97119         would get a false-positive on AIX 3.4 systems.
97120         In the outer getmntent if-block, don't die if neither of the getmntent
97121         tests succeeds.  Instead, just fall through and continue with the
97122         remaining tests.
97123
97124 2001-09-23  Jim Meyering  <meyering@lucent.com>
97125
97126         * lib/mountlist.c: Remove useless parentheses in #if directives.
97127         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97128         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97129
97130 2001-09-22  Jim Meyering  <meyering@lucent.com>
97131
97132         * m4/gettext.m4: New file.  From gettext.
97133         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97134         * m4/progtest.m4: Likewise
97135         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97136         * m4/glibc21.m4: Likewise.
97137
97138         * m4/libintl.m4: Remove.  No longer used.
97139
97140 2001-09-22  Jim Meyering  <meyering@lucent.com>
97141
97142         * lib/localcharset.c: Update from latest gettext.
97143         * lib/config.charset: Likewise.
97144
97145 2001-09-20  Jim Meyering  <meyering@lucent.com>
97146
97147         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97148         strtoimax.
97149         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97150         strtoumax.
97151
97152 2001-09-20  Jim Meyering  <meyering@lucent.com>
97153
97154         * lib/xstrtol.c (strtoimax): Guard declaration with
97155         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97156         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97157         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97158         (strtoumax): Likewise, for completeness (it wasn't necessary).
97159
97160 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97161
97162         * lib/strtoimax.c (HAVE_LONG_LONG):
97163         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97164         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97165         to work around bug in IBM C compiler.
97166
97167 2001-09-17  Jim Meyering  <meyering@lucent.com>
97168
97169         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97170         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97171         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97172         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97173         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97174         whenever the right hand side need not be expanded by the shell.
97175
97176 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97177
97178         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97179         library.  It's not correct, as some older glibcs are buggy.
97180         fnmatch wasn't fixed until glibc 2.2.
97181
97182         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97183         special shell magic here.
97184
97185 2001-09-16  Jim Meyering  <meyering@lucent.com>
97186
97187         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97188         * m4/jm-macros.m4: Require it.
97189
97190 2001-09-16  Jim Meyering  <meyering@lucent.com>
97191
97192         * lib/mkdir.c: New file.
97193
97194 2001-09-15  Jim Meyering  <meyering@lucent.com>
97195
97196         * m4/jm-macros.m4: Check for help2man.
97197
97198 2001-09-11  Jim Meyering  <meyering@lucent.com>
97199
97200         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97201         The body, by Paul Eggert, was moved here from configure.in.
97202         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97203
97204 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97205
97206         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97207         (jm_PREREQ): Use it.
97208
97209 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97210
97211         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97212         Use ssize_t, not int, to store result of readlink.
97213         Check for ssize_t overflow as well as size_t overflow,
97214         as POSIX says the result of readlink is implementation-defined
97215         when ssize_t overflows.
97216         Remove unnecessary cast to char*.
97217         Use free+malloc instead of realloc, as the storage doesn't need
97218         to be preserved and it's clearer and can be more efficient that way.
97219         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97220         * lib/xreadlink.h (xreadlink): Update prototype.
97221
97222 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97223
97224         * lib/xgetcwd.c: Revert some of the previous change; intead,
97225         fix the HAVE_GETCWD_NULL code to behave more like the
97226         !HAVE_GETCWD_NULL code used to.
97227
97228         Include "xalloc.h".
97229         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97230         invoke xalloc_die.
97231
97232 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97233
97234         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97235         sys/param.h, as pathmax.h includes them.
97236
97237 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97238
97239         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97240         (jm_PREREQ_XGETCWD): New macro.
97241
97242         * m4/getcwd.m4: New file.
97243
97244 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97245
97246         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97247         like the HAVE_GETCWD_NULL code.
97248         Include pathmax.h if not HAVE_GETCWD.
97249         Do not include xalloc.h.
97250         (INITIAL_BUFFER_SIZE): New symbol.
97251         Do not use xmalloc / xrealloc, since the caller is responsible for
97252         handling errors.  Preserve errno around `free' during failure.
97253         Do not overrun buffer when using getwd.
97254
97255 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97256
97257         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97258         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97259         getcwd (NULL, 0).
97260
97261 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97262
97263         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97264         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97265         spotted by Jim Meyering.
97266
97267 2001-09-03  Jim Meyering  <meyering@lucent.com>
97268
97269         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97270         failure.
97271
97272 2001-09-02  Jim Meyering  <meyering@lucent.com>
97273
97274         * lib/error.c: Update from GNU libc.
97275
97276 2001-09-01  Jim Meyering  <meyering@lucent.com>
97277
97278         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97279         Used by df.
97280
97281 2001-09-01  Jim Meyering  <meyering@lucent.com>
97282
97283         * lib/xreadlink.c: New file.
97284         * lib/xreadlink.h: New file.
97285         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97286         xreadlink.h.
97287
97288         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97289         doesn't conflict with sparc Solaris 7's definition in
97290         /usr/include/sys/int_types.h.
97291
97292         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97293         files.
97294         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97295         and strncasecmp as r-values.  Unixware didn't have declarations.
97296
97297 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97298
97299         * lib/xstrtol.h: Add copyright notice.
97300         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97301         LONGINT_INVALID_SUFFIX_CHAR.
97302
97303 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97304
97305         * lib/xstrtol.c (strtoimax): New decl.
97306
97307 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97308
97309         * lib/xgetcwd.c: Don't include pathmax.h.
97310         Include stdlib.h and unistd.h if available.
97311         Include xalloc.h.
97312         (xmalloc, xstrdup, free): Remove decls.
97313         (xgetcwd): Don't assume sizes fit in unsigned.
97314         Check for overflow when computing sizes.
97315         Simplify reallocation code.
97316
97317 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97318
97319         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97320         a directory's st_size can have an arbitrary value, so the old
97321         usage could waste an arbitrary amount of memory.  All uses
97322         changed.
97323         * lib/savedir.h: Update prototype.
97324
97325 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97326
97327         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97328
97329         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97330         old strtoimax.c.
97331
97332         Also, make the following further changes to make this file's
97333         configuration more similar to that of strtol.c:
97334         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97335         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97336         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97337         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97338         changed to signed values.
97339
97340         And make the following changes as well:
97341         Fix copyright notice, as 1999 was missing.
97342         (verify): New macro.
97343         (strtoimax): Check sizes at compile-time, not run-time.
97344         Prefer strtol to strtoll if both work.
97345         (main): Remove; it was not that useful and was a pain to maintain.
97346
97347         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97348
97349 2001-08-31  Jim Meyering  <meyering@lucent.com>
97350
97351         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97352         Use an initial, malloc'd, buffer of length 128 rather than
97353         a statically allocated one of length 1024.
97354
97355 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97356
97357         Simplify code, partly by assuming autoconf 2.52 semantics.
97358
97359         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97360
97361         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97362         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97363         All uses removed.
97364         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97365         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97366         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97367         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97368         jm_AC_HEADER_INTTYPES_H.
97369         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97370
97371         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97372
97373         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97374         Quote first arg of AC_DEFUN.
97375         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97376         since they are needed to parse the include file even if we need
97377         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97378         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97379         but with opposite signedness.
97380
97381 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97382
97383         Merge 'exclude' changes from tar 1.13.22.
97384         This fixes one or two unlikely storage allocation overflow bugs,
97385         but doesn't change user-visible behavior otherwise.
97386
97387 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97388
97389         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97390         (jm_PREREQ_EXCLUDE): New macro.
97391
97392 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97393
97394         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97395         tm to be declared.
97396
97397 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97398
97399         * lib/hash.c: Remove '2001' from copyright notice.
97400
97401 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97402
97403         * lib/full-write.h: New file.
97404         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97405         * lib/full-write.c: Correct credits, as cccp.c no longer
97406         exists and anyway it was so heavily changed from the old cccp
97407         code as to be unrecognizable.  Include full-write.h.
97408         (full_write): Return size_t, with short writes meaning failure.
97409         All callers changed.  This fixes a bug with large buffers
97410         on 64-bit hosts.
97411         * lib/utime.c: Include full-write.h.
97412
97413 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97414
97415         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97416         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97417         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97418         Include if available.
97419         (<xalloc.h>): Include
97420         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97421         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97422         collide with FNM macros.
97423         (struct patopts): New struct.
97424         (struct exclude): Use it, as exclude patterns now come with options.
97425         (new_exclude): Support above changes.
97426         (new_exclude, add_exclude_file):
97427         Initial size must now be a power of two to simplify overflow checking.
97428         (free_exclude, fnmatch_no_wildcards): New function.
97429         (excluded_filename): No longer requires options arg, as the options
97430         are determined by add_exclude.  Now returns bool, not int.
97431         (excluded_filename, add_exclude):
97432         Add support for the fancy new exclusion options.
97433         (add_exclude, add_exclude_file): Now takes int options arg.
97434         Check for arithmetic overflow when computing sizes.
97435         (add_exclude_file): xrealloc might modify errno, so don't
97436         realloc until after errno might be used.
97437
97438         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97439         New macros.
97440         (free_exclude): New decl.
97441         (add_exclude, add_exclude_file): Now takes int options arg.
97442         (excluded_filename): No longer requires options arg, as the options
97443         are determined by add_exclude.  Now returns bool, not int.
97444
97445 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97446
97447         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97448
97449 2001-08-27  Jim Meyering  <meyering@lucent.com>
97450
97451         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97452
97453         * lib/version-etc.c (N_): Remove definition.
97454         Revert most of last change.
97455         Instead, simply don't mark the `Copyright...' string for translation.
97456         Based on advice from Paul Eggert.
97457
97458         * lib/strtoxmax.c: Tweak comment.
97459
97460 2001-08-26  Jim Meyering  <meyering@lucent.com>
97461
97462         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97463
97464         * m4/xstrtoimax.m4: New file.
97465         * m4/xstrtoumax.m4: Add comments explaining why we
97466         AC_REPLACE_FUNCS(strtol).
97467
97468 2001-08-26  Jim Meyering  <meyering@lucent.com>
97469
97470         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97471         of copyright with `%s' so translators don't get an untranslated
97472         message in 2002.
97473         (COPYRIGHT_YEAR): Define.
97474         (version_etc): Use fprintf rather than fputs.
97475         Suggestion from Ulrich Drepper.
97476
97477         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97478
97479         * lib/strtoll.c: New file, from GNU libc.
97480         * lib/xstrtoimax.c: New file.
97481
97482         * lib/xstrtol.h: Add xstrtoimax.
97483         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97484         * lib/strtoimax.c: New file.  Likewise, but first define
97485         STRTOUXMAX_SIGNED.
97486
97487         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97488         ...
97489         * lib/strtoxmax.c: ... then renamed to this.
97490
97491 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97492
97493         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97494         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97495         (jm_AC_TYPE_INTMAX_T): New macro.
97496         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97497
97498         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97499
97500         * m4/longlong.m4: Renamed from ulonglong.m4.
97501         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97502         * m4/uintmax_t.m4: Removed.
97503
97504 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97505
97506         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97507         Port to Solaris 8, where 'sed' requires a space after the 'r'
97508         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97509         Redirect output to $tmp just once.
97510
97511 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97512
97513         * lib/addext.c (<errno.h>): Include.
97514         (errno): Declare if not defined.
97515         (addext): Work correctly when pathconf returns -1 and leaves
97516         errno alone because there is no limit.  Also, work even if
97517         pathconf returns a value greater than SIZE_MAX.
97518
97519 2001-08-12  Jim Meyering  <meyering@lucent.com>
97520
97521         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97522         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97523         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97524         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97525         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97526         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97527         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97528         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97529         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97530         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97531         utime.m4, utimes.m4, xstrtoumax.m4:
97532         Quote the first argument in each use of AC_DEFUN.
97533
97534 2001-08-12  Jim Meyering  <meyering@lucent.com>
97535
97536         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97537         Simply `return getcwd (NULL, 0);'.
97538         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97539         Use 1300 as initial value for length, not PATH_MAX.
97540
97541         * lib/pathmax.h: Clean up cpp syntax.
97542
97543 2001-08-12  Jim Meyering  <meyering@lucent.com>
97544
97545         * lib/gettimeofday.c: New file.
97546         * lib/gtod.h: New file.
97547         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97548
97549 2001-08-05  Jim Meyering  <meyering@lucent.com>
97550
97551         * m4/jm-macros.m4: Require autoconf-2.52.
97552
97553 2001-08-04  Jim Meyering  <meyering@lucent.com>
97554
97555         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97556         stmt, to get in sync with glibc.
97557
97558 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97559
97560         The following changes are from gettext 0.10.39 as maintained by
97561         Bruno Haible.
97562
97563         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97564         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97565         with inverted sense.  All uses changed.
97566
97567         * lib/mbswidth.c: Don't include <limits.h>.
97568         Include <stdlib.h> and <string.h> unconditionally.
97569         (iswcntrl, mbsinit, ISCNTRL): New macros.
97570         (mbsnwidth): Use K&R style function declarations.
97571         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97572         can optimize it when MB_CUR_MAX == 1.
97573         The width of control characters is zero, not 1.
97574
97575 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97576
97577         The following changes are from gettext 0.10.39 as maintained by
97578         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97579
97580         * m4/codeset.m4: Upgrade to serial AM1.
97581         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97582         all uses changed.  Quote first arg of AC_DEFUN.
97583         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97584
97585         * m4/iconv.m4: Upgrade to serial AM2.
97586         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97587         Add --with-libconv-prefix.
97588         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97589         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97590         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97591         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97592         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97593
97594         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97595         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97596         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97597         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97598         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97599         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97600         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97601         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97602         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97603
97604         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97605         string.h any more.
97606
97607         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97608         not the default value.
97609
97610         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97611         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97612         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97613         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97614         Also check for iswcntrl, used for wcwidth fallback.
97615         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97616         to Autoconf 2.13.
97617
97618 2001-08-03  Jim Meyering  <meyering@lucent.com>
97619
97620         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97621         as it was in the original.  Reported by Paul Eggert.
97622
97623 2001-07-16  Jim Meyering  <meyering@lucent.com>
97624
97625         * m4/gettimeofday.m4: New file.
97626         Prompted by a report from Bernhard Baehr.
97627
97628 2001-07-15  Jim Meyering  <meyering@lucent.com>
97629
97630         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97631         stuff. Now it's in ../Makefile.cfg.
97632
97633 2001-07-15  Jim Meyering  <meyering@lucent.com>
97634
97635         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97636         (BUILT_SOURCES): Add unlocked-io.h.
97637         (io_functions): Define.
97638         (unlocked-io.h): New rule.
97639         (DISTCLEANFILES): Add unlocked-io.h.
97640         (all-local): Depend on unlocked-io.h, to ensure it is created.
97641
97642         * lib/unlocked-io.hin: New file
97643
97644         * lib/regex.c: Update from glibc.
97645
97646 2001-07-05  Jim Meyering  <meyering@lucent.com>
97647
97648         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97649         recommendation.
97650         (libfetish_a_SOURCES): Put all .h files here instead.
97651         Remove a thus-exposed (better checks in automake) duplicate and
97652         two unnecessary .h files.
97653
97654 2001-07-04  Jim Meyering  <meyering@lucent.com>
97655
97656         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97657         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97658         distcheck failure.
97659
97660 2001-07-02  Jim Meyering  <meyering@lucent.com>
97661
97662         The following changes were prompted by suggestions from Bruno Haible.
97663
97664         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97665         is now generated.
97666         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97667         definition of EXTRA_DIST.
97668         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97669         ensure that the generated file is created/updated whenever the list
97670         of $(unlocked_functions) is changed.
97671         (jm-glibc-io.m4): New rule.
97672         (unlocked-io.h): New rule -- currently unused.
97673
97674 2001-06-24  Jim Meyering  <meyering@lucent.com>
97675
97676         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97677         unmatched right bracket, rather than kludging it with an extra,
97678         falsely-matching quote in a comment.  Patch by Akim Demaille.
97679
97680 2001-06-11  Jim Meyering  <meyering@lucent.com>
97681
97682         * lib/regex.c: Update from GNU libc.
97683
97684 2001-05-27  Jim Meyering  <meyering@lucent.com>
97685
97686         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97687         Check for ut_type in struct utmp.
97688
97689 2001-05-27  Jim Meyering  <meyering@lucent.com>
97690
97691         * lib/readutmp.h (UT_TYPE): Define.
97692
97693 2001-05-24  Jim Meyering  <meyering@lucent.com>
97694
97695         * lib/argmatch.c: Include "quote.h".
97696         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97697         quote function.  Reported by Göran Uddeborg.
97698
97699 2001-05-22  Jim Meyering  <meyering@lucent.com>
97700
97701         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97702         now that we use the package-supplied version unconditionally.
97703         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97704
97705 2001-05-21  Jim Meyering  <meyering@lucent.com>
97706
97707         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97708         shell syntax errors.
97709
97710 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97711
97712         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97713
97714 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97715
97716         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97717         Don't bother to check library strftime, since
97718         we'll be using our own my_strftime function anyway.
97719         Define my_strftime instead of strftime.
97720
97721 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97722
97723         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97724         which is not yet declared.
97725
97726 2001-05-15  Jim Meyering  <meyering@lucent.com>
97727
97728         * m4/regex.m4: Use proper quoting so brackets appear in the test
97729         program.
97730         Reported by, and with help from, Bruno Haible.
97731
97732 2001-05-13  Jim Meyering  <meyering@lucent.com>
97733
97734         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97735         undefined.
97736
97737 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97738
97739         dirname code cleanup.  base_name now behaves more compatibly
97740         with POSIX basename when given file names that have trailing
97741         slashes, and similarly for dir_name.  Add new primitives
97742         base_len and dir_len.  Put the directory-name-related decls
97743         into dirname.h.
97744
97745         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97746         * lib/backupfile.c (base_name): Likewise.
97747         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97748         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97749         * lib/makepath.c (strip_trailing_slashes): Likewise.
97750         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97751         ISSLASH): Likewise.
97752         * lib/rename.c (strip_trailing_slashes): Likewise.
97753         * lib/same.c (base_name): Likewise.
97754         * lib/stripslash.c (ISSLASH): Likewise.
97755
97756         * lib/addext.c: Include <dirname.h> after size_t is defined.
97757         * lib/backupfile.c: Likewise.
97758
97759         * lib/addext.c (addext): Use base_len to trim redundant
97760         trailing slashes instead of doing it ourselves.
97761         But do not trim the last slash if it is not redundant.
97762
97763         * lib/backupfile.c (find_backup_file_name,
97764         max_backup_version): Use base_len instead of rolling it ourselves.
97765         Handle the case of "" and (on DOS) "C:" correctly.
97766
97767         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97768         needed. Include <string.h>, <dirname.h>.
97769         (base_name): Allow file names ending in slashes, other than names
97770         that are all slashes.  In this case, return the basename followed
97771         by the slashes.  This is more general, and can be used in places
97772         where the original base_name purposely had an assertion failure.
97773         (base_len): New function.
97774
97775         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97776         Do not include <assert.h>; no longer needed.
97777         Include xalloc.h.
97778         (memrchr): Remove decl.
97779         (dir_name_r): Remove.
97780         (dir_len): Renamed from dirlen.  All callers changed.
97781         Rewrite in terms of base_name, for simplicity and consistency.
97782         (dir_name): Never return NULL.  All callers changed.
97783         Do not include <stdlib.h> in test program; no longer needed.
97784         return 0; is fine for test program.
97785
97786         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97787         New macros.
97788         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97789
97790         * lib/path-concat.c (path_concat): Use base_len to compute
97791         base length, not strlen; this means we cannot rely on memcpy
97792         to null-terminate.
97793
97794         * lib/same.c (STREQ): Remove.
97795         (same_name): Handle the case where the basename ends in trailing '/'.
97796
97797         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
97798         a slash was stripped.  Do not strip the last slash after a
97799         file system prefix.
97800
97801 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97802
97803         * lib/Makefile.am (libfetish_a_SOURCES):
97804         Add strftime.c, since we now compile it on all hosts.
97805
97806         * lib/strftime.c (my_strftime):
97807         Define to nstrftime if emacs, but only if my_strftime is not defined.
97808         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
97809         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
97810         Add one more extra argument: a nanoseconds value.
97811         All uses changed.
97812         (ns): New macro.
97813         (my_strftime function): Add %N format.
97814         (emacs_strftimeu): Renamed from emacs_strftime,
97815         with extra ut argument.
97816
97817 2001-05-09  Paul Eggert  <eggert@twinsun.com>
97818
97819         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
97820
97821 2001-04-21  Jim Meyering  <meyering@lucent.com>
97822
97823         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
97824         doesn't interfere.
97825
97826 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97827
97828         * m4/ftruncate.m4: Check for chsize.
97829         Link with ftruncate.o unconditionally if ftruncate is missing.
97830         This was required when cross-compiling to i586-mingw32msvc.
97831
97832 2001-04-08  Jim Meyering  <meyering@lucent.com>
97833
97834         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
97835         recomputed; that's necessary when the offset spans a DST transition.
97836         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
97837
97838 2001-04-02  Jim Meyering  <meyering@lucent.com>
97839
97840         * lib/regex.h, regex.c: Update from GNU libc.
97841
97842 2001-03-24  Jim Meyering  <meyering@lucent.com>
97843
97844         * m4/jm-macros.m4: Require autoconf-2.49d.
97845
97846 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97847
97848         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97849
97850 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97851
97852         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97853
97854 2001-03-17  Jim Meyering  <meyering@lucent.com>
97855
97856         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97857         now that the version in autoconf is equivalent.
97858         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97859
97860         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97861         Suggestion from Akim Demaille.
97862
97863         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97864         (jm_PREREQ_TEMPNAME): New function.
97865
97866 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97867
97868         * lib/tempname.c (uint64_t): Define to uintmax_t if
97869         not defined, and if UINT64_MAX is not defined.
97870         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97871         Reported by John David Anglin.
97872
97873 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97874
97875         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97876         resolve alias if codeset is empty.
97877         * lib/config.charset (BeOS): Use wildcard syntax.
97878
97879 2001-03-13  Jim Meyering  <meyering@lucent.com>
97880
97881         * lib/path-concat.c (path_concat)
97882         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97883         concatenating e.g., `C:' and `foo'.
97884         From Bruno Haible.
97885
97886 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97887
97888         * lib/localcharset.c (locale_charset): Don't use
97889         setlocale(LC_CTYPE,NULL). Don't return NULL.
97890         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97891
97892 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97893
97894         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97895         support for DOS/DJGPP.
97896
97897 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97898
97899         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97900         lacks mkstemp.  Compile our own tempname.c if we compile our own
97901         mkstemp.c, as mkstemp relies on tempname.
97902
97903 2001-03-01  Jim Meyering  <meyering@lucent.com>
97904
97905         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97906         AH_VERBATIM really does output its argument verbatim.
97907
97908 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97909
97910         * lib/Makefile.am (libfetish_a_SOURCES):
97911         Add dup-safer.c, fopen-safer.c.
97912         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97913
97914         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97915         * lib/unistd-safer.h: New files.
97916
97917 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97918
97919         The mkstemp replacement is taken from glibc 2.2.2, with some
97920         portability fixes for use outside glibc, as follows:
97921
97922         * lib/tempname.c (struct_stat64): New macro.
97923         (direxists, __gen_tempname): Use it.
97924         This avoids a portability problem with Solaris 8.
97925
97926         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97927         (<stddef.h>, <stdint.h>, <string.h>):
97928         Include only if STDC_HEADERS || _LIBC.
97929         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97930         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97931         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97932         (__set_errno): Define this macro if <errno.h> doesn't.
97933         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97934         Define these macros if <stdio.h> doesn't.
97935         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97936         Define these macros if <sys/stat.h>
97937         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97938         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97939         __xstat64): Define if not _LIBC.
97940         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97941         (__gen_tempname): Invoke gettimeofday only if
97942         HAVE_GETTIMEOFDAY || _LIBC;
97943         otherwise, fall back on plain "time".
97944         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97945
97946         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97947
97948         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97949
97950 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97951
97952         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97953
97954 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97955
97956         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97957         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97958         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97959         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97960
97961 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97962
97963         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97964         Remove workaround macros for hosts that have mbrtowc but not
97965         mbstate_t, as we now insist on proper declarations for both
97966         before using mbrtowc.
97967
97968 2001-02-17  Jim Meyering  <meyering@lucent.com>
97969
97970         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97971         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97972         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97973         UnixWare 7.1.1.
97974
97975         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97976         rather than AC_CACHE_VAL.
97977
97978 2001-02-17  Jim Meyering  <meyering@lucent.com>
97979
97980         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97981         around included file name.
97982
97983         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97984
97985         * lib/strftime.c: Update from GNU libc (the only changes were to
97986         comments).
97987
97988 2001-02-17  Jim Meyering  <meyering@lucent.com>
97989
97990         * lib/regex.c: Update from libc.
97991
97992 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97993
97994         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97995         clash.
97996
97997 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97998
97999         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98000         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98001         Reported by Mark Hounschell via Paul Eggert.
98002
98003 2001-02-07  Jim Meyering  <meyering@lucent.com>
98004
98005         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98006
98007 2001-02-05  Jim Meyering  <meyering@lucent.com>
98008
98009         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98010         it includes the patch required for `large file' support with at least
98011         HP-UX's 10.20 /bin/cc.
98012
98013 2001-02-03  Jim Meyering  <meyering@lucent.com>
98014
98015         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98016         AS_IF, now that it works once again (mysteriously).
98017         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98018
98019 2001-01-30  Jim Meyering  <meyering@lucent.com>
98020
98021         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98022         * m4/chown.m4: Rename conftestchown to conftest.chown.
98023         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98024         s/conftestdir2/conftest.d2/.
98025         * m4/utimes.m4: s/conftestdata/conftest.data/
98026         Inspired by Pavel Roskin's change in autoconf.
98027
98028 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98029
98030         * lib/config.charset: Update for FreeBSD 4.2.
98031
98032 2001-01-27  Jim Meyering  <meyering@lucent.com>
98033
98034         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98035         a use of AS_IF.
98036         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98037
98038 2001-01-26  Jim Meyering  <meyering@lucent.com>
98039
98040         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98041         quotearg.c includes it.
98042
98043 2001-01-26  Jim Meyering  <meyering@lucent.com>
98044
98045         * lib/quotearg.c: Include stddef.h.
98046         * lib/quote.c: Include stddef.h.
98047         Reported by Axel Kittenberger.
98048
98049         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98050         line in double quotes so that it evokes a better diagnostic.
98051         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98052         Reported by Axel Kittenberger.
98053
98054 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98055
98056         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98057         as if it was a `charset'.
98058
98059 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98060
98061         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98062         has const.
98063
98064 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98065
98066         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98067         to avoid a warning.  Add back 'const' to inptr.
98068
98069 2001-01-20  Jim Meyering  <meyering@lucent.com>
98070
98071         Be sure that headers are checked before used in code compiled
98072         for the type checks.
98073         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98074         In place of that, invoke jm_CHECK_ALL_TYPES.
98075         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98076         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98077         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98078         The check for ssize_t was mistakenly run before the test for unistd.h.
98079
98080         The configure-time check for stdbool.h was missing.
98081         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98082         (jm_PREREQ_HASH): New function.
98083
98084 2001-01-17  Jim Meyering  <meyering@lucent.com>
98085
98086         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98087         for autoconf-2.49c.
98088         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98089
98090 2001-01-16  Jim Meyering  <meyering@lucent.com>
98091
98092         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98093         From Bruno Haible.
98094
98095 2001-01-14  Jim Meyering  <meyering@lucent.com>
98096
98097         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98098         foo and bar.  Create conftestdir/ in the script, not in the C code.
98099         Remove directories in the script, not in the C code.
98100         Remove conftestdir{,2} before trying to create the directory.
98101         Make the entire configure script fail if the mkdir fails.
98102
98103 2001-01-14  Jim Meyering  <meyering@lucent.com>
98104
98105         * lib/rename.c: New file.  From Volker Borchert.
98106         Include stdlib.h, string.h or strings.h, and xalloc.h.
98107         Use strip_trailing_slashes rather than open-coding it.
98108
98109 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98110
98111         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98112
98113 2001-01-03  Jim Meyering  <meyering@lucent.com>
98114
98115         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98116         of local `inptr' to avoid warning with some system declarations of
98117         iconv.
98118
98119 2001-01-02  Volker Borchert  <bt@teknon.de>
98120
98121         * m4/rename.m4: New file.
98122         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98123
98124 2001-01-01  Jim Meyering  <meyering@lucent.com>
98125
98126         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98127         even on systems with utmpx.h.  It's necessary for the declaration of
98128         utmp's ut_user member.  Reported by Andreas Jaeger.
98129
98130         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98131         available. They are required for the declarations of getgrgid and
98132         getpwuid resp.
98133         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98134         Reported by Andreas Jaeger.
98135
98136 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98137
98138         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98139         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98140         so `make install' also works in VPATH builds.
98141
98142 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98143
98144         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98145         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98146         can be used in subdirectories.
98147
98148 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98149
98150         * lib/modechange.c: Do not assume that mode_t uses the
98151         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98152         the other-execute bit of FOO even if S_IXOTH != 1.
98153
98154         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98155         WOTH, XOTH, ALLM): New macros.
98156         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98157          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98158         Use them.
98159         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98160         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98161         (mode_compile):
98162         No need to use uintmax_t; unsigned long is long enough.
98163         Don't bother to get suffix since we don't use it.
98164
98165 2000-12-26  Jim Meyering  <meyering@lucent.com>
98166
98167         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98168         better with autoheader.
98169
98170 2000-12-24  Jim Meyering  <meyering@lucent.com>
98171
98172         * lib/hash.c (is_prime): Return explicit boolean values.
98173         (hash_get_first): Return NULL to appease Irix5.6's 89.
98174         Reported by Nelson Beebe.
98175
98176 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98177
98178         * lib/localcharset.c (locale_charset): Add support for Win32.
98179
98180 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98181
98182         * lib/physmem.h, lib/physmem.c: New files.
98183
98184         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98185         (noinst_HEADERS): Add physmem.h.
98186
98187         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98188         't' for compatibility with Solaris 8 sort.
98189
98190 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98191
98192         * lib/config.charset: Add support for BeOS.
98193
98194 2000-12-17  Jim Meyering  <meyering@lucent.com>
98195
98196         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98197         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98198
98199 2000-12-16  Jim Meyering  <meyering@lucent.com>
98200
98201         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98202         N and M) would have treated it like `chown N:N FILE'.
98203
98204         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98205
98206 2000-12-16  Jim Meyering  <meyering@lucent.com>
98207
98208         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98209         SHELLS_FILE to a file name that's useful on djgpp systems.
98210         Include stdlib.h.
98211         (ADDITIONAL_DEFAULT_SHELLS): Define.
98212         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98213         Based mostly on a patch from Prashant TR.
98214
98215 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98216
98217         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98218         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98219         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98220
98221 2000-12-08  Andreas Schwab  <schwab@suse.de>
98222
98223         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98224         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98225
98226 2000-12-07  Jim Meyering  <meyering@lucent.com>
98227
98228         * lib/stripslash.c (ISSLASH): Define.
98229         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98230         `/'.
98231         From Prashant TR.
98232
98233         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98234         (dir_name_r): Declare this function as static.
98235         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98236         manifest itself on a name containing a mix of slashes and
98237         backslashes.
98238         Make this function work with names starting with a DOS-style
98239         drive letter and colon prefix.
98240         (dir_name): Append `.' if necessary.
98241         Based mostly on patches from Prashant TR and Eli Zaretskii.
98242
98243         * lib/dirname.h (dir_name_r): Remove prototype.
98244
98245 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98246
98247         * m4/off_t-format.m4: Remove this file.
98248         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98249
98250 2000-12-06  Jim Meyering  <meyering@lucent.com>
98251
98252         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98253         replacement strtoull, we may well need the replacement strtoul, too.
98254         Check for declarations of strtoul and strtoull.
98255         Check for strtol.  Mainly as a cue to cause automake to include
98256         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98257         Check for limits.h -- strtol.c needs it.
98258
98259 2000-12-05  Jim Meyering  <meyering@lucent.com>
98260
98261         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98262
98263 2000-12-04  Jim Meyering  <meyering@lucent.com>
98264
98265         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98266         Also include memory.h, stdlib.h, unistd.h if appropriate.
98267         Reported by Andreas Jaeger (conflicting declaration of malloc).
98268
98269 2000-12-02  Jim Meyering  <meyering@lucent.com>
98270
98271         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98272         * m4/jm-macros.m4 (jm_MACROS): require it.
98273
98274 2000-12-02  Jim Meyering  <meyering@lucent.com>
98275
98276         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98277
98278 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98279
98280         * lib/memrchr.c: Include <config.h> before any system include file.
98281
98282 2000-11-30  Jim Meyering  <meyering@lucent.com>
98283
98284         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98285
98286 2000-11-30  Jim Meyering  <meyering@lucent.com>
98287
98288         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98289
98290 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98291
98292         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98293
98294 2000-11-26  Jim Meyering  <meyering@lucent.com>
98295
98296         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98297
98298 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98299
98300         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98301         size of (size_t) -1; it's not portable.
98302
98303 2000-11-17  Jim Meyering  <meyering@lucent.com>
98304
98305         * lib/strstr.c: Update from GNU libc.
98306
98307 2000-11-17  Akim Demaille  <akim@epita.fr>
98308
98309         * lib/obstack.h: Formatting changes.
98310         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98311         prevent type checking.
98312         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98313         cast the value to (void *): assigning a `foo *' to a `void *'
98314         variable is valid.
98315         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98316
98317 2000-11-16  Jim Meyering  <meyering@lucent.com>
98318
98319         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98320
98321 2000-11-11  Jim Meyering  <meyering@lucent.com>
98322
98323         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98324
98325 2000-11-10  Jim Meyering  <meyering@lucent.com>
98326
98327         * lib/obstack.h: Update from GNU libc.
98328         * lib/obstack.c: Likewise.
98329
98330 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98331
98332         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98333
98334 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98335
98336         * lib/getusershell.c (setusershell): Use rewind rather than
98337         fseek/fseeko, to avoid configuration hassles with fseeko.
98338         Don't bother opening SHELLS_FILE if shellstream is NULL;
98339         it's not necessary.
98340
98341 2000-11-05  Jim Meyering  <meyering@lucent.com>
98342
98343         * lib/makepath.h (make_dir): Declare.
98344         * lib/makepath.c (make_dir): Remove `static' attribute.
98345         Tweak a comment.
98346
98347 2000-11-04  Jim Meyering  <meyering@lucent.com>
98348
98349         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98350
98351 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98352
98353         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98354         last one in a bucket, advance to the next bucket.
98355
98356 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98357
98358         * lib/fnmatch.c: Do not comment out all the code if we are using
98359         the GNU C library, because in some cases we are replacing buggy
98360         code in the GNU C library itself.
98361
98362 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98363
98364         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98365         (regex_compile): Catch bogus \(\1\).
98366
98367 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98368
98369         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98370         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98371         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98372
98373 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98374
98375         * lib/error.h, getline.h, modechange.h:
98376         Remove "2000" from Copyright line, as the file hasn't been
98377         changed this year other than in the copyright notice.
98378
98379         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98380         was changed this year.
98381
98382 2000-10-29  Jim Meyering  <meyering@lucent.com>
98383
98384         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98385         renaming.
98386         * m4/ls-mntd-fs.m4: Likewise
98387
98388 2000-10-29  Jim Meyering  <meyering@lucent.com>
98389
98390         * lib/xstat.in: Fix grammar in comment.
98391
98392 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98393
98394         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98395         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98396         doesn't define __restrict_arr.
98397
98398 2000-10-28  Jim Meyering  <meyering@lucent.com>
98399
98400         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98401         (jm_PREREQ_MEMCHR): New function.
98402
98403 2000-10-28  Jim Meyering  <meyering@lucent.com>
98404
98405         * lib/memchr.c: Update from libc.
98406         Adjust for portability:
98407         [HAVE_STDLIB_H]: Include stdlib.h.
98408         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98409         Undef __memchr, too.
98410         [!weak_alias]: Define __memchr to memchr.
98411
98412         * lib/regex.c: Update from libc.
98413         * lib/regex.h: Likewise.
98414         * lib/getopt1.c: Likewise.
98415         * lib/memcmp.c: Likewise.
98416
98417         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98418         Avoid using fseek, when possible -- it's broken by design.
98419         Patch by Ulrich Drepper.
98420
98421 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98422
98423         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98424         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98425         Giving in to popular pressure to shut up the compiler with casts.
98426
98427 2000-10-26  Jim Meyering  <meyering@lucent.com>
98428
98429         * lib/strftime.c: Update from libc.
98430
98431 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98432
98433         * regex.c: More `unsigned char' -> `re_char' changes.
98434         Also change several `int' into `re_wchar_t'.
98435         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98436         (PUSH_FAILURE_POINTER): Don't cast any more.
98437         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98438         We want GCC to complain, since this piece of code makes
98439         re_match non-reentrant, which *should* be fixed.
98440         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98441         (EXTEND_BUFFER): Use RETALLOC.
98442         (SET_LIST_BIT): Don't cast.
98443         (re_wchar_t): New type.
98444         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98445         that those two functions will always properly return.
98446         (IMMEDIATE_QUIT_CHECK): Cast to void.
98447         (analyse_first): Use recursion rather than an explicit stack.
98448         (re_compile_fastmap): Can't fail anymore.
98449         (re_search_2): Don't check re_compile_fastmap for failure.
98450         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98451         Now also sets the new value (passed in a new argument).
98452         (re_match_2_internal): Use it.
98453         Also, use a new var `reg' of type size_t when looping through regs
98454         rather than reuse the inappropriate `mcnt'.
98455
98456 2000-10-25  Jim Meyering  <meyering@lucent.com>
98457
98458         * lib/obstack.c: Update from libc.
98459
98460 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98461
98462         * regex.c (regex_compile): Change the way of handling a range from
98463         a char less than 256 to a char not less than 256.
98464
98465 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98466
98467         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98468         NT-Emacs only.
98469         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98470         so that re_search functions only quit when callers expect them to.
98471
98472 2000-10-23  Jim Meyering  <meyering@lucent.com>
98473
98474         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98475         wrong.  That set_locale call must not have any side effects.
98476         From Paul Eggert.
98477
98478 2000-10-22  Jim Meyering  <meyering@lucent.com>
98479
98480         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98481         [CYCLIC]: Remove now-unused definition.
98482
98483         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98484         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98485         Suggestion from Ulrich Drepper.
98486
98487 2000-10-21  Jim Meyering  <meyering@lucent.com>
98488
98489         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98490         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98491         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98492
98493 2000-10-21  Jim Meyering  <meyering@lucent.com>
98494
98495         * lib/dirname.c (memrchr): Declare if necessary.
98496         (dir_name): Remove the restriction that there be no
98497         trailing slashes.  Now, this code skips past them, effectively
98498         ignoring them.
98499         [TEST_DIRNAME] (main): New unit tests.
98500
98501         * lib/memrchr.c: New file from GNU libc.
98502         Undef __memrchr, too.
98503         [!weak_alias]: Define __memrchr to memrchr.
98504         Guard weak_alias use with `#ifdef weak_alias'.
98505
98506 2000-10-21  Jim Meyering  <meyering@lucent.com>
98507
98508         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98509         (dir_name): Use dir_name_r.
98510         * lib/dirname.h (dir_name_r): Declare it.
98511
98512 2000-10-17  Jim Meyering  <meyering@lucent.com>
98513
98514         * lib/quote.h (PARAMS): Define and use.
98515         Reported by Akim Demaille.
98516
98517         * lib/getopt.c: Update from libc.
98518
98519 2000-10-16  Jim Meyering  <meyering@lucent.com>
98520
98521         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98522         setlocale.
98523         From Jan Fedak.
98524
98525 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98526
98527         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98528
98529 2000-09-25  Jim Meyering  <meyering@lucent.com>
98530
98531         * lib/md5.h (rol): Define (from GnuPG).
98532
98533         * lib/sha.c: Give credit (GnuPG) where due.
98534         (M): Use rol rather than open-coding it.
98535         Add a FIXME comment.
98536
98537 2000-09-21  Jim Meyering  <meyering@lucent.com>
98538
98539         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98540         Reported by Michael Stone.
98541
98542 2000-09-20  Jim Meyering  <meyering@lucent.com>
98543
98544         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98545         (noinst_HEADERS): Add sha.h.
98546         Based on code from Scott G. Miller and from GnuPG.
98547
98548 2000-09-18  Jim Meyering  <meyering@lucent.com>
98549
98550         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98551         LIBS. Otherwise, everyone ends up linking with -lelf for some
98552         configurations.
98553         Reported by Mike Stone.
98554
98555 2000-09-15  Jim Meyering  <meyering@lucent.com>
98556
98557         * lib/regex.c: Update from libc.
98558
98559 2000-09-10  Jim Meyering  <meyering@lucent.com>
98560
98561         * lib/getopt.c (_getopt_internal): Update from glibc.
98562
98563 2000-09-09  Jim Meyering  <meyering@lucent.com>
98564
98565         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98566         think it should be used as a general replacement for isascii.
98567         * lib/fnmatch.c: Likewise.
98568         * lib/mbswidth.c: Likewise
98569         * lib/regex.c: Likewise.
98570
98571         Don't use atoi.
98572         * lib/userspec.c: Include sys/param.h and limits.h.
98573         Include xstrtol.h.
98574         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98575         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98576         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98577         UID, GID.  Check range.
98578
98579 2000-09-06  Jim Meyering  <meyering@lucent.com>
98580
98581         * lib/getopt.c (_getopt_internal): Update from glibc.
98582
98583 2000-08-30  Jim Meyering  <meyering@lucent.com>
98584
98585         * lib/strftime.c: Merge in changes from GNU libc.
98586
98587 2000-08-26  Jim Meyering  <meyering@lucent.com>
98588
98589         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98590         * m4/fpending.m4: New file.
98591
98592 2000-08-26  Jim Meyering  <meyering@lucent.com>
98593
98594         * lib/closeout.c: Include "__fpending.h".
98595         (close_stdout_status): Return right away if there's nothing to flush.
98596
98597         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98598         * lib/__fpending.c: New file.
98599         * lib/__fpending.h: New file.
98600
98601 2000-08-20  Jim Meyering  <meyering@lucent.com>
98602
98603         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98604         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98605         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98606
98607 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98608
98609         Improve fileutils installation on systems where running
98610         programs (like install) can't be unlinked.
98611         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98612         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98613
98614 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98615
98616         Standardize on "memory exhausted" instead of "Memory exhausted"
98617         or "virtual memory exhausted".
98618         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98619         "virtual memory exhausted".
98620         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98621         our own message.
98622         * lib/userspec.c (parse_user_spec): Likewise.
98623         * lib/bumpalloc.h: comment fix
98624         * lib/same.c, userspec.c: Include xalloc.h.
98625
98626         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98627         not char *const and pointing to a constant array.
98628         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98629         (xrealloc): Comment fix.
98630
98631         * lib/userspec.c (parse_user_spec):
98632         Don't translate a message until just before returning,
98633         to avoid unnecessary translation.
98634
98635 2000-08-07  Jim Meyering  <meyering@lucent.com>
98636
98637         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98638         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98639         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98640         getgroups.c, gethostname.c, getopt.h, group-member.c,
98641         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98642         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98643         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98644         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98645         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98646         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98647         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98648         yesno.c: Back out Copyright date changes for each file with no change
98649         this year.  This eases coordination with other programs using the same
98650         source code modules.  From Paul Eggert.
98651
98652 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98653
98654         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98655         not char, for compatibility with glibc 2.1.3 strftime.c.
98656
98657 2000-08-03  Greg McGary  <greg@mcgary.org>
98658
98659         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98660         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98661         (EXTEND_BUFFER): Use them.
98662
98663 2000-08-01  Jim Meyering  <meyering@lucent.com>
98664
98665         * lib/dirname.c (ISSLASH): Define.
98666         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98667         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98668         both `\' and `/' may be use as path separators.
98669         Based on a patch from Prashant TR.
98670
98671 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98672
98673         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98674         slot vector a constant, since it might get modified.
98675
98676 2000-07-31  Jim Meyering  <meyering@lucent.com>
98677
98678         * lib/xmalloc.c: Use `virtual memory exhausted', not
98679         `Memory exhausted'.
98680         * lib/obstack.c (print_and_abort): Likewise.
98681
98682 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98683
98684         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98685         buffer, so that the caller can always quote one small
98686         component of a "memory exhausted" message in slot 0.
98687         From a suggestion by Jim Meyering.
98688
98689 2000-07-30  Jim Meyering  <meyering@lucent.com>
98690
98691         * lib/makepath.c (make_path): Quote the other instance, too.
98692
98693         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98694         (STATIC_BUF_SIZE): Define.
98695         (quotearg_n_options): Use only statically allocated storage when
98696         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98697         than STATIC_BUF_SIZE.
98698
98699 2000-07-29  Jim Meyering  <meyering@lucent.com>
98700
98701         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98702         * lib/dirname.c (dir_name): Likewise.
98703
98704         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98705         `/'.
98706
98707         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98708         (dir_name): Assert that there are no trailing slashes.
98709
98710 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98711
98712         * lib/mbswidth.h (mbswidth): Add a flags argument.
98713         (mbswidth): New declaration.
98714         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98715         * lib/mbswidth.c (mbswidth): Add a flags argument.
98716         (mbsnwidth): New function.
98717
98718 2000-07-24  Jim Meyering  <meyering@lucent.com>
98719
98720         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98721
98722 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98723
98724         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98725
98726 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98727
98728         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98729         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98730         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98731         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98732         invoke multibyte primitives.
98733
98734 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98735
98736         * lib/quotearg.c:
98737         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98738         so that mbstate_t is always defined.
98739
98740         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98741         be 1 in at least one GCC installation, and this configuration
98742         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98743         performance on hosts that have mbrtowc but have only unibyte
98744         locales, but I assume these hosts are rare.
98745
98746 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98747
98748         * lib/mbswidth.c (_XOPEN_SOURCE):
98749         Don't define; this causes problems on Solaris 7.
98750         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98751
98752 2000-07-23  Jim Meyering  <meyering@lucent.com>
98753
98754         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98755         too: getgrgid, getpwuid, getuid.
98756
98757 2000-07-23  Jim Meyering  <meyering@lucent.com>
98758
98759         * lib/basename.c (base_name): Add an assertion.
98760
98761 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98762
98763         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98764         shadow its mbsinit function.
98765
98766 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98767
98768         * lib/mbswidth.h: New file.
98769         * lib/mbswidth.c: New file.
98770         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98771         (noinst_HEADERS): Add mbswidth.h.
98772
98773 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98774
98775         * lib/config.charset: Add support for FreeBSD. Improve support for
98776         HP-UX and IRIX 6.
98777
98778 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98779
98780         * m4/mbswidth.m4: New file.
98781         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98782
98783 2000-07-15  Jim Meyering  <meyering@lucent.com>
98784
98785         * lib/makepath.c: Include quote.h.
98786         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98787         corresponding argument in a `quote (...)' call.
98788         Give better diagnostics.
98789
98790         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98791         (noinst_HEADERS): Add quote.h.
98792
98793         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98794         from tar's src/misc.c.
98795         * lib/quote.h: New file.  Prototypes for same.
98796
98797 2000-07-14  Paul Eggert  <eggert@twinsun.com>
98798
98799         From a suggestion by Bruno Haible.
98800         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
98801         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
98802         to decide whether to define the BeOS workaround macro;
98803         this adjusts to the change to AC_MBSTATE_T.
98804
98805 2000-07-14  Jim Meyering  <meyering@lucent.com>
98806
98807         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
98808         jm_AC_TYPE_UINTMAX_T.
98809
98810 2000-07-13  Paul Eggert  <eggert@twinsun.com>
98811
98812         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
98813
98814         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
98815         quotearg_buffer_restyled): Add support for
98816         clocale_quoting_style.  Undo previous change to
98817         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
98818         and "{RIGHT QUOTATION MARK}" msgids.
98819
98820 2000-07-10  Paul Eggert  <eggert@twinsun.com>
98821
98822         From a suggestion by Bruno Haible.
98823         * m4/mbstate_t.m4 (AC_MBSTATE_T):
98824         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
98825         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
98826         and mbstate_t, to a single-part test that simply defines mbstate_t.
98827         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
98828         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
98829
98830 2000-07-10  Jim Meyering  <meyering@lucent.com>
98831
98832         * m4/strerror_r.m4: Mirror the correction made in autoconf.
98833
98834         * m4/gnu-source.m4: Output to confdefs.h directly.
98835         Suggestion from Akim Demaille.
98836
98837 2000-07-09  Paul Eggert  <eggert@twinsun.com>
98838
98839         The old behavior of quoting `like this' doesn't look good with
98840         newer, ISO-style fonts.  See:
98841         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
98842
98843         Instead, quote "like this" by default.  Let the translator
98844         tailor the locale-specific quoting behavior by providing
98845         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98846
98847         * lib/quotearg.c (N_): New macro.
98848         (gettext_default): New function.
98849         (quotearg_buffer_restyled): Use
98850         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98851         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98852
98853 2000-07-09  Jim Meyering  <meyering@lucent.com>
98854
98855         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98856         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98857
98858         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98859         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98860
98861 2000-07-09  Jim Meyering  <meyering@lucent.com>
98862
98863         * lib/Most files: Update copyright dates to include 2000.
98864
98865 2000-07-08  Jim Meyering  <meyering@lucent.com>
98866
98867         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98868         if not defined.
98869         (xgethostname): Remove now-unnecessary #ifdef.
98870         Move declaration of `err' into loop where it's used.
98871
98872 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98873         and Bruno Haible  <haible@clisp.cons.org>
98874
98875         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98876         only if the test for an object-type mbstate_t fails.  This
98877         prevents us from mistakenly reporting that mbstate_t is a
98878         system object type after we "#define mbstate_t int" to work
98879         around its lack.
98880
98881 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98882         and Bruno Haible  <haible@clisp.cons.org>
98883
98884         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98885
98886 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98887
98888         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98889         to strerror_r.
98890         Include <ctype.h> for use of isalpha.
98891
98892 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98893
98894         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98895         by allocating a larger buffer. Test the gethostname return value for
98896         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98897         returns an error and ENAMETOOLONG isn't defined.
98898
98899 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98900
98901         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98902         dimension.
98903
98904 2000-07-04  Jim Meyering  <meyering@lucent.com>
98905
98906         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98907         of the deprecated AC_CHECKING.
98908
98909 2000-07-04  Jim Meyering  <meyering@lucent.com>
98910
98911         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98912         Reported by Bruno Haible.
98913
98914 2000-07-04  Jim Meyering  <meyering@lucent.com>
98915
98916         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98917         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98918         lacks mbrtowc.
98919
98920 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98921
98922         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98923         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98924
98925 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98926         and Bruno Haible  <haible@clisp.cons.org>
98927
98928         * lib/quotearg.c (mbrtowc):
98929         Assign to *pwc, and return 1 only if result is nonzero.
98930         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98931
98932 2000-07-03  Jim Meyering  <meyering@lucent.com>
98933
98934         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98935
98936 2000-07-03  Jim Meyering  <meyering@lucent.com>
98937
98938         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98939         This is necessary to get a definition of e.g., UTMP_FILE on
98940         HP-UX 10.20.
98941         From Bob Proulx.
98942
98943 2000-07-02  Jim Meyering  <meyering@lucent.com>
98944
98945         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98946
98947         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98948         AC_LIBOBJ(function_name).
98949         * m4/chown.m4: Likewise.
98950         * m4/fnmatch.m4: Likewise.
98951         * m4/ftruncate.m4: Likewise.
98952         * m4/getgroups.m4: Likewise.
98953         * m4/getline.m4: Likewise.
98954         * m4/group-member.m4: Likewise.
98955         * m4/jm-macros.m4: Likewise.
98956         * m4/lstat.m4: Likewise.
98957         * m4/malloc.m4: Likewise.
98958         * m4/memcmp.m4: Likewise.
98959         * m4/nanosleep.m4: Likewise.
98960         * m4/putenv.m4: Likewise.
98961         * m4/realloc.m4: Likewise.
98962         * m4/regex.m4: Likewise.
98963         * m4/stat.m4: Likewise.
98964         * m4/strftime.m4: Likewise.
98965
98966 2000-07-02  Jim Meyering  <meyering@lucent.com>
98967
98968         * lib/quotearg.c (mbstate_t): Don't define here.
98969
98970 2000-07-02  Jim Meyering  <meyering@lucent.com>
98971
98972         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98973
98974 2000-07-01  Jim Meyering  <meyering@lucent.com>
98975
98976         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98977
98978 2000-07-01  Jim Meyering  <meyering@lucent.com>
98979
98980         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98981         problem.
98982
98983 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98984
98985         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98986         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98987
98988 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98989
98990         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98991         per change in ../m4/ls-mntd-fs.m4.
98992         (read_filesystem_list): Ignore symbolic links.
98993
98994 2000-06-29  Jim Meyering  <meyering@lucent.com>
98995
98996         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98997         for declaration of strcmp.
98998
98999         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99000
99001         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99002         Avoid warning by casting result to `char *' to remove `const'.
99003
99004 2000-06-28  Jim Meyering  <meyering@lucent.com>
99005
99006         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99007         included by quotearg.c, for which we perform this test.  From
99008         Bruno Haible.
99009
99010 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99011
99012         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99013         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99014         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99015
99016 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99017
99018         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99019
99020 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99021
99022         savedir now sets errno on failure and invokes xmalloc to get memory.
99023         Fix a couple of other minor bugs while we're at it.
99024
99025         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99026         (NAMLEN): Remove macro.
99027         (malloc, realloc): Remove decls.
99028         (stpcpy): Likewise.
99029         ("xalloc.h"): Include.
99030         (NAME_SIZE_DEFAULT): New macro.
99031         (savedir): Use xmalloc / xrealloc to allocate memory.
99032         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99033         Skip "" directory entries.
99034         Use strlen to calculate directory entry length, since the old method
99035         is rarely used these days and isn't worth supporting.
99036         Don't use a pointer after freeing it.
99037         Check for integer overflow when calculating allocation size.
99038         Use memcpy to copy entries, instead of stpcpy.
99039         Set errno properly when returning NULL.
99040         Check for readdir error.
99041
99042 2000-06-26  Jim Meyering  <meyering@lucent.com>
99043
99044         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99045
99046 2000-06-25  Jim Meyering  <meyering@lucent.com>
99047
99048         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99049         Linux header bug when _XOPEN_SOURCE is defined to 500.
99050
99051 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99052
99053         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99054         deficiency.
99055
99056 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99057
99058         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99059         Include xalloc.h.
99060         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99061
99062 2000-06-24  Jim Meyering  <meyering@lucent.com>
99063
99064         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99065         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99066         for which strerror does return char*, but which lacks a conveniently
99067         accessible declaration of the function.  If the compile-test says
99068         strerror_r doesn't work, then resort to a `run'-test that works on
99069         BeOS and segfaults on DEC Unix.
99070
99071 2000-06-24  Jim Meyering  <meyering@lucent.com>
99072
99073         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99074
99075 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99076
99077         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99078         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99079
99080 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99081
99082         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99083         (mbrtowc, mbstate_t): Define substitutes if
99084         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99085         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99086         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99087
99088 2000-06-23  Jim Meyering  <meyering@lucent.com>
99089
99090         * m4/afs.m4: Add missing AC_MSG_RESULT.
99091         Reported by Bruno Haible.
99092
99093         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99094         Suggestion from Bruno Haible.
99095
99096 2000-06-23  Jim Meyering  <meyering@lucent.com>
99097
99098         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99099
99100 2000-06-21  Jim Meyering  <meyering@lucent.com>
99101
99102         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99103
99104 2000-06-21  Jim Meyering  <meyering@lucent.com>
99105
99106         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99107         (noinst_HEADERS): Add getstr.h.
99108
99109         * lib/getline.c (getstr): Move into a separate file.
99110         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99111         the following changes: new parameter, delim2; both delim[12]
99112         parameters have type `int', not `char'.  The latter would lose
99113         with 8-bit delimiters.
99114         * lib/getstr.h: New file.
99115
99116 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99117
99118         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99119         than 1024, return a memory chunk of least possible size, instead
99120         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99121         Use free/xmalloc instead of xrealloc to avoid copying for very long
99122         paths.
99123
99124 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99125
99126         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99127         the empty string.
99128
99129 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99130
99131         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99132         address, not strdup.  Include <stdlib.h> and don't declare free().
99133
99134 2000-06-19  Jim Meyering  <meyering@lucent.com>
99135
99136         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99137
99138 2000-06-18  Jim Meyering  <meyering@lucent.com>
99139
99140         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99141
99142         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99143         `checking whether...' message to be consistent with that of the
99144         lstat test.
99145
99146 2000-06-18  Jim Meyering  <meyering@lucent.com>
99147
99148         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99149         Besides, these days every porting target provides a mkdir function.
99150
99151         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99152         needed. (this snippet comes from src/system.h).
99153
99154 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99155
99156         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99157
99158 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99159
99160         * lib/human.c (adjust_value): New function.
99161         (human_readable_inexact): Apply rounding style even when
99162         printing approximate values.
99163
99164 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99165
99166         * lib/human.c (human_readable_inexact): Allow an input block
99167         size that is not a multiple of the output block size, and vice versa.
99168         Reported by Piergiorgio Sartor.
99169
99170 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99171
99172         * lib/getdate.y (get_date): Apply relative times after time
99173         zone indicator, not before.  Reported by Todd A. Jacobs.
99174
99175 2000-06-13  Jim Meyering  <meyering@lucent.com>
99176
99177         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99178
99179         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99180
99181 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99182
99183         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99184
99185 2000-06-12  Jim Meyering  <meyering@lucent.com>
99186
99187         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99188         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99189         optional argument.
99190         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99191         the optional argument, `lib'.
99192
99193 2000-06-08  Jim Meyering  <meyering@lucent.com>
99194
99195         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99196
99197 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99198
99199         Rewrite largefile configuration so that we don't need to run
99200         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99201         AC_CANONICAL_HOST in configure.in -- jmm]
99202
99203         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99204         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99205         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99206         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99207         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99208         All uses changed.
99209         Instead of inspecting the output of getconf, try to compile the
99210         test program without and with the macro definition.
99211         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99212         for getconf.  Instead, check for the needed flags by compiling
99213         test programs.
99214
99215 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99216
99217         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99218
99219 2000-06-04  Jim Meyering  <meyering@lucent.com>
99220
99221         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99222         SunOS 4.1.4 for which gid_t is an unsigned type.
99223
99224 2000-06-03  Jim Meyering  <meyering@lucent.com>
99225
99226         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99227         now that autoconf requires that.
99228
99229         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99230         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99231         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99232
99233 2000-06-03  Jim Meyering  <meyering@lucent.com>
99234
99235         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99236
99237 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99238
99239         * m4/glibc21.m4: New file.
99240         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99241
99242 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99243
99244         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99245         newer, don't install charset.alias.
99246         * lib/config.charset: Change the Linux/glibc rules so they become empty
99247         on glibc-2.1 or newer.
99248
99249 2000-06-02  Jim Meyering  <meyering@lucent.com>
99250
99251         * lib/mountlist.c: Back out last change.  Instead, do this...
99252         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99253         me_dummy member using the same `ignore'-testing code.
99254         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99255         fs_type strings.
99256         From Mark D. Roth.
99257
99258 2000-05-29  Jim Meyering  <meyering@lucent.com>
99259
99260         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99261         mounts with the `ignore' attribute.  Based on a patch from
99262         Mark D. Roth.
99263
99264 2000-05-28  Jim Meyering  <meyering@lucent.com>
99265
99266         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99267         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99268         * m4/stat.m4: Likewise.
99269         * m4/lstat.m4: Likewise.
99270         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99271
99272         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99273         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99274
99275 2000-05-26  Jim Meyering  <meyering@lucent.com>
99276
99277         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99278
99279 2000-05-24  Jim Meyering  <meyering@lucent.com>
99280
99281         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99282         autoconf requires that.
99283         * m4/lib-check.m4: Likewise.
99284         * m4/jm-macros.m4: Likewise.
99285         * m4/strftime.m4: Likewise.
99286
99287         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99288         AC_CHECK_DECLS, now that autoconf requires that.
99289
99290 2000-05-22  Jim Meyering  <meyering@lucent.com>
99291
99292         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99293         * m4/lstat.m4: Likewise.
99294
99295 2000-05-22  Jim Meyering  <meyering@lucent.com>
99296
99297         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99298
99299 2000-05-20  Jim Meyering  <meyering@lucent.com>
99300
99301         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99302         (jm_PREREQ): Use it.
99303
99304 2000-05-18  Jim Meyering  <meyering@lucent.com>
99305
99306         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99307         back, too, since it may have been modified by allocate_entry.
99308         (hash_delete): Rewrite to use neither the assignment operator
99309         nor the comma operator in an if-expression.
99310
99311 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99312
99313         * lib/closeout.c:
99314         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99315         Remove; no longer needed.
99316         "quotearg.h": Add include.
99317         (file_name): Do not bother to explicitly initialize to NULL; it's less
99318         efficient on some hosts.
99319         (close_stdout_status): Remove test as to whether stdout was already
99320         closed; it breaks for the case "echo x | sort >&-".
99321         Quote file name colons.
99322         Do not assume that _("write error") lacks format strings.
99323
99324 2000-05-15  Jim Meyering  <meyering@lucent.com>
99325
99326         * lib/version-etc.c (version_etc_copyright): Update the copyright
99327         string used in all --version output.
99328
99329 2000-05-14  Jim Meyering  <meyering@lucent.com>
99330
99331         * lib/closeout.c (close_stdout_set_file_name): New function.
99332         (close_stdout_status): Use new file-scoped global.
99333         Return right away if fstat says the stdout file descriptor is invalid.
99334         * lib/closeout.h (close_stdout_set_file_name): Declare.
99335
99336 2000-05-10  Jim Meyering  <meyering@lucent.com>
99337
99338         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99339         (close_stdout_set_status): New function.
99340         * lib/closeout.h (close_stdout_set_status): Declare.
99341
99342 2000-05-09  Jim Meyering  <meyering@lucent.com>
99343
99344         * m4/gettext.m4: Rename this...
99345         * m4/libintl.m4: ...to this.
99346
99347 2000-05-08  Jim Meyering  <meyering@lucent.com>
99348
99349         * lib/long-options.c: Don't include closeout.h.
99350         (parse_long_options): Don't call close_stdout for --version.
99351
99352 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99353
99354         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99355         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99356         2.1.3 bug.  This avoids a clash when files like regex.c define
99357         _GNU_SOURCE.
99358
99359 2000-05-06  Jim Meyering  <meyering@lucent.com>
99360
99361         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99362         (AC_REPLACE_FUNCS): Add strnlen.
99363
99364         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99365         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99366
99367         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99368         AC_SEARCH_LIBS call for nanosleep.
99369         (LIB_NANOSLEEP): Set and AC_SUBST.
99370
99371 2000-05-06  Jim Meyering  <meyering@lucent.com>
99372
99373         * lib/strnlen.c: Undefine __strnlen and strnlen.
99374         [!weak_alias]: Define __strnlen to strnlen.
99375
99376         * lib/atexit.c: New file, from libiberty.
99377
99378 2000-05-06  Jim Meyering  <meyering@lucent.com>
99379
99380         * lib/closeout.c (close_stdout_status): Also check for errors on the
99381         stderr stream.
99382
99383 2000-05-05  Jim Meyering  <meyering@lucent.com>
99384
99385         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99386         AC_SEARCH_LIBS call for clock_gettime.
99387         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99388
99389         * m4/search-libs.m4: Update from autoconf.
99390
99391         su doesn't work on Solaris 2.6.
99392         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99393         <shadow.h>.  Reported by Dragos Harabor.
99394
99395 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99396
99397         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99398         memcpy instead of xmalloc, xrealloc, path_concat.
99399         (locale_charset): Treat empty environment variables as absent.
99400         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99401
99402 2000-05-04  Jim Meyering  <meyering@lucent.com>
99403
99404         * lib/getopt.c: Update from glibc.
99405         * lib/obstack.c: Likewise.
99406         * lib/obstack.h: Likewise.
99407         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99408         file
99409
99410         * lib/regex.h: Likewise.
99411         * lib/strndup.c: Likewise.
99412         * lib/strnlen.c: New file, from glibc.
99413
99414 2000-05-03  Jim Meyering  <meyering@lucent.com>
99415
99416         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99417
99418 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99419
99420         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99421         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99422         compile-time test, rather than inspecting host and OS, to
99423         decide whether to define _LARGEFILE_SOURCE.
99424
99425 2000-05-01  Jim Meyering  <meyering@lucent.com>
99426
99427         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99428
99429         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99430         Based on a patch from Bruno Haible.
99431
99432 2000-05-01  Jim Meyering  <meyering@lucent.com>
99433
99434         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99435
99436 2000-04-29  Jim Meyering  <meyering@lucent.com>
99437
99438         * lib/path-concat.c: Declare strdup only if it's not defined.
99439         * lib/canon-host.c: Likewise.
99440
99441 2000-04-28  Jim Meyering  <meyering@lucent.com>
99442
99443         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99444         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99445         is included first, then limits.h is included by locale.h by libintl.h.
99446         From John David Anglin.
99447
99448 2000-04-25  Jim Meyering  <meyering@lucent.com>
99449
99450         * lib/makepath.c (S_IRWXUGO): Define.
99451         (make_path): Always perform explicit chmod if MODE specifies any
99452         of the `special' permission bits.  Prompted by a bug report against
99453         install from Mate Wierdl and Joost van Baal.
99454
99455 2000-04-18  Jim Meyering  <meyering@lucent.com>
99456
99457         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99458         (jm_PREREQ): Use it.
99459
99460 2000-04-18  Jim Meyering  <meyering@lucent.com>
99461
99462         * lib/README: New file.
99463
99464         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99465         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99466
99467 2000-04-17  Jim Meyering  <meyering@lucent.com>
99468
99469         Get it right :-)
99470         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99471         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99472         Suggestion from Akim Demaille.
99473
99474 2000-04-17  Jim Meyering  <meyering@lucent.com>
99475
99476         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99477         the definition of it to rpl_strftime also defined-away the system's
99478         declaration.
99479
99480 2000-04-15  Jim Meyering  <meyering@lucent.com>
99481
99482         Use `C' to denote so-called `contiguous' files, the same way
99483         that tar does.
99484         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99485         (ftypelet): Use S_ISCTG.
99486         From Michael Deutschmann.
99487
99488 2000-04-14  Jim Meyering  <meyering@lucent.com>
99489
99490         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99491         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99492         clobbered.
99493
99494 2000-04-14  Jim Meyering  <meyering@lucent.com>
99495
99496         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99497
99498 2000-04-13  Jim Meyering  <meyering@lucent.com>
99499
99500         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99501         AH_VERBATIM to insert required #ifndef into config.h.in.
99502         Suggestion from Akim Demaille.
99503
99504 2000-04-12  Jim Meyering  <meyering@lucent.com>
99505
99506         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99507         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99508         Christian Krackowizer.
99509
99510         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99511         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99512         (AC_SYS_LARGEFILE): Require.
99513         (AM_C_PROTOTYPES): Require.
99514
99515 2000-04-08  Jim Meyering  <meyering@lucent.com>
99516
99517         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99518         names don't conflict.  Reported by Eli Zaretskii.
99519
99520 2000-04-07  Jim Meyering  <meyering@lucent.com>
99521
99522         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99523         sys/types.h, to work around system header problems on AIX 3.2.5.
99524         From Bruno Haible.
99525
99526 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99527
99528         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99529         bug.  Deal with the different error behavior of Irix iconv.
99530
99531 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99532
99533         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99534         IRIX if the installer said otherwise.
99535
99536 2000-04-05  Jim Meyering  <meyering@lucent.com>
99537
99538         Portability tweaks required for ultrix4.3.
99539         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99540         (jm_CHECK_DECLS): Add getutent to the list of functions.
99541         (_jm_DECL_HEADERS): Add utmpx.h.
99542         From John David Anglin.
99543
99544         * m4/strftime.m4: Back out the 2000-04-02 change.
99545         Instead of that change, simply undefine putenv in the test program.
99546
99547 2000-04-05  Jim Meyering  <meyering@lucent.com>
99548
99549         Portability tweaks required for ultrix4.3.
99550         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99551         getutent.
99552         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99553         * lib/canon-host.c: Declare strdup.
99554         * lib/path-concat.c: Likewise.
99555         From John David Anglin.
99556
99557 2000-04-04  Jim Meyering  <meyering@lucent.com>
99558
99559         Be more DOS 8.3-friendly.
99560         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99561         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99562         * lib/Makefile.am: Reflect renaming.
99563         Reported by Eli Zaretskii.
99564
99565         Use a temporary file name that won't clash with `charset.alias'
99566         in the DOS 8.3 name space.
99567         * lib/Makefile.am (charset_tmp): Define.
99568         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99569         (uninstall-local): Likewise.
99570         Reported by Eli Zaretskii.
99571
99572 2000-04-03  Jim Meyering  <meyering@lucent.com>
99573
99574         * m4/gettext.m4: Fix typo in comment.
99575
99576         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99577         textutils/configure.in).  Suggestion from Paul Eggert.
99578         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99579
99580 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99581
99582         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99583         variable in the shell rather than using putenv, which isn't
99584         portable.  This avoids the configure-time inter-test dependency
99585         on the potentially-renamed putenv function.
99586
99587 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99588
99589         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99590         before checking struct stat.st_blksize, so that
99591         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99592
99593 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99594
99595         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99596         since strftime.c uses HAVE_STRFTIME to decide whether to use
99597         the underlying strftime.
99598
99599 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99600
99601         * lib/time/strftime.c (my_strftime): Make sure we call the system
99602         strftime, not ourselves, when invoking the underlying strftime.
99603
99604 2000-03-24  Jim Meyering  <meyering@lucent.com>
99605
99606         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99607         (charset_alias): Define.
99608         (install-exec-local): Factor out common code.
99609         (uninstall-local): Split lines longer than 80.
99610         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99611         (SUFFIXES): Define.
99612         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99613         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99614
99615 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99616
99617         * lib/config.charset: Output a line containing "Packages using this
99618         file".
99619         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99620         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99621         ref-del.sed): New rules.
99622
99623 2000-03-17  Jim Meyering  <meyering@lucent.com>
99624
99625         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99626         Otherwise, include <strings.h>
99627
99628 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99629
99630         * lib/unicodeio.c (utf8_wctomb): New function.
99631         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99632         format instead of in UCS-4 with platform dependent endianness.
99633
99634 2000-03-10  Jim Meyering  <meyering@lucent.com>
99635
99636         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99637         From Marco Franzen.
99638
99639 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99640
99641         * lib/savedir.c (savedir): Work even if directory size is
99642         negative; this can happen with some screwy NFS configurations.
99643
99644 2000-03-06  Jim Meyering  <meyering@lucent.com>
99645
99646         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99647         if it's NULL (because we ran out of memory).  From Bruno Haible.
99648
99649 2000-03-05  Jim Meyering  <meyering@lucent.com>
99650
99651         * lib/localcharset.c ("path-concat.h"): Include.
99652         (get_charset_aliases): Use path_concat instead of ANSI string
99653         concatenation.
99654
99655         * lib/unicodeio.h (PARAMS): Define.
99656         Use it to guard prototype.
99657
99658 2000-03-04  Jim Meyering  <meyering@lucent.com>
99659
99660         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99661         for lib/localcharset.c.
99662
99663 2000-03-04  Jim Meyering  <meyering@lucent.com>
99664
99665         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99666         installing into it.
99667         (uninstall-local): Uncomment this rule so `make distcheck' works
99668         once again.
99669
99670         * lib/unicodeio.c (<errno.h>): Include it.
99671         (errno): Declare if not defined.
99672
99673         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99674
99675         * lib/config.charset: New version, incorporating remarks from a linux
99676         i18n mailing list.  From Bruno Haible.
99677
99678 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99679
99680         * m4/codeset.m4: New file.
99681         * m4/iconv.m4: New file.
99682         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99683
99684 2000-03-03  Jim Meyering  <meyering@lucent.com>
99685
99686         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99687
99688 2000-03-02  Jim Meyering  <meyering@lucent.com>
99689
99690         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99691         the messages come out on separate lines.
99692
99693         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99694         rather than jm_CHECK_DECLARATIONS.
99695         * m4/decl.m4: Remove now-unused file.
99696
99697         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99698         geteuid.
99699
99700 2000-03-02  Jim Meyering  <meyering@lucent.com>
99701
99702         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99703
99704 2000-03-01  Jim Meyering  <meyering@lucent.com>
99705
99706         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99707         * lib/unicodeio.c: Likewise.
99708
99709 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99710
99711         * lib/config.charset: New file.
99712         * lib/localcharset.c: New file.
99713         * lib/unicodeio.h, lib/unicodeio.c: New files.
99714         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99715         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99716         (noinst_HEADERS): Add unicodeio.h.
99717         (all-local, install-exec-local, charset.alias): New targets.
99718
99719 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99720
99721         * lib/quotearg.c (ALERT_CHAR): New macro.
99722         (quotearg_buffer_restyled): Use it.
99723
99724 2000-02-27  Jim Meyering  <meyering@lucent.com>
99725
99726         * m4/check-decl.m4: Add getenv to the list.
99727
99728 2000-02-27  Jim Meyering  <meyering@lucent.com>
99729
99730         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99731         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99732
99733         * lib/backupfile.c: Guard inclusion of stdlib.h with
99734         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99735         Declare malloc if needed.
99736
99737         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99738         `#ifndef HAVE_DECL..'
99739         now that autoconf always defines the HAVE_DECL_ symbols.
99740         * lib/human.c: Likewise.
99741         * lib/same.c: Likewise.
99742         * lib/strtoumax.c: Likewise.
99743
99744         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99745         declaration check was not run.
99746         * lib/hash.c: Likewise.
99747         * lib/human.c: Likewise.
99748         * lib/same.c: Likewise.
99749         * lib/strtoumax.c: Likewise.
99750
99751         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99752         `.', then first look up the entire `.'-containing string as a login
99753         name.
99754
99755 2000-02-23  Jim Meyering  <meyering@lucent.com>
99756
99757         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99758         in place of my hack.
99759
99760 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99761
99762         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99763         (textint): New typedef.
99764         (parser_control): Member year changed from int to textint.
99765         All uses changed.
99766         (YYSTYPE): Removed; replaced by %union with int and textint members.
99767         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99768         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99769         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99770         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99771         (date, number, to_year): Use width of number in digits, not its value,
99772         to determine whether it's a 2-digit year, or a 2-digit time.
99773         (yylex): Store number of digits of numeric tokens.
99774         Reported by John Kendall.
99775
99776         (parser_control): Changed from struct parser_control to typedef (for
99777         consistency).  All uses changed.
99778
99779         (tID): Removed; not used.
99780         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99781
99782 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99783
99784         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99785         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99786
99787 2000-02-12  Jim Meyering  <meyering@lucent.com>
99788
99789         * lib/userspec.c (ISDIGIT): Define it.
99790         (isdigit): Remove definition.
99791         (is_number): Use ISDIGIT, not isdigit.
99792         <libintl.h>: Include.
99793         (_ and N_): Define.
99794         (parse_user_spec): Mark translatable strings.
99795
99796 2000-02-10  Jim Meyering  <meyering@lucent.com>
99797
99798         With these changes, nanosleep.[ch] are finally enough like the other
99799         lib/* replacement files to compile on a few more losing systems.
99800
99801         * lib/nanosleep.h: Don't include config.h.
99802         Remove prototype from declaration of nanosleep.
99803         (PARAMS): Remove now-unneeded definition.
99804         * lib/nanosleep.c: #undef nanosleep.
99805         (rpl_nanosleep): Rename from nanosleep.
99806
99807 2000-02-10  Jim Meyering  <meyering@lucent.com>
99808
99809         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
99810         gnu_nanosleep to rpl_nanosleep.
99811
99812 2000-02-09  Jim Meyering  <meyering@lucent.com>
99813
99814         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
99815         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
99816
99817 2000-02-08  Akim Demaille  <akim@epita.fr>
99818
99819         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
99820         `[' and `]' and remove uses of `changequote'.
99821         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
99822         (AC_SYS_LARGEFILE): Likewise.
99823         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
99824         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
99825         of changequote.
99826         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
99827         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
99828         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
99829         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
99830
99831 2000-02-05  Jim Meyering  <meyering@lucent.com>
99832
99833         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
99834         Remove explicit use of AC_HEADER_TIME.  It is required by
99835         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
99836         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
99837         in autoconf whereby the expansion of the latter ended up preceding
99838         the expansion of its prerequisite, AC_HEADER_TIME.
99839         Reported by Volker Borchert.
99840
99841 2000-02-03  Jim Meyering  <meyering@lucent.com>
99842
99843         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99844
99845 2000-02-03  Jim Meyering  <meyering@lucent.com>
99846
99847         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99848         rather than with `#if HAVE_UTMPNAME'.
99849
99850 2000-02-02  Jim Meyering  <meyering@lucent.com>
99851
99852         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99853         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99854         Reported by Eli Zaretskii.
99855
99856 2000-02-01  Jim Meyering  <meyering@lucent.com>
99857
99858         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99859
99860 2000-01-31  Jim Meyering  <meyering@lucent.com>
99861
99862         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99863         functions.  Add the time.h and sys/time.h headers along with the
99864         AC_REQUIRE'ment of AC_HEADER_TIME.
99865
99866 2000-01-31  Jim Meyering  <meyering@lucent.com>
99867
99868         * lib/nanosleep.h (nanosleep): Guard declaration with
99869         `#if ! HAVE_DECL_NANOSLEEP'.
99870         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99871         the declaration in that vendor's sys/timers.h.
99872         Reported by Christian Krackowizer.
99873
99874         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99875         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99876         (ISPRINT): Likewise.
99877         Reported by Tom Tromey.
99878
99879 2000-01-30  Jim Meyering  <meyering@lucent.com>
99880
99881         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99882
99883         * m4/prereq.m4 (utmp_includes): Define.
99884         Check for ut_user and ut_name members in both struct utmpx
99885         and struct utmp.
99886
99887 2000-01-30  Jim Meyering  <meyering@lucent.com>
99888
99889         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99890         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99891         header files where only utmpx.ut_user is declared.
99892
99893         * lib/readutmp.h (UT_USER): Define.
99894
99895 2000-01-29  Jim Meyering  <meyering@lucent.com>
99896
99897         * m4/lib-check.m4: New file containing library-related checks from
99898         fileutils and sh-utils (textutils had none).
99899
99900 2000-01-28  Jim Meyering  <meyering@lucent.com>
99901
99902         * m4/perl.m4: Change format of warning message to look more like that
99903         from the missing script.  Suggestion from François Pinard.
99904
99905 2000-01-25  Jim Meyering  <meyering@lucent.com>
99906
99907         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99908         well as time.h in the compile check.
99909         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99910         Fix typo in cross-compiling case: s/yes/no/.
99911
99912 2000-01-23  Jim Meyering  <meyering@lucent.com>
99913
99914         * m4/jm-macros.m4: Move df-related tests here from
99915         fileutils/configure.in
99916
99917         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99918         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99919
99920         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99921         s/space/ac_fsusage_space/.
99922         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99923
99924         * m4/ftruncate.m4: New file (derived from part of
99925         fileutils/configure.in).
99926         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99927         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99928
99929         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99930         AC_SUBST these here, rather than just in sh-util/configure.in, so
99931         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99932         all the same.
99933         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99934         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99935         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99936         (AC_SUBST(POW_LIBM)): Likewise.
99937         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99938
99939 2000-01-23  Jim Meyering  <meyering@lucent.com>
99940
99941         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99942         obstack.c.
99943
99944 2000-01-22  Jim Meyering  <meyering@lucent.com>
99945
99946         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99947
99948         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99949
99950         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99951         configure.in
99952         (AC_CHECK_HEADERS): Likewise for sh-utils.
99953         (AC_CHECK_HEADERS): Likewise for textutils.
99954         Merge the three lists of headers.
99955
99956         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99957         from fileutils' configure.in.
99958
99959         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99960         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99961         check-decl.m4.
99962
99963         * m4/check-decl.m4: Use #if rather than #ifdef.
99964         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99965         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99966         (_jm_DECL_HEADERS): Define new function.
99967         (jm_CHECK_DECLARATIONS): Require it.
99968
99969 2000-01-22  Jim Meyering  <meyering@lucent.com>
99970
99971         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99972         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99973         Required for some AIX systems.  Reported by Christian Krackowizer.
99974         [TESTING] (main): New function.
99975
99976         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99977         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99978         letters.
99979
99980         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99981         iswprint.
99982
99983         * lib/strverscmp.c (ISDIGIT): Define.
99984         (strverscmp): Use ISDIGIT, not isdigit.
99985
99986 2000-01-19  Jim Meyering  <meyering@lucent.com>
99987
99988         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99989         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99990         defines `struct timespec' in <sys/time.h>
99991
99992         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99993         Thanks to Akim for explaining.
99994
99995 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99996
99997         * lib/nanosleep.c (nanosleep):
99998         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99999         POSIX.1 doesn't require SA_INTERRUPT and some systems
100000         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100001         it's been part of POSIX.1 since day 1 (in 1988).
100002
100003 2000-01-17  Jim Meyering  <meyering@lucent.com>
100004
100005         * lib/interlock: Remove unused file.  Reported by François Pinard.
100006
100007 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100008
100009         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100010         alert, backslash, formfeed, and vertical tab unnecessarily in
100011         shell quoting style.
100012
100013 2000-01-16  Jim Meyering  <meyering@lucent.com>
100014
100015         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100016         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100017         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100018         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100019
100020 2000-01-16  Jim Meyering  <meyering@lucent.com>
100021
100022         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100023         because the latter didn't work.
100024
100025 2000-01-15  Jim Meyering  <meyering@lucent.com>
100026
100027         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100028         (AC_REPLACE_FUNCS): Add memcpy and memset.
100029         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100030         Add strpbrk.
100031         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100032
100033 2000-01-12  Jim Meyering  <meyering@lucent.com>
100034
100035         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100036         (jm_PREREQ): Use it.
100037         (jm_PREREQ_READUTMP): New macro.
100038         (jm_PREREQ): Use it.
100039
100040 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100041
100042         Quote multibyte characters correctly.
100043         * m4/c-bs-a.m4: New file.
100044         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100045         (jm_PREREQ): Use it.
100046
100047 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100048
100049         * m4/uintmax_t.m4: Port to autoconf 2.13.
100050
100051 2000-01-08  Jim Meyering  <meyering@ascend.com>
100052
100053         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100054         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100055
100056 2000-01-04  Jim Meyering  <meyering@ascend.com>
100057
100058         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100059         jm_STRUCT_DIRENT_D_TYPE.
100060         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100061         jm_STRUCT_DIRENT_D_INO.
100062         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100063         jm_STRUCT_UTIMBUF.
100064         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100065         renamings.
100066         * m4/utime.m4: Likewise.
100067
100068         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100069         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100070
100071 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100072
100073         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100074         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100075
100076 2000-01-02  Jim Meyering  <meyering@ascend.com>
100077
100078         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100079         remember if this is necessary.
100080
100081 1999-12-26  Jim Meyering  <meyering@ascend.com>
100082
100083         * m4/jm-macros.m4: Use it here.
100084         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100085
100086 1999-12-23  Jim Meyering  <meyering@ascend.com>
100087
100088         * m4/jm-macros.m4: Check for clock_gettime (moved from
100089         fileutils/configure.in)
100090         Check for gettimeofday.
100091
100092 1999-12-20  Jim Meyering  <meyering@ascend.com>
100093
100094         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100095         autoconf-2.14a-1999-12-20.
100096
100097 1999-12-19  Jim Meyering  <meyering@ascend.com>
100098
100099         * m4/lstat-slash.m4: New file.
100100         * m4/jm-macros.m4: Use the new macro:
100101         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100102
100103 1999-12-07  Jim Meyering  <meyering@ascend.com>
100104
100105         * m4/perl.m4: Require that File::Compare be available, too.
100106         Too many systems seem to lack it.
100107
100108         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100109         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100110
100111 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100112
100113         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100114         problem with the QNX 4.25 shell, which doesn't propagate exit
100115         status of failed commands inside shell assignments.
100116
100117 1999-11-17  Jim Meyering  <meyering@ascend.com>
100118
100119         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100120
100121 1999-11-07  Jim Meyering  <meyering@ascend.com>
100122
100123         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100124
100125 1999-11-06  Jim Meyering  <meyering@ascend.com>
100126
100127         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100128         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100129
100130 1999-11-05  Jim Meyering  <meyering@ascend.com>
100131
100132         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100133         configure.in of textutils, fileutils, and sh-utils into this one
100134         (shared between those packages) file.
100135         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100136         AC_STRUCT_ST_BLKSIZE.
100137
100138 1999-11-03  Jim Meyering  <meyering@ascend.com>
100139
100140         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100141         of AC_CHECK_TYPE checks includes unistd.h.
100142         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100143         Suggestion from Akim Demaille.
100144
100145 1999-10-30  Jim Meyering  <meyering@ascend.com>
100146
100147         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100148         m4-quoted string.
100149         * m4/ls-mntd-fs.m4: Likewise.
100150         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100151         * m4/jm-winsz1.m4: Likewise.
100152
100153         * m4/const.m4: Remove file, since the fix made it into the experimental
100154         version of autoconf.
100155         * m4/mktime.m4: Likewise.
100156
100157         * m4/check-type.m4: Remove file, now that the latest version of
100158         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100159
100160         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100161         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100162         AC_CHECK_TYPE.
100163
100164 1999-10-04  Jim Meyering  <meyering@ascend.com>
100165
100166         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100167
100168 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100169
100170         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100171         2.95.1 bug with HP-UX 10.20.
100172
100173 1999-09-17  Jim Meyering  <meyering@ascend.com>
100174
100175         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100176         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100177         due to missing strdup (against sh-utils-2.0).
100178
100179 1999-08-29  Jim Meyering  <meyering@ascend.com>
100180
100181         * m4/jm-macros.m4: Require jm_BISON.
100182         * m4/bison.m4: New file.
100183
100184 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100185
100186         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100187         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100188
100189 1999-08-05  Jim Meyering  <meyering@ascend.com>
100190
100191         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100192         to avoid conflicts with `conftest' on 8+3 filesystems.
100193         Suggestion from Eli Zaretskii.
100194
100195 1999-08-04  Jim Meyering  <meyering@ascend.com>
100196
100197         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100198         fileutils and sh-utils (textutils's getline test was inadequate).
100199         (AM_FUNC_GETLINE): Run this test.
100200         (AC_CHECK_FUNCS): Check for getdelim.
100201         Reported by Bob Proulx.
100202
100203 1999-08-02  Jim Meyering  <meyering@ascend.com>
100204
100205         * m4/jm-macros.m4: Add a comment.
100206
100207 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100208
100209         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100210         <inttypes.h> defines strtoumax as a macro (and not as a
100211         function).
100212
100213 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100214
100215         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100216         that we can shift, multiply and divide unsigned long long
100217         values; Ultrix cc can't do it.
100218
100219 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100220
100221         * m4/mktime.m4: New file, which is a preview of what should appear
100222         in the next public autoconf release.
100223
100224 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100225
100226         * m4/lfs.m4: Remove this file.
100227         * m4/largefile.m4: New file.  It contains the old contents of
100228         lfs.m4, except that all names with prefix AC_LFS have been
100229         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100230         compatible with future autoconf versions.  Also, some minor m4
100231         quoting problems have been fixed.
100232
100233 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100234
100235         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100236         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100237         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100238         and simplify the shell code.
100239
100240 1999-08-01  Jim Meyering  <meyering@ascend.com>
100241
100242         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100243         m4.
100244
100245 1999-07-20  Jim Meyering  <meyering@ascend.com>
100246
100247         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100248
100249 1999-07-15  Jim Meyering  <meyering@ascend.com>
100250
100251         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100252
100253 1999-05-22  Jim Meyering  <meyering@ascend.com>
100254
100255         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100256
100257 1999-05-20  Jim Meyering  <meyering@ascend.com>
100258
100259         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100260         Add a colon after each `then' in case $4 is empty.
100261
100262 1999-05-16  Jim Meyering  <meyering@ascend.com>
100263
100264         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100265
100266 1999-05-10  Jim Meyering  <meyering@ascend.com>
100267
100268         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100269
100270         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100271         AC_FUNC_MKTIME.
100272
100273 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100274
100275         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100276
100277 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100278
100279         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100280         not CPPFLAGS, so that linking works correctly in IRIX.
100281
100282 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100283
100284         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100285
100286 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100287
100288         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100289         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100290         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100291         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100292         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100293
100294         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100295
100296 1999-04-20  Jim Meyering  <meyering@ascend.com>
100297
100298         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100299         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100300         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100301
100302 1999-04-18  Jim Meyering  <meyering@ascend.com>
100303
100304         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100305         * m4/jm-macros.m4: Use it.
100306
100307 1999-04-06  Jim Meyering  <meyering@ascend.com>
100308
100309         * m4/strftime.m4: Remove test for %f.
100310
100311 1999-03-29  Jim Meyering  <meyering@ascend.com>
100312
100313         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100314         superset of the AC_TYPE_* checks in the textutils, fileutils,
100315         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100316         AC_TYPE_PID_T.
100317
100318 1999-03-28  Jim Meyering  <meyering@ascend.com>
100319
100320         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100321         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100322         replaced e.g., in the *.sh files of the sh-utils.
100323
100324 1999-03-20  Jim Meyering  <meyering@ascend.com>
100325
100326         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100327         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100328         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100329
100330 1999-03-19  Jim Meyering  <meyering@ascend.com>
100331
100332         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100333
100334 1999-03-12  Jim Meyering  <meyering@ascend.com>
100335
100336         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100337
100338 1999-03-07  Jim Meyering  <meyering@ascend.com>
100339
100340         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100341         declared.
100342
100343 1999-02-17  Jim Meyering  <meyering@ascend.com>
100344
100345         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100346         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100347
100348 1999-02-07  Jim Meyering  <meyering@ascend.com>
100349
100350         * m4/group-member.m4: New file -- extracted from sh-utils'
100351         configure.in.
100352
100353         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100354         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100355
100356 1999-02-06  Jim Meyering  <meyering@ascend.com>
100357
100358         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100359         * m4/fnmatch.m4: Likewise.
100360         * m4/getgroups.m4: Likewise.
100361         * m4/lstat.m4: Likewise.
100362         * m4/malloc.m4: Likewise.
100363         * m4/putenv.m4: Likewise.
100364         * m4/realloc.m4: Likewise.
100365         * m4/regex.m4: Likewise.
100366         * m4/stat.m4: Likewise.
100367         * m4/strftime.m4: Likewise.
100368         Suggestion from Alain Magloire.
100369
100370         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100371         * m4/fnmatch.m4: Likewise.
100372         * m4/getgroups.m4: Likewise.
100373         * m4/getline.m4: Likewise.
100374         * m4/lstat.m4: Likewise.
100375         * m4/malloc.m4: Likewise.
100376         * m4/memcmp.m4: Likewise.
100377         * m4/putenv.m4: Likewise.
100378         * m4/realloc.m4: Likewise.
100379         * m4/regex.m4: Likewise.
100380         * m4/stat.m4: Likewise.
100381         * m4/strftime.m4: Likewise.
100382         Suggestion from Alain Magloire.
100383
100384         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100385         an argument.
100386
100387         * m4/regex.m4: Add a run-time Test for proper operation of
100388         re_compile_pattern.
100389
100390 1999-01-31  Jim Meyering  <meyering@ascend.com>
100391
100392         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100393
100394 1999-01-30  Jim Meyering  <meyering@ascend.com>
100395
100396         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100397
100398         * m4/jm-mktime.m4: Make this a wrapper around the official
100399         AM_FUNC_MKTIME rather than my private copy, now that the official one
100400         is up to date.
100401         * m4/mktime.m4: Remove file.
100402
100403         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100404         * m4/uptime.m4: Likewise.
100405         * m4/uintmax_t.m4: Likewise.
100406
100407 1999-01-28  Jim Meyering  <meyering@ascend.com>
100408
100409         * m4/jm-macros.m4: Use jm_AFS.
100410         * m4/afs.m4: New file (from fileutils' configure.in).
100411
100412         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100413         * m4/chown.m4: Likewise.
100414         * m4/d-ino.m4: Likewise.
100415         * m4/d-type.m4: Likewise.
100416         * m4/fnmatch.m4: Likewise.
100417         * m4/getgroups.m4: Likewise.
100418         * m4/gettext.m4: Likewise.
100419         * m4/jm-mktime.m4: Likewise.
100420         * m4/jm-winsz2.m4: Likewise.
100421         * m4/lcmessage.m4: Likewise.
100422         * m4/ls-mntd-fs.m4: Likewise.
100423         * m4/malloc.m4: Likewise.
100424         * m4/memcmp.m4: Likewise.
100425         * m4/putenv.m4: Likewise.
100426         * m4/realloc.m4: Likewise.
100427         * m4/st_mtim.m4: Likewise.
100428         * m4/strftime.m4: Likewise.
100429
100430 1999-01-16  Jim Meyering  <meyering@ascend.com>
100431
100432         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100433         (ARGMATCH_DIE_DECL): Define.
100434
100435 1999-01-12  Jim Meyering  <meyering@ascend.com>
100436
100437         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100438         Reported by Lars Hecking.
100439
100440 1999-01-10  Jim Meyering  <meyering@ascend.com>
100441
100442         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100443         gross kludge.
100444         * m4/inttypes_h.m4: Likewise.
100445         * m4/lstat.m4: Likewise.
100446         * m4/malloc.m4: Likewise.
100447         * m4/readdir.m4: Likewise.
100448         * m4/realloc.m4: Likewise.
100449         * m4/st_dm_mode.m4: Likewise.
100450         * m4/stat.m4: Likewise.
100451         * m4/utimbuf.m4: Likewise.
100452         * m4/utimes.m4: Likewise.
100453
100454         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100455         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100456         comments in config.h.in are meaningful.
100457
100458         * m4/jm-macros.m4: Require autoconf-2.13 here.
100459
100460         * m4/regex.m4: By default, don't use the included regex.c on systems
100461         with glibc 2.  Suggestion from Uli Drepper.
100462
100463 1999-01-02  Jim Meyering  <meyering@ascend.com>
100464
100465         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100466
100467 1998-12-18  Jim Meyering  <meyering@ascend.com>
100468
100469         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100470         Based on a suggestion from Lars Hecking.
100471
100472 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100473
100474         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100475
100476 1998-11-16  Jim Meyering  <meyering@ascend.com>
100477
100478         * m4/lfs.m4: Double-quote the `uname...` expression.
100479
100480 1998-11-14  Jim Meyering  <meyering@ascend.com>
100481
100482         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100483         * m4/stat.m4: Likewise.
100484
100485 1998-11-03  Jim Meyering  <meyering@ascend.com>
100486
100487         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100488         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100489
100490 1998-10-18  Jim Meyering  <meyering@ascend.com>
100491
100492         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100493
100494 1998-10-17  Jim Meyering  <meyering@ascend.com>
100495
100496         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100497         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100498         calls for those previously hard-coded headers.  Instead, take a new
100499         parameter.
100500         (jm_CHECK_DECLARATIONS): Reflect interface change.
100501         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100502         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100503
100504         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100505
100506 1998-10-14  Jim Meyering  <meyering@ascend.com>
100507
100508         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100509         instead of "TZ=America/Vancouver".  From Paul Eggert.
100510
100511 1998-10-11  Jim Meyering  <meyering@ascend.com>
100512
100513         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100514         This adds a test for a recently added compatibility fix for mktime.c.
100515         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100516
100517 1998-09-27  Jim Meyering  <meyering@ascend.com>
100518
100519         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100520
100521         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100522         ../configure.in, including a change from Gordon Matzigkeit to allow
100523         cross-compiling for the Hurd.
100524
100525         * m4/glibc.m4: New file/macro to test for the GNU C Library
100526         versions 1 and 2.  From Gordon Matzigkeit.
100527         Indent.
100528
100529 1998-09-21  Jim Meyering  <meyering@ascend.com>
100530
100531         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100532
100533 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100534
100535         Port nanosecond-resolution times to UnixWare 2.1.2 and
100536         pedantic Solaris 2.6.
100537
100538         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100539         AC_STRUCT_ST_MTIM.
100540         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100541         Generate name of ns member, instead of just 1 or undef.
100542         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100543
100544 1998-08-15  Jim Meyering  <meyering@ascend.com>
100545
100546         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100547         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100548         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100549         instead of jm_TYPE_SSIZE_T.
100550
100551 1998-08-12  Jim Meyering  <meyering@ascend.com>
100552
100553         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100554
100555 1998-08-02  Jim Meyering  <meyering@ascend.com>
100556
100557         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100558         in acconfig.h manually.
100559
100560 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100561
100562         * m4/st_mtim.m4: New file.
100563
100564 1998-07-28  Jim Meyering  <meyering@ascend.com>
100565
100566         * m4/utimes.m4: Undef stat.
100567
100568 1998-07-25  Jim Meyering  <meyering@ascend.com>
100569
100570         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100571         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100572
100573 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100574
100575         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100576         uid and gid actually remain unchanged.
100577
100578 1998-07-07  Jim Meyering  <meyering@ascend.com>
100579
100580         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100581
100582 1998-07-04  Jim Meyering  <meyering@ascend.com>
100583
100584         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100585         to prove that this macro can be used in packages without regex.c.
100586
100587 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100588
100589         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100590         is to be used.
100591
100592 1998-07-03  Jim Meyering  <meyering@ascend.com>
100593
100594         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100595
100596         * m4/gettext.m4: New file -- from gettext-0.10.35.
100597         * m4/lcmessage.m4: Likewise.
100598         * m4/progtest.m4: Likewise.
100599
100600         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100601         * m4/jm-macros.m4: Require the new macro.
100602
100603 1998-06-29  Jim Meyering  <meyering@ascend.com>
100604
100605         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100606         for the definition of NGROUPS (used in a system header included
100607         by sys/mount.h).
100608
100609 1998-06-28  Jim Meyering  <meyering@ascend.com>
100610
100611         * m4/ls-mntd-fs.m4: New file.
100612         * m4/fstypename.m4: New file.
100613
100614         * m4/jm-macros.m4: Require the new macro.
100615         * m4/jm-glibc-io.m4: New file.
100616
100617 1998-05-19  Jim Meyering  <meyering@ascend.com>
100618
100619         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100620         * m4/lchown.m4: New file.
100621
100622         * m4/Makefile.am.in: New file.
100623         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100624
100625 1998-05-14  Jim Meyering  <meyering@ascend.com>
100626
100627         * m4/Makefile.am (EXTRA_DIST): Add them.
100628         * m4/jm-macros.m4: New file.
100629         * m4/utimbuf.m4: New file.
100630
100631 1998-05-12  Jim Meyering  <meyering@ascend.com>
100632
100633         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100634
100635 1998-05-11  Jim Meyering  <meyering@ascend.com>
100636
100637         * m4/isc-posix.m4: New file.
100638
100639 1998-05-10  Jim Meyering  <meyering@ascend.com>
100640
100641         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100642
100643 1998-05-09  Jim Meyering  <meyering@ascend.com>
100644
100645         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100646         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100647         with automake.
100648
100649         * m4/ssize_t.m4: New file.
100650         * m4/mktime.m4: Remove file -- the new automake has this now.
100651
100652 1998-04-26  Jim Meyering  <meyering@ascend.com>
100653
100654         * m4/assert.m4: New file.
100655         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100656
100657 1998-04-05  Jim Meyering  <meyering@ascend.com>
100658
100659         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100660         (jm_PREREQ): Use it here.
100661
100662 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100663
100664         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100665         in acconfig.h.
100666
100667 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100668
100669         * m4/prereq.m4: New file.
100670         * m4/error.m4: New file.
100671         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100672
100673 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100674
100675         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100676         cache-check for the same variable -- that defeated the purpose of
100677         the test; the test program was never run.  This was a problem only
100678         on systems with losing getline functions -- HP-UX 10.20 is one.
100679         Reported by Bjorn Helgaas.
100680
100681 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100682
100683         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100684
100685 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100686
100687         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100688
100689         * m4/const.m4: New file.  Use an initializer in this declaration
100690         typedef int charset[2]; const charset x;
100691         Reported by Bob Glickstein.
100692
100693 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100694
100695         * m4/chown.m4: Fix reversed types on -1 args to chown.
100696         From Kaveh Ghazi.
100697
100698 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100699
100700         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100701         Add lseek and memchr.
100702
100703         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100704         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100705         have a 20-character limit on names.
100706
100707 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100708
100709         * m4/inttypes_h.m4: New file.
100710         * m4/uintmax_t.m4: New file.
100711         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100712
100713
100714         -----
100715
100716         Local Variables:
100717         coding: utf-8
100718         End:
100719
100720         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100721
100722         Copying and distribution of this file, with or without
100723         modification, are permitted provided the copyright notice
100724         and this notice are preserved.